Merge remote-tracking branch 'origin/build' into build

This commit is contained in:
wanglei
2024-06-27 10:47:38 +08:00

View File

@@ -3,9 +3,9 @@
<component v-if="currentPage" :is="currentPage" v-bind="$props"/> <component v-if="currentPage" :is="currentPage" v-bind="$props"/>
<ai-detail v-else> <ai-detail v-else>
<!-- 标题 --> <!-- 标题 -->
<ai-title slot="title" :title="$options.label" isShowBottomBorder/> <ai-title slot="title" :title="appName" isShowBottomBorder/>
<template #content> <template #content>
<ai-tree-menu title="企微统计" hideInput> <ai-tree-menu :title="appName" hideInput>
<el-tree @node-click="nodeClick" :props="props" :load="loadNode" lazy :expand-on-click-node="false"/> <el-tree @node-click="nodeClick" :props="props" :load="loadNode" lazy :expand-on-click-node="false"/>
</ai-tree-menu> </ai-tree-menu>
<div class="fill mar-l8"> <div class="fill mar-l8">
@@ -65,11 +65,12 @@ import AiCard from "dui/packages/layout/AiCard.vue";
export default { export default {
name: 'AppCorpOverview', name: 'AppCorpOverview',
components: {AiCard}, components: {AiCard},
label: '企微概览', label: '全国统计',
props: { props: {
dict: Object, dict: Object,
instance: Function, instance: Function,
params: Object, params: Object,
menuName: String
}, },
data() { data() {
return { return {
@@ -111,7 +112,8 @@ export default {
globalParams: v => { globalParams: v => {
const {aiEnable} = v.$route.query const {aiEnable} = v.$route.query
return {aiEnable} return {aiEnable}
} },
appName: v => v.menuName || v.$route.query.aiEnable == 1 ? '大模型统计' : v.$options.label
}, },
mounted() { mounted() {
this.getInfo() this.getInfo()