|
@@ -1,7 +1,7 @@
|
|
<!--
|
|
<!--
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2021-11-29 14:37:54
|
|
* @Date: 2021-11-29 14:37:54
|
|
- * @LastEditTime: 2022-02-08 11:03:58
|
|
|
|
|
|
+ * @LastEditTime: 2022-02-08 11:26:39
|
|
* @LastEditors: Please set LastEditors
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: 角色管理
|
|
* @Description: 角色管理
|
|
* @FilePath: \Foshan4A2.0\src\views\authorityManagement\components\authorityRole.vue
|
|
* @FilePath: \Foshan4A2.0\src\views\authorityManagement\components\authorityRole.vue
|
|
@@ -100,7 +100,8 @@ export default {
|
|
PageSize: 20,
|
|
PageSize: 20,
|
|
loading: false,
|
|
loading: false,
|
|
keyWords: '',
|
|
keyWords: '',
|
|
- total: null
|
|
|
|
|
|
+ total: null,
|
|
|
|
+ search: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
@@ -144,11 +145,23 @@ export default {
|
|
},
|
|
},
|
|
//查询
|
|
//查询
|
|
getSearchData (val) {
|
|
getSearchData (val) {
|
|
- this.gueryRole(val)
|
|
|
|
|
|
+ this.pageNum = 1
|
|
|
|
+ this.search = val
|
|
|
|
+ this.gueryRole({
|
|
|
|
+ QueryName: val,
|
|
|
|
+ PageSize: this.PageSize,
|
|
|
|
+ PageIndex: this.pageNum
|
|
|
|
+ }, true)
|
|
},
|
|
},
|
|
//清除查询
|
|
//清除查询
|
|
clearSearchData () {
|
|
clearSearchData () {
|
|
- this.gueryRole()
|
|
|
|
|
|
+ this.pageNum = 1
|
|
|
|
+ this.keyWords = ''
|
|
|
|
+ this.gueryRole({
|
|
|
|
+ QueryName: '',
|
|
|
|
+ PageSize: this.PageSize,
|
|
|
|
+ PageIndex: this.pageNum
|
|
|
|
+ }, true)
|
|
},
|
|
},
|
|
//状态变更
|
|
//状态变更
|
|
async handleChange (item) {
|
|
async handleChange (item) {
|
|
@@ -161,7 +174,19 @@ export default {
|
|
})
|
|
})
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
- this.gueryRole()
|
|
|
|
|
|
+ if (this.search) {
|
|
|
|
+ this.gueryRole({
|
|
|
|
+ QueryName: this.search,
|
|
|
|
+ PageSize: this.PageSize,
|
|
|
|
+ PageIndex: this.pageNum
|
|
|
|
+ }, true)
|
|
|
|
+ } else {
|
|
|
|
+ this.gueryRole({
|
|
|
|
+ QueryName: this.keyWords,
|
|
|
|
+ PageSize: this.PageSize,
|
|
|
|
+ PageIndex: this.pageNum
|
|
|
|
+ }, true)
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.message)
|
|
this.$message.error(res.message)
|
|
}
|
|
}
|