| | |
| | | <GlobalWindow |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | width="582px" |
| | | title="配置用户角色" |
| | | width="800px" |
| | | title="分配企业" |
| | | @confirm="confirm" |
| | | > |
| | | <p class="tip" v-if="user != null">为用户 <em>{{user.realname}}</em> 分配企业</p> |
| | |
| | | <script> |
| | | import BasePage from '@/components/base/BasePage' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { pageAll } from '@/api/business/company' |
| | | import { allForFp } from '@/api/business/company' |
| | | import { create } from '@/api/business/companyPermission' |
| | | export default { |
| | | name: 'allocationEnterprises', |
| | |
| | | this.visible = true |
| | | this.title = title |
| | | this.user = target |
| | | pageAll({ userId: target.id }) |
| | | allForFp({ userId: target.id }) |
| | | .then(res => { |
| | | this.company = res.map(r => { |
| | | return { |
| | |
| | | companyIdList: this.selectedIds |
| | | }) |
| | | .then(() => { |
| | | this.$tip.apiSuccess('角色配置成功,用户重新登录后生效') |
| | | this.$tip.apiSuccess('企业分配成功,用户重新登录后生效') |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }) |
| | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .el-transfer-panel { |
| | | width: 300px !important; |
| | | } |
| | | </style> |
| | | <style scoped lang="scss"> |
| | | @import "@/assets/style/variables.scss"; |
| | | |
| | | // 角色配置 |
| | | .global-window { |
| | | .tip { |