From c626e8199d7af7c439685498305aa440b3f819b4 Mon Sep 17 00:00:00 2001 From: gaoluyang <gaoluyang@rengu.cc> Date: 星期五, 12 七月 2024 19:14:27 +0800 Subject: [PATCH] 数采配置 --- src/components/view/a6-device-management.vue | 33 +++++++++++++++++++++------------ 1 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/components/view/a6-device-management.vue b/src/components/view/a6-device-management.vue index a96603f..cb713ce 100644 --- a/src/components/view/a6-device-management.vue +++ b/src/components/view/a6-device-management.vue @@ -421,17 +421,17 @@ </el-row> </span> </el-dialog> -<!-- <dataAcquisitionConfig v-if="showData"/>--> + <dataAcquisitionConfig v-if="showData" :tableList="tableList"/> </div> </template> <script> import ValueTable from '../tool/value-table.vue' - // import dataAcquisitionConfig from '../do/b6-device-management/b6-data-acquisition-config.vue' + import dataAcquisitionConfig from '../do/b6-device-management/b6-data-acquisition-config.vue' export default { components: { ValueTable, - // dataAcquisitionConfig + dataAcquisitionConfig }, data() { return { @@ -451,6 +451,7 @@ dialogVisible2: false, addPower: false, showData: false, // 鏁伴噰閰嶇疆椤甸潰 + tableList: [], componentData: { entity: { deviceStatus: null, @@ -840,17 +841,25 @@ }) }, handleConfig(row){ - this.configForm = {} - this.dialogVisible3 = true - this.$axios.post(this.$api.deviceScope.getNumberCollect+'?id='+row.id).then(res => { - this.configForm = res.data + // this.configForm = {} + // this.dialogVisible3 = true + // this.$axios.post(this.$api.deviceScope.getNumberCollect+'?id='+row.id).then(res => { + // this.configForm = res.data + // }) + this.showData = true + const list = row.insProductItem.split(';') + let list2 = [] + list.map((item) => { + const obj = Object.assign({ + insProductItem: item, + }) + list2.push(obj) }) - // this.showData = true - // console.log('?????', this.showData) + this.tableList = list2 }, - // closeDataVue () { - // this.showData = false - // }, + closeDataVue () { + this.showData = false + }, submitForm3(){ if(!this.configForm.ip){ this.$message.error('璇峰~鍐橧P'); -- Gitblit v1.9.3