|
@@ -102,6 +102,7 @@ function getProducts() {
|
|
|
|
|
|
function onCancel() {
|
|
function onCancel() {
|
|
Object.assign(form, baseForm)
|
|
Object.assign(form, baseForm)
|
|
|
|
+ deviceList.value = []
|
|
isShowDialog.value = false
|
|
isShowDialog.value = false
|
|
}
|
|
}
|
|
|
|
|
|
@@ -137,6 +138,7 @@ function onDel(row: any) {
|
|
|
|
|
|
function getDivices(productKey: string) {
|
|
function getDivices(productKey: string) {
|
|
form.resourcesKey = ''
|
|
form.resourcesKey = ''
|
|
|
|
+ deviceList.value = []
|
|
deviceApi.device.allList({ productKey }).then((res: any) => {
|
|
deviceApi.device.allList({ productKey }).then((res: any) => {
|
|
deviceList.value = (res?.device || []).map((item: any) => ({ label: item.name, value: item.key }))
|
|
deviceList.value = (res?.device || []).map((item: any) => ({ label: item.name, value: item.key }))
|
|
})
|
|
})
|