|
|
@ -386,12 +386,14 @@ export function removeClass(ele, cls) { |
|
|
|
|
|
|
|
//返回
|
|
|
|
export function Enum(status, index, prop) { |
|
|
|
let _no_text = '无' |
|
|
|
if(!status)return _no_text |
|
|
|
if (index != undefined) { //如果传入的是index
|
|
|
|
if (prop === 'color') { |
|
|
|
const domColor = status[index] ? status[index][prop] : "" |
|
|
|
return 'color:' + domColor |
|
|
|
} else { |
|
|
|
const dom = status[index] ? status[index][prop] : "无" |
|
|
|
const dom = status[index] ? status[index][prop] : _no_text |
|
|
|
return dom |
|
|
|
} |
|
|
|
} else { |
|
|
@ -492,7 +494,7 @@ export function getMatchRegConformValue(type,defaultValue,fixedNum){ |
|
|
|
|
|
|
|
// 字典格式化数据结构
|
|
|
|
export function dictFormatData() { |
|
|
|
return new Promise(resolve => { |
|
|
|
return new Promise((resolve,reject) => { |
|
|
|
let rs = [] |
|
|
|
let childRs = {} |
|
|
|
let param = { |
|
|
|