“linengliang”
2023-12-13 fd6e935f391501358357f3e6bc1957764510b8bc
src/views/eam/PredictiveWorkPlanList.vue
@@ -66,6 +66,7 @@
        @click='handleAdd'
        type='primary'
        icon='plus'
        v-has="'predictiveWorkPlan:add&edit&delete'"
      >新增
      </a-button>
      <a-button
@@ -118,21 +119,25 @@
          <a
            v-if="record.status == '2'"
            @click="handleRevise(record)"
            v-has="'predictiveWorkplan:update&take'"
          >升版</a>
          <a
            v-if="record.status == '1'"
            @click="handleTakeEffect(record)"
            v-has="'predictiveWorkplan:update&take'"
          >生效</a>
          <a-divider type="vertical"/>
          <a
            v-if="record.status == '1'"
            @click="handleEdit(record)"
            v-has="'predictiveWorkPlan:add&edit&delete'"
          >编辑</a>
          <a-divider type="vertical"/>
          <a-popconfirm
            v-if="record.status == '1'"
            title="确定删除吗?"
            @confirm="() => handleDelete(record.id)"
            v-has="'predictiveWorkPlan:add&edit&delete'"
          >
            <a>删除</a>
          </a-popconfirm>
@@ -308,7 +313,7 @@
            dataIndex: 'monitorTypeName'
          },
          {
            title: '设备编码',
            title: '统一编码',
            align: 'center',
            dataIndex: 'deviceNum'
          },
@@ -436,12 +441,12 @@
        this.$refs.modalForm.disableSubmit = false
        this.$refs.modalForm.isRevise = false
      },
      handleAdd: function() {
        this.$refs.modalForm.add()
        this.$refs.modalForm.title = '新增'
        this.$refs.modalForm.disableSubmit = false
        this.$refs.modalForm.isRevise = false
      },
      // handleAdd: function() {
      //   this.$refs.modalForm.add()
      //   this.$refs.modalForm.title = '新增'
      //   this.$refs.modalForm.disableSubmit = false
      //   this.$refs.modalForm.isRevise = false
      // },
      //升版
      handleRevise: function(record) {