fix(系统): 日志跳转选中
--bug=1035488 --user=王旭 【系统设置】系统-用户组-系统用户组操作生成日志-点击名称跳转未选中对应用户组 https://www.tapd.cn/55049933/s/1490808
This commit is contained in:
parent
071905f089
commit
6e2dc8068d
|
@ -68,6 +68,7 @@
|
||||||
* @description 系统设置-组织-用户组
|
* @description 系统设置-组织-用户组
|
||||||
*/
|
*/
|
||||||
import { computed, nextTick, onMounted, provide, ref, watchEffect } from 'vue';
|
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 MsSplitBox from '@/components/pure/ms-split-box/index.vue';
|
||||||
import AuthTable from '@/components/business/ms-user-group-comp/authTable.vue';
|
import AuthTable from '@/components/business/ms-user-group-comp/authTable.vue';
|
||||||
|
@ -82,6 +83,7 @@
|
||||||
import { CurrentUserGroupItem } from '@/models/setting/usergroup';
|
import { CurrentUserGroupItem } from '@/models/setting/usergroup';
|
||||||
import { AuthScopeEnum } from '@/enums/commonEnum';
|
import { AuthScopeEnum } from '@/enums/commonEnum';
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
// 注入系统层级
|
// 注入系统层级
|
||||||
provide('systemType', AuthScopeEnum.ORGANIZATION);
|
provide('systemType', AuthScopeEnum.ORGANIZATION);
|
||||||
const currentTable = ref('user');
|
const currentTable = ref('user');
|
||||||
|
@ -156,7 +158,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
ugLeftRef.value?.initData();
|
ugLeftRef.value?.initData(router.currentRoute.value.query.id, true);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
* @description 系统设置-系统-用户组
|
* @description 系统设置-系统-用户组
|
||||||
*/
|
*/
|
||||||
import { computed, nextTick, onMounted, provide, ref, watchEffect } from 'vue';
|
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 MsSplitBox from '@/components/pure/ms-split-box/index.vue';
|
||||||
import AuthTable from '@/components/business/ms-user-group-comp/authTable.vue';
|
import AuthTable from '@/components/business/ms-user-group-comp/authTable.vue';
|
||||||
|
@ -83,7 +84,7 @@
|
||||||
|
|
||||||
const currentTable = ref('auth');
|
const currentTable = ref('auth');
|
||||||
provide('systemType', AuthScopeEnum.SYSTEM);
|
provide('systemType', AuthScopeEnum.SYSTEM);
|
||||||
|
const router = useRouter();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const currentKeyword = ref('');
|
const currentKeyword = ref('');
|
||||||
const ugLeftRef = ref();
|
const ugLeftRef = ref();
|
||||||
|
@ -157,7 +158,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
ugLeftRef.value?.initData();
|
ugLeftRef.value?.initData(router.currentRoute.value.query.id, true);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue