礼品卡

This commit is contained in:
齐天大圣 2024-03-06 10:03:07 +08:00
parent 2d3c930650
commit 56321b23c9

View File

@ -11,7 +11,7 @@
:value="item.cardAmount"> :value="item.cardAmount">
</el-option> </el-option>
</el-select> </el-select>
<el-select v-model="queryParams.activateStatus" style="margin-right: 10px" placeholder="请选择"> <el-select v-model="queryParams.activateStatus" clearable style="margin-right: 10px" placeholder="请选择激活状态">
<el-option <el-option
v-for="item in option" v-for="item in option"
:key="item.value" :key="item.value"
@ -19,7 +19,7 @@
:value="item.value"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
<el-select v-model="queryParams.status" style="margin-right: 10px" placeholder="请选择"> <el-select v-model="queryParams.sailStatus" clearable style="margin-right: 10px" placeholder="请选择出售状态">
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
@ -201,14 +201,14 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="status" prop="status"
label="礼品卡状态" label="礼品卡激活状态"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.status" v-model="scope.row.activateStatus"
:active-value="'1'" :active-value="'0'"
:inactive-value="'2'" :inactive-value="'1'"
active-color="#409EFF" active-color="#409EFF"
inactive-color="#909399" inactive-color="#909399"
@change="posteid(scope.row)" @change="posteid(scope.row)"
@ -338,7 +338,7 @@ import {
queryParams: { queryParams: {
number:'', number:'',
remark:'', remark:'',
activateStatus:'', activateStatus:null,
status:'', status:'',
pageNo:1, pageNo:1,
pageSize:10 pageSize:10
@ -349,28 +349,20 @@ import {
pageNo:1, pageNo:1,
pageSize:10, pageSize:10,
option: [ option: [
{
value: '',
label: '全部'
},
{ {
value: '1', value: '1',
label: '已使用' label: '已激活'
}, { }, {
value: '0', value: '0',
label: '未激活' label: '未激活'
},], },],
options: [ options: [
{
value: '',
label: '全部'
},
{ {
value: '1', value: '1',
label: '正常' label: '已售'
}, { }, {
value: '2', value: '0',
label: '禁用' label: '未售'
},], },],
value: '', value: '',
tjdata:{}, tjdata:{},