|
|
@@ -160,13 +160,12 @@ const RefreshTable = () => { |
|
|
|
getList(clothSetId.value) |
|
|
|
} |
|
|
|
// 刷新表格+树 |
|
|
|
const RefreshTree = () => { |
|
|
|
getList(clothSetId.value) |
|
|
|
treeFilter.value?.refresh(); //刷新树形筛选器 |
|
|
|
const RefreshTree = async() => { |
|
|
|
await getTree(); //刷新树形筛选器 |
|
|
|
await getList(clothSetId.value) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 服装库切换切换 */ |
|
|
|
const clothSetId = ref<number | string>() |
|
|
|
function changeTreeFilter(val: number | string) { |
|
|
@@ -183,10 +182,16 @@ const getList = (clothSetId:any)=>{ |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
onMounted(async () => { |
|
|
|
const getTree =async ()=>{ |
|
|
|
const { data }:any = await userManageClothApi.getList({}); |
|
|
|
treeData.value = data; |
|
|
|
clothSetId.value = data[0].clothSetId.toString() |
|
|
|
if(!clothSetId.value ){ |
|
|
|
clothSetId.value = data[0].clothSetId.toString() |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
onMounted(async () => { |
|
|
|
await getTree() |
|
|
|
getList(clothSetId.value) |
|
|
|
}) |
|
|
|
</script> |
|
|
|