yangkang
2023-09-13 42d2aa6117884b07d62f45d4255fcfb92614a374
src/views/eam/PredictiveWorkPlanList.vue
@@ -41,7 +41,7 @@
          >
            <a-form-item label="版本状态">
              <a-radio-group
                v-model="queryParam.versionStatus"
                v-model="queryParam.status"
                @change="onChange"
                default-value="2"
              >
@@ -227,7 +227,7 @@
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import { requestPut } from '@/api/manage'
  import { requestPut,deleteAction  } from '@/api/manage'
  import DailyMaintenanceStandardDetail from './modules/dailyMaintenanceStandard/DailyMaintenanceStandardDetail'
  //计划用料
@@ -373,9 +373,8 @@
        isDel: false,
        url: {
          list: '/eam/predictiveworkplan/pagePredictiveWorkPlan',
          delete: '/eam/maintenanceStandard/delete',
          deleteBatch: '/eam/maintenanceStandard/deleteBatch',
          versionTakeEffect: '/eam/maintenanceStandard/versionTakeEffect'
          delete: '/eam/predictiveworkplan/delete',
          versionTakeEffect: '/eam/predictiveworkplan/versionTakeEffect'
        }
      }
    },
@@ -395,6 +394,24 @@
        this.planId = ''
        this.equipmentId = ''
        this.isAdd = false
      },
      handleDelete: function(id) {
        if (!this.url.delete) {
          this.$message.error('请设置url.delete属性!')
          return
        }
        var that = this
        deleteAction(that.url.delete, { id: id }).then((res) => {
          if (res.success) {
            //重新计算分页问题
            that.reCalculatePage(1)
            that.$message.success(res.message)
            that.loadData()
            that.onClearSelected()
          } else {
            that.$message.warning(res.message)
          }
        })
      },
      onSelectChange(selectedRowKeys, selectionRows) {
        this.selectedRowKeys = selectedRowKeys
@@ -425,7 +442,7 @@
      //升版
      handleRevise: function(record) {
        this.$refs.modalForm.edit(record)
        this.$refs.modalForm.title = '保养标准版本升级'
        this.$refs.modalForm.title = '升级'
        this.$refs.modalForm.disableSubmit = false
        this.$refs.modalForm.isRevise = true
      },
@@ -443,7 +460,7 @@
            requestPut(that.url.versionTakeEffect, {
              id: record.id,
              num: record.num,
              versionStatus: '2'
              status: '2'
            }).then((res) => {
              if (res.success) {
                that.$message.success('版本生效成功!')