licp
2024-07-25 25f23d0761c7949068176db038cea74c4401fc04
Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before into master
已修改1个文件
23 ■■■■ 文件已修改
src/components/do/b6-device-management/b6-data-acquisition-config.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b6-device-management/b6-data-acquisition-config.vue
@@ -123,6 +123,16 @@
          </el-option>
        </el-select>
            </div>
      <div v-if="configForm.fileType == '.mdb'" class="search_thing" style="margin-bottom: 14px;">
                <div class="search_label">委托字段:</div>
                <el-input size="small" placeholder="请输入" clearable
                        v-model="configForm.mdbEntrustCode"></el-input>
            </div>
      <div v-if="configForm.fileType == '.mdb'" class="search_thing" style="margin-bottom: 14px;">
                <div class="search_label">样品字段:</div>
                <el-input size="small" placeholder="请输入" clearable
                        v-model="configForm.mdbSampleCode"></el-input>
            </div>
      <span slot="footer" class="dialog-footer">
                <el-row>
                    <el-button @click="dialogVisible4=false">取 消</el-button>
@@ -306,7 +316,6 @@
        this.tableList = res.data
        this.tableList.forEach(i => {
          i.sample = i.sample.replaceAll('"', '').replaceAll("],", ';').replaceAll("[", '').replaceAll('"', '').replaceAll(']', '')
          console.log(`output->i.sample`,i.sample)
        })
        if(this.tableList[0]) {
          this.$set(this.configForm, 'fileType', this.tableList[0].fileType)
@@ -354,11 +363,13 @@
      this.$axios.post(this.$api.deviceScope.saveDataAcquisitionConfiguration + "?deviceId=" + this.deviceId, obj, {headers: {
            'Content-Type': 'application/json'
          }}).then(res => {
        this.tableList = res.data
        this.dialogVisible4 = false
        this.upLoad4 = false
        this.init()
        this.$message.success('操作成功')
            if(res.code == 200) {
              this.tableList = res.data
              this.dialogVisible4 = false
              this.init()
              this.$message.success('操作成功')
            }
            this.upLoad4 = false
      }).catch(err => {
        this.upLoad4 = false
      })