xg
“linengliang”
2024-03-13 4acf408253e7366f30885196ac63e077616270d6
src/views/eam/EquipmentListOfAll.vue
@@ -354,7 +354,15 @@
        :customRow="clickThenSelect"
        @change="handleTableChange"
      >
<!-- 点击技术状态列,跳转到技术状态鉴定页面 -->
        <template
          slot="technologyStatus"
          slot-scope="text,record"
          >
          <a
            href="javascript:eam/EquipmentCalibrationOrder;"
            @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a>
        </template>
        <template
          slot="htmlSlot"
          slot-scope="text"
@@ -775,6 +783,7 @@
          title: '技术状态',
          align: "center",
          dataIndex: 'technologyStatus_dictText',
          scopedSlots: { customRender: 'technologyStatus' },
        },
        {
          title: '技术状态鉴定类型',
@@ -1128,6 +1137,18 @@
    handleUpdateKeyEquipment() {
      this.$refs.keyEquipmentUpdate.add();
    },
    //技术状态跳转
    handleTechnologyStatus(record) {
      //路由是eam/EquipmentCalibrationOrder
      this.$router.push({
        path: '/eam/EquipmentCalibrationOrder',
        query: {
          equipmentId: record.id,
          technologyStatus: record.technologyStatus,
          technologyStatusVerificationType: record.technologyStatusVerificationType,
        }
      })
    },
  }
}
</script>