|
@@ -146,8 +146,10 @@ const search = async (e: { skip: number; limit: number }) => {
|
|
|
const { skip, limit } = e;
|
|
|
let info = { limit: limit, skip: skip, ...searchForm.value, company_id: unitInfo.value._id };
|
|
|
const res: IQueryResult = await builddesire.query(info);
|
|
|
- tableData.value = res.data as any[];
|
|
|
- total.value = res.total;
|
|
|
+ if (res.errcode == 0) {
|
|
|
+ tableData.value = res.data as any[];
|
|
|
+ total.value = res.total;
|
|
|
+ } else ElMessage({ type: 'warning', message: `${res.errmsg}` });
|
|
|
} else {
|
|
|
ElMessage({ type: 'warning', message: `用户未完成信息填报/信息填报未完成审核,无法查询相关信息` });
|
|
|
}
|
|
@@ -166,7 +168,7 @@ const toAdd = () => {
|
|
|
}
|
|
|
};
|
|
|
// 公开/不公开
|
|
|
-const toShow = async (data: { is_use: ''; _id: '' }) => {
|
|
|
+const toShow = (data: { is_use: ''; _id: '' }) => {
|
|
|
form.value = data;
|
|
|
dialog.value = { title: '信息管理', show: true, type: '1' };
|
|
|
};
|