[fix]页面优化-添加权限

develop
huyuanxiang 2 years ago
parent 4357c4fada
commit 05cef344f9

@ -11,7 +11,7 @@
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button @click="handleAdd" type="primary" icon="plus" v-has="'erp:addr_manager:add'"></a-button>
<a-button type="primary" icon="download" @click="handleExportXls('仓库地址')"></a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
@ -20,7 +20,7 @@
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
<a-menu-item v-has="'erp:addr_manager:delete'" key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>
@ -68,7 +68,7 @@
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)"></a>
<a v-has="'erp:addr_manager:edit'" @click="handleEdit(record)"></a>
<a-divider type="vertical" />
<a-dropdown>
@ -77,7 +77,7 @@
<a-menu-item>
<a @click="handleDetail(record)"></a>
</a-menu-item>
<a-menu-item>
<a-menu-item v-has="'erp:addr_manager:delete'">
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>

@ -20,7 +20,7 @@
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
<a-menu-item key="1" v-has="'erp:bbs:delete'" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>

@ -11,7 +11,7 @@
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button @click="handleAdd" v-has="'erp:goods:add'" type="primary" icon="plus"></a-button>
<a-button type="primary" icon="download" @click="handleExportXls('产品信息')"></a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
@ -20,7 +20,7 @@
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
<a-menu-item key="1" v-has="'erp:goods:delete'" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>
@ -68,7 +68,7 @@
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)"></a>
<a v-has="'erp:goods:edit'" @click="handleEdit(record)"></a>
<a-divider type="vertical" />
<a-dropdown>
@ -79,7 +79,7 @@
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a></a>
<a v-has="'erp:goods:delete'"></a>
</a-popconfirm>
</a-menu-item>
</a-menu>

@ -20,7 +20,7 @@
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
<a-menu-item key="1" v-has="'erp:order:delete'" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>

@ -166,7 +166,7 @@
deleteBatch: "/erp/shoppingCart/deleteBatch",
exportXlsUrl: "/erp/shoppingCart/exportXls",
importExcelUrl: "erp/shoppingCart/importExcel",
},
dictOptions:{},
superFieldList:[],

@ -38,7 +38,7 @@
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button v-has="'erp:store:add'" @click="handleAdd" type="primary" icon="plus"></a-button>
<a-button type="primary" icon="download" @click="handleExportXls('仓库管理')"></a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
@ -47,7 +47,7 @@
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
<a-menu-item v-has="'erp:store:delete'" key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>
@ -95,7 +95,7 @@
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)"></a>
<a v-has="'erp:store:edit'" @click="handleEdit(record)"></a>
<a-divider type="vertical" />
<a-dropdown>
@ -106,7 +106,7 @@
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a></a>
<a v-has="'erp:store:delete'"></a>
</a-popconfirm>
</a-menu-item>
</a-menu>

Loading…
Cancel
Save