spring
2025-04-21 86d4b4787748a83e76d048cd6a0b5583a2cd0651
src/views/CNAS/resourceDemand/device/component/acquisitionConfig.vue
@@ -17,12 +17,14 @@
        :span-method="spanMethod">
        <el-table-column type="index" label="序号" align="center" width="65"></el-table-column>
        <el-table-column prop="deviceName" align="center" min-width="100" label="设备名称"></el-table-column>
        <el-table-column prop="fileType" align="center" label="文件后缀"></el-table-column>
        <el-table-column prop="collectUrl" align="center" min-width="100" show-overflow-tooltip
          label="采集地址"></el-table-column>
        <el-table-column prop="storageUrl" align="center" min-width="100" show-overflow-tooltip
          label="存储地址"></el-table-column>
        <el-table-column prop="ip" align="center" label="IP地址" min-width="100"></el-table-column>
        <el-table-column prop="fileType" align="center" label="文件后缀"
          v-if="deviceName && !deviceName.includes('网络分析')"></el-table-column>
        <el-table-column prop="collectUrl" align="center" min-width="100" show-overflow-tooltip label="采集地址"
          v-if="deviceName && !deviceName.includes('网络分析')"></el-table-column>
        <el-table-column prop="storageUrl" align="center" min-width="100" show-overflow-tooltip label="存储地址"
          v-if="deviceName && !deviceName.includes('网络分析')"></el-table-column>
        <el-table-column prop="ip" align="center" label="IP地址" min-width="100"
          v-if="deviceName && !deviceName.includes('网络分析')"></el-table-column>
        <el-table-column prop="sample" align="center" label="检验对象" show-overflow-tooltip
          min-width="150"></el-table-column>
        <el-table-column prop="inspectionItemClass" align="center" label="检验项分类" min-width="120"></el-table-column>
@@ -349,6 +351,7 @@
      channelList: [],
      dialogVisible5: false,
      upLoad5: false,
      currentInfo: {}
    };
  },
  // 方法集合
@@ -609,6 +612,7 @@
        inspectionItemClass: row.inspectionItemClass,
      };
      if (this.deviceName && this.deviceName.includes('网络分析')) {
        this.currentInfo = row
        this.dialogVisible5 = true;
        this.$set(this.configForm, 'importedParts', row.importedParts ? row.importedParts : '')
        this.$set(this.configForm, 'importedChannel', row.importedChannel ? row.importedChannel : '')
@@ -765,11 +769,13 @@
      this.$refs.configForm.resetFields();
    },
    submitForm5() {
      this.currentInfo.importedParts = this.configForm.importedParts
      this.currentInfo.importedChannel = this.configForm.importedChannel
      this.currentInfo.deviceId = this.deviceId
      saveDataAcquisitionConfiguration({
        deviceId: this.deviceId,
        isDevice: true,
        importedParts: this.configForm.importedParts,
        importedChannel: this.configForm.importedChannel,
        isDevice: false,
        dataConfigList: [{ ...this.currentInfo }],
      }).then(res => {
        this.dialogVisible5 = false;
        this.init();