Commit e87c51f0 by chenwq

优惠券

1 parent 1b91ee1e
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</glsx-combi-form> </glsx-combi-form>
<GLTable ref="coupon" :hasNum="false" :getListApi="getListApi" :searchForm="searchForm" :tableParams="associationTableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun"> <GLTable ref="coupon" :hasNum="false" :getListApi="getListApi" :searchForm="searchForm" :tableParams="associationTableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<div slot="association" slot-scope="scope" class="association"> <div slot="association" slot-scope="scope" class="association">
<el-radio :label="scope.scope.id" v-model="associationRadio" @change.native="getCurrentRow()"></el-radio> <el-radio :label="scope.scope.id" v-model="associationRadio" @change.native="getCouponInfo()"></el-radio>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -91,9 +91,8 @@ ...@@ -91,9 +91,8 @@
<el-tooltip effect="dark" :content="editForm.relatedCouponName" placement="bottom"> <el-tooltip effect="dark" :content="editForm.relatedCouponName" placement="bottom">
<span class="associationLists-X">{{ editForm.relatedCouponName }}</span> <span class="associationLists-X">{{ editForm.relatedCouponName }}</span>
</el-tooltip> </el-tooltip>
<span class="associationLists-X">{{ editForm.relatedDiscountType }}</span> <span class="associationLists-X">{{ editForm.relatedDiscountType }}</span>
<span class="associationLists-X">{{ editForm.relatedUseChannel }}</span> <span class="associationLists-X">{{ editForm.relatedUseChannel || '-' }}</span>
<span class="associationLists" v-if="routeInfo.addOrEdit !== 3"> <span class="associationLists" v-if="routeInfo.addOrEdit !== 3">
<el-button type="text" @click="del()">删除</el-button> <el-button type="text" @click="del()">删除</el-button>
</span> </span>
...@@ -367,7 +366,7 @@ export default { ...@@ -367,7 +366,7 @@ export default {
label: '使用途径', label: '使用途径',
prop: 'useChannel', prop: 'useChannel',
formatter: cellValue => { formatter: cellValue => {
var useChannel = '' var useChannel = '-'
if (cellValue.useChannel) { if (cellValue.useChannel) {
useChannel = this.associationBaseData.useChannelList.find(item => item.confId == cellValue.useChannel).confName useChannel = this.associationBaseData.useChannelList.find(item => item.confId == cellValue.useChannel).confName
} }
...@@ -953,7 +952,7 @@ export default { ...@@ -953,7 +952,7 @@ export default {
this.associationRadio = this.editForm.relatedCouponId this.associationRadio = this.editForm.relatedCouponId
this.dialogTableVisible = false this.dialogTableVisible = false
}, },
getCurrentRow() { getCouponInfo() {
//获取选中数据 //获取选中数据
// this.radio // this.radio
let inx = this.templateSelection.findIndex(value => value.id == this.associationRadio) let inx = this.templateSelection.findIndex(value => value.id == this.associationRadio)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!