fix: bug#10879

This commit is contained in:
xieyonghong 2023-03-27 20:23:10 +08:00
parent ba326d6532
commit 042d07f61f
2 changed files with 6 additions and 2 deletions

View File

@ -58,8 +58,12 @@ const typeList = [
const select = (s: string) => {
selectorModel.value = s
devices.value = []
orgIds.value = []
emit('update:selector', s)
emit('update:selectorValues', [])
emit('update:deviceKeys', [])
emit('update:orgId', [])
}
const updateDevice = (d: any[]) => {
@ -69,7 +73,6 @@ const updateDevice = (d: any[]) => {
}
const updateOrg = (d: any[]) => {
console.log('updateOrg', d)
orgIds.value = d
emit('update:orgId', d)
emit('update:selectorValues', d)

View File

@ -14,8 +14,9 @@
:columns="columns"
:request="query"
:scroll="{
y: 350
y: 200
}"
:bodyStyle='{ padding: "16px 0 0 0"}'
:expandable='{
expandedRowKeys: openKeys,
onExpandedRowsChange: expandedRowChange,