fix(系统): 日志跳转选中

--bug=1035488 --user=王旭 【系统设置】系统-用户组-系统用户组操作生成日志-点击名称跳转未选中对应用户组 https://www.tapd.cn/55049933/s/1490808
This commit is contained in:
WangXu10 2024-04-08 20:12:24 +08:00 committed by Craftsman
parent 071905f089
commit 6e2dc8068d
2 changed files with 6 additions and 3 deletions

View File

@ -68,6 +68,7 @@
* @description 系统设置-组织-用户组
*/
import { computed, nextTick, onMounted, provide, ref, watchEffect } from 'vue';
import { useRouter } from 'vue-router';
import MsSplitBox from '@/components/pure/ms-split-box/index.vue';
import AuthTable from '@/components/business/ms-user-group-comp/authTable.vue';
@ -82,6 +83,7 @@
import { CurrentUserGroupItem } from '@/models/setting/usergroup';
import { AuthScopeEnum } from '@/enums/commonEnum';
const router = useRouter();
//
provide('systemType', AuthScopeEnum.ORGANIZATION);
const currentTable = ref('user');
@ -156,7 +158,7 @@
}
});
onMounted(() => {
ugLeftRef.value?.initData();
ugLeftRef.value?.initData(router.currentRoute.value.query.id, true);
});
</script>

View File

@ -67,6 +67,7 @@
* @description 系统设置-系统-用户组
*/
import { computed, nextTick, onMounted, provide, ref, watchEffect } from 'vue';
import { useRouter } from 'vue-router';
import MsSplitBox from '@/components/pure/ms-split-box/index.vue';
import AuthTable from '@/components/business/ms-user-group-comp/authTable.vue';
@ -83,7 +84,7 @@
const currentTable = ref('auth');
provide('systemType', AuthScopeEnum.SYSTEM);
const router = useRouter();
const { t } = useI18n();
const currentKeyword = ref('');
const ugLeftRef = ref();
@ -157,7 +158,7 @@
}
});
onMounted(() => {
ugLeftRef.value?.initData();
ugLeftRef.value?.initData(router.currentRoute.value.query.id, true);
});
</script>