Explorar o código

修改工作室

zs %!s(int64=2) %!d(string=hai) anos
pai
achega
7ca00922d0
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  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 () => {