feat: lighten ai agent admin frontend

This commit is contained in:
2026-06-11 18:03:43 +08:00
parent ecf29e2278
commit 15229cc5ab
316 changed files with 898 additions and 60944 deletions
@@ -1,50 +0,0 @@
<script lang="ts" setup>
import { computed, defineAsyncComponent } from 'vue';
import { ZqDialog } from '#/components/zq-dialog';
import { $t } from '#/locales';
defineOptions({
name: 'UserProfileDialog',
});
const OrgChartPanel = defineAsyncComponent(
() => import('#/views/_core/org-chart/modules/OrgChartPanel.vue'),
);
const props = defineProps<{
modelValue: boolean;
userId: string;
}>();
const emit = defineEmits<{
(e: 'update:modelValue', value: boolean): void;
}>();
const visible = computed({
get: () => props.modelValue,
set: (val) => emit('update:modelValue', val),
});
</script>
<template>
<ZqDialog
v-model="visible"
:title="$t('user-avatar.profile.organization')"
width="80%"
:show-footer="false"
content-height="70vh"
destroy-on-close
>
<div class="org-chart-wrapper">
<OrgChartPanel :user-id="userId" :show-mode-toggle="true" />
</div>
</ZqDialog>
</template>
<style lang="scss" scoped>
.org-chart-wrapper {
height: 65vh;
overflow: hidden;
}
</style>