qushaowei
2023-10-17 05170ec3d816960d4f8a38ec8d202cefe73b4179
src/views/eam/DailyInspectionStandardList.vue
@@ -1,6 +1,6 @@
<template>
  <a-card
    title="日常点检"
    title="日保周保标准"
    :bordered='false'
  >
    <div class='table-page-search-wrapper'>
@@ -66,6 +66,7 @@
        @click='handleAdd'
        type='primary'
        icon='plus'
        v-has="'dailyInspectionStandard:add'"
      >新增</a-button>
      <a-button
        type="primary"
@@ -98,7 +99,7 @@
        size='middle'
        bordered
        rowKey='id'
        :scroll="{ x: 'calc(1400px + 50%)', y: 900 }"
        :scroll="{ x: 'calc(1600px + 50%)', y: 900 }"
        :columns='columns'
        :dataSource='dataSource'
        :pagination='ipagination'
@@ -137,22 +138,26 @@
          <a
            v-if="record.versionStatus == '2'"
            @click="handleRevise(record)"
            v-has="'dailyInspectionStandard:revise'"
          >升版</a>
          <a-divider type="vertical" />
          <a
            v-if="record.versionStatus == '1'"
            @click="handleTakeEffect(record)"
            v-has="'dailyInspectionStandard:takeEffect'"
          >生效</a>
          <a-divider type="vertical" />
          <a
            v-if="record.versionStatus == '1'"
            @click="handleEdit(record)"
            v-has="'dailyInspectionStandard:edit'"
          >编辑</a>
          <a-divider type="vertical" />
          <a-popconfirm
            v-if="record.versionStatus == '1'"
            title="确定删除吗?"
            @confirm="() => handleDelete(record.id)"
            v-has="'dailyInspectionStandard:delete'"
          >
            <a>删除</a>
          </a-popconfirm>
@@ -257,6 +262,16 @@
          dataIndex: 'assignModeName',
        },
        {
          title: '生效时间',
          align: 'center',
          dataIndex: 'takeEffectTime',
        },
        {
          title: '失效时间',
          align: 'center',
          dataIndex: 'loseEfficacyTime',
        },
        {
          title: '创建人',
          align: 'center',
          dataIndex: 'createBy',