提交 812f3b05 作者: 郁骅焌

满减券编辑

上级 46d4cae0
......@@ -17,3 +17,20 @@ export function editStatus(data) {
data: data
})
}
// 查询详细
export function couponDetail(id) {
return request({
url: '/xh/coupon/coupon/xh/' + id,
method: 'get'
})
}
// 修改
export function editCoupon(data) {
return request({
url: '/xh/coupon/coupon/edit',
method: 'post',
data: data
})
}
......@@ -259,3 +259,27 @@ aside {
position: relative;
}
}
$form-input-width: 688px;
.form-common-input {
.el-input,
.el-textarea,
.vue-treeselect {
width: $form-input-width;
}
.el-input__inner {
width: $form-input-width;
}
.el-tag--medium {
color: #3370ff;
background-color: #fff;
border-radius: 2px;
border: 1px solid #3370ff;
.el-tag__close:hover {
color: #aeb1c1;
background-color: #fff;
}
}
}
......@@ -143,7 +143,7 @@ export default {
columns: [
{ prop: 'couponName', label: '优惠券标题' },
{ prop: 'couponType', label: '优惠券类型', slotName: 'couponType' },
{ prop: 'categoryName', label: '优惠券分类' },
{ prop: 'categoryNames', label: '优惠券分类' },
{ prop: 'expiryType', label: '有效期', slotName: 'expiryType', minWidth: 200},
{ prop: 'total', label: '总库存' },
{ label: '剩余库存', slotName: 'left' },
......@@ -155,6 +155,12 @@ export default {
mounted() {
this.initOptions()
},
// 页面被触发
activated() {
if (this.$route.params && this.$route.params.refreshTable) {
this.getList()
}
},
methods: {
initOptions() {
this.table.searchForm.listOptions.couponTypeOptions = this.dict.type.coupon_type2
......@@ -169,7 +175,10 @@ export default {
},
/** 编辑按钮操作 */
handleEdit(row) {
this.$tab.closePage({ name: 'CouponEdit' })
this.$nextTick(() => {
this.$router.push({ name: 'CouponEdit', query: { id: row.couponInfoId }})
})
},
/** 删除按钮操作 */
async handleDelete(row) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论