微调
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
:key="tableKey"
|
||||
@selection-change='handleSelectionChange'
|
||||
:request-api='getTableList'
|
||||
:toolButton = 'false'
|
||||
>
|
||||
<!-- :height="tableHeight" -->
|
||||
<!-- 表格 header 按钮 -->
|
||||
@@ -566,9 +567,17 @@ const handleSelectionChange = (selection: any[]) => {
|
||||
chnNum: item.devChns,
|
||||
}
|
||||
});
|
||||
checkStore.clearDevices()
|
||||
checkStore.addDevices(devices)
|
||||
checkStore.setPlanId(selection[0].planId)
|
||||
|
||||
if(selection.length > 0){
|
||||
checkStore.clearDevices()
|
||||
checkStore.addDevices(devices)
|
||||
checkStore.setPlanId(selection[0].planId)
|
||||
}else{
|
||||
checkStore.clearDevices()
|
||||
checkStore.setPlanId('')
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//查询
|
||||
|
||||
Reference in New Issue
Block a user