Files
PropertyDeployment/resources/Web/MicroCommunityWeb/html/components/frame/roleDiv/roleDiv.html
2025-12-09 20:22:03 +08:00

26 lines
1.4 KiB
HTML

<div class="bg-white margin-top-xs padding border-radius">
<div class=" ">
<button type="button" class="btn btn-primary btn-sm" v-on:click="openPrivilegeGroupModel()"
v-if="vc.hasPrivilege('502022082992870004,502022101896600200')">
<i class="fa fa-plus"></i><vc:i18n name="添加" namespace="roleDiv"></vc:i18n>
</button>
<button type="button" class="btn btn-primary btn-sm" v-on:click="openEditPrivilegeGroupModel()"
v-if="vc.hasPrivilege('502022082900130005,502022101845230203')">
<i class="fa fa-edit"></i><vc:i18n name="修改" namespace="roleDiv"></vc:i18n>
</button>
<button type="button" class="btn btn-primary btn-sm" v-on:click="openDeletePrivilegeGroupModel()"
v-if="vc.hasPrivilege('502022082926310006,502022101872720201')">
<i class="fa fa-close"></i><vc:i18n name="删除" namespace="roleDiv"></vc:i18n>
</button>
</div>
<div class="vc-org margin-top">
<ul>
<li v-for="(role,index) in roleDivInfo.roles" @click="_switchRole(role)"
:class="{'active':role.pgId == roleDivInfo.curRole.pgId}">{{role.name}}
</li>
</ul>
</div>
<vc:create path="dev/addPrivilegeGroup"></vc:create>
<vc:create path="dev/editPrivilegeGroup"></vc:create>
<vc:create path="dev/deletePrivilegeGroup"></vc:create>
</div>