|
@@ -59,6 +59,7 @@
|
|
<a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productInfoList-refresh">查询</a-button>
|
|
<a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productInfoList-refresh">查询</a-button>
|
|
<a-button style="margin: 0 0 18px 5px" @click="resetSearchForm" :disabled="disabled" id="productInfoList-reset">重置</a-button>
|
|
<a-button style="margin: 0 0 18px 5px" @click="resetSearchForm" :disabled="disabled" id="productInfoList-reset">重置</a-button>
|
|
<a-button
|
|
<a-button
|
|
|
|
+ v-if="$hasPermissions('B_productInfo_export')"
|
|
style="margin-left: 5px"
|
|
style="margin-left: 5px"
|
|
type="primary"
|
|
type="primary"
|
|
class="button-warning"
|
|
class="button-warning"
|
|
@@ -76,10 +77,11 @@
|
|
</div>
|
|
</div>
|
|
<!-- 操作按钮 -->
|
|
<!-- 操作按钮 -->
|
|
<div class="table-operator">
|
|
<div class="table-operator">
|
|
- <a-button id="productInfoList-add" type="primary" class="button-error" @click="handleEdit()">新增</a-button>
|
|
|
|
|
|
+ <a-button id="productInfoList-add" type="primary" v-if="$hasPermissions('B_productInfo_add')" class="button-error" @click="handleEdit()">新增</a-button>
|
|
<a-button
|
|
<a-button
|
|
id="productInfoList-batchAudit"
|
|
id="productInfoList-batchAudit"
|
|
type="primary"
|
|
type="primary"
|
|
|
|
+ v-if="$hasPermissions('B_productInfo_batchAudit')"
|
|
class="button-warning"
|
|
class="button-warning"
|
|
:loading="loadingAudit"
|
|
:loading="loadingAudit"
|
|
@click="handleBatchAudit"
|
|
@click="handleBatchAudit"
|
|
@@ -87,6 +89,7 @@
|
|
<a-button
|
|
<a-button
|
|
id="productInfoList-batchLaunch"
|
|
id="productInfoList-batchLaunch"
|
|
type="primary"
|
|
type="primary"
|
|
|
|
+ v-if="$hasPermissions('B_productInfo_batchLaunch')"
|
|
class="button-primary"
|
|
class="button-primary"
|
|
:loading="loadingLaunch"
|
|
:loading="loadingLaunch"
|
|
@click="handleBatchLaunch"
|
|
@click="handleBatchLaunch"
|
|
@@ -94,15 +97,15 @@
|
|
<a-button
|
|
<a-button
|
|
id="productInfoList-batchDownline"
|
|
id="productInfoList-batchDownline"
|
|
type="primary"
|
|
type="primary"
|
|
|
|
+ v-if="$hasPermissions('B_productInfo_batchDownline')"
|
|
class="button-grey"
|
|
class="button-grey"
|
|
:loading="loadingDownline"
|
|
:loading="loadingDownline"
|
|
@click="handleBatchDownline"
|
|
@click="handleBatchDownline"
|
|
style="margin: 0 15px;">批量下线</a-button>
|
|
style="margin: 0 15px;">批量下线</a-button>
|
|
- <span style="margin-left: 8px">
|
|
|
|
|
|
+ <span style="margin-left: 8px" v-if="$hasPermissions('B_productInfo_batchAudit') || $hasPermissions('B_productInfo_batchLaunch') || $hasPermissions('B_productInfo_batchDownline')">
|
|
<template v-if="hasSelected">{{ `已选 ${selectedRowKeys.length} 项` }}</template>
|
|
<template v-if="hasSelected">{{ `已选 ${selectedRowKeys.length} 项` }}</template>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
- <!-- 列表 -->
|
|
|
|
<s-table
|
|
<s-table
|
|
class="sTable"
|
|
class="sTable"
|
|
ref="table"
|
|
ref="table"
|
|
@@ -140,33 +143,46 @@
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
- v-if="record.state=='WAIT'"
|
|
|
|
|
|
+ v-if="record.state=='WAIT' && $hasPermissions('B_productInfo_audit')"
|
|
class="button-warning"
|
|
class="button-warning"
|
|
@click="handleAudit(record)"
|
|
@click="handleAudit(record)"
|
|
id="productInfoList-audit-btn">审核</a-button>
|
|
id="productInfoList-audit-btn">审核</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
- v-if="record.state=='WAIT_ONLINE'||record.state=='OFFLINE'"
|
|
|
|
|
|
+ v-if="(record.state=='WAIT_ONLINE'||record.state=='OFFLINE') && $hasPermissions('B_productInfo_launch')"
|
|
class="button-primary"
|
|
class="button-primary"
|
|
@click="handleLaunch(record)"
|
|
@click="handleLaunch(record)"
|
|
id="productInfoList-launch-btn">上线</a-button>
|
|
id="productInfoList-launch-btn">上线</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
- v-if="record.state=='ONLINE'"
|
|
|
|
|
|
+ v-if="record.state=='ONLINE' && $hasPermissions('B_productInfo_downline')"
|
|
class="button-grey"
|
|
class="button-grey"
|
|
@click="handleDownline(record)"
|
|
@click="handleDownline(record)"
|
|
id="productInfoList-downline-btn">下线</a-button>
|
|
id="productInfoList-downline-btn">下线</a-button>
|
|
- <a-button size="small" type="link" class="button-info" @click="handleEdit(record)" id="productInfoList-edit-btn">编辑</a-button>
|
|
|
|
- <a-button size="small" type="link" class="button-success" @click="handleDetail(record)" id="productInfoList-detail-btn">详情</a-button>
|
|
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
- v-if="record.state=='WAIT'"
|
|
|
|
|
|
+ v-if="$hasPermissions('B_productInfo_edit')"
|
|
|
|
+ class="button-info"
|
|
|
|
+ @click="handleEdit(record)"
|
|
|
|
+ id="productInfoList-edit-btn">编辑</a-button>
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ v-if="$hasPermissions('B_productInfo_detail')"
|
|
|
|
+ class="button-success"
|
|
|
|
+ @click="handleDetail(record)"
|
|
|
|
+ id="productInfoList-detail-btn">详情</a-button>
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ v-if="record.state=='WAIT' && $hasPermissions('B_productInfo_del')"
|
|
class="button-error"
|
|
class="button-error"
|
|
@click="handleDel(record)"
|
|
@click="handleDel(record)"
|
|
id="productInfoList-del-btn">删除</a-button>
|
|
id="productInfoList-del-btn">删除</a-button>
|
|
|
|
+ <span v-if="!(record.state=='WAIT' && $hasPermissions('B_productInfo_audit')) && !((record.state=='WAIT_ONLINE'||record.state=='OFFLINE') && $hasPermissions('B_productInfo_launch')) && !(record.state=='ONLINE' && $hasPermissions('B_productInfo_downline')) && !$hasPermissions('B_productInfo_edit') && !$hasPermissions('B_productInfo_detail') && !(record.state=='WAIT' && $hasPermissions('B_productInfo_del'))">--</span>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
</a-spin>
|
|
</a-spin>
|