Browse Source

添加角色标识

dev
long 2 years ago
parent
commit
8bd44bd236
  1. 4
      src/views/office/OfficeConfig.vue
  2. 8
      src/views/system/UserList.vue

4
src/views/office/OfficeConfig.vue

@ -23,7 +23,7 @@
<!-- 操作按钮区域 -->
<div class="table-operator" style="border-top: 5px">
<a-button @click="handleAdd" type="primary" icon="plus" v-has="'user:add'">添加科室</a-button>
<a-button @click="handleAdd" type="primary" icon="plus" >添加科室</a-button>
</div>
<!-- table区域-begin -->
@ -76,7 +76,7 @@
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)" v-has="'user:edit'">编辑</a>
<a @click="handleEdit(record)" >编辑</a>
<a-divider type="vertical"/>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>

8
src/views/system/UserList.vue

@ -113,7 +113,7 @@
解冻
</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px">
<a-button style="margin-left: 8px" v-has="'user:delete'">
批量操作
<a-icon type="down"/>
</a-button>
@ -189,19 +189,19 @@
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)" v-has="'user:delete'">
<a>删除</a>
</a-popconfirm>
</a-menu-item>
<a-menu-item v-if="record.status==1">
<a-popconfirm title="确定冻结吗?" @confirm="() => handleFrozen(record.id,2,record.username)">
<a-popconfirm title="确定冻结吗?" @confirm="() => handleFrozen(record.id,2,record.username)" v-has="'user:frost'">
<a>冻结</a>
</a-popconfirm>
</a-menu-item>
<a-menu-item v-if="record.status==2">
<a-popconfirm title="确定解冻吗?" @confirm="() => handleFrozen(record.id,1,record.username)">
<a-popconfirm title="确定解冻吗?" @confirm="() => handleFrozen(record.id,1,record.username)" v-has="'user:defrost'">
<a>解冻</a>
</a-popconfirm>
</a-menu-item>

Loading…
Cancel
Save