duy 1 年之前
父节点
当前提交
7277833e10
共有 1 个文件被更改,包括 11 次插入5 次删除
  1. 11 5
      src/views/patrol/add.vue

+ 11 - 5
src/views/patrol/add.vue

@@ -120,9 +120,10 @@
                     <el-col :span="8">
                         <el-form-item label="整改人" prop="rectifyUser">
                             <HcTasksUser
-                                :disabled="type === 'changeRow' || type === 'review' || type === 'view'" :is-change-popele="true"
-                                :contract-id="contractId" :project-id="projectId" :users="peoples"
-                                ui="w-full" @change="tasksUserChange"
+                                v-if="isShowUser" :disabled="type === 'changeRow' || type === 'review' || type === 'view'"
+                                :is-change-popele="true" :contract-id="contractId" :project-id="projectId"
+                                :users="peoples" ui="w-full"
+                                @change="tasksUserChange"
                             />
                         </el-form-item>
                     </el-col>
@@ -217,7 +218,7 @@
                                 <template #default="{ node, data }">
                                     <span style="font-size: 16px;">{{ data.title }}</span>
                                 </template>
-                            </HcDataTree>>
+                            </HcDataTree>
                         </div>
                     </el-scrollbar>
                     <el-scrollbar v-show="!isSearchTree" class="scroll-bar-right-16">
@@ -339,7 +340,7 @@ const tableColumn = ref([
 
 
 
-
+const isShowUser = ref(true)
 onActivated(()=>{
     getTypeOptions()
     const routerQuery = useRoutes?.query
@@ -351,6 +352,11 @@ onActivated(()=>{
         addForm.value = {}
         processDataList.value = []
         peoples.value = ''
+        isShowUser.value = false
+        setTimeout(() => {
+            isShowUser.value = true
+        }, 10)
+        
     }
     if (type.value === 'changeRow') {