[update] 部门配置

This commit is contained in:
zhaomeijing
2022-05-25 09:40:50 +08:00
parent f00bce4f19
commit 29a9df0403
2 changed files with 168 additions and 1 deletions
+17 -1
View File
@@ -85,7 +85,7 @@
<!-- </a-upload>-->
<!-- <a-button type="primary" icon="hdd" @click="recycleBinVisible=true">{{$t('recycleBin')}}</a-button>-->
<a-button type="primary" icon="hdd" @click="RoleAssignment">{{$t('RoleAssignment')}}</a-button>
<a-button type="primary" icon="hdd" @click="recycleBinVisible=true">{{$t('departmentAllocation')}}</a-button>
<a-button type="primary" icon="hdd" @click="departmentAllocation">{{$t('departmentAllocation')}}</a-button>
<!-- <div @click="handleExportXls($t('userInformation'))" class="operator-text">-->
<!-- <a-icon type="export" :rotate="-90"/>-->
<!-- {{$t('export')}}-->
@@ -127,11 +127,16 @@
<a-modal v-model="rolevisible" :title="$t('RoleAssignment')" width='650px' :footer="null">
<role-assignment v-if='rolevisible' :selectedRowKeysArray='selectedRowKeys'></role-assignment>
</a-modal>
<!-- 部门配置 -->
<a-modal v-model="departmentvisible" :title="$t('RoleAssignment')" width='650px' :footer="null">
<department-allocation v-if='departmentvisible' :selectedRowKeysArray='selectedRowKeys'></department-allocation>
</a-modal>
</a-card>
</template>
<script>
import RoleAssignment from './modules/RoleAssignment'
import DepartmentAllocation from './modules/departmentAllocation'
import UserModal from './modules/UserModal'
import PasswordModal from './modules/PasswordModal'
import { putAction, getFileAccessHttpUrl } from '@/api/manage'
@@ -145,6 +150,7 @@
name: 'UserList',
mixins: [JeroListMixin],
components: {
DepartmentAllocation,
RoleAssignment,
UserModal,
PasswordModal,
@@ -159,6 +165,7 @@
recycleBinVisible: false,
toggleSearchStatus:false,
rolevisible: false, // 角色配置得弹框
departmentvisible: false, // 部门配置得弹框
selectedRowKeys: [],
selectedRowKeysvalue: [],
columns: [
@@ -254,6 +261,15 @@
this.selectedRowKeys = val
this.selectedRowKeysvalue = value
},
// 部门配置
departmentAllocation() {
if(this.selectedRowKeys.length == 0) {
this.$message.warning(this.$t('selectLeastOne'))
} else {
this.departmentvisible = true
}
},
// 角色配置
RoleAssignment: function(){
if(this.selectedRowKeys.length == 0) {
this.$message.warning(this.$t('selectLeastOne'))