mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-08 17:12:28 +08:00
Merge branch 'master' of https://github.com/zhangdaiscott/jeecg-boot
This commit is contained in:
@ -24,6 +24,21 @@ export const getDictItemsByCode = (code) => {
|
||||
// update-end--author:liaozhiyang---date:20230908---for:【QQYUN-6417】生产环境字典慢的问题
|
||||
|
||||
};
|
||||
/**
|
||||
* Popup字典翻译方法
|
||||
* @param text
|
||||
* @param code
|
||||
*/
|
||||
export const getPopDictByCode = (text, codeStr) => {
|
||||
const [code, dictCode, dictText] = codeStr.split(',');
|
||||
if (!code || !dictCode || !dictText) {
|
||||
return [];
|
||||
}
|
||||
return defHttp.get(
|
||||
{ url: `/online/api/cgreportGetDataPackage`, params: { code, dictText, dictCode, dataList: text } },
|
||||
{ isTransformResponse: false }
|
||||
);
|
||||
};
|
||||
/**
|
||||
* 获取字典数组
|
||||
* @param dictCode 字典Code
|
||||
|
||||
Reference in New Issue
Block a user