[add] 分组管理
This commit is contained in:
@@ -48,6 +48,15 @@
|
||||
v-model="queryParam.realname"></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-form-item :label="$t('system.groupMange.groupName')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<j-search-select-tag
|
||||
:placeholder="$t('pleaseSelect') + $t('system.groupMange.groupName')"
|
||||
v-model="queryParam.groupId"
|
||||
:dictOptions="groupList">
|
||||
</j-search-select-tag>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||
<a-button style="margin-left: 8px" type="primary" icon="search" @click="searchQuery">{{$t('query')}}</a-button>
|
||||
<a-button style="margin-left: 8px" type="primary" ghost icon="reload" @click="searchReset">{{$t('reset')}}</a-button>
|
||||
@@ -89,7 +98,7 @@
|
||||
|
||||
<script>
|
||||
import JSearchSelectTag from '../dict/JSearchSelectTag'
|
||||
import { queryall, queryDepartTreeList } from '@/api/api'
|
||||
import { queryall, queryDepartTreeList, getGroupList } from '@/api/api'
|
||||
import { getAction, postAction } from '@/api/manage'
|
||||
|
||||
export default {
|
||||
@@ -244,13 +253,15 @@ export default {
|
||||
oldQueryParam: {}, // 上一次的搜索条件,用于从一个搜索条件改成另一个搜索条件,但是没有点搜索,这时候全选时传旧的搜索条件
|
||||
oldTotal: 0,
|
||||
currentQueryAllData: [], // 当前查询条件下的所有数据
|
||||
fixDepartId: ''
|
||||
fixDepartId: '',
|
||||
groupList: [] // 分组下拉
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
open (value) {
|
||||
this.getSysCategoryTree()
|
||||
this.initRoleList()
|
||||
this.initGroupList()
|
||||
// this.loadData()
|
||||
this.visible = true
|
||||
if (value) {
|
||||
@@ -274,6 +285,16 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
// 初始化分组
|
||||
initGroupList () {
|
||||
getGroupList().then((res) => {
|
||||
if (res.success) {
|
||||
this.groupList = res.result.map((item) => {
|
||||
return { text: item.groupName, value: item.id }
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
findNodeInTreeList (treeData, name) {
|
||||
let node = {}
|
||||
for (const item of treeData) {
|
||||
|
||||
Reference in New Issue
Block a user