From 25f23d0761c7949068176db038cea74c4401fc04 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 25 七月 2024 18:25:49 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before into master

---
 src/components/do/b6-device-management/b6-data-acquisition-config.vue |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/src/components/do/b6-device-management/b6-data-acquisition-config.vue b/src/components/do/b6-device-management/b6-data-acquisition-config.vue
index fcd579d..f5e9149 100644
--- a/src/components/do/b6-device-management/b6-data-acquisition-config.vue
+++ b/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
       })

--
Gitblit v1.9.3