|
@@ -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 () => {
|