From 3809347f1493eeecc15f94d318732f3dbdc53f78 Mon Sep 17 00:00:00 2001
From: 叶松 <2217086471@qq.com>
Date: 星期二, 28 十一月 2023 13:28:35 +0800
Subject: [PATCH] bug修改

---
 web/src/views/SecureManage/NipCheck/components/ScoreDetails.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/web/src/views/SecureManage/NipCheck/components/ScoreDetails.vue b/web/src/views/SecureManage/NipCheck/components/ScoreDetails.vue
index b4db379..f3acbfa 100644
--- a/web/src/views/SecureManage/NipCheck/components/ScoreDetails.vue
+++ b/web/src/views/SecureManage/NipCheck/components/ScoreDetails.vue
@@ -106,7 +106,7 @@
     </div>
     <div class="header_item">
         <el-button icon="el-icon-search" v-if="showButton('search')" @click="searchFormButtonInfo(true,userIds)">查询</el-button>
-        <el-button class="search_btn" icon="el-icon-plus" v-if="showButton('export')" @click="exportFiles">导出Excel</el-button>
+        <el-button class="search_btn" icon="el-icon-plus" v-if="showButton('export')" @click="exportFiles(userIds)">导出Excel</el-button>
     </div>
     </div>
     <div class="score_index">
@@ -124,7 +124,11 @@
             </template>
             </el-table-column>
             <el-table-column prop="createTime" label="时间" align="center" width="150"></el-table-column>
-            <el-table-column prop="integralWater" label="积分分值" align="center" ></el-table-column>
+            <el-table-column prop="integralWater" label="积分分值" align="center" >
+                <template #default="{row}">
+                    <div>{{row.type===1?'+'+row.integralWater:row.type===2?'-'+row.integralWater:''}}</div>
+                </template>
+            </el-table-column>
             <el-table-column prop="balanc" label="余额" align="center" ></el-table-column>
             <el-table-column prop="type" label="类型" align="center" >
                 <template #default="{row}">
@@ -269,13 +273,14 @@
         })
       },
       //导出excel
-      exportFiles(){
+      exportFiles(userId){
         let params = {}
         params.startTime = this.search.time&&this.search.time[0]
         params.endTime = this.search.time&&this.search.time[1]
+        params.userId = userId
         delete params.time
         this.functionLoading();
-        this.$api.Safety.exportMarketFiles(params).then(res => {
+        this.$api.Safety.exportIntegralFiles(params).then(res => {
             downFiles(res, '积分明细信息', 'xls')
             this.loadingView.close()
         })

--
Gitblit v1.9.3