|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<el-card style="margin: 15px">
|
|
|
- <a-row :gutter="5">
|
|
|
+ <a-row :gutter="15">
|
|
|
<a-col :span="4">
|
|
|
<leftTree @selected="getTreeData" />
|
|
|
</a-col>
|
|
|
@@ -39,26 +39,22 @@
|
|
|
</div>
|
|
|
<!-- 操作按钮区域 -->
|
|
|
<div class="table-operator" style="margin: 15px 0">
|
|
|
- <a-button type="primary" icon="plus" @click="handleAdd">新增</a-button>
|
|
|
- <a-button ghost type="danger" icon="download" @click="handleExportXls('角色信息')">导出</a-button>
|
|
|
- <a-upload
|
|
|
- name="file"
|
|
|
- :show-upload-list="false"
|
|
|
- :multiple="false"
|
|
|
- :headers="tokenHeader"
|
|
|
- :action="url.importExcelUrl"
|
|
|
- @change="handleImportExcel"
|
|
|
- >
|
|
|
- <a-button ghost type="danger" icon="import">导入</a-button>
|
|
|
- </a-upload>
|
|
|
+ <a-button v-permission="['pc:sys:worker:add']" type="primary" icon="plus" @click="handleAdd">新增</a-button>
|
|
|
+ <!-- <a-button ghost type="danger" icon="download" @click="handleExportXls('角色信息')">导出</a-button>-->
|
|
|
+ <!-- <a-upload-->
|
|
|
+ <!-- name="file"-->
|
|
|
+ <!-- :show-upload-list="false"-->
|
|
|
+ <!-- :multiple="false"-->
|
|
|
+ <!-- :headers="tokenHeader"-->
|
|
|
+ <!-- :action="url.importExcelUrl"-->
|
|
|
+ <!-- @change="handleImportExcel"-->
|
|
|
+ <!-- >-->
|
|
|
+ <!-- <a-button ghost type="danger" icon="import">导入</a-button>-->
|
|
|
+ <!-- </a-upload>-->
|
|
|
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
<a-menu slot="overlay">
|
|
|
- <a-menu-item key="1">
|
|
|
- <a-icon type="highlight" />
|
|
|
- 重置密码
|
|
|
- </a-menu-item>
|
|
|
- <a-menu-item key="2" @click="batchDel">
|
|
|
+ <a-menu-item key="1" v-permission="['pc:sys:worker:delete']" @click="batchDel">
|
|
|
<a-icon type="delete" />
|
|
|
批量删除
|
|
|
</a-menu-item>
|
|
|
@@ -105,7 +101,7 @@
|
|
|
/>
|
|
|
</template>
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
- <a-button size="small" type="primary" @click="handleEdit(record)">
|
|
|
+ <a-button v-permission="['pc:sys:worker:edit']" size="small" type="primary" @click="handleEdit(record)">
|
|
|
编辑
|
|
|
</a-button>
|
|
|
<a-divider type="vertical" />
|
|
|
@@ -128,7 +124,11 @@
|
|
|
</a-menu>
|
|
|
</a-dropdown>
|
|
|
<a-divider type="vertical" />
|
|
|
- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
|
+ <a-popconfirm
|
|
|
+ v-permission="['pc:sys:worker:delete']"
|
|
|
+ title="确定删除吗?"
|
|
|
+ @confirm="() => handleDelete(record.id)"
|
|
|
+ >
|
|
|
<a-button size="small" type="danger">
|
|
|
删除
|
|
|
</a-button>
|