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

This commit is contained in:
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,
style: { textAlign: 'left' },
},
showResetButton: !!departId.value,
showSubmitButton: !!departId.value,
},
// 【issues/1064】列设置的 cacheKey
tableSetting: { cacheKey: 'depart_user_departInfo' },

View File

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

View File

@@ -12,10 +12,10 @@
<DepartBaseInfoTab :data="departData" />
</a-tab-pane>
<a-tab-pane tab="用户信息" key="user-info">
<DepartUserInfoTab :data="departData" />
<DepartUserInfoTab :key="reRender" :data="departData" />
</a-tab-pane>
<a-tab-pane tab="部门角色" key="role-info">
<DepartRoleInfoTab :data="departData" />
<DepartRoleInfoTab :key="reRender" :data="departData" />
</a-tab-pane>
</a-tabs>
</a-card>
@@ -38,8 +38,16 @@
// 当前选中的部门信息
let departData = ref({});
const reRender = ref(-1);
// 左侧树选择后触发
function onTreeSelect(data) {
// update-begin--author:liaozhiyang---date:20250106---for【issues/7658】我的部门无部门列表数据时点击查询或者重置能查出数据
if (reRender.value == -1) {
// 重新渲染组件
reRender.value = Math.random();
}
// update-end--author:liaozhiyang---date:20250106---for【issues/7658】我的部门无部门列表数据时点击查询或者重置能查出数据
departData.value = data;
}
</script>