!47 修复和优化前端 utils 工具函数

Merge pull request !47 from FungLeo/master
This commit is contained in:
若依 2020-07-22 13:00:51 +08:00 committed by Gitee
commit 133a10ecf2
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,5 @@
import { parseTime } from './ruoyi'
/**
* 表格时间格式化
*/

View File

@ -68,10 +68,10 @@ export function addDateRange(params, dateRange) {
// 回显数据字典
export function selectDictLabel(datas, value) {
var actions = [];
Object.keys(datas).map((key) => {
Object.keys(datas).some((key) => {
if (datas[key].dictValue == ('' + value)) {
actions.push(datas[key].dictLabel);
return false;
return true;
}
})
return actions.join('');