From c5c80dbc2632719789b91d236de7cf1e6497557d Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期一, 23 九月 2024 19:15:43 +0800
Subject: [PATCH] 大屏分离平台在线和考核成绩接口

---
 src/views/system/check/result/detail/detail.vue |   52 +++++++++-------------------------------------------
 1 files changed, 9 insertions(+), 43 deletions(-)

diff --git a/src/views/system/check/result/detail/detail.vue b/src/views/system/check/result/detail/detail.vue
index 67b6417..f4d2a72 100644
--- a/src/views/system/check/result/detail/detail.vue
+++ b/src/views/system/check/result/detail/detail.vue
@@ -37,6 +37,7 @@
                   type="text"
                   icon="el-icon-edit"
                   @click="handleRuleUpdate(item)"
+                  v-hasPermi="['check:template:edit']"
                   >淇敼
                 </el-button>
               </div>
@@ -45,35 +46,6 @@
             </el-card>
           </el-col>
         </el-row>
-        <!-- <div></div>
-        <el-table
-          v-loading="loading"
-          :data="checkRuleList"
-          @selection-change="handleSelectionChange"
-        >
-          <el-table-column type="selection" width="55" align="center" />
-          <el-table-column
-            label="瑙勫垯鍚嶇О"
-            align="center"
-            prop="checkRuleName"
-          />
-          <el-table-column label="瑙勫垯鏉冮噸" align="center" prop="weight" />
-          <el-table-column
-            label="鎿嶄綔"
-            align="center"
-            class-name="small-padding fixed-width"
-          >
-            <template slot-scope="scope">
-              <el-button
-                size="mini"
-                type="text"
-                icon="el-icon-edit"
-                @click="handleRuleUpdate(scope.row)"
-                >淇敼
-              </el-button>
-            </template>
-          </el-table-column>
-        </el-table> -->
       </el-main>
     </el-container>
 
@@ -88,6 +60,7 @@
               icon="el-icon-download"
               size="mini"
               @click="handleExport"
+              v-hasPermi="['check:result:detail:export']"
               >瀵煎嚭
             </el-button>
           </el-col>
@@ -98,17 +71,6 @@
             :inline="true"
             v-show="showSearch"
           >
-<!--            <el-form-item label="鑰冩牳鏈堝害" prop="name">-->
-<!--              <el-date-picker-->
-<!--                v-model="queryParams.date"-->
-<!--                format="yyyy-MM"-->
-<!--                value-format="yyyy-MM"-->
-<!--                type="month"-->
-<!--                placeholder="閫夋嫨鏃ユ湡"-->
-<!--                @change="dateChange"-->
-<!--              >-->
-<!--              </el-date-picker>-->
-<!--            </el-form-item>-->
             <el-form-item label="鑰冩牳鏃堕棿">
               <el-date-picker
                 :clearable="false"
@@ -182,7 +144,7 @@
               width="180px"
             >
               <template slot-scope="scope">
-                <span>{{ scope.row[item.ruleIndex] }}</span>
+                <span>{{ (scope.row[item.ruleIndex] * 100).toFixed(2) + '%'}}</span>
               </template>
             </el-table-column>
           </template>
@@ -344,7 +306,8 @@
         id: null,
         date: null,
         quarter: null,
-        examineTag: null
+        examineTag: null,
+        deptId: null
       },
       // 琛ㄥ崟鏍¢獙
       rules: {},
@@ -362,6 +325,9 @@
     //鑰冩牳鎴愮哗璇︽儏璺宠浆鍙傛暟鎺ユ敹
     if (this.$route.query.id) {
       this.queryParams.id = this.$route.query.id;
+    }
+    if(this.$route.query.deptId){
+      this.queryParams.deptId = this.$route.query.deptId;
     }
     let examineTag = this.$route.query.examineTag;
     this.activeIndex = examineTag;
@@ -496,7 +462,7 @@
     /** 瀵煎嚭鎸夐挳鎿嶄綔 */
     handleExport() {
       this.download(
-        "/check/score/export",
+        "/check/score/detailExport",
         {
           ...this.queryParams,
         },

--
Gitblit v1.8.0