mirror of https://gitee.com/xiaonuobase/snowy
【优化】优化字典前端语法-小改动
parent
879b3fa74f
commit
99182cd929
|
@ -112,14 +112,14 @@
|
||||||
category: 'BIZ'
|
category: 'BIZ'
|
||||||
}
|
}
|
||||||
dictApi.dictTree(param).then((res) => {
|
dictApi.dictTree(param).then((res) => {
|
||||||
if (res !== null) {
|
if (res) {
|
||||||
treeData.value = res
|
treeData.value = res
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 点击树查询
|
// 点击树查询
|
||||||
const treeSelect = (selectedKeys) => {
|
const treeSelect = (selectedKeys) => {
|
||||||
if (selectedKeys.length > 0) {
|
if (selectedKeys && selectedKeys.length > 0) {
|
||||||
searchFormState.parentId = selectedKeys.toString()
|
searchFormState.parentId = selectedKeys.toString()
|
||||||
} else {
|
} else {
|
||||||
delete searchFormState.parentId
|
delete searchFormState.parentId
|
||||||
|
|
|
@ -111,14 +111,14 @@
|
||||||
category: 'FRM'
|
category: 'FRM'
|
||||||
}
|
}
|
||||||
dictApi.dictTree(param).then((res) => {
|
dictApi.dictTree(param).then((res) => {
|
||||||
if (res !== null) {
|
if (res) {
|
||||||
treeData.value = res
|
treeData.value = res
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 点击树查询
|
// 点击树查询
|
||||||
const treeSelect = (selectedKeys) => {
|
const treeSelect = (selectedKeys) => {
|
||||||
if (selectedKeys.length > 0) {
|
if (selectedKeys && selectedKeys.length > 0) {
|
||||||
searchFormState.parentId = selectedKeys.toString()
|
searchFormState.parentId = selectedKeys.toString()
|
||||||
} else {
|
} else {
|
||||||
delete searchFormState.parentId
|
delete searchFormState.parentId
|
||||||
|
|
Loading…
Reference in New Issue