[update 分组管理] 页面无接口

This commit is contained in:
danshihao
2024-07-18 18:51:13 +08:00
parent 8704f001ae
commit e6acccee3d
6 changed files with 334 additions and 6 deletions
+28 -5
View File
@@ -47,6 +47,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>
@@ -88,7 +97,7 @@
<script>
import JSearchSelectTag from '../dict/JSearchSelectTag'
import { queryall, queryDepartTreeList } from '@/api/api'
import { getGroupList, queryall, queryDepartTreeList } from '@/api/api'
import { getAction, postAction } from '@/api/manage'
export default {
@@ -229,13 +238,15 @@ export default {
isClickedSearch: false, // 改完搜索条件是否点击过搜索
oldQueryParam: {}, // 上一次的搜索条件,用于从一个搜索条件改成另一个搜索条件,但是没有点搜索,这时候全选时传旧的搜索条件
oldTotal: 0,
currentQueryAllData: [] // 当前查询条件下的所有数据
currentQueryAllData: [], // 当前查询条件下的所有数据
groupList: [] // 分组下拉
}
},
methods: {
open (value) {
this.getSysCategoryTree()
this.initRoleList()
this.initGroupList()
// this.loadData()
this.visible = true
if (value) {
@@ -263,6 +274,16 @@ export default {
}
})
},
// 初始化分组
initGroupList () {
getGroupList().then((res) => {
if (res.success) {
this.groupList = res.result.map((item) => {
return { text: item.groupName, value: item.id }
})
}
})
},
// 全选所有
checkedAllChange (e) {
console.log(e.target.checked)
@@ -463,9 +484,11 @@ export default {
position: relative;
}
.modal-title-check {
position: absolute;
left: 25px;
bottom: 10px;
margin-left: 25px;
margin-bottom: 10px;
//position: absolute;
//left: 25px;
//bottom: 10px;
}
.modal-content {
width: 100%;