From b3be6406c8105376eef209af3bd6635cb95fa81d Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 24 九月 2024 12:15:22 +0800
Subject: [PATCH] 增加部级考核标签
---
src/views/system/score/index.vue | 59 +++++++++++++++++++++++++++++++++++------------------------
1 files changed, 35 insertions(+), 24 deletions(-)
diff --git a/src/views/system/score/index.vue b/src/views/system/score/index.vue
index bc0ad7a..0f1f8d1 100644
--- a/src/views/system/score/index.vue
+++ b/src/views/system/score/index.vue
@@ -62,6 +62,13 @@
<el-table v-loading="loading" :data="scoreList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="鑰冩牳鍚�" align="center" prop="examineName" />
+ <el-table-column label="鑰冩牳绫诲瀷" align="center" prop="examineCategory">
+ <template slot-scope="scope">
+ <div v-if="scope.row.examineCategory == 1">鐪佸巺鑰冩牳</div>
+ <div v-else-if="scope.row.examineCategory == 2">甯傚眬鑰冩牳</div>
+ <div v-else-if="scope.row.examineCategory == 3">鍚堝悓鑰冩牳</div>
+ </template>
+ </el-table-column>
<el-table-column label="鑰冩牳瀵硅薄" align="center" prop="unitName">
<template slot-scope="scope">
<div v-if="scope.row.unitName ==='鎴愰兘x杩愮淮' ">鎴愰兘x杩愮淮</div>
@@ -69,14 +76,14 @@
</template>
</el-table-column>
<el-table-column label="鍒嗗��" align="center" prop="score" />
- <el-table-column label="鑰冩牳瑙勫垯" align="center" prop="scoreCategory">
- <template slot-scope="scope">
- <div v-if="scope.row.scoreCategory === 1">瑙嗛鍦ㄧ嚎鐜�</div>
- <div v-else-if="scope.row.scoreCategory === 2">瀛樺偍鏁呴殰</div>
- <div v-else-if="scope.row.scoreCategory === 3">瑙嗗浘搴撳鎺ョǔ瀹氭��</div>
- <div v-else-if="scope.row.scoreCategory === 4">涓�鏈轰竴妗�24灏忔椂鏈慨澶�</div>
- <div v-else-if="scope.row.scoreCategory === 5">鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�</div>
- </template>
+ <el-table-column label="鑰冩牳瑙勫垯" align="center" prop="ruleCategory">
+ <template slot-scope="scope">
+ <div v-if="scope.row.ruleCategory == 1">瑙嗛鍦ㄧ嚎鐜�</div>
+ <div v-else-if="scope.row.ruleCategory == 2">瀛樺偍鏁呴殰</div>
+ <div v-else-if="scope.row.ruleCategory == 3">瑙嗗浘搴撳鎺ョǔ瀹氭��</div>
+ <div v-else-if="scope.row.ruleCategory == 4">涓�鏈轰竴妗�24灏忔椂鏈慨澶�</div>
+ <div v-else-if="scope.row.ruleCategory == 5">鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�</div>
+ </template>
</el-table-column>
<el-table-column label="鍒涘缓浜�" align="center" prop="createBy" />
<el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" />
@@ -132,10 +139,10 @@
</el-option>
</el-select>
</el-form-item>
- <el-form-item label="鑰冩牳瑙勫垯" prop="scoreCategory">
- <el-select v-model="form.scoreCategory" placeholder="璇烽�夋嫨">
+ <el-form-item label="鑰冩牳瑙勫垯" prop="ruleCategory">
+ <el-select v-model="form.ruleCategory" placeholder="璇烽�夋嫨">
<el-option
- v-for="item in scoreCategoryList"
+ v-for="item in ruleCategoryList"
:key="item.id"
:label="item.value"
:value="item.id">
@@ -144,17 +151,17 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
<el-button @click="cancel">鍙� 娑�</el-button>
+ <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
-import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/score";
-import {unitSelect} from "../../../api/platform/unit";
-import {publishSelect} from "../../../api/platform/publish";
+import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/check-score";
+import {unitSelect} from "@/api/platform/unit";
+import {publishSelect} from "@/api/platform/check-publish";
export default {
name: "Score",
@@ -199,14 +206,18 @@
}, ]
},
],
- scoreCategoryList: [
- { id: 2, value: '瀛樺偍鏁呴殰' },
+ ruleCategoryList: [
{ id: 1, value: '瑙嗛鍦ㄧ嚎鐜�' },
- { id: 3, value: '淇濋殰宸ヤ綔' },
+ { id: 2, value: '瀛樺偍鏁呴殰' },
+ { id: 3, value: '瑙嗗浘搴撳鎺ョǔ瀹氭��' },
{ id: 4, value: '涓�鏈轰竴妗�24灏忔椂鏈慨澶�' },
{ id: 5, value: '鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�' },
],
examineList: [],
+ unitList: [
+ {id:2,value: '鎴愰兘x杩愮淮'},
+ {id:3,value: '鑷祦浜曞尯'},
+ ],
// 閬僵灞�
loading: true,
// 閫変腑鏁扮粍
@@ -244,16 +255,16 @@
},
created() {
this.getList();
- this.selectUnit();
+ // this.selectUnit();
this.selectExamine();
},
methods: {
// 杩愮淮鍏徃涓嬫媺鏁版嵁
- selectUnit() {
- unitSelect().then(res => {
- this.unitList = res.data;
- })
- },
+ // selectUnit() {
+ // unitSelect().then(res => {
+ // this.unitList = res.data;
+ // })
+ // },
// 鑰冩牳涓嬫媺鏁版嵁
selectExamine() {
publishSelect().then(res => {
--
Gitblit v1.8.0