Commit e14b38c2 authored by chenjundi's avatar chenjundi

赠品领取数量跳转领取记录

parent fa4f0d9a
......@@ -39,7 +39,13 @@
<el-table-column prop="gift_num" label="赠品总数">
</el-table-column>
<el-table-column prop="stock_num" label="库存数量"></el-table-column>
<el-table-column prop="get_num" label="领取数量"></el-table-column>
<el-table-column prop="get_num" label="领取数量">
<template slot-scope="scope">
<router-link class="get_num" :to="{name:'gitDeliverRecord', query: { id: scope.row.id}}" >
{{scope.row.get_num}}
</router-link>
</template>
</el-table-column>
<el-table-column prop="status" label="状态">
<template slot-scope="scope">
<div v-if="scope.row.status == 1">上架</div>
......@@ -181,4 +187,7 @@
.container {
padding: 20px;
}
.get_num {
color: #409EFF;
}
</style>
......@@ -82,6 +82,7 @@
data() {
return {
searchFrom: {
gift_id: '',
gift_name: '',
gift_type: '',
periods_title: '',
......@@ -98,6 +99,7 @@
methods: {
getRecordList() {
let json = {
gift_id: this.searchFrom.gift_id,
gift_name: this.searchFrom.gift_name,
gift_type: this.searchFrom.gift_type,
periods_title: this.searchFrom.periods_title,
......@@ -136,6 +138,10 @@
},
},
created() {
let _query = this.$route.query;
if (_query && _query.id) {
this.searchFrom.gift_id = _query.id;
}
this.getRecordList();
}
}
......
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