From cb2a01ee7dea28a2661720060b03c41dc372acb5 Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期五, 01 八月 2025 11:53:16 +0800
Subject: [PATCH] 完善串口处理数据,数据选择
---
src/views/CNAS/resourceDemand/device/component/acquisitionConfig.vue | 32 ++++++++++++++++++++++++++++----
1 files changed, 28 insertions(+), 4 deletions(-)
diff --git a/src/views/CNAS/resourceDemand/device/component/acquisitionConfig.vue b/src/views/CNAS/resourceDemand/device/component/acquisitionConfig.vue
index 1bbe52c..3857916 100644
--- a/src/views/CNAS/resourceDemand/device/component/acquisitionConfig.vue
+++ b/src/views/CNAS/resourceDemand/device/component/acquisitionConfig.vue
@@ -150,6 +150,18 @@
<div class="search_label">鏂囦欢鍚嶇О锛�</div>
<el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="configForm.dbFileName"></el-input>
</div>
+ <div class="search_thing" style="margin-bottom: 14px;">
+ <div class="search_label">鏁版嵁搴撹处鍙凤細</div>
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="configForm.dbUserName"></el-input>
+ </div>
+ <div class="search_thing" style="margin-bottom: 14px;">
+ <div class="search_label">鏁版嵁搴撳瘑鐮侊細</div>
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="configForm.dbPassword"></el-input>
+ </div>
+ <div v-if="configForm.fileType === '.mysql'" class="search_thing" style="margin-bottom: 14px;">
+ <div class="search_label"><span style="color:red;margin-right: 4px;">*</span>鏁版嵁搴撹〃锛�</div>
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="configForm.dbTable"></el-input>
+ </div>
<span slot="footer" class="dialog-footer">
<el-row>
<el-button @click="dialogVisible4 = false">鍙� 娑�</el-button>
@@ -234,7 +246,10 @@
entrustCode: "",
sampleCode: "",
dbFileName: "",
- fiberOpticRibbon: ""
+ fiberOpticRibbon: "",
+ dbUserName: "",
+ dbPassword: "",
+ dbTable: ""
},
domains: [
{
@@ -254,7 +269,10 @@
{ label: "mdb", value: ".mdb" },
{ label: "word", value: ".docx" },
{ label: "excel", value: ".xlsx" },
+ { label: "excel", value: ".xls" },
{ label: "txt", value: ".txt" },
+ { label: "mysql", value: ".mysql" },
+ { label: "mqtt", value: ".mqtt" },
{ label: "png", value: ".png" }
],
spanList: [],
@@ -404,7 +422,10 @@
this.$set(this.configForm, "entrustCode", res.data.entrustCode);
this.$set(this.configForm, "sampleCode", res.data.sampleCode);
this.$set(this.configForm, "dbFileName", res.data.dbFileName);
- this.$set(this.configForm, "fiberOpticRibbon", res.data.fiberOpticRibbon)
+ this.$set(this.configForm, "fiberOpticRibbon", res.data.fiberOpticRibbon);
+ this.$set(this.configForm, "dbUserName", res.data.dbUserName);
+ this.$set(this.configForm, "dbPassword", res.data.dbPassword);
+ this.$set(this.configForm, "dbTable", res.data.dbTable);
})
},
// 鎻愪氦鏂囦欢閰嶇疆
@@ -418,7 +439,10 @@
entrustCode: this.configForm.entrustCode,
sampleCode: this.configForm.sampleCode,
dbFileName: this.configForm.dbFileName,
- fiberOpticRibbon: this.configForm.fiberOpticRibbon
+ fiberOpticRibbon: this.configForm.fiberOpticRibbon,
+ dbUserName: this.configForm.dbUserName,
+ dbPassword: this.configForm.dbPassword,
+ dbTable: this.configForm.dbTable
});
this.upLoad4 = true;
saveDeviceFileConfiguration({ deviceId: this.deviceId, ...obj }).then(res => {
@@ -603,7 +627,7 @@
}
.search_thing {
- width: 350px;
+ width: 370px;
display: flex;
align-items: center;
}
--
Gitblit v1.9.3