Commit 7396befd by zhangquan

修改table逻辑

1 parent fa34de91
...@@ -130,6 +130,11 @@ const saveCouponInfo = params => { ...@@ -130,6 +130,11 @@ const saveCouponInfo = params => {
// 获取模板下的优惠券列表 // 获取模板下的优惠券列表
const getCouponById = params => { const getCouponById = params => {
if(!params.templateId) {
return new Promise((resolve, reject)=>{
reject()
})
};
params.method = `${defaultPath}template.details.page` params.method = `${defaultPath}template.details.page`
return other_http({ return other_http({
url, url,
......
...@@ -166,7 +166,7 @@ import selectCouponDialog from './components/selectCouponDialog.vue' ...@@ -166,7 +166,7 @@ import selectCouponDialog from './components/selectCouponDialog.vue'
beforeSearchFn(){ beforeSearchFn(){
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchForm.templateId = this.curConfigId this.searchForm.templateId = this.curConfigId
if(!this.curConfigId) return reject(); // if(!this.curConfigId) return reject();
resolve() resolve()
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!