From 22200f9cc59230b103d7a9a695453304eda98044 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期三, 24 四月 2024 17:53:28 +0800
Subject: [PATCH] feat:市局考核数据过滤
---
src/views/system/result/detail/index1.vue | 125 +++++++++++++++++++++++------------------
1 files changed, 69 insertions(+), 56 deletions(-)
diff --git a/src/views/system/result/detail/index1.vue b/src/views/system/result/detail/index1.vue
index 6417889..6b9bd96 100644
--- a/src/views/system/result/detail/index1.vue
+++ b/src/views/system/result/detail/index1.vue
@@ -1,5 +1,5 @@
<template>
- <div style="padding: 5px">
+ <div style="padding: 0px 10px">
<div>
<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect" style="margin-bottom: 10px">
<el-menu-item index="1">鐪佸巺鑰冩牳</el-menu-item>
@@ -26,24 +26,35 @@
style="width: 100%">
<el-table-column
label="鑰冩牳鏃堕棿"
- prop="time"
+ prop="createTime"
align="center">
+ </el-table-column>
+ <el-table-column
+ label="鑰冩牳瀵硅薄"
+ prop="deptId"
+ align="center">
+ <template slot-scope="scope">
+ {{ translateDeptId(scope.row.deptId) }}
+ </template>
</el-table-column>
<el-table-column
label="鏍囩"
- prop="tag"
+ prop="examineTag"
align="center">
+ <template slot-scope="scope">
+ {{ scope.row.examineTag == 0 ? '鐪佸巺鑰冩牳' : '甯傚眬鑰冩牳' }}
+ </template>
</el-table-column>
<el-table-column
label="鑰冩牳绫诲瀷"
- prop="category"
+ prop="examineCategory"
align="center">
+ <template slot-scope="scope">
+ <dict-tag :options="dict.type.platform_examine_category" :value="scope.row.examineCategory"/>
+ </template>
</el-table-column>
- <el-table-column
- label="鑰冩牳棰戠巼"
- prop="frequency"
- align="center">
- </el-table-column>
+
+
<el-table-column
label="鍒嗘暟"
prop="score"
@@ -51,11 +62,8 @@
</el-table-column>
<el-table-column
label="鐘舵��"
- prop="state"
+ prop="publish"
align="center">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.platform_examine_use" :value="scope.row.state"/>
- </template>
</el-table-column>
<el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
@@ -88,74 +96,80 @@
</template>
<script>
+import { listScore, getScore, delScore, addScore, updateScore,publishScore} from "@/api/platform/check-score";
+import { areaSelect } from '@/api/system/dept'
import * as echarts from 'echarts';
let lineChart = null;
let observer = null;
export default {
name: 'index',
- dicts: ['platform_examine_use'],
+ dicts: ['platform_examine_use','platform_examine_category'],
data() {
return {
activeIndex: '1',
- activeIndex2: '1',
+ activeIndex2: '2',
+ areaList:[],
dateRange: '',
company: '',
+ queryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ deptId: null,
+ },
dataList: [
{
name: '鍏ㄩ儴',
complete: { '4.5': 95.5, '4.6': 95.3, '4.7': 96.0, '4.8': 97.2, '4.9': 96.5 ,
- '4.10': 95.5, '4.11': 95.3, '4.12': 96.0, '4.13': 97.2, '4.14': 96.5 },
+ '4.10': 95.5, '4.11': 95.3, '4.12': 96.0, '4.13': 97.2, '4.14': 96.5 ,
+ '4.15': 95.5, '4.16': 95.3, '4.17': 96.0, '4.18': 97.2, '4.19': 96.5 ,
+ '4.20': 95.5, '4.21': 95.3, '4.22': 96.0, '4.23': 97.2, '4.24': 96.5,
+ '4.25': 95.5, '4.26': 95.3, '4.27': 96.0, '4.28': 97.2, '4.29': 96.5
+ },
waiting: { '4.5': 94.8, '4.6': 91.3, '4.7': 95.3, '4.8': 92.3, '4.9': 93.3,
'4.10': 94.8, '4.11': 91.3, '4.12': 95.3, '4.13': 92.3, '4.14': 93.3 },
pending: { '4.5': 91.6, '4.6': 92.6, '4.7': 93.7, '4.8': 94.0, '4.9': 95.9
,'4.10': 91.6, '4.11': 92.6, '4.12': 93.7, '4.13': 94.0, '4.14': 95.9 }
}
],
- tableData: [
- {
- time: '2024-04-15',
- tag: '鐪佸巺鑰冩牳',
- category: '杞﹁締鑰冩牳',
- frequency: '鏈堝害鑰冩牳',
- score: '96.5',
- state: '0',
- publish: '0'
- },
- {
- time: '2024-04-15',
- tag: '鐪佸巺鑰冩牳',
- category: '浜鸿劯鑰冩牳',
- frequency: '鏈堝害鑰冩牳',
- score: '93.3',
- state: '0',
- publish: '0'
- },
- {
- time: '2024-04-15',
- tag: '鐪佸巺鑰冩牳',
- category: '瑙嗛鑰冩牳',
- frequency: '鏈堝害鑰冩牳',
- score: '95.9',
- state: '0',
- publish: '0'
- },
- {
- time: '2024-04-14',
- tag: '鐪佸巺鑰冩牳',
- category: '杞﹁締鑰冩牳',
- frequency: '鏈堝害鑰冩牳',
- score: '96.5',
- state: '1',
- publish: '1'
- },
- ],
+ tableData: [],
searchForm: {
time: null,
}
}
},
+ created() {
+ //鑰冩牳鎴愮哗璇︽儏璺宠浆鍙傛暟鎺ユ敹
+ console.log(this.$route.query.index)
+ if(this.$route.query.index){
+ this.queryParams.deptId = this.$route.query.index
+ }
+ this.getList(this.$route.query.index);
+ this.areaSelect();
+ },
methods: {
-
+ // 鍖哄煙涓嬫媺鏁版嵁
+ areaSelect() {
+ areaSelect().then(res => {
+ this.areaList = res.data;
+ })
+ },
+ translateDeptId(deptId) {
+ const department = this.areaList.find(dept => dept.id == deptId);
+ return department ? department.value : '鏈煡';
+ },
+ /** 瀵艰埅鍒囨崲 */
+ handleSelect(key){
+ this.activeIndex = key; // 鏇存柊褰撳墠婵�娲荤殑鑿滃崟椤�
+ this.getList();
+ },
+ /** 鏌ヨ鑰冩牳妯℃澘鍒楄〃 */
+ getList(deptId) {
+ this.loading = true;
+ listScore(this.queryParams).then(response => {
+ this.tableData = response.data[deptId];
+ this.loading = false;
+ });
+ },
handleSizeChange(val) {
console.log(`姣忛〉 ${val} 鏉);
},
@@ -241,7 +255,6 @@
};
lineChart.setOption(option, true);
},
-
// 鐩戝惉鍙樺寲
observe() {
--
Gitblit v1.8.0