【issues/7658】我的部门无部门列表数据时,点击查询或者重置能查出数据 ---

pull/7765/head^2
JEECG 2025-01-13 20:25:19 +08:00
parent 17dc1916aa
commit d9737c891f
3 changed files with 14 additions and 2 deletions

View File

@ -88,6 +88,8 @@
...adaptiveColProps, ...adaptiveColProps,
style: { textAlign: 'left' }, style: { textAlign: 'left' },
}, },
showResetButton: !!departId.value,
showSubmitButton: !!departId.value,
}, },
// issues/1064 cacheKey // issues/1064 cacheKey
tableSetting: { cacheKey: 'depart_user_departInfo' }, tableSetting: { cacheKey: 'depart_user_departInfo' },

View File

@ -87,6 +87,8 @@
...adaptiveColProps, ...adaptiveColProps,
style: { textAlign: 'left' }, style: { textAlign: 'left' },
}, },
showResetButton: !!departId.value,
showSubmitButton: !!departId.value,
}, },
// issues/1064 cacheKey // issues/1064 cacheKey
tableSetting: { cacheKey: 'depart_user_userInfo' }, tableSetting: { cacheKey: 'depart_user_userInfo' },

View File

@ -12,10 +12,10 @@
<DepartBaseInfoTab :data="departData" /> <DepartBaseInfoTab :data="departData" />
</a-tab-pane> </a-tab-pane>
<a-tab-pane tab="用户信息" key="user-info"> <a-tab-pane tab="用户信息" key="user-info">
<DepartUserInfoTab :data="departData" /> <DepartUserInfoTab :key="reRender" :data="departData" />
</a-tab-pane> </a-tab-pane>
<a-tab-pane tab="部门角色" key="role-info"> <a-tab-pane tab="部门角色" key="role-info">
<DepartRoleInfoTab :data="departData" /> <DepartRoleInfoTab :key="reRender" :data="departData" />
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>
</a-card> </a-card>
@ -38,8 +38,16 @@
// //
let departData = ref({}); let departData = ref({});
const reRender = ref(-1);
// //
function onTreeSelect(data) { function onTreeSelect(data) {
// update-begin--author:liaozhiyang---date:20250106---forissues/7658
if (reRender.value == -1) {
//
reRender.value = Math.random();
}
// update-end--author:liaozhiyang---date:20250106---forissues/7658
departData.value = data; departData.value = data;
} }
</script> </script>