|
|
@@ -7,6 +7,7 @@ |
|
|
|
<div class="main-box"> |
|
|
|
<!-- :request-api="userManageClothApi.getList" --> |
|
|
|
<TreeFilter |
|
|
|
v-if="showTree" |
|
|
|
ref="treeFilter" |
|
|
|
label="clothSetName" |
|
|
|
id="clothSetId" |
|
|
@@ -87,6 +88,7 @@ const faceUrl = ref(''); |
|
|
|
const visible = ref(false); //是否显示人员表单 |
|
|
|
const proTable = ref<ProTableInstance>(); |
|
|
|
const treeFilter = ref<any>({}); |
|
|
|
const showTree = ref(true); |
|
|
|
const userStore = useUserStore(); |
|
|
|
const { accessToken } = userStore; |
|
|
|
const tableData = ref<any>([]) |
|
|
@@ -161,6 +163,10 @@ const RefreshTable = () => { |
|
|
|
} |
|
|
|
// 刷新表格+树 |
|
|
|
const RefreshTree = async() => { |
|
|
|
showTree.value = false; |
|
|
|
nextTick(() => { |
|
|
|
showTree.value = true; |
|
|
|
}) |
|
|
|
await getTree(); //刷新树形筛选器 |
|
|
|
await getList(clothSetId.value) |
|
|
|
} |
|
|
@@ -185,7 +191,8 @@ const getList = (clothSetId:any)=>{ |
|
|
|
const getTree =async ()=>{ |
|
|
|
const { data }:any = await userManageClothApi.getList({}); |
|
|
|
treeData.value = data; |
|
|
|
if(!clothSetId.value ){ |
|
|
|
showTree.value = true |
|
|
|
if(!clothSetId.value){ |
|
|
|
clothSetId.value = data[0].clothSetId.toString() |
|
|
|
} |
|
|
|
|
|
|
|