mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-09-28 11:03:43 +00:00
Popup字典列表渲染支持翻译
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