|
@@ -3,8 +3,8 @@
|
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
|
<!-- 操作按钮 -->
|
|
|
<div class="table-operator">
|
|
|
- <a-button id="intelligentReplenishmentList-add" type="primary" class="button-error" @click="handleEdit()">新增</a-button>
|
|
|
- <a-button id="intelligentReplenishmentList-set" type="primary" class="button-warning" @click="handleSet">基础信息设置</a-button>
|
|
|
+ <a-button v-if="$hasPermissions('B_intelligentReplenishment_add')" id="intelligentReplenishmentList-add" type="primary" class="button-error" @click="handleEdit()">新增</a-button>
|
|
|
+ <a-button v-if="$hasPermissions('B_intelligentReplenishment_set')" id="intelligentReplenishmentList-set" type="primary" class="button-warning" @click="handleSet">基础信息设置</a-button>
|
|
|
</div>
|
|
|
<a-alert type="info" showIcon style="margin-bottom:15px">
|
|
|
<div slot="message">为保证系统性能,仅保留最近10次的预测结果</div>
|
|
@@ -25,21 +25,21 @@
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-info"
|
|
|
- v-if="record.state == 'WAIT'"
|
|
|
+ v-if="record.state == 'WAIT' && $hasPermissions('B_intelligentReplenishment_edit')"
|
|
|
@click="handleEdit(record)"
|
|
|
id="intelligentReplenishmentList-edit-btn">编辑</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-error"
|
|
|
- v-if="record.state == 'WAIT'"
|
|
|
+ v-if="record.state == 'WAIT' && $hasPermissions('B_intelligentReplenishment_del')"
|
|
|
@click="handleDel(record)"
|
|
|
id="intelligentReplenishmentList-del-btn">删除</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-success"
|
|
|
- v-if="record.state != 'WAIT'"
|
|
|
+ v-if="record.state != 'WAIT' && $hasPermissions('B_intelligentReplenishment_detail')"
|
|
|
@click="handleDetail(record)"
|
|
|
id="customerManagementList-detail-btn">详情</a-button>
|
|
|
<a-button
|
|
@@ -47,7 +47,7 @@
|
|
|
type="link"
|
|
|
class="button-warning"
|
|
|
:loading="downloadLoading"
|
|
|
- v-if="record.state == 'FINISH'"
|
|
|
+ v-if="record.state == 'FINISH' && $hasPermissions('B_intelligentReplenishment_down')"
|
|
|
@click="handleDownload(record)"
|
|
|
id="chainTransferInList-download-btn">结果下载</a-button>
|
|
|
</template>
|