Commit c12a2b4f authored by xd's avatar xd

优惠券修改

parent aee1997d
...@@ -40,14 +40,10 @@ export default { ...@@ -40,14 +40,10 @@ export default {
}, },
methods: { methods: {
getList() { getList() {
console.log(11);
let params = { let params = {
deptId: 10 deptId: this.deptId
} }
getCouponList(params).then(res => { getCouponList(params).then(res => {
console.log(2);
this.list = res.data this.list = res.data
res.data.forEach(item => { res.data.forEach(item => {
item.begin_date = item.begin_date.substr(0,4)+'-'+item.begin_date.substr(4,2)+'-'+item.begin_date.substr(6,2) item.begin_date = item.begin_date.substr(0,4)+'-'+item.begin_date.substr(4,2)+'-'+item.begin_date.substr(6,2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment