From dab34ce9fbe468d82cbb6b8c89bd3a0d167e74ae Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 26 三月 2024 15:22:15 +0800 Subject: [PATCH] 考核结果跳转页面 --- src/views/system/check-result/contract/detail.vue | 44 +++++++++++++++++++++++++++++++------------- 1 files changed, 31 insertions(+), 13 deletions(-) diff --git a/src/views/system/check-result/contract/detail.vue b/src/views/system/check-result/contract/detail.vue index 619e134..e86acd4 100644 --- a/src/views/system/check-result/contract/detail.vue +++ b/src/views/system/check-result/contract/detail.vue @@ -1,5 +1,7 @@ <template> <div class="app-container"> + <el-page-header @back="goBack" content="璇︽儏椤甸潰"> + </el-page-header> <el-container> <el-main style="padding-top: 0px"> <h2>鑰冩牳鍒嗘暟鏄庣粏</h2> @@ -30,6 +32,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> @@ -37,13 +46,13 @@ </template> </el-table-column> <el-table-column label="鍒嗗��" align="center" prop="score" /> - <el-table-column label="鑰冩牳瑙勫垯" align="center" prop="scoreCategory"> + <el-table-column label="鑰冩牳瑙勫垯" align="center" prop="ruleCategory"> <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> + <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" /> @@ -323,10 +332,10 @@ </el-option> </el-select> </el-form-item> - <el-form-item label="鑰冩牳瑙勫垯" prop="scoreCategory"> - <el-select v-model="scoreForm.scoreCategory" placeholder="璇烽�夋嫨"> + <el-form-item label="鑰冩牳瑙勫垯" prop="ruleCategory"> + <el-select v-model="scoreForm.ruleCategory" placeholder="璇烽�夋嫨"> <el-option - v-for="item in scoreCategoryList" + v-for="item in ruleCategoryList" :key="item.id" :label="item.value" :value="item.id"> @@ -361,10 +370,10 @@ }, examineList: [], unitList: [], - 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灏忔椂鏈慨澶�' }, ], @@ -427,6 +436,12 @@ ruleStatus: null, createTime: null, }, + //鑰冩牳鍒嗘暟璇锋眰鍙傛暟 + scoreQueryParams: { + pageNum: 1, + pageSize: 10, + examineCategory: 3, + }, // 琛ㄥ崟鏍¢獙 rules: { } @@ -446,6 +461,9 @@ this.selectExamine(); }, methods: { + goBack() { + console.log('go back'); + }, // 杩愮淮鍏徃涓嬫媺鏁版嵁 selectUnit() { unitSelect().then(res => { @@ -461,7 +479,7 @@ /** 鏌ヨ鑰冩牳璁″垎鍒楄〃 */ getScoreList() { this.loading = true; - listScore(this.queryParams).then(response => { + listScore(this.scoreQueryParams).then(response => { this.scoreList = response.rows; this.loading = false; }); -- Gitblit v1.8.0