Commit 2c67652f by crushh

update: 兑换次数换按钮

parent e7c51cef
......@@ -211,10 +211,7 @@
min-width="110px"
>
<template slot-scope="scope">
<el-button type="text" @click="goRecord(scope.row)">
{{ scope.row.allExchangeNumber }}
</el-button>
<!-- <p>{{ scope.row.allExchangeNumber }}</p> -->
<p>{{ scope.row.allExchangeNumber }}</p>
</template>
</el-table-column>
<el-table-column
......@@ -328,7 +325,9 @@
>
<span class="el-dropdown-link" style="color:#1890ff;cursor: pointer;"> <i class="el-icon-more" /> </span>
<el-dropdown-menu slot="dropdown" style="width:110px;">
<!-- <el-dropdown-item command="1" v-if="scope.row.changeType === '5' && scope.row.canEdit">券码</el-dropdown-item> -->
<el-dropdown-item command="1" v-if="$getButtonLimit($buttonCode.couponConversion)">
查看订单
</el-dropdown-item>
<el-dropdown-item command="2" v-if="scope.row.isDifferentialPricing && $getButtonLimit($buttonCode.couponTieredPricing)" :limit-code="$buttonCode.couponTieredPricing">
阶梯价
</el-dropdown-item>
......@@ -574,7 +573,9 @@ export default {
});
},
handleCommand (command, item, index) {
if (command == 2) {
if (command == 1) {
this.goRecord(item);
} else if (command == 2) {
this.ladderList(item);
} else if (command == 3) {
this.$confirm('<div>确认删除该商品吗?</div>', '提示', {
......
......@@ -161,8 +161,8 @@
<i
class="el-icon-edit"
@click="editProName(scope.row)"
v-if="$getButtonLimit($buttonCode.gifRename)"
:limit-code="$buttonCode.gifRename"
v-if="$getButtonLimit($buttonCode.giftRename)"
:limit-code="$buttonCode.giftRename"
/>
</p>
</el-tooltip>
......@@ -256,15 +256,7 @@
min-width="110px"
>
<template slot-scope="scope">
<!-- <p>{{ scope.row.allExchangeNumber }}</p>
-->
<el-button
type="text"
@click="goRecord(scope.row)"
>
{{ scope.row.allExchangeNumber }}
</el-button>
<!-- <a :href="windowUrl + '/member/#/wechatmemberDetail?memberId=' + scope.row.memberId" target="_blank">{{ scope.row.cardNum }}</a> -->
<p>{{ scope.row.allExchangeNumber }}</p>
</template>
</el-table-column>
<el-table-column prop="createTime" label="创建时间" min-width="110px">
......@@ -369,13 +361,16 @@
>
<span class="el-dropdown-link" style="color:#1890ff;cursor: pointer;"> <i class="el-icon-more" /> </span>
<el-dropdown-menu slot="dropdown" style="width:110px;">
<el-dropdown-item command="1" v-if="scope.row.changeType === '5' && scope.row.canEdit && $getButtonLimit($buttonCode.giftCouponCode)" :limit-code="$buttonCode.giftCouponCode">
<el-dropdown-item command="1" v-if="$getButtonLimit($buttonCode.couponConversion)">
查看订单
</el-dropdown-item>
<el-dropdown-item command="2" v-if="scope.row.changeType === '5' && scope.row.canEdit && $getButtonLimit($buttonCode.giftCouponCode)" :limit-code="$buttonCode.giftCouponCode">
券码
</el-dropdown-item>
<el-dropdown-item command="2" v-if="scope.row.isDifferentialPricing && $getButtonLimit($buttonCode.giftTieredPricing)" :limit-code="$buttonCode.giftTieredPricing">
<el-dropdown-item command="3" v-if="scope.row.isDifferentialPricing && $getButtonLimit($buttonCode.giftTieredPricing)" :limit-code="$buttonCode.giftTieredPricing">
阶梯价
</el-dropdown-item>
<el-dropdown-item command="3" v-if="scope.row.canEdit && $getButtonLimit($buttonCode.giftDelete)" :limit-code="$buttonCode.giftDelete">
<el-dropdown-item command="4" v-if="scope.row.canEdit && $getButtonLimit($buttonCode.giftDelete)" :limit-code="$buttonCode.giftDelete">
删除
</el-dropdown-item>
</el-dropdown-menu>
......@@ -611,10 +606,12 @@ export default {
},
handleCommand (command, item, index) {
if (command == 1) {
this.getCouponList(item.integralMallProId);
this.goRecord(item);
} else if (command == 2) {
this.ladderList(item);
this.getCouponList(item.integralMallProId);
} else if (command == 3) {
this.ladderList(item);
} else if (command == 4) {
this.$confirm('<div>确认删除该商品吗?</div>', '提示', {
closeOnClickModal: false,
showClose: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment