|
|
|
@ -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>
|
|
|
|
|