|
@@ -6,9 +6,9 @@
|
6
|
6
|
<el-button v-waves class="filter-item" type="primary" @click="handleFilter">查询</el-button>
|
7
|
7
|
</div>
|
8
|
8
|
<div style="margin-top: 20px;">
|
9
|
|
- <el-button type="primary" @click="addActivity">添加</el-button>
|
10
|
|
- <el-button type="warning" @click="ediActivity">修改</el-button>
|
11
|
|
- <el-button type="danger" @click="invalidActivity">作废</el-button>
|
|
9
|
+ <el-button type="primary" @click="addRole">添加</el-button>
|
|
10
|
+ <el-button type="warning" @click="editRole">修改</el-button>
|
|
11
|
+ <el-button type="danger" @click="deleteRole">删除</el-button>
|
12
|
12
|
</div>
|
13
|
13
|
|
14
|
14
|
<el-table
|
|
@@ -23,17 +23,17 @@
|
23
|
23
|
<el-table-column type="selection" width="55" align="center"/>
|
24
|
24
|
<el-table-column label="角色名称" align="center">
|
25
|
25
|
<template slot-scope="scope">
|
26
|
|
- <span @click="handleLook(scope.row.id)" style="color: #409EFF;cursor: pointer">{{ scope.row.transactionTitle }}</span>
|
|
26
|
+ <span @click="handleLook(scope.row.id)" style="color: #409EFF;cursor: pointer">{{ scope.row.roleName }}</span>
|
27
|
27
|
</template>
|
28
|
28
|
</el-table-column>
|
29
|
29
|
<el-table-column label="角色描述" align="center">
|
30
|
30
|
<template slot-scope="scope">
|
31
|
|
- <span>{{ scope.row.viewCount }}</span>
|
|
31
|
+ <span>{{ scope.row.description }}</span>
|
32
|
32
|
</template>
|
33
|
33
|
</el-table-column>
|
34
|
34
|
<el-table-column label="创建人" align="center">
|
35
|
35
|
<template slot-scope="scope">
|
36
|
|
- <span>{{ scope.row.userName }}</span>
|
|
36
|
+ <span>{{ scope.row.createName }}</span>
|
37
|
37
|
</template>
|
38
|
38
|
</el-table-column>
|
39
|
39
|
<el-table-column label="创建时间" align="center">
|
|
@@ -43,12 +43,12 @@
|
43
|
43
|
</el-table-column>
|
44
|
44
|
<el-table-column label="修改人" align="center">
|
45
|
45
|
<template slot-scope="scope">
|
46
|
|
- <span>{{ scope.row.userName }}</span>
|
|
46
|
+ <span>{{ scope.row.updateName }}</span>
|
47
|
47
|
</template>
|
48
|
48
|
</el-table-column>
|
49
|
49
|
<el-table-column label="修改时间" align="center">
|
50
|
50
|
<template slot-scope="scope">
|
51
|
|
- <span>{{ formatDate(scope.row.createDate) }}</span>
|
|
51
|
+ <span>{{ formatDate(scope.row.updateDate) }}</span>
|
52
|
52
|
</template>
|
53
|
53
|
</el-table-column>
|
54
|
54
|
</el-table>
|
|
@@ -73,8 +73,8 @@ import { parseTime } from '@/utils'
|
73
|
73
|
|
74
|
74
|
export default {
|
75
|
75
|
computed: {
|
76
|
|
- ...mapState('transaction', {
|
77
|
|
- transactionList: s => s.transactionList,
|
|
76
|
+ ...mapState('role', {
|
|
77
|
+ roleList: s => s.roleList,
|
78
|
78
|
total: s => s.total
|
79
|
79
|
})
|
80
|
80
|
},
|
|
@@ -128,10 +128,7 @@ export default {
|
128
|
128
|
clearListQuery() {
|
129
|
129
|
this.listQuery.pageNum = 1
|
130
|
130
|
this.listQuery.pageSize = 20
|
131
|
|
- this.listQuery.transactionId = undefined
|
132
|
|
- this.listQuery.transactionTitle = undefined
|
133
|
|
- this.listQuery.status = undefined
|
134
|
|
- this.listQuery.isReported = undefined
|
|
131
|
+ this.listQuery.roleName = undefined
|
135
|
132
|
this.getList()
|
136
|
133
|
},
|
137
|
134
|
handleFilter() {
|
|
@@ -161,6 +158,9 @@ export default {
|
161
|
158
|
this.listQuery.pageNum = val
|
162
|
159
|
this.getList()
|
163
|
160
|
},
|
|
161
|
+ addRole(){
|
|
162
|
+ this.$router.push({ name: 'role-add' })
|
|
163
|
+ },
|
164
|
164
|
sortByID(order) {
|
165
|
165
|
if (order === 'ascending') {
|
166
|
166
|
this.listQuery.sort = '+id'
|