Ver Fonte

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

shenqilong há 3 meses atrás
pai
commit
29ecca75ea
1 ficheiros alterados com 7 adições e 1 exclusões
  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