From 77f8eb53713e461435141d586d001e2e24744f41 Mon Sep 17 00:00:00 2001 From: liding <756868258@qq.com> Date: 星期二, 22 四月 2025 11:08:02 +0800 Subject: [PATCH] 文件类型添加 --- src/views/CNAS/resourceDemand/device/component/acquisitionConfig.vue | 29 +++++++++++++++++++---------- 1 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/views/CNAS/resourceDemand/device/component/acquisitionConfig.vue b/src/views/CNAS/resourceDemand/device/component/acquisitionConfig.vue index e149b1b..62249bb 100644 --- a/src/views/CNAS/resourceDemand/device/component/acquisitionConfig.vue +++ b/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> @@ -298,7 +300,10 @@ { label: "word", value: ".docx" }, { label: "excel", value: ".xlsx" }, { label: "txt", value: ".txt" }, - { label: "png", value: ".png" } + { label: "png", value: ".png" }, + { label: "et", value: ".et" }, + { label: "xls", value: ".xls" }, + { label: "pdf", value: ".pdf" } ], spanList: [], specialSpanList: [], @@ -349,6 +354,7 @@ channelList: [], dialogVisible5: false, upLoad5: false, + currentInfo: {} }; }, // 鏂规硶闆嗗悎 @@ -609,6 +615,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 +772,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(); -- Gitblit v1.9.3