jiangping
2025-06-09 663dbe4ddca1fa409e6acbc1f77d924c161b0c39
company/src/components/system/user/allocationEnterprises.vue
@@ -2,8 +2,8 @@
    <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>
@@ -23,7 +23,7 @@
<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',
@@ -47,7 +47,7 @@
                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 {
@@ -73,7 +73,7 @@
                    companyIdList: this.selectedIds
                })
                    .then(() => {
                        this.$tip.apiSuccess('角色配置成功,用户重新登录后生效')
                        this.$tip.apiSuccess('企业分配成功,用户重新登录后生效')
                        this.visible = false
                        this.$emit('success')
                    })
@@ -91,9 +91,14 @@
        }
    }
</script>
<style>
    .el-transfer-panel {
        width: 300px !important;
    }
</style>
<style scoped lang="scss">
    @import "@/assets/style/variables.scss";
    // 角色配置
    .global-window {
        .tip {