Explorar el Código

优化

master
suyanyan hace 1 mes
padre
commit
9dbc109993
Se han modificado 1 ficheros con 4 adiciones y 7 borrados
  1. +4
    -7
      SafeCampus.WEB/src/views/userManage/clothing/index.vue

+ 4
- 7
SafeCampus.WEB/src/views/userManage/clothing/index.vue Ver fichero

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


Cargando…
Cancelar
Guardar