|
@@ -153,10 +153,10 @@
|
|
|
<el-table-column label="每月B分奖分上限">
|
|
|
<template slot-scope="scope">
|
|
|
<div @click="open_integral_limit(scope.row)" v-show="scope.row.entry_limit == 0" class="cursor_pointer" style="text-decoration:underline">
|
|
|
- 未设置
|
|
|
+ 不限制
|
|
|
</div>
|
|
|
<div @click="open_integral_limit(scope.row)" v-show="scope.row.entry_limit > 0" class="cursor_pointer">{{ scope.row.entry_limit }}</div>
|
|
|
- <div @click="open_integral_limit(scope.row)" v-show="scope.row.entry_limit < 0">此人不限制奖分上限</div>
|
|
|
+ <div @click="open_integral_limit(scope.row)" v-show="scope.row.entry_limit < 0">不限制</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
@@ -334,10 +334,10 @@
|
|
|
<el-table-column label="每月B分奖分上限">
|
|
|
<template slot-scope="scope">
|
|
|
<div @click="open_integral_limit(scope.row)" v-show="scope.row.entry_limit == 0" class="cursor_pointer" style="text-decoration:underline">
|
|
|
- 未设置
|
|
|
+ 不限制
|
|
|
</div>
|
|
|
<div @click="open_integral_limit(scope.row)" v-show="scope.row.entry_limit > 0" class="cursor_pointer">{{ scope.row.entry_limit }}</div>
|
|
|
- <div @click="open_integral_limit(scope.row)" v-show="scope.row.entry_limit < 0">此人不限制奖分上限</div>
|
|
|
+ <div @click="open_integral_limit(scope.row)" v-show="scope.row.entry_limit < 0">不限制</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
@@ -448,6 +448,16 @@
|
|
|
</noData>
|
|
|
</template>
|
|
|
</el-table>
|
|
|
+ <div class="pagination" v-show="item_info.code != 'employee'">
|
|
|
+ <el-pagination
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="page"
|
|
|
+ :page-sizes="[10, 20, 50, 100]"
|
|
|
+ layout="total,sizes, prev, pager, next"
|
|
|
+ :total="total"
|
|
|
+ ></el-pagination>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -470,7 +480,7 @@
|
|
|
</el-form-item>
|
|
|
</span>
|
|
|
<el-form-item label="每月B分奖分上限" prop="entry_limit">
|
|
|
- <el-input v-model.number="integral_limit_form.entry_limit" oninput="value=value.replace(/[^\d]/g,'')"></el-input>
|
|
|
+ <el-input v-model.number="integral_limit_form.entry_limit" oninput="value=value.replace(/[^\d]/g,'')" placeholder="奖分上限不限制"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item style="text-align: right; margin-bottom: 0">
|
|
|
<el-button @click="integral_limit_show = false">取消</el-button>
|
|
@@ -692,6 +702,9 @@ const minimum = (rule, value, callback) => {
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ page: 1,
|
|
|
+ pageSize:10,
|
|
|
+ total: 0,
|
|
|
role_list: [],
|
|
|
table_list: [],
|
|
|
tips_show: false,
|
|
@@ -926,6 +939,7 @@ export default {
|
|
|
this.file = response.data;
|
|
|
this.$message.success({ message: response.msg });
|
|
|
this.close_export();
|
|
|
+ this.page=1;
|
|
|
this.get_table_list();
|
|
|
}
|
|
|
}else{
|
|
@@ -945,6 +959,7 @@ export default {
|
|
|
},
|
|
|
//点击搜索
|
|
|
onFilterChanged: function() {
|
|
|
+ this.page = 1;
|
|
|
this.get_table_list();
|
|
|
},
|
|
|
// 数据查看权限弹窗
|
|
@@ -956,7 +971,7 @@ export default {
|
|
|
getDataAccess() {
|
|
|
let self = this;
|
|
|
self.dataAccessLoading = true;
|
|
|
- self.$axios('get', '/api/role/range', { role_id: self.item_info.id })
|
|
|
+ self.$axios('get', '/api/role/range', { role_id: self.item_info.id, })
|
|
|
.then(res => {
|
|
|
if (res.data.code == 1) {
|
|
|
const resData = res.data.data;
|
|
@@ -1173,11 +1188,12 @@ export default {
|
|
|
item.point_limit[0].point = Number(item.point_limit[0].point);
|
|
|
item.point_limit[1].point = Number(item.point_limit[1].point);
|
|
|
}
|
|
|
-
|
|
|
+ if (item.entry_limit<0) {
|
|
|
+ item.entry_limit='';
|
|
|
+ }
|
|
|
this.integral_limit_form = item;
|
|
|
}
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
+ }).finally(() => {
|
|
|
this.integral_limit_loading = false;
|
|
|
});
|
|
|
},
|
|
@@ -1274,6 +1290,7 @@ export default {
|
|
|
.then(res => {
|
|
|
if (res.data.code == 1) {
|
|
|
this.$message.success(res.data.msg);
|
|
|
+ this.page=1;
|
|
|
this.get_table_list();
|
|
|
}
|
|
|
})
|
|
@@ -1314,6 +1331,7 @@ export default {
|
|
|
.then(res => {
|
|
|
if (res.data.code == 1) {
|
|
|
this.$message.success(res.data.msg);
|
|
|
+ this.page=1;
|
|
|
this.get_table_list();
|
|
|
}
|
|
|
})
|
|
@@ -1338,7 +1356,18 @@ export default {
|
|
|
this.role_loading = false;
|
|
|
});
|
|
|
},
|
|
|
+ handleSizeChange: function(val) {
|
|
|
+ this.pageSize=val;
|
|
|
+ this.page = 1;
|
|
|
+ this.get_table_list();
|
|
|
+ },
|
|
|
+ //页码变更
|
|
|
+ handleCurrentChange: function(val) {
|
|
|
+ this.page = val;
|
|
|
+ this.get_table_list();
|
|
|
+ },
|
|
|
open_right(data) {
|
|
|
+ this.page=1;
|
|
|
this.jurisdiction = data.code == 'employee' ? this.dataAccessListEmployee : this.dataAccessList;
|
|
|
this.item_info = data;
|
|
|
if (data.code != 'employee') {
|
|
@@ -1349,7 +1378,7 @@ export default {
|
|
|
this.table_loading = true;
|
|
|
var that = this;
|
|
|
this.table_list = [];
|
|
|
- this.$axios('get', '/api/role/user', { role_id: this.item_info.id, keyword: this.keyword })
|
|
|
+ this.$axios('get', '/api/role/user', { role_id: this.item_info.id, keyword: this.keyword,page_size:this.pageSize,page:this.page })
|
|
|
.then(res => {
|
|
|
if (res.data.code == 1) {
|
|
|
var list = res.data.data.list;
|
|
@@ -1365,6 +1394,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.table_list = list || [];
|
|
|
+ this.total=res.data.data.total
|
|
|
}
|
|
|
})
|
|
|
.finally(() => {
|