|
@@ -108,6 +108,17 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
+ <el-dialog title="操作成功" :visible.sync="successDialogVisible" width="400px" :close-on-click-modal="false">
|
|
|
|
|
+ <div style="text-align:center;padding:10px 0">
|
|
|
|
|
+ <i class="el-icon-success" style="color:#67C23A;font-size:32px"></i>
|
|
|
|
|
+ <p style="margin:12px 0 0;font-size:16px;color:#303133">保存成功</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div slot="footer">
|
|
|
|
|
+ <el-button type="primary" @click="handleContinue">继续添加</el-button>
|
|
|
|
|
+ <el-button @click="handleClose">关闭</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
<el-dialog title="批量发放优惠券" :visible.sync="batchDialogVisible" width="500px">
|
|
<el-dialog title="批量发放优惠券" :visible.sync="batchDialogVisible" width="500px">
|
|
|
<el-form label-width="120px">
|
|
<el-form label-width="120px">
|
|
|
<el-form-item label="选择优惠券" required>
|
|
<el-form-item label="选择优惠券" required>
|
|
@@ -140,6 +151,7 @@ export default {
|
|
|
size: 20,
|
|
size: 20,
|
|
|
total: 0,
|
|
total: 0,
|
|
|
formDialogVisible: false,
|
|
formDialogVisible: false,
|
|
|
|
|
+ successDialogVisible: false,
|
|
|
isEdit: false,
|
|
isEdit: false,
|
|
|
submitting: false,
|
|
submitting: false,
|
|
|
form: this.getEmptyForm(),
|
|
form: this.getEmptyForm(),
|
|
@@ -248,8 +260,7 @@ export default {
|
|
|
await createCoupon(payload)
|
|
await createCoupon(payload)
|
|
|
}
|
|
}
|
|
|
this.$message.success('保存成功')
|
|
this.$message.success('保存成功')
|
|
|
- this.formDialogVisible = false
|
|
|
|
|
- this.loadData()
|
|
|
|
|
|
|
+ this.successDialogVisible = true
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
this.$message.error('保存失败')
|
|
this.$message.error('保存失败')
|
|
|
} finally {
|
|
} finally {
|
|
@@ -295,6 +306,17 @@ export default {
|
|
|
this.handleDelete(row)
|
|
this.handleDelete(row)
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ handleContinue() {
|
|
|
|
|
+ this.successDialogVisible = false
|
|
|
|
|
+ this.isEdit = false
|
|
|
|
|
+ this.form = this.getEmptyForm()
|
|
|
|
|
+ this.formDialogVisible = true
|
|
|
|
|
+ },
|
|
|
|
|
+ handleClose() {
|
|
|
|
|
+ this.successDialogVisible = false
|
|
|
|
|
+ this.formDialogVisible = false
|
|
|
|
|
+ this.loadData()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|