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

View File

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