suyanyan pirms 1 mēnesi
vecāks
revīzija
9dbc109993
1 mainītis faili ar 4 papildinājumiem un 7 dzēšanām
  1. +4
    -7
      SafeCampus.WEB/src/views/userManage/clothing/index.vue

+ 4
- 7
SafeCampus.WEB/src/views/userManage/clothing/index.vue Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt