zhaowei
2025-07-24 d77bd5a122ca72a8537bace6b2307bcececac04b
src/views/eam/base/EamTechnicalStatusEvaluationStandardList.vue
@@ -58,22 +58,11 @@
                @change="handleImportExcel">
        <a-button type="primary" icon="import">其他检查导入</a-button>
      </a-upload>
      <a-dropdown v-if="selectedRowKeys.length > 0">
        <a-menu slot="overlay">
          <a-menu-item key="1" @click="batchDel">
            <a-icon type="delete"/>
            删除
          </a-menu-item>
        </a-menu>
        <a-button style="margin-left: 8px"> 批量操作
          <a-icon type="down"/>
        </a-button>
      </a-dropdown>
    </div>
    <!-- table区域-begin -->
    <a-table ref="table" size="middle" bordered rowKey="id" :columns="columns" :dataSource="dataSource"
             :pagination="ipagination" :loading="loading" @change="handleTableChange">
             :scroll="{x:'max-content'}" :pagination="ipagination" :loading="loading" @change="handleTableChange">
      <!--是否有安全装置检查-->
      <template slot="hasSafetyEquipmentCheck" slot-scope="text">
@@ -98,10 +87,16 @@
          <a-popconfirm title="确定提交吗?" @confirm="handleSubmit(record)">
            <a @click.stop="event=>event.stopPropagation()">提交</a>
          </a-popconfirm>
          <a-divider type="vertical"/>
        </template>
        <a @click="handleUpgrade(record)" v-if="record.standardStatus=='ENABLE'">升版</a>
        </span>
        <template v-if="record.standardStatus=='ENABLE'">
          <a @click="handleUpgrade(record)">升版</a>
          <a-divider type="vertical"/>
        </template>
        <a @click="handleDetail(record)">详情</a>
        </span>
    </a-table>
    <!-- table区域-end -->
@@ -155,6 +150,12 @@
            dataIndex: 'equipmentModel'
          },
          {
            title: '规范状态',
            align: 'center',
            dataIndex: 'standardStatus_dictText',
            width: 150
          },
          {
            title: '规范编码',
            align: 'center',
            dataIndex: 'standardCode'
@@ -164,48 +165,39 @@
            align: 'center',
            dataIndex: 'standardName'
          },
          // {
          //   title: '鉴定周期(年)',
          //   align: 'center',
          //   dataIndex: 'evaluationPeriod',
          //   width: 150
          // },
          {
            title: '规范状态',
            align: 'center',
            dataIndex: 'standardStatus_dictText',
            width: 150
          },
          {
            title: '版本',
            align: 'center',
            dataIndex: 'standardVersion',
            width: 100
          },
          {
            title: '是否有安全装置检查',
            align: 'center',
            dataIndex: 'hasSafetyEquipmentCheck',
            scopedSlots: { customRender: 'hasSafetyEquipmentCheck' },
            width: 150
            width: 200
          },
          {
            title: '是否有设备精度检查',
            align: 'center',
            dataIndex: 'hasPrecisionCheck',
            scopedSlots: { customRender: 'hasPrecisionCheck' },
            width: 150
            width: 200
          },
          {
            title: '是否有其他检查',
            align: 'center',
            dataIndex: 'hasOtherCheck',
            scopedSlots: { customRender: 'hasOtherCheck' },
            width: 150
            width: 200
          },
          {
            title: '操作',
            dataIndex: 'action',
            align: 'center',
            fixed: 'right',
            width: 200,
            scopedSlots: { customRender: 'action' }
          }
        ],
@@ -214,7 +206,7 @@
          submit: '/eam/eamTechnicalStatusEvaluationStandard/submit',
          importSafetyEquipmentCheck: 'eam/eamTechnicalStatusEvaluationStandard/importSafetyEquipmentCheck',
          importPrecisionCheck: 'eam/eamTechnicalStatusEvaluationStandard/importPrecisionCheck',
          importOtherCheck: 'eam/eamTechnicalStatusEvaluationStandard/importOtherCheck',
          importOtherCheck: 'eam/eamTechnicalStatusEvaluationStandard/importOtherCheck'
        }
      }
@@ -252,6 +244,7 @@
      handleUpgrade(record) {
        this.$refs.modalForm.edit(record, true)
        this.$refs.modalForm.title = '升版'
        this.$refs.modalForm.disableSubmit = false
      }
    }
  }