|
@@ -2,10 +2,10 @@
|
|
|
<el-card style="margin: 15px">
|
|
<el-card style="margin: 15px">
|
|
|
<!-- 操作按钮区域 -->
|
|
<!-- 操作按钮区域 -->
|
|
|
<div class="table-operator" style="margin: 5px 0;float: right">
|
|
<div class="table-operator" style="margin: 5px 0;float: right">
|
|
|
- <a-button type="primary" icon="plus" @click="handleAdd">新增</a-button>
|
|
|
|
|
|
|
+ <a-button v-permission="['pc:sys:menu:add']" type="primary" icon="plus" @click="handleAdd">新增</a-button>
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
<a-menu slot="overlay">
|
|
<a-menu slot="overlay">
|
|
|
- <a-menu-item key="1" @click="batchDel">
|
|
|
|
|
|
|
+ <a-menu-item key="1" v-permission="['pc:sys:menu:delete']" @click="batchDel">
|
|
|
<a-icon type="delete" />
|
|
<a-icon type="delete" />
|
|
|
删除
|
|
删除
|
|
|
</a-menu-item>
|
|
</a-menu-item>
|
|
@@ -37,7 +37,8 @@
|
|
|
<!-- table区域-begin -->
|
|
<!-- table区域-begin -->
|
|
|
<div>
|
|
<div>
|
|
|
<div class="ant-alert ant-alert-info" style="margin: 16px 0;">
|
|
<div class="ant-alert ant-alert-info" style="margin: 16px 0;">
|
|
|
- <i class="anticon anticon-info-circle ant-alert-icon" /> 已选择 <a style="font-weight: 600">{{
|
|
|
|
|
|
|
+ <i class="anticon anticon-info-circle ant-alert-icon" />
|
|
|
|
|
+ 已选择 <a style="font-weight: 600">{{
|
|
|
selectedRowKeys.length }}</a>项
|
|
selectedRowKeys.length }}</a>项
|
|
|
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
|
|
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
|
|
|
</div>
|
|
</div>
|
|
@@ -75,11 +76,15 @@
|
|
|
/>
|
|
/>
|
|
|
</template>
|
|
</template>
|
|
|
<span slot="action" slot-scope="text, record">
|
|
<span slot="action" slot-scope="text, record">
|
|
|
- <a-button size="small" type="primary" @click="handleEdit(record)">
|
|
|
|
|
|
|
+ <a-button v-permission="['pc:sys:menu:edit']" size="small" type="primary" @click="handleEdit(record)">
|
|
|
编辑
|
|
编辑
|
|
|
</a-button>
|
|
</a-button>
|
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
|
- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.menuId)">
|
|
|
|
|
|
|
+ <a-popconfirm
|
|
|
|
|
+ v-permission="['pc:sys:menu:delete']"
|
|
|
|
|
+ title="确定删除吗?"
|
|
|
|
|
+ @confirm="() => handleDelete(record.menuId)"
|
|
|
|
|
+ >
|
|
|
<a-button size="small" type="danger">
|
|
<a-button size="small" type="danger">
|
|
|
删除
|
|
删除
|
|
|
</a-button>
|
|
</a-button>
|
|
@@ -97,6 +102,7 @@ import { listMixin } from '@/mixin/listMixin'
|
|
|
import columns from './indexColumns'
|
|
import columns from './indexColumns'
|
|
|
import CheckAndEditModel from './CheckAndEditModel'
|
|
import CheckAndEditModel from './CheckAndEditModel'
|
|
|
import { httpAction } from '@/api/request'
|
|
import { httpAction } from '@/api/request'
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
CheckAndEditModel
|
|
CheckAndEditModel
|