fix : 调整部门管理演示,优化移动端详情

This commit is contained in:
2024-06-30 22:49:37 +08:00
parent 47a5cd3338
commit 09e2bfc605
11 changed files with 59 additions and 37 deletions

View File

@@ -240,12 +240,24 @@ const _value = computed({
const filterDict = (data, value) => {
if (data === undefined || value === undefined) return;
let label = ''
if (data instanceof Array) {
data.find(item => {
if (item.value == value) {
label = item.label
}
let result = []
if (JSON.parse(value) instanceof Array) {
JSON.parse(value).forEach(item1 => {
data.find(item => {
if (item.value == item1) {
result.push(item.label)
}
})
})
label = result.map(item => item).join('')
} else {
if (data instanceof Array) {
data.find(item => {
if (item.value == value) {
label = item.label
}
})
}
}
return label
}