修改analyze、校领导页面默认信息

This commit is contained in:
Qi 2025-04-25 19:09:47 +08:00
parent 225bd76543
commit 267a47535d
2 changed files with 537 additions and 536 deletions

View File

@ -4,8 +4,7 @@
<template #extra> <template #extra>
<a-cascader v-model:value="collegeMajor" :options="collegeMajorOptions" change-on-select /> <a-cascader v-model:value="collegeMajor" :options="collegeMajorOptions" change-on-select />
<a-button style="margin-left: 10px" type="primary" @click="query">查询</a-button> <a-button style="margin-left: 10px" type="primary" @click="query">查询</a-button>
<a-button style="margin-left: 10px" :loading="aiLoading" v-show="resultData != null" type="primary" <a-button style="margin-left: 10px" :loading="aiLoading" v-show="resultData != null" type="primary" @click="getAI">分析</a-button>
@click="getAI">分析</a-button>
<!-- <a-button @click=test()>test</a-button> --> <!-- <a-button @click=test()>test</a-button> -->
</template> </template>
<a-row :gutter="12"> <a-row :gutter="12">
@ -35,12 +34,12 @@
</template> </template>
<script> <script>
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '/@/utils/http/axios';
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import axios from 'axios'; import axios from 'axios';
import { marked } from 'marked'; import { marked } from 'marked';
export default { export default {
data() { data() {
return { return {
loading: false, loading: false,
@ -325,7 +324,7 @@ export default {
content: assistantResponse.content, content: assistantResponse.content,
reasoning: assistantResponse.reasoning_content || '', // reasoning: assistantResponse.reasoning_content || '', //
}; };
this.aiMessage = assistantMessage.content; this.aiMessage = '(数据分析由deepseek生成仅供参考)\n\n' + assistantMessage.content;
this.aiMessage = marked(this.aiMessage); this.aiMessage = marked(this.aiMessage);
console.log(assistantMessage); console.log(assistantMessage);
}, },
@ -568,21 +567,21 @@ export default {
myChart.setOption(option); myChart.setOption(option);
}, },
}, },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.container { .container {
display: flex; display: flex;
background-color: #fff; background-color: #fff;
padding: 15px; padding: 15px;
border-radius: 4px; border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
} }
.title { .title {
font-size: 34px; font-size: 34px;
color: rgb(8, 8, 8); color: rgb(8, 8, 8);
font-weight: bold; font-weight: bold;
} }
</style> </style>

View File

@ -142,7 +142,7 @@
dropdownVisible: false, dropdownVisible: false,
subMenuVisible: false, subMenuVisible: false,
subSubMenuVisible: false, subSubMenuVisible: false,
selectedLabel: '全校', selectedLabel: '全校(不含艺体美外语)',
currentSubMenu: [], currentSubMenu: [],
currentSubSubMenu: [], currentSubSubMenu: [],
losefocus: false, losefocus: false,
@ -608,7 +608,7 @@
for (let i in data) { for (let i in data) {
// //
filteredData[i] = data[i].filter((college) => { filteredData[i] = data[i].filter((college) => {
return !['体育科学学院', '美术学院', '音乐学院'].includes(college.college); return !['体育科学学院', '美术学院', '音乐学院', '国际美术学院'].includes(college.college);
}); });
} }
} else { } else {
@ -913,11 +913,13 @@
}), }),
}; };
}); });
this.collegeMajorOptions.unshift({ value: '全校(不含艺体美外语)', label: '全校(不含艺体美外语)' });
// //
this.collegeMajorOptions.unshift({ value: '专升本', label: '专升本' }); this.collegeMajorOptions.unshift({ value: '专升本', label: '专升本' });
// //
this.collegeMajorOptions.unshift({ value: '全校', label: '全校' }); this.collegeMajorOptions.unshift({ value: '全校', label: '全校' });
this.collegeMajorOptions.unshift({ value: '全校(不含艺体美外语)', label: '全校(不含艺体美外语)' });
// this.collegeMajor = ['']; // this.collegeMajor = [''];
console.log(this.collegeMajorOptions); console.log(this.collegeMajorOptions);
}, },