Browse Source

修复bug-7173设备档案选择部门查询后部门查询控件被禁用问题

shenqilong 3 tháng trước cách đây
mục cha
commit
29ecca75ea
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      src/views/component/device/index.vue

+ 7 - 1
src/views/component/device/index.vue

@@ -594,6 +594,9 @@ export default {
       position: position,
       level: level.second || level.first,
       userId: userId,
+      display:
+        setting?.dept?.default &&
+        !(isHighLevel || this.$route.fullPath === '/xxgl/sbda'),
       search: {
         pos: setting?.dept?.default
           ? isHighLevel || this.$route.fullPath === '/xxgl/sbda'
@@ -1073,7 +1076,10 @@ export default {
             param: this.$utils.guid()
           })
         })
-        this.showDeptSeach = true
+
+        if (this.display) {
+          this.showDeptSeach = true
+        }
         parameters.parameters.push(obj)
       } else {
         this.showDeptSeach = false