礼品卡

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