|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-dialog
|
|
|
- title="添加实物奖品"
|
|
|
+ title="添加实物商品"
|
|
|
width="1000px"
|
|
|
:visible.sync="dialogVisible"
|
|
|
:before-close="close"
|
|
@@ -13,16 +13,21 @@
|
|
|
placeholder="请输入商品名称"
|
|
|
clearable
|
|
|
size="small"
|
|
|
- style="width: 220px" @clear="queryParams.pageNum = 1;getGoodsList()"
|
|
|
- @keyup.enter.native="queryParams.pageNum = 1;getGoodsList()"
|
|
|
+ style="width: 220px" @clear="pageParams.pageNum = 1;getGoodsList()"
|
|
|
+ @keyup.enter.native="pageParams.pageNum = 1;getGoodsList()"
|
|
|
/>
|
|
|
<div style="margin-left: 20px">商品价格:</div>
|
|
|
-<!-- <el-input v-model="minValue" placeholder="最低价格" clearable @keyup.enter.native="pageParams.pageNum = 1;getList()" />-->
|
|
|
- <el-input style="width: 220px" v-model="queryParams.minValue" @clear="queryParams.pageNum = 1;getGoodsList()" placeholder="最低价格" clearable @keyup.enter.native="queryParams.pageNum = 1;getGoodsList()"/>
|
|
|
+ <el-input style="width: 220px" v-model="queryParams.minValue" @clear="pageParams.pageNum = 1;getGoodsList()" placeholder="最低价格" clearable @keyup.enter.native="pageParams.pageNum = 1;getGoodsList()"/>
|
|
|
<div style="width: 20px;text-align: center">-</div>
|
|
|
-<!-- <el-input v-model="maxValue" placeholder="最高价格" clearable @keyup.enter.native="pageParams.pageNum = 1;getList()" />-->
|
|
|
- <el-input style="width: 220px" v-model="queryParams.maxValue" @clear="queryParams.pageNum = 1;getGoodsList()" placeholder="最高价格" clearable @keyup.enter.native="queryParams.pageNum = 1;getGoodsList()"/>
|
|
|
-
|
|
|
+ <el-input style="width: 220px" v-model="queryParams.maxValue" @clear="pageParams.pageNum = 1;getGoodsList()" placeholder="最高价格" clearable @keyup.enter.native="pageParams.pageNum = 1;getGoodsList()"/>
|
|
|
+ </div>
|
|
|
+ <div class="dialog-search">
|
|
|
+ <div>商品类型:</div>
|
|
|
+ <el-select v-model="queryParams.type" placeholder="请选择商品类型" clearable @change="pageParams.pageNum = 1;getGoodsList()">
|
|
|
+ <el-option label="全部" value=""/>
|
|
|
+ <el-option label="实物商品" value="1"/>
|
|
|
+ <el-option label="卡密商品" value="2"/>
|
|
|
+ </el-select>
|
|
|
<div class="ge"></div>
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -61,7 +66,11 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="商品名称" prop="title" min-width="85" />
|
|
|
-
|
|
|
+ <el-table-column label="商品类型" min-width="85">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{ scope.row.type == 1 ? '实物商品':'卡密商品' }}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="商品价格" min-width="85">
|
|
|
<template slot-scope="scope">
|
|
|
<div>¥{{ $numberFormat(scope.row.value) }}</div>
|
|
@@ -126,7 +135,7 @@ export default {
|
|
|
"&pageSize=" +
|
|
|
this.pageParams.pageSize +
|
|
|
"&",
|
|
|
- { title: this.goodsTitle, status: "on", minValue: this.queryParams.minValue?accMul(this.queryParams.minValue, 100):this.queryParams.minValue, maxValue: this.queryParams.maxValue?accMul(this.queryParams.maxValue, 100):this.queryParams.maxValue,}
|
|
|
+ { title: this.goodsTitle, type: this.queryParams.type, status: "on", minValue: this.queryParams.minValue?accMul(this.queryParams.minValue, 100):this.queryParams.minValue, maxValue: this.queryParams.maxValue?accMul(this.queryParams.maxValue, 100):this.queryParams.maxValue,}
|
|
|
).then((res) => {
|
|
|
this.goodsList = res.rows.map((item) => {
|
|
|
return {
|