mirror of https://github.com/jeecgboot/jeecg-boot
【issues/7658】我的部门无部门列表数据时,点击查询或者重置能查出数据 ---
parent
17dc1916aa
commit
d9737c891f
|
@ -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' },
|
||||||
|
|
|
@ -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' },
|
||||||
|
|
|
@ -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---for:【issues/7658】我的部门无部门列表数据时,点击查询或者重置能查出数据
|
||||||
|
if (reRender.value == -1) {
|
||||||
|
// 重新渲染组件
|
||||||
|
reRender.value = Math.random();
|
||||||
|
}
|
||||||
|
// update-end--author:liaozhiyang---date:20250106---for:【issues/7658】我的部门无部门列表数据时,点击查询或者重置能查出数据
|
||||||
departData.value = data;
|
departData.value = data;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue