|
|
|
@ -31,13 +31,14 @@
@@ -31,13 +31,14 @@
|
|
|
|
|
:action="categoryAction" |
|
|
|
|
:isShow="isShowCategoryDlg" |
|
|
|
|
:row="categoryEditRow" |
|
|
|
|
:treeData="categoryTreeData" |
|
|
|
|
@on-close="isShowCategoryDlg = false" |
|
|
|
|
:treeData="cloneDeep(categoryTreeData)" |
|
|
|
|
@on-close="onClone" |
|
|
|
|
@on-save="onSaveCategory" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
|
import { cloneDeep } from 'lodash' |
|
|
|
|
import { |
|
|
|
|
deleteCategory, |
|
|
|
|
getCategoryTree, |
|
|
|
@ -90,7 +91,11 @@ async function onDeleteCategory(row: ICategoryTree) {
@@ -90,7 +91,11 @@ async function onDeleteCategory(row: ICategoryTree) {
|
|
|
|
|
|
|
|
|
|
function onSaveCategory() { |
|
|
|
|
loadDeviceTypeTree() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function onClone() { |
|
|
|
|
isShowCategoryDlg.value = false |
|
|
|
|
categoryEditRow.value = undefined |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|