Преглед изворни кода

Merge branch 'master' of http://47.111.81.118:3000/uskycloud/usky-web-mobile into fanghuisheng

fanghuisheng пре 1 месец
родитељ
комит
32b0adb828

+ 6 - 5
src/pages/business/common/projectMange/write/components/template1.vue

@@ -264,9 +264,9 @@ const { form, projectsCheck, projectsList, userList, userDate, saveTime } = toRe
  * @初始化
  */
 function init() {
-  dUserList().then((res) => {
-    state.userDate = res.data;
-  });
+  // dUserList().then((res) => {
+  //   state.userDate = res.data;
+  // });
 
 
 }
@@ -468,7 +468,8 @@ watch(
       state.projectsCheck.push(e.projectId);
     });
     var ccTo = state.form.ccTo.length > 0 ? state.form.ccTo.split(",").map((num) => Number(num)) : [];
-    // setTimeout(function () {
+    dUserList().then((res) => {
+      state.userDate = res.data;
       state.userDate.forEach((e) => {
         if (ccTo.includes(e.userId)) {
           state.userList.push({
@@ -487,7 +488,7 @@ watch(
           });
         }
       });
-    // }, 300);
+    });
 
     if(!state.form.id){
         storageSystem.set("project", state);