项目列表移除更多

This commit is contained in:
QuAoLi 2022-05-12 15:34:03 +08:00
parent f22e9da55b
commit f1093cb41c
1 changed files with 9 additions and 8 deletions

View File

@ -79,6 +79,8 @@
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a v-if="hasPerm('person:get')" @click="$refs.personDetail.detail(record)">详情</a> <a v-if="hasPerm('person:get')" @click="$refs.personDetail.detail(record)">详情</a>
<a-divider type="vertical" v-if="hasPerm('person:get')" /> <a-divider type="vertical" v-if="hasPerm('person:get')" />
<template v-if="orgType === 1">
<a-dropdown v-if="hasPerm('person:edit') || hasPerm('person:resetPwd') || hasPerm('person:del')"> <a-dropdown v-if="hasPerm('person:edit') || hasPerm('person:resetPwd') || hasPerm('person:del')">
<a class="ant-dropdown-link"> <a class="ant-dropdown-link">
更多 更多
@ -101,16 +103,15 @@
<a>删除</a> <a>删除</a>
</a-popconfirm> </a-popconfirm>
</a-menu-item> </a-menu-item>
</a-menu>
</a-dropdown>
</template>
<template v-if="orgType === 2"> <template v-if="orgType === 2">
<a-menu-item v-if="hasPerm('person:org:remove')">
<a-popconfirm placement="topRight" title="确认移除?" @confirm="() => personRemove(record)"> <a-popconfirm placement="topRight" title="确认移除?" @confirm="() => personRemove(record)">
<a>移除</a> <a>移除</a>
</a-popconfirm> </a-popconfirm>
</a-menu-item>
</template> </template>
</a-menu>
</a-dropdown>
</span> </span>
</s-table> </s-table>