Commit 38a0921f by baihong

活动缴费设置

parent 43aeb10d
...@@ -160,6 +160,7 @@ ...@@ -160,6 +160,7 @@
<script> <script>
import { import {
getActivityConfigByPay, getActivityConfigByPay,
update,
configAwards, configAwards,
addConfigAward, addConfigAward,
editConfigAward, editConfigAward,
...@@ -274,7 +275,13 @@ export default { ...@@ -274,7 +275,13 @@ export default {
}, },
methods: { methods: {
save(row) { save(row) {
console.log(row); row.break_time = row.break_time[0] + "-" + row.break_time[1];
row.clock_time = row.clock_time[0] + "-" + row.clock_time[1];
row.close_time = row.close_time[0] + "-" + row.close_time[1];
update(row).then(res => {
this.$Message.success("编辑成功!");
this.getTime();
});
}, },
submit() { submit() {
if (this.add) { if (this.add) {
...@@ -297,18 +304,26 @@ export default { ...@@ -297,18 +304,26 @@ export default {
this.data = res; this.data = res;
}); });
}, },
getRu(){ getRu() {
getActivityConfigRule(1).then(res => { getActivityConfigRule(1).then(res => {
this.data = res; this.data = res;
}); });
}, },
getTime() { getTime() {
getActivityConfigByPay().then(res => { getActivityConfigByPay({
language: "cn"
}).then(res => {
this.payData.length = 0;
res.break_time = res.break_time.split("-");
res.clock_time = res.clock_time.split("-");
res.close_time = res.close_time.split("-");
this.payData = [res]; this.payData = [res];
}); });
} }
}, },
mounted() {} mounted() {
this.getTime();
}
}; };
</script> </script>
......
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