|
@@ -193,9 +193,9 @@ export default {
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
this.planId = Number(option.id);
|
|
|
- this.minDate = this.$method.timestampToTime(new Date().getTime() / 1000);
|
|
|
+ this.minDate = this.$method.timestampToTime(new Date().getTime() / 1000).replace(/-/g,'/');
|
|
|
this.form.startDate = this.minDate;
|
|
|
- this.form.endDate = this.$method.timestampToTime(new Date().getTime() / 1000 + 24 * 3600 * 30);
|
|
|
+ this.form.endDate = this.$method.timestampToTime(new Date().getTime() / 1000 + 24 * 3600 * 30).replace(/-/g,'/');
|
|
|
this.getGoods();
|
|
|
this.getInfo();
|
|
|
},
|
|
@@ -328,10 +328,10 @@ export default {
|
|
|
getInfo(int) {
|
|
|
var self = this;
|
|
|
this.$api.systemplanInfo({planId:this.planId}).then(res => {
|
|
|
- this.form.date = this.$method.timestampToTime(res.data.data.examDate);
|
|
|
+ this.form.date = this.$method.timestampToTime(res.data.data.examDate).replace(/-/g,'/');
|
|
|
this.form.time = res.data.data.reminderTime;
|
|
|
- this.form.startDate = this.$method.timestampToTime(res.data.data.startTime);
|
|
|
- this.form.endDate = this.$method.timestampToTime(res.data.data.endTime);
|
|
|
+ this.form.startDate = this.$method.timestampToTime(res.data.data.startTime).replace(/-/g,'/');
|
|
|
+ this.form.endDate = this.$method.timestampToTime(res.data.data.endTime).replace(/-/g,'/');
|
|
|
this.index_review = res.data.data.studyDay;
|
|
|
this.form.week = res.data.data.studyCount;
|
|
|
res.data.data.goodsVos.forEach(item => {
|