|
@@ -365,18 +365,19 @@ const toSave = async (data: any) => {
|
|
|
};
|
|
|
// 查询其他信息
|
|
|
const searchOther = async () => {
|
|
|
+ let res: IQueryResult;
|
|
|
//是否公开
|
|
|
- const p1: IQueryResult = await sysdictdata.query({ dict_type: 's_is_show' });
|
|
|
- isshowList.value = p1.data as [];
|
|
|
+ res = await sysdictdata.query({ dict_type: 's_is_show' });
|
|
|
+ if (res.errcode == '0') isshowList.value = res.data as [];
|
|
|
// 领域
|
|
|
- const p2: IQueryResult = await sysdictdata.query({ dict_type: 'studio_field' });
|
|
|
- fieldList.value = p2.data as [];
|
|
|
+ res = await sysdictdata.query({ dict_type: 'studio_field' });
|
|
|
+ if (res.errcode == '0') fieldList.value = res.data as [];
|
|
|
// 是否入住科学家工作室
|
|
|
- const p3: IQueryResult = await sysdictdata.query({ dict_type: 'sys_yes_no' });
|
|
|
- studioList.value = p3.data as [];
|
|
|
+ res = await sysdictdata.query({ dict_type: 'sys_yes_no' });
|
|
|
+ if (res.errcode == '0') studioList.value = res.data as [];
|
|
|
// 审核状态
|
|
|
- const p4: IQueryResult = await sysdictdata.query({ dict_type: 'studio_status' });
|
|
|
- statusList.value = p4.data as [];
|
|
|
+ res = await sysdictdata.query({ dict_type: 'studio_status' });
|
|
|
+ if (res.errcode == '0') statusList.value = res.data as [];
|
|
|
};
|
|
|
watch(
|
|
|
form,
|