用户修改
This commit is contained in:
parent
e2cc01ffa3
commit
6a7a06d043
|
|
@ -8,6 +8,14 @@ export function fetchOrgList() {
|
|||
})
|
||||
}
|
||||
|
||||
/** 建管单位查询 */
|
||||
export function fetchBuildList() {
|
||||
return request({
|
||||
url: '/system/sys/select/getBuildLists',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchRoleList() {
|
||||
return request({
|
||||
url: '/system/sys/select/getRoleLists',
|
||||
|
|
|
|||
|
|
@ -119,6 +119,11 @@
|
|||
<el-form-item label="组织机构" prop="orgId">
|
||||
<treeselect v-model="temp.orgId" :options="orgOptions" :show-count="true" placeholder="请选择组织机构" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="组织机构" prop="orgId">
|
||||
<el-select v-model="temp.orgId" placeholder="请选择组织机构" class="filter-item" style="width: 100%">
|
||||
<el-option v-for="item in buildArr" :key="item.orgId" :label="item.orgId">{{item.name}}</el-option>
|
||||
</el-select>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="登录权限" prop="loginType">
|
||||
<el-checkbox-group v-model="loginType">
|
||||
<el-checkbox v-for="item in loginTypeArr" :key="item.value" :label="item.value">{{ item.name }}</el-checkbox>
|
||||
|
|
@ -179,7 +184,7 @@
|
|||
|
||||
<script>
|
||||
import { fetchList, addUser, getUserById, editUser, delUser, editPwd } from '@/api/user'
|
||||
import { fetchOrgList, fetchRoleList } from '@/api/select'
|
||||
import { fetchOrgList, fetchRoleList,fetchBuildList } from '@/api/select'
|
||||
import { validPhone, validPwd } from '@/utils/validate'
|
||||
import waves from '@/directive/waves'
|
||||
import { parseTime } from '@/utils'
|
||||
|
|
@ -235,6 +240,7 @@ export default {
|
|||
userTypeArr: userTypeArr,
|
||||
orgOptions: [],
|
||||
roleArr: [],
|
||||
buildArr: [],
|
||||
accountStatusArr: accountStatusArr,
|
||||
loginType: [],
|
||||
list: [],
|
||||
|
|
@ -317,6 +323,7 @@ export default {
|
|||
this.getList()
|
||||
this.getOrgList()
|
||||
this.getRoleList()
|
||||
this.getBuildList()
|
||||
},
|
||||
methods: {
|
||||
validateLoginType(rule, value, callback) {
|
||||
|
|
@ -367,6 +374,11 @@ export default {
|
|||
this.roleArr = response.data
|
||||
})
|
||||
},
|
||||
getBuildList() {
|
||||
fetchBuildList().then((response) => {
|
||||
this.buildArr = response.data
|
||||
})
|
||||
},
|
||||
handleFilter() {
|
||||
this.listQuery.pageNum = 1
|
||||
this.getList()
|
||||
|
|
|
|||
Loading…
Reference in New Issue