From 2a8f4377ffbae1c0122e48f613ab3755e22e8f85 Mon Sep 17 00:00:00 2001 From: wu <2468489804@qq.com> Date: Thu, 25 Aug 2022 10:13:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E8=8A=82=E7=82=B9=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=AD=9B=E9=80=89=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edgeServer/edgeServerConfigure/device.vue | 47 ++++++++++++++++--- 1 file changed, 40 insertions(+), 7 deletions(-) diff --git a/src/views/edgeServer/edgeServerConfigure/device.vue b/src/views/edgeServer/edgeServerConfigure/device.vue index 9f6635c..5988e98 100644 --- a/src/views/edgeServer/edgeServerConfigure/device.vue +++ b/src/views/edgeServer/edgeServerConfigure/device.vue @@ -45,12 +45,31 @@ :defaultFormData="defaultFormData" /> - - 新增 + +
+ 新增 + + 筛选: + +
+
@@ -126,7 +145,6 @@ export default { data () { return { active: '', - timing: null, columns: [ { title: '序号', @@ -318,6 +336,8 @@ export default { { required: true, message: '请输入采集周期(ms)', trigger: 'blur' } ] }, + timing: null, + nameSearchValue: '', serverData: {}, devicePointData: [], nodeCodeData: [], @@ -340,6 +360,19 @@ export default { immediate: true } }, + computed: { + devicePointTableData () { + if (this.nameSearchValue) { + return this.devicePointData.filter((item) => { + if (item['@Name'].search(this.nameSearchValue) > -1) { + return item + } + }) + } else { + return this.devicePointData + } + } + }, methods: { addRow () { this.$refs.d2Crud.showDialog({