Browse Source

Merge branch 'master' of http://git.cc-lotus.info/studio_vue3/jcyjdt_studio

guhongwei 2 years ago
parent
commit
0b6ecfa2ca
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/views/unit/studio/add.vue

+ 3 - 4
src/views/unit/studio/add.vue

@@ -95,6 +95,9 @@ const searchUnit = async () => {
 };
 // 查询
 const search = async () => {
+  // 状态判断显示
+  if (route.query && route.query.status == '0') active.value = 3;
+  else if (route.query && route.query.status == '1') active.value = 4;
   let data: any = {
     user_id: user.value._id,
     company_id: unitInfo.value._id,
@@ -114,15 +117,11 @@ const search = async () => {
       if (res.data) {
         res.data.team = await sarchTeam();
         form.value = res.data as { scientist_id: ''; scientistinfo_id: ''; scientist_name: ''; team: [] };
-        console.log(form.value);
       }
     }
   } else {
     form.value = { ...data };
   }
-  // 状态判断显示
-  if (route.query && route.query.status == '0') active.value = 3;
-  else if (route.query && route.query.status == '1') active.value = 4;
 };
 // 查询团队信息
 const sarchTeam = async () => {