Browse Source

上报任务人员修改

duy 2 years ago
parent
commit
84d1122ff6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/global/components/hc-tasks-user/index.vue

+ 4 - 1
src/global/components/hc-tasks-user/index.vue

@@ -23,6 +23,7 @@
                 <div class="tree-box">
                     <el-scrollbar>
                         <ElTree
+                            v-if="isShowTree"
                             :data="ElTreeData" :default-expanded-keys="[0]" :props="ElTreeProps" accordion
                             class="hc-tree-node-box" highlight-current node-key="roleId"
                             @node-click="ElTreeNodeClick"
@@ -201,7 +202,7 @@ const ElTreeData = ref([{
     childRoleList: [],
     signPfxFileList: [],
 }])
-
+const isShowTree = ref(true)
 //监听
 watch(() => [
     props.users,
@@ -243,9 +244,11 @@ const showModalClick = () => {
 //获取系统所有角色划分
 const signUserList = ref([])
 const queryAllRoleList = async () => {
+    isShowTree.value = false
     const { error, code, data } = await tasksFlowApi.queryAllRoleList({
         contractId: contractId.value,
     })
+    isShowTree.value = true
     //处理数据
     if (!error && code === 200) {
         let signList = [], dataArr = getArrValue(data)