瀏覽代碼

bug处理

master
suyanyan 1 月之前
父節點
當前提交
063e123bc9
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      SafeCampus.WEB/src/views/userManage/clothing/index.vue

+ 3
- 2
SafeCampus.WEB/src/views/userManage/clothing/index.vue 查看文件

@@ -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…
取消
儲存