feat(aihr): 重构运营后台与租户知识治理

- 重构运营总览、侧栏和内容运营工作台\n- 增加大喇叭、成果审核与运营统计链路\n- 补齐租户、知识空间、分类和知识维护闭环\n- 加固标签页租户上下文、停用租户写保护与迁移预检
This commit is contained in:
2026-07-23 01:24:22 +08:00
parent 333c365c6f
commit 163b08ecfe
94 changed files with 8610 additions and 1114 deletions
+4 -1
View File
@@ -3,7 +3,7 @@ import FileSaver from 'file-saver';
import errorCode from '@/utils/errorCode';
import { blobValidate } from '@/utils/ruoyi';
import { LoadingInstance } from 'element-plus/es/components/loading/src/loading';
import { globalHeaders } from '@/utils/request';
import { globalHeaders, reconcileTenantContextBlobResponse, reconcileTenantContextResponse } from '@/utils/request';
const baseURL = import.meta.env.VITE_APP_BASE_API;
let downloadLoadingInstance: LoadingInstance;
@@ -27,6 +27,7 @@ export default {
}
downloadLoadingInstance.close();
} catch (r) {
await reconcileTenantContextBlobResponse(axios.isAxiosError(r) ? r.response?.data : undefined);
console.error(r);
ElMessage.error('下载文件出现错误,请联系管理员!');
downloadLoadingInstance.close();
@@ -51,6 +52,7 @@ export default {
}
downloadLoadingInstance.close();
} catch (r) {
await reconcileTenantContextBlobResponse(axios.isAxiosError(r) ? r.response?.data : undefined);
console.error(r);
ElMessage.error('下载文件出现错误,请联系管理员!');
downloadLoadingInstance.close();
@@ -59,6 +61,7 @@ export default {
async printErrMsg(data: any) {
const resText = await data.text();
const rspObj = JSON.parse(resText);
reconcileTenantContextResponse(rspObj);
const errMsg = errorCode[rspObj.code] || rspObj.msg || errorCode['default'];
ElMessage.error(errMsg);
}