|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+<template>
|
|
|
2
|
+ <div class="divBox">
|
|
|
3
|
+ <el-card class="box-card">
|
|
|
4
|
+ <!-- <div slot="header" class="clearfix"> -->
|
|
|
5
|
+ <!-- <el-button size="small" type="primary" @click="onAdd">添加配置</el-button> -->
|
|
|
6
|
+ <!-- </div> -->
|
|
|
7
|
+ <el-table
|
|
|
8
|
+ v-loading="listLoading"
|
|
|
9
|
+ :data="tableData.data"
|
|
|
10
|
+ style="width: 100%"
|
|
|
11
|
+ size="small"
|
|
|
12
|
+ >
|
|
|
13
|
+ <el-table-column
|
|
|
14
|
+ prop="user_group_name"
|
|
|
15
|
+ label="身份"
|
|
|
16
|
+ min-width="60"
|
|
|
17
|
+ />
|
|
|
18
|
+ <el-table-column
|
|
|
19
|
+ prop="arrive_num_own"
|
|
|
20
|
+ label="个人达标贡献值"
|
|
|
21
|
+ min-width="80"
|
|
|
22
|
+ />
|
|
|
23
|
+ <el-table-column
|
|
|
24
|
+ prop="arrive_num_team"
|
|
|
25
|
+ label="团队达标贡献值"
|
|
|
26
|
+ min-width="80"
|
|
|
27
|
+ />
|
|
|
28
|
+ </el-table-column>
|
|
|
29
|
+ <el-table-column label="操作" min-width="130" fixed="right">
|
|
|
30
|
+ <template slot-scope="scope">
|
|
|
31
|
+ <el-button type="text" size="small" @click="onEdit(scope.row.user_group_id)">编辑</el-button>
|
|
|
32
|
+ </template>
|
|
|
33
|
+ </el-table-column>
|
|
|
34
|
+ </el-table>
|
|
|
35
|
+ <div class="block">
|
|
|
36
|
+ <el-pagination
|
|
|
37
|
+ :page-sizes="[20, 40, 60, 80]"
|
|
|
38
|
+ :page-size="tableData.limit"
|
|
|
39
|
+ :current-page="tableData.page"
|
|
|
40
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
41
|
+ :total="tableData.total"
|
|
|
42
|
+ @size-change="handleSizeChange"
|
|
|
43
|
+ @current-change="pageChange"
|
|
|
44
|
+ />
|
|
|
45
|
+ </div>
|
|
|
46
|
+ </el-card>
|
|
|
47
|
+ </div>
|
|
|
48
|
+</template>
|
|
|
49
|
+
|
|
|
50
|
+<script>
|
|
|
51
|
+import {
|
|
|
52
|
+ configIdentityUpdateForm,
|
|
|
53
|
+ configIdentityLst,
|
|
|
54
|
+} from '@/api/system'
|
|
|
55
|
+export default {
|
|
|
56
|
+ name: 'Setting',
|
|
|
57
|
+ data() {
|
|
|
58
|
+ return {
|
|
|
59
|
+ tableData: {
|
|
|
60
|
+ page: 1,
|
|
|
61
|
+ limit: 20,
|
|
|
62
|
+ data: [],
|
|
|
63
|
+ total: 0
|
|
|
64
|
+ },
|
|
|
65
|
+ listLoading: true
|
|
|
66
|
+ }
|
|
|
67
|
+ },
|
|
|
68
|
+ mounted() {
|
|
|
69
|
+ this.getList()
|
|
|
70
|
+ },
|
|
|
71
|
+ methods: {
|
|
|
72
|
+ // 列表
|
|
|
73
|
+ getList() {
|
|
|
74
|
+ this.listLoading = true
|
|
|
75
|
+ configIdentityLst(this.tableData.page, this.tableData.limit).then(res => {
|
|
|
76
|
+ this.tableData.data = res.data.list
|
|
|
77
|
+ this.tableData.total = res.data.count
|
|
|
78
|
+ this.listLoading = false
|
|
|
79
|
+ }).catch(res => {
|
|
|
80
|
+ this.listLoading = false
|
|
|
81
|
+ this.$message.error(res.message)
|
|
|
82
|
+ })
|
|
|
83
|
+ },
|
|
|
84
|
+ pageChange(page) {
|
|
|
85
|
+ this.tableData.page = page
|
|
|
86
|
+ this.getList()
|
|
|
87
|
+ },
|
|
|
88
|
+ handleSizeChange(val) {
|
|
|
89
|
+ this.tableData.limit = val
|
|
|
90
|
+ this.getList()
|
|
|
91
|
+ },
|
|
|
92
|
+ // 编辑
|
|
|
93
|
+ onEdit(id) {
|
|
|
94
|
+ this.$modalForm(configIdentityUpdateForm(id)).then(() => this.getList())
|
|
|
95
|
+ },
|
|
|
96
|
+ }
|
|
|
97
|
+}
|
|
|
98
|
+</script>
|
|
|
99
|
+
|
|
|
100
|
+<style scoped lang="stylus">
|
|
|
101
|
+
|
|
|
102
|
+</style>
|