Browse Source

优化

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

+ 8
- 1
SafeCampus.WEB/src/views/userManage/clothing/index.vue View File

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


Loading…
Cancel
Save