zjk
2026-06-20 a9fba7e41b76aee5d56af24a6221a13a1bb345e2
fix: 修改bug
2个文件已修改
23 ■■■■■ 已修改文件
src/views/operations/personnel/safetyOfficerInfo/index.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/operationLog/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operations/personnel/safetyOfficerInfo/index.vue
@@ -22,7 +22,7 @@
  drivingLicenseNo: string
  createBy: string
  createTime: string
  deleted: boolean
  status: number
  contactAddress?: string
  drivingLicenseEndDate?: string
  drivingLicenseStartDate?: string
@@ -65,7 +65,7 @@
const statusOptions = [
  { label: '启用', value: 1 },
  { label: '停用', value: 2 },
  { label: '停用', value: 0 },
]
const genderOptions = [
@@ -235,8 +235,8 @@
}
async function handleToggleStatus(row: SafetyOfficerItem) {
  const nextStatus = row.deleted ? 1 : 0
  const actionText = nextStatus === 1 ? '启用' : '停用'
  const nextStatus = row.status === 1 ? 0 : 1
  const actionText = nextStatus === 1 ? '停用' : '启用'
  dialog.warning({
    title: `是否确认${actionText}该安全员?`,
    content: ``,
@@ -297,6 +297,7 @@
        type="daterange"
        clearable
        format="yyyy/MM/dd"
        close-on-select
        placeholder="开始时间 - 结束时间"
        style={{ width: '320px' }}
        actions={null}
@@ -325,7 +326,7 @@
          ),
          empty: () => (
            <div class="flex-center">
              <img :src="noDataImg" style={{ width: '50%' }} alt="no-data" />
              <img src={noDataImg} style={{ width: '50%' }} alt="no-data" />
            </div>
          ),
        }}
@@ -354,7 +355,7 @@
          ),
          empty: () => (
            <div class="flex-center">
              <img :src="noDataImg" style={{ width: '50%' }} alt="no-data" />
              <img src={noDataImg} style={{ width: '50%' }} alt="no-data" />
            </div>
          ),
        }}
@@ -416,13 +417,13 @@
  },
  {
    title: '状态',
    key: 'deleted',
    key: 'status',
    width: 100,
    resizable: true,
    align: 'left',
    render: row => (
      <NTag bordered={false} type={row.deleted ? 'default' : 'success'}>
        {row.deleted ? '停用' : '启用'}
      <NTag bordered={false} type={row.status === 1 ? 'success' : 'default'}>
        {row.status === 1 ? '启用' : '停用'}
      </NTag>
    ),
  },
@@ -438,7 +439,7 @@
          编辑
        </NButton>
        <NButton text v-permission="2026061541" type="primary" onClick={() => handleToggleStatus(row)}>
          {row.deleted ? '启用' : '停用'}
          {row.status === 1 ? '停用' : '启用'}
        </NButton>
      </n-space>
    ),
src/views/system/operationLog/index.vue
@@ -115,7 +115,7 @@
          ),
          empty: () => (
            <div class="flex-center">
              <img :src="noDataImg" style={{ width: '50%' }} />
              <img src={noDataImg} style={{ width: '50%' }} />
            </div>
          ),
        }}