Przeglądaj źródła

调整一世被的执行人问题

Lijy 1 rok temu
rodzic
commit
bff78bec56

+ 7 - 4
fhKeeper/formulahousekeeper/timesheet/src/components/taskComponent.vue

@@ -78,7 +78,7 @@
                         <selectCat v-if="user.userNameNeedTranslate == 1" :size="'mini'" :filterable="true" :subject="users" :subjectId="executorItem.executorId" :distinction="'1'" @selectCal="selectCal" :index="index" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)"></selectCat>
                     </div>
                     <!-- 项目服务 -->
-                    <div v-if="user.companyId==3092">
+                    <div>
                         <span style="margin-left:30px;margin-right:10px;">{{'项目服务'}}</span>
                         <el-select multiple clearable collapse-tags  filterable  v-model="executorItem.serviceId" size="small" placeholder="请选择项目服务" style="width: 300px" @change="serviceIdChange()">
                             <el-option
@@ -873,7 +873,6 @@ export default {
     this.getSapServiceList()
 
     this.timess();
-    
   },
   methods: {
     // 刷新数据
@@ -889,13 +888,13 @@ export default {
     },
     // 触发事件
     triggerEvent(obj) {
+        this.getUsers(); // 获取名单数据
         console.log(obj, '触发事件')
         this.curProjectId = obj.curProjectId
         this.getProjectList()
         if(!obj.taskVue) {
             this.getStageList(obj.integrationTaskNingwai)
         }
-        this.getUsers(); // 获取名单数据
         if(obj.create) {
             this.mileageCup = false
             this.addFormVisible = true;
@@ -915,13 +914,17 @@ export default {
                 this.getDetail(obj.curProjectId)
             }
             this.curProjectId = obj.task.projectId;
-            this.getTaskDetail(obj.id);
+            setTimeout(() => {
+                this.getTaskDetail(obj.id);
+            }, 200)
+            // this.getTaskDetail(obj.id);
             this.getTaskProgressList(obj.id); // 获取任务进展列表 
             this.gain(obj.task); // 获取评论列表
             this.getDailyList(obj.id) // 获取来自日报
             this.getRelationTaskList(obj.num, obj.id)
             this.getTaskFileList(obj.num,obj.id)
         }
+        
         this.getrelation();
     },
     // 代办任务创建事件