活动修改

This commit is contained in:
魏啾 2024-11-12 15:54:18 +08:00
parent d8eba6ea2e
commit 5b0b69bf97
2 changed files with 28 additions and 13 deletions

View File

@ -106,6 +106,7 @@ export default {
methods: {
//
async statusChange(e, row) {
if (row.couponName) {
try {
this.tableData.loading = true
const data = { ...row }
@ -117,6 +118,15 @@ export default {
console.log(error)
this.tableData.loading = false
}
} else {
console.log(22)
this.$message({
message: '请选择优惠劵',
type: 'warning'
});
return false;
}
},
//
resetHandle() {

View File

@ -64,8 +64,9 @@
<div class="name">{{ item.title }}</div>
<!-- <el-input style="width: 120px;" v-model="item.num" placeholder='请填写数量'
@input="checkIfNum(item)"></el-input> -->
<el-button type="text" @click="productIds.splice(index, 1)"
style="margin-left: 20px;">删除</el-button>
<!-- <el-button type="text" @click="productIds.splice(index, 1)"
style="margin-left: 20px;">删除</el-button> -->
<el-button type="text" @click="productIds = []" style="margin-left: 20px;">删除</el-button>
</div>
</div>
</el-form-item>
@ -210,7 +211,11 @@ export default {
this.form = { ...obj }
// let res = await activate(obj.id)
// this.productIds = res
console.log(res, '调试1')
if (obj.couponName) {
this.productIds = [{ title: obj.couponName }]
}
console.log(obj, '调试1')
}
},
close() {