diff --git a/jero-web/src/api/api.js b/jero-web/src/api/api.js index cd961412e..6e56e73d2 100644 --- a/jero-web/src/api/api.js +++ b/jero-web/src/api/api.js @@ -12,6 +12,7 @@ const queryall = (params)=>getAction("/sys/role/queryall",params); const addUser = (params)=>postAction("/sys/user/add",params); const editUser = (params)=>putAction("/sys/user/edit",params); const queryUserRole = (params)=>getAction("/sys/user/queryUserRole",params); +const queryViewerInfo = (params)=>getAction("/sys/user/queryViewerInfo",params); const getUserList = (params)=>getAction("/sys/user/page",params); const frozenBatch = (params)=>putAction("/sys/user/frozenBatch",params); //验证用户是否存在 @@ -106,6 +107,7 @@ export { addUser, editUser, queryUserRole, + queryViewerInfo, getUserList, queryall, frozenBatch, diff --git a/jero-web/src/views/system/modules/RoleAssignment.vue b/jero-web/src/views/system/modules/RoleAssignment.vue index 0e1c36c72..d04a3ac80 100644 --- a/jero-web/src/views/system/modules/RoleAssignment.vue +++ b/jero-web/src/views/system/modules/RoleAssignment.vue @@ -12,7 +12,7 @@ - + {{ role.roleName }} diff --git a/jero-web/src/views/system/modules/UserModal.vue b/jero-web/src/views/system/modules/UserModal.vue index 848f02e48..fe86a585c 100644 --- a/jero-web/src/views/system/modules/UserModal.vue +++ b/jero-web/src/views/system/modules/UserModal.vue @@ -81,7 +81,7 @@ :triggerChange="false" :dictCode="'duty_territory'"/> - @@ -208,7 +208,7 @@ import departWindow from './DepartWindow' import { ACCESS_TOKEN } from '@/store/mutation-types' import { getAction, postAction } from '@/api/manage' - import { addUser, editUser, queryUserRole, queryall,ajaxGetDictItems,getDictItemsFromCache } from '@/api/api' + import { addUser, editUser, queryUserRole,queryViewerInfo, queryall,ajaxGetDictItems,getDictItemsFromCache } from '@/api/api' import { disabledAuthFilter } from '@/utils/authFilter' import { duplicateCheck } from '@/api/api' import JImageUpload from '../../../components/jero/JImageUpload' @@ -361,6 +361,7 @@ }) }, loadUserRoles(userid) { + console.log(11) queryUserRole({ userid: userid }).then((res) => { if (res.success) { this.selectedRole = res.result @@ -376,12 +377,17 @@ } }) }) - this.initDictData() } else { console.log(res.message) } }) }, + loadUserduty(userid) { + queryViewerInfo({ userId: userid }).then((res) => { + this.dutyTerritories = res.dutyTerritoryList.join(',') + this.brands = res.brandList.join(',') + }) + }, selectChange(value){ value.map((item,index) => { this.roleList.map((val,index) => { @@ -462,6 +468,7 @@ that.form.resetFields() if (record.hasOwnProperty('id')) { that.loadUserRoles(record.id) + that.loadUserduty(record.id) setTimeout(() => { this.fileList = record.avatar }, 5) @@ -824,6 +831,9 @@ background: #fff; border-radius: 0 0 2px 2px; } + /deep/.box-input .ant-select-selection--multiple{ + height: 100px !important; + }