Commit e142f6f6 authored by Mac's avatar Mac

1

parent 89fe3655
...@@ -357,7 +357,7 @@ ...@@ -357,7 +357,7 @@
this.msg.value.push(res.data.data.StartTime) this.msg.value.push(res.data.data.StartTime)
this.msg.value.push(res.data.data.EndTime) this.msg.value.push(res.data.data.EndTime)
this.msg.Way = res.data.data.Way.toString() this.msg.Way = res.data.data.Way.toString()
this.msg.ActiveObject = res.data.data.ActiveObject.toString() this.msg.ActiveObject =res.data.data.ActiveObject && res.data.data.ActiveObject.toString()
if (res.data.data.RangeType == 1) { if (res.data.data.RangeType == 1) {
...@@ -366,8 +366,8 @@ ...@@ -366,8 +366,8 @@
this.getProductCategoryTreeList(); this.getProductCategoryTreeList();
for (let i = 0; i < ProductList.length; i++) { for (let i = 0; i < ProductList.length; i++) {
this.checkedkeys.push(ProductList[i].Id) this.checkedkeys.push(ProductList[i].Id)
var objList = this.getObjById(this.ProductCategoryTreeList, ProductList[i].Id); var objList = this.getObjById(this.ProductCategoryTreeList, ProductList[i].Id);
if (objList) { if (objList) {
this.AppointList.push({ this.AppointList.push({
ProductId: objList.Id, ProductId: objList.Id,
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<div class="el-card__header"> <div class="el-card__header">
<span>活动管理</span> <span>活动管理</span>
<div style="display: flex;flex-direction: row;align-items: center"> <div style="display: flex;flex-direction: row;align-items: center">
<el-button type="primary" class="el-button--small" @click="gowinning()">中奖列表</el-button>
<el-button type="primary" class="el-button--small" @click="addRecharge">新增</el-button> <el-button type="primary" class="el-button--small" @click="addRecharge">新增</el-button>
</div> </div>
</div> </div>
...@@ -200,6 +201,10 @@ ...@@ -200,6 +201,10 @@
addRecharge(){ addRecharge(){
this.$router.push('/AddsetupActicity'); this.$router.push('/AddsetupActicity');
},
gowinning(){
this.$router.push('/winningList');
}, },
grant(row,type){ grant(row,type){
this.apipost( this.apipost(
......
...@@ -18,20 +18,27 @@ ...@@ -18,20 +18,27 @@
</el-input> </el-input>
<span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span> <span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
</div> </div>
<!-- <div class="searchInput" style="width:250px">-->
<!-- <el-input style="display:inline-block;width:225px;height:30px"-->
<!-- placeholder="请输入用户ID"-->
<!-- v-model="msg.UserId"-->
<!-- size="small"-->
<!-- @clear="getList"-->
<!-- @keyup.enter.native="getList"-->
<!-- clearable>-->
<!-- </el-input>-->
<!-- <span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>-->
<!-- </div>-->
<span style="margin-left:15px">状态:</span>
<el-select size="small" v-model="msg.UserId" :filter-method="ChangeListName" filterable @change="getList"
placeholder="请选择">
<el-option label="不限" :value="0"></el-option>
<el-option v-for="item in tableData2" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
<div class="searchInput" style="width:250px"> <div class="searchInput" style="width:250px">
<el-input style="display:inline-block;width:225px;height:30px" <el-input style="display:inline-block;width:225px;height:30px"
placeholder="请输入用户ID" placeholder="请输入中奖码"
v-model="msg.UserId"
size="small"
@clear="getList"
@keyup.enter.native="getList"
clearable>
</el-input>
<span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
</div>
<div class="searchInput" style="width:250px">
<el-input style="display:inline-block;width:225px;height:30px"
placeholder="请输入验证码"
v-model="msg.Code" v-model="msg.Code"
size="small" size="small"
@clear="getList" @clear="getList"
...@@ -73,7 +80,9 @@ ...@@ -73,7 +80,9 @@
label="封面图"> label="封面图">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="app-image" :style="{backgroundImage:'url(' + scope.row.CoverImage + ')',backgroundSize:'cover'}"></div> <div class="app-image" :style="{backgroundImage:'url(' + scope.row.CoverImage + ')',backgroundSize:'cover'}"></div>
<div flex="dir:left cross:center">
{{scope.row.ActivityName}}
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -88,11 +97,11 @@ ...@@ -88,11 +97,11 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="Type" prop="Type"
label="State"> label="状态">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.State==1">未兑换</div> <div v-if="scope.row.State==1">未兑换</div>
<div v-if="scope.row.State==2">已兑换</div> <div v-if="scope.row.State==2">已兑换</div>
<div v-if="scope.row.State==2">已过期</div> <div v-if="scope.row.State==3">已过期</div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -121,7 +130,7 @@ ...@@ -121,7 +130,7 @@
label="中奖订单" label="中奖订单"
prop="RangeType" width="300"> prop="RangeType" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="font-size: 12px;color: #409EFF" v-for="(x,y) in scope.row.OrderList" :key="y">{{x.OrderNo}}{{y+1==scope.row.OrderList.length?'':'、'}}</span> <span style="font-size: 12px;color: #409EFF" v-for="(x,y) in scope.row.OrderList" :key="y">{{x.OrderId}}{{y+1==scope.row.OrderList.length?'':'、'}}</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -163,20 +172,42 @@ ...@@ -163,20 +172,42 @@
pageIndex:1, pageIndex:1,
pageSize:20, pageSize:20,
ActivityName:'', ActivityName:'',
UserId:'', UserId:0,
State:0, State:0,
Code:'', Code:'',
}, },
tableData:[], tableData:[],
tableData2:[],
count:0, count:0,
loading:false loading:false,
msg2: {
pageIndex: 1,
pageSize: 20,
Name: '',
Source: 0,
MemberGrade: 0,
Id: 0,
Moblie: ''
},
} }
}, },
created(){ created(){
this.getDateList(); this.getDateList();
this.getNameList()
}, },
methods:{ methods:{
ChangeListName(val) {
this.msg2.Name = val;
this.getNameList();
},
getNameList() {
this.apipost("/api/user/GetMemberUserDropDownList", this.msg2, res => {
if (res.data.resultCode == 1) {
let pageData = res.data.data.pageData;
this.tableData2 = pageData;
}
})
},
getDateList(){ getDateList(){
this.loading=true; this.loading=true;
this.apipost("/api/product/GetGoodsActivityGetUserPageList", this.msg, res => { this.apipost("/api/product/GetGoodsActivityGetUserPageList", this.msg, res => {
......
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