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