Browse Source

bug处理

master
suyanyan 1 month ago
parent
commit
063e123bc9
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      SafeCampus.WEB/src/views/userManage/clothing/index.vue

+ 3
- 2
SafeCampus.WEB/src/views/userManage/clothing/index.vue View File

@@ -144,7 +144,7 @@ function onOpen(opt: FormOptEnum, record: {},treeAllData:any) {
async function addDelete(clothSetId: string[],msg: string) {
// 二次确认 => 请求api => 刷新表格
await useHandleData(userManageClothApi.deleteClothDataBaseD, { clothSetId }, msg);
RefreshTree(); //刷新表格
RefreshTree('delete'); //刷新表格
}

/**
@@ -162,7 +162,8 @@ const RefreshTable = () => {
getList(clothSetId.value)
}
// 刷新表格+树
const RefreshTree = async() => {
const RefreshTree = async(type='') => {
if(type == 'delete'){clothSetId.value = ''}
treeKey.value = Math.random();
await getTree(); //刷新树形筛选器
await getList(clothSetId.value)


Loading…
Cancel
Save