spring
2025-03-19 07a41ade45c962e93a9d449ce1be0eec52e66a6a
src/components/view/a6-device-management.vue
@@ -486,15 +486,17 @@
                  font: '档案修订',
                  type: 'text',
                  method: 'isUpdate'
               }, {
                  id: 'handleConfig',
                  font: '数采配置',
                  type: 'text',
                  method: 'handleConfig',
            disabFun: (row, index) => {
              return row.insProductItem === ''
            }
               }],
               }
          // , {
               //    id: 'handleConfig',
               //    font: '数采配置',
               //    type: 'text',
               //    method: 'handleConfig',
          //   disabFun: (row, index) => {
          //     return row.insProductItem === ''
          //   }
               // }
        ],
          headNoShow:['enDeviceName'],
               tagField: {
                  deviceStatus: {
@@ -529,7 +531,8 @@
            }
               },
               requiredAdd: [],
               requiredUp: []
               requiredUp: [],
          needSort: ['deviceName', 'acquisitionDate', 'activationDate', 'lastCalibrationDate', 'nextCalibrationDate', 'deviceStatus'],
            },
            entityCopy: {},
            upIndex: 0,
@@ -612,17 +615,17 @@
                  config = true
               }
            }
            if (!config) {
                     this.componentData.do.splice(2, 1)
                  }
                  if (!up) {
                     this.componentData.do.splice(1, 1)
                  }
                  if (!del) {
                     this.componentData.do.splice(0, 1)
                  }
                  this.addPower = add
               },
            // if (!config) {
        //   this.componentData.do.splice(2, 1)
        // }
        if (!up) {
          this.componentData.do.splice(1, 1)
        }
        if (!del) {
          this.componentData.do.splice(0, 1)
        }
        this.addPower = add
      },
         // 获取字典
         selectEnumByCategory() {
            this.$axios.post(this.$api.enums.selectEnumByCategory, {
@@ -837,7 +840,7 @@
          this.$message.error('未输入启用日期')
          return
        }
        if(!this.formData2.deviceStatus){
        if(this.formData2.deviceStatus==='' || this.formData2.deviceStatus===null){
          this.$message.error('未选择当前状态')
          return
        }
@@ -846,7 +849,7 @@
          return
        }
            this.upLoad2 = true;
        this.formData2.insProductIds = this.formData2.insProductIds.join()
        this.formData2.insProductIds = this.formData2.insProductIds?this.formData2.insProductIds.join():''
            this.$axios.post(this.$api.deviceScope.addDeviceParameter, this.formData2, {
               headers: {
                  'Content-Type': 'application/json'