龚焕茏
2024-07-31 cca7fa810f13f2a578070e5d93bd72084b0bf5bc
feat:考核详情
2个文件已修改
21 ■■■■ 已修改文件
src/api/platform/check-score.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/check/result/detail/index.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/platform/check-score.js
@@ -8,6 +8,14 @@
    params: query
  })
}
// 查询考核积分折线图
export function chartScore(query) {
  return request({
    url: '/check/score/chart',
    method: 'get',
    params: query
  })
}
// 查询考核积分明细列表
export function detailScore(query) {
  return request({
src/views/system/check/result/detail/index.vue
@@ -84,7 +84,7 @@
</template>
<script>
import { listScore, getScore, delScore, addScore, updateScore, publishScore, detailScore } from "@/api/platform/check-score";
import { chartScore, getScore, delScore, addScore, updateScore, publishScore, detailScore } from "@/api/platform/check-score";
import { areaSelect } from '@/api/system/dept';
import * as echarts from 'echarts';
let lineChart = null;
@@ -135,9 +135,12 @@
    const month = (date.getMonth() + 1) >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1);
    this.date = year + '-' + month;
    this.queryParams.date = this.date;
    this.queryParams.examineTag =this.$route.query.examineTag;
    this.queryParamsList.examineTag =this.$route.query.examineTag;
    this.activeIndex = this.$route.query.examineTag;
    let examineTag = this.$route.query.examineTag;
    if (examineTag === '2') { examineTag = '0' }
    if (examineTag === '3') { examineTag = '1' }
    this.queryParams.examineTag = examineTag;
    this.queryParamsList.examineTag = examineTag;
    this.activeIndex = examineTag;
    this.areaSelect();
    this.getList(this.$route.query.index);
  },
@@ -198,7 +201,7 @@
    getChart(deptId) {
      this.loading = true;
      lineChart.showLoading();
      listScore(this.queryParams).then(response => {
      chartScore(this.queryParams).then(response => {
        this.initChart(response.data[deptId]);
        this.loading = false;
      });