Jelajahi Sumber

修改业务空间添加空间内设备查询报错问题

haojianlong 5 tahun lalu
induk
melakukan
1bebefcb75

+ 2 - 0
src/components/business_space/newAddDialogs/addEquipDialog.vue

@@ -156,6 +156,8 @@ export default {
       if (this.keycode != '') {
         pa.data.Filters += `;EquipName contain "${this.keycode}" or EquipLocalName contain "${this.keycode}" or EquipLocalID contain "${this.keycode}"`
       }
+      // 删除首尾分号
+      pa.data.Filters = pa.data.Filters.replace(/(^;)|(;$)/g,'');
       if (pa.data.Filters == '') {
         delete pa.data.Filters
       }