|
|
@@ -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) |
|
|
|