mirror of https://github.com/jeecgboot/jeecg-boot
【issues/7658】我的部门无部门列表数据时,点击查询或者重置能查出数据 ---
parent
17dc1916aa
commit
d9737c891f
|
@ -88,6 +88,8 @@
|
|||
...adaptiveColProps,
|
||||
style: { textAlign: 'left' },
|
||||
},
|
||||
showResetButton: !!departId.value,
|
||||
showSubmitButton: !!departId.value,
|
||||
},
|
||||
// 【issues/1064】列设置的 cacheKey
|
||||
tableSetting: { cacheKey: 'depart_user_departInfo' },
|
||||
|
|
|
@ -87,6 +87,8 @@
|
|||
...adaptiveColProps,
|
||||
style: { textAlign: 'left' },
|
||||
},
|
||||
showResetButton: !!departId.value,
|
||||
showSubmitButton: !!departId.value,
|
||||
},
|
||||
// 【issues/1064】列设置的 cacheKey
|
||||
tableSetting: { cacheKey: 'depart_user_userInfo' },
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue