mirror of https://gitee.com/xiaonuobase/snowy
【优化】优化字典前端语法-小改动
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…
Reference in New Issue