This commit is contained in:
cun-nan 2024-03-11 11:43:55 +08:00
parent 4dbf96ae32
commit a11b16ccdc

View File

@ -279,6 +279,13 @@
<el-radio label="2">会员等级</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="会员等级" prop="region" v-if="form.exclusiveFunction == '2' " >
<el-select v-model="form.membershipLevel" multiple placeholder="会员等级" >
<el-option v-for="(item,index) in vipname" :key="index" :label="item.name" :value="item.id.toString()"></el-option>
</el-select>
</el-form-item>
<el-form-item label="领取规则 " prop="claimRule">
<el-radio-group v-model="form.claimRule">
<el-radio label="0">每人限领一张</el-radio>
@ -386,6 +393,7 @@
import { listFavorable, getFavorable,getcardFavorable,getcount,getcountList, delFavorable, addFavorable, updateFavorable } from "@/api/EventMarketing/cardFavorable";
import { getoilName, } from "@/api/EventMarketing/activeConsumption";
import {deleteById} from "@/api/EventMarketing/oilBlock";
import {listUserGrade} from "@/api/EventMarketing/SaveBlock";
export default {
name: "Favorable",
data() {
@ -476,6 +484,7 @@ export default {
},
//
form: {},
vipname:[],
//
rules: {
timeType: [
@ -665,12 +674,18 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset();
listUserGrade().then(res=>{
this.vipname = res.data.records
})
this.open = true;
this.title = "添加优惠券";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
listUserGrade().then(res=>{
this.vipname = res.data.records
})
getcardFavorable(row.id).then(res=>{
console.log(res)
if(res.code == 200){