|
@@ -17,7 +17,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-if="tabs == 'success'" :data="dataList" stripe fit v-loading="table_loading" @row-click="open_detail">
|
|
|
+ <el-table v-if="tabs == 'success'" res="table1" :data="dataList" stripe fit v-loading="table_loading" @row-click="open_detail">
|
|
|
<el-table-column label="姓名" prop="employee_id" align="left">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="flex-box flex-contet-conter">
|
|
@@ -26,8 +26,13 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="remark" show-overflow-tooltip label="奖扣内容"></el-table-column>
|
|
|
- <el-table-column prop="point" label="积分" width="120">
|
|
|
+
|
|
|
+ <el-table-column show-overflow-tooltip label="奖扣内容">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.remark_data.customize }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="积分" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<span :class="{ color_green: scope.row.point < 0, color_red: scope.row.point > 0 }">
|
|
|
<span v-show="scope.row.point > 0">+</span>
|
|
@@ -35,7 +40,8 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="create_time" label="奖扣时间" width="150">
|
|
|
+
|
|
|
+ <el-table-column label="奖扣时间" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
{{ cuttString(scope.row.create_time) }}
|
|
|
</template>
|
|
@@ -45,7 +51,7 @@
|
|
|
</template>
|
|
|
</el-table>
|
|
|
|
|
|
- <el-table v-if="tabs !== 'success'" :data="dataList" stripe fit v-loading="table_loading" @row-click="open_detail1">
|
|
|
+ <el-table v-else :data="dataList2" res="table2" stripe fit v-loading="table_loading" @row-click="open_detail1">
|
|
|
<el-table-column label="姓名" prop="employee_id" align="left">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="flex-box flex-contet-conter">
|
|
@@ -54,13 +60,16 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="remark" show-overflow-tooltip label="奖扣内容">
|
|
|
+ <el-table-column show-overflow-tooltip label="奖扣内容">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.remark.customize }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="event_time" label="奖扣时间" width="150"></el-table-column>
|
|
|
-
|
|
|
+ <el-table-column label="奖扣时间" width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ cuttString(scope.row.event_time) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<template slot="empty">
|
|
|
<noData></noData>
|
|
|
</template>
|
|
@@ -272,6 +281,7 @@ export default {
|
|
|
},
|
|
|
tabs: 'success',
|
|
|
dataList: [],
|
|
|
+ dataList2: [],
|
|
|
pageLimit: 10,
|
|
|
keyword: '',
|
|
|
showTitle: false,
|
|
@@ -319,7 +329,7 @@ export default {
|
|
|
|
|
|
employee_name: JSON.parse(localStorage.getItem('SET_EMPLOYEE_MAP')),
|
|
|
fileList: [],
|
|
|
- userId:167
|
|
|
+ userId:'',
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -328,16 +338,13 @@ export default {
|
|
|
noData
|
|
|
},
|
|
|
mounted() {
|
|
|
- // if(this.$route.query.type == 1){
|
|
|
- // this.point_a()
|
|
|
- // }else if(this.$route.query.type == 2){
|
|
|
- // this.point_b()
|
|
|
- // }
|
|
|
this.getData()
|
|
|
+ this.userId=this.$getUserData().id
|
|
|
},
|
|
|
watch: {
|
|
|
tabs(val) {
|
|
|
this.dataList = [];
|
|
|
+ this.dataList2 = [];
|
|
|
this.formData.total = 0;
|
|
|
this.keyword = '';
|
|
|
this.formData.page = 1;
|
|
@@ -449,7 +456,12 @@ export default {
|
|
|
this.$axios('get', this.tabs == 'success' ? '/api/integral/statistics/integral' : '/api/integral/review/entry/list', data)
|
|
|
.then(res => {
|
|
|
if (res.data.code == 1) {
|
|
|
- this.dataList = res.data.data.list;
|
|
|
+ if(this.tabs == 'success'){
|
|
|
+ this.dataList = res.data.data.list;
|
|
|
+ }else{
|
|
|
+ this.dataList2 = res.data.data.list;
|
|
|
+ }
|
|
|
+
|
|
|
this.formData.total = res.data.data.total;
|
|
|
}
|
|
|
})
|