|
@@ -1,6 +1,9 @@
|
|
|
<template>
|
|
|
<div class="mod-role">
|
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
|
|
+ <el-form-item>
|
|
|
+ <org-component v-model="dataForm.orgId"/>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-input v-model="dataForm.roleName" placeholder="角色名称" clearable></el-input>
|
|
|
</el-form-item>
|
|
@@ -81,11 +84,13 @@
|
|
|
|
|
|
<script>
|
|
|
import AddOrUpdate from './role-add-or-update'
|
|
|
+ import OrgComponent from '../common/org-component'
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
dataForm: {
|
|
|
- roleName: ''
|
|
|
+ roleName: '',
|
|
|
+ orgId: ''
|
|
|
},
|
|
|
dataList: [],
|
|
|
pageIndex: 1,
|
|
@@ -97,6 +102,7 @@
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
+ OrgComponent,
|
|
|
AddOrUpdate
|
|
|
},
|
|
|
activated () {
|
|
@@ -112,7 +118,8 @@
|
|
|
params: this.$http.adornParams({
|
|
|
'current': this.pageIndex,
|
|
|
'size': this.pageSize,
|
|
|
- 'roleName': this.dataForm.roleName
|
|
|
+ 'roleName': this.dataForm.roleName,
|
|
|
+ 'orgId': this.dataForm.orgId
|
|
|
})
|
|
|
}).then(({data}) => {
|
|
|
if (data && data.code === '200') {
|