瀏覽代碼

task-5361 设备页面部门过滤

tianxinyu 5 月之前
父節點
當前提交
eb80990222
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/component/device/index.vue

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

@@ -265,10 +265,10 @@
             <ibps-user-selector
               v-model="search.pos"
               type="position"
-              readonly-text="text"
               :multiple="true"
               size="mini"
               :filter="filter"
+              :disabled="showDeptSeach"
               filtrate
             />
           </template>
@@ -596,6 +596,7 @@ export default {
         deviceClass: '',
         validity: ''
       },
+      showDeptSeach: false,   //部门选择搜索是否禁用
       loading: false,
       pkKey: 'id', // 主键  如果主键不是pk需要传主键
       pkValue: '',
@@ -1048,7 +1049,10 @@ export default {
             param: this.$utils.guid()
           })
         })
+        this.showDeptSeach = true
         parameters.parameters.push(obj)
+      }else{
+        this.showDeptSeach = false
       }
       // 建档时间搜索
       if (this.search.time && this.search.time.length === 2) {