开始日期不能大于或等于结束日期!
This commit is contained in:
@@ -113,8 +113,7 @@ export default {
|
|||||||
// console.log(res);
|
// console.log(res);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
filterBtn() {},
|
|
||||||
reset() {
|
reset() {
|
||||||
this.startTime = '',
|
this.startTime = '',
|
||||||
this.endTime = ''
|
this.endTime = ''
|
||||||
@@ -122,6 +121,15 @@ export default {
|
|||||||
selectConfirm() {
|
selectConfirm() {
|
||||||
this.start = this.startTime,
|
this.start = this.startTime,
|
||||||
this.end = this.endTime
|
this.end = this.endTime
|
||||||
|
let startTmp = this.start.split("-");
|
||||||
|
let endTmp = this.end.split("-");
|
||||||
|
let stT = new Date(startTmp[0], startTmp[1], startTmp[2]);
|
||||||
|
let edT = new Date(endTmp[0], endTmp[1], endTmp[2]);
|
||||||
|
if (stT.getTime() >= edT.getTime()) {
|
||||||
|
this.$u.toast("开始日期不能大于或等于结束日期!");
|
||||||
|
this.filterShow = true
|
||||||
|
return
|
||||||
|
}
|
||||||
this.filterShow = false
|
this.filterShow = false
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -281,8 +281,6 @@ export default {
|
|||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = "宣发统计";
|
document.title = "宣发统计";
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getBrokenDate();
|
this.getBrokenDate();
|
||||||
this.getData();
|
this.getData();
|
||||||
this.getColData();
|
this.getColData();
|
||||||
@@ -301,7 +299,6 @@ export default {
|
|||||||
if (index == 3) {
|
if (index == 3) {
|
||||||
this.timeSelect = index;
|
this.timeSelect = index;
|
||||||
this.customShow = true;
|
this.customShow = true;
|
||||||
|
|
||||||
this.showStart = false;
|
this.showStart = false;
|
||||||
this.showEnd = false;
|
this.showEnd = false;
|
||||||
} else {
|
} else {
|
||||||
@@ -326,11 +323,10 @@ export default {
|
|||||||
this.detailType = this.timeSelect;
|
this.detailType = this.timeSelect;
|
||||||
this.start = this.startTime;
|
this.start = this.startTime;
|
||||||
this.end = this.endTime;
|
this.end = this.endTime;
|
||||||
this.getBrokenDate();
|
|
||||||
} else {
|
} else {
|
||||||
this.detailType = this.timeSelect;
|
this.detailType = this.timeSelect;
|
||||||
this.getBrokenDate();
|
|
||||||
}
|
}
|
||||||
|
this.getBrokenDate();
|
||||||
this.filterShow = false;
|
this.filterShow = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -344,6 +340,15 @@ export default {
|
|||||||
handleTime() {
|
handleTime() {
|
||||||
this.start = this.startTime;
|
this.start = this.startTime;
|
||||||
this.end = this.endTime;
|
this.end = this.endTime;
|
||||||
|
let startTmp = this.start.split("-");
|
||||||
|
let endTmp = this.end.split("-");
|
||||||
|
let stT = new Date(startTmp[0], startTmp[1], startTmp[2]);
|
||||||
|
let edT = new Date(endTmp[0], endTmp[1], endTmp[2]);
|
||||||
|
if (stT.getTime() >= edT.getTime()) {
|
||||||
|
this.$u.toast("开始日期不能大于或等于结束日期!");
|
||||||
|
this.customShow = true
|
||||||
|
return
|
||||||
|
}
|
||||||
this.customShow = false;
|
this.customShow = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user