修改用户管理角色管理

This commit is contained in:
qq787203167
2022-03-04 11:51:59 +08:00
parent 3996804acf
commit e07ce9b643
4 changed files with 99 additions and 81 deletions
+9 -5
View File
@@ -26,6 +26,7 @@
<template>
<!-- <a-dropdown :trigger="[this.dropTrigger]" @visibleChange="dropStatus">-->
<!-- checkable-->
<!-- :expandedKeys="iExpandedKeys" -->
<a-tree
multiple
style="height:600px;overflow: auto;width: 100%"
@@ -37,7 +38,6 @@
:treeData="departTree"
:checkStrictly="checkStrictly"
:autoExpandParent="false"
:expandedKeys="iExpandedKeys"
@expand="onExpand"/>
<!--新增右键点击事件,和增加添加和删除功能-->
<!-- <a-menu slot="overlay">-->
@@ -134,19 +134,22 @@
:labelCol="labelCol"
:wrapperCol="wrapperCol"
:label="$t('phoneNumber')">
<a-input :disabled="disable" :placeholder="$t('enterMobileNumber')" v-decorator="['mobile', {'initialValue':''}]"/>
<a-input :disabled="disable" :placeholder="$t('enterMobileNumber')"
v-decorator="['mobile', {'initialValue':''}]"/>
</a-form-item>
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
:label="$t('address')">
<a-input :disabled="disable" :placeholder="$t('enterAddress')" v-decorator="['address', {'initialValue':''}]"/>
<a-input :disabled="disable" :placeholder="$t('enterAddress')"
v-decorator="['address', {'initialValue':''}]"/>
</a-form-item>
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
:label="$t('remarks')">
<a-textarea :disabled="disable" :placeholder="$t('enterComments')" v-decorator="['memo', {'initialValue':''}]"/>
<a-textarea :disabled="disable" :placeholder="$t('enterComments')"
v-decorator="['memo', {'initialValue':''}]"/>
</a-form-item>
</a-form>
<!-- <div class="anty-form-btn">-->
@@ -280,7 +283,7 @@
importExcelUrl: 'sys/sysDepart/importExcel'
},
orgCategoryDisabled: false,
recordTab:{},
recordTab: {}
}
},
computed: {
@@ -657,6 +660,7 @@
background: #fff;
border-radius: 0 0 2px 2px;
}
.box-ant {
margin-right: 0 !important;
}
+17 -4
View File
@@ -40,6 +40,7 @@
<div style="margin-top: 15px">
<a-table
ref="table"
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
@@ -106,22 +107,34 @@
selectionRows2: [],
test: {},
rightcolval: 0,
columns:
[
columns: [
{
title: this.$t('serialNumber'),
dataIndex: '',
key: 'rowIndex',
width: 20,
align: 'center',
customRender: function(t, r, index) {
return parseInt(index) + 1
}
},
{
title: this.$t('RoleCode'),
align: 'center',
dataIndex: 'roleCode'
dataIndex: 'roleCode',
width: 180
},
{
title: this.$t('roleName'),
align: 'center',
dataIndex: 'roleName'
dataIndex: 'roleName',
width: 180
},
{
title: this.$t('createTime'),
dataIndex: 'createTime',
align: 'center',
width: 180,
sorter: true,
customRender: (text) => {
return moment(text).format('YYYY-MM-DD')
+1 -1
View File
@@ -74,6 +74,7 @@
<!-- table区域-begin -->
<div>
<!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"-->
<a-table
ref="table"
rowKey="id"
@@ -81,7 +82,6 @@
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<template slot="avatarslot" slot-scope="text, record, index">
@@ -139,13 +139,14 @@
align: "center",
dataIndex: 'phone'
},
{
title: this.$t('operation'),
dataIndex: 'action',
scopedSlots: {customRender: 'action'},
align: "center",
width: 150
}],
// {
// title: this.$t('operation'),
// dataIndex: 'action',
// scopedSlots: {customRender: 'action'},
// align: "center",
// width: 150
// }
],
url: {
list: "/sys/user/departUserList",
edit: "/sys/user/editSysDepartWithUser",