角色管理
This commit is contained in:
@@ -51,6 +51,29 @@
|
|||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
<span slot="action" slot-scope="text, record">
|
||||||
|
<a @click="handleOpen(record)">{{$t('user')}}</a>
|
||||||
|
<a-divider type="vertical"/>
|
||||||
|
|
||||||
|
<a-dropdown>
|
||||||
|
<a class="ant-dropdown-link">
|
||||||
|
{{$t('more')}} <a-icon type="down"/>
|
||||||
|
</a>
|
||||||
|
<a-menu slot="overlay">
|
||||||
|
<a-menu-item>
|
||||||
|
<a @click="handlePerssion(record.id)">{{$t('toGrantAuthorization')}}</a>
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item>
|
||||||
|
<a @click="handleEdit(record)">{{$t('edit')}}</a>
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item>
|
||||||
|
<a-popconfirm :title="$t('areYouSure')" @confirm="() => handleDelete1(record.id)">
|
||||||
|
<a>{{$t('delete')}}</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-menu-item>
|
||||||
|
</a-menu>
|
||||||
|
</a-dropdown>
|
||||||
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- 右侧的角色权限配置 -->
|
<!-- 右侧的角色权限配置 -->
|
||||||
@@ -144,13 +167,14 @@
|
|||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return moment(text).format('YYYY-MM-DD')
|
return moment(text).format('YYYY-MM-DD')
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('operation'),
|
||||||
|
width: 100,
|
||||||
|
dataIndex: 'action',
|
||||||
|
align: 'center',
|
||||||
|
scopedSlots: { customRender: 'action' }
|
||||||
}
|
}
|
||||||
// {
|
|
||||||
// title: this.$t('operation'),
|
|
||||||
// dataIndex: 'action',
|
|
||||||
// align: 'center',
|
|
||||||
// scopedSlots: { customRender: 'action' }
|
|
||||||
// }
|
|
||||||
],
|
],
|
||||||
// 高级查询拼接条件
|
// 高级查询拼接条件
|
||||||
superQueryMatchType2: 'and',
|
superQueryMatchType2: 'and',
|
||||||
|
|||||||
Reference in New Issue
Block a user