更新版本库
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: liqiang
|
||||
* @Date: 2020-11-24 15:26:54
|
||||
* @LastEditTime: 2020-12-09 14:13:30
|
||||
* @LastEditTime: 2020-12-25 11:39:54
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: In User Settings Edit
|
||||
* @FilePath: \ebtp-cloud-frontend\src\utils\CommonUtils.ts
|
||||
@ -35,6 +35,20 @@ export function proTableValueEnum(data: any) {
|
||||
}
|
||||
return json;
|
||||
}
|
||||
/**
|
||||
* 字典返回值
|
||||
* @param data 字典数据
|
||||
*/
|
||||
export function returnDictVal(data: any,value:any) {
|
||||
let val = '';
|
||||
if(isEmpty(data)){
|
||||
return val;
|
||||
}
|
||||
for (const item of data) {
|
||||
item.code === value ? val = item.dicName :null;
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取url路径信息
|
||||
@ -44,5 +58,4 @@ export function getURLInformation(name: string) {
|
||||
let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
let r = window.location.search.substr(1).match(reg);
|
||||
return r !== null ? unescape(r[2]) : null;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user