|
|
@@ -123,17 +123,15 @@ export default {
|
|
|
getDataList() {
|
|
|
let data = {
|
|
|
orgId: this.orgId || '',
|
|
|
- startDate: this.startTime,
|
|
|
- endDate: this.endTime,
|
|
|
+ startDate: dayjs(this.startTime).startOf('day').format('YYYY-MM-DD'),
|
|
|
+ endDate: dayjs(this.endTime).endOf('day').format('YYYY-MM-DD'),
|
|
|
}
|
|
|
- console.log("getDataList", data)
|
|
|
selectMonitorReport(data).then(res => {
|
|
|
this.dataList = res.data
|
|
|
})
|
|
|
},
|
|
|
//搜索选择状态时触发
|
|
|
onStartTimeConfirm(value, index) {
|
|
|
- console.log("onStartTimeConfirm", value);
|
|
|
// 假设 value 是一个对象,其中包含了 text 属性
|
|
|
const weekText = value[1].text;
|
|
|
this.startTime = value[1].weekStart;
|
|
|
@@ -149,7 +147,6 @@ export default {
|
|
|
},
|
|
|
//搜索选择状态时触发
|
|
|
onEntTimeConfirm(value, index) {
|
|
|
- console.log("onEntTimeConfirm", value);
|
|
|
// 假设 value 是一个对象,其中包含了 text 属性
|
|
|
const weekText = value[1].text;
|
|
|
this.endTime = value[1].weekEnd;
|
|
|
@@ -161,11 +158,11 @@ export default {
|
|
|
this.showEndPicker=true;
|
|
|
return;
|
|
|
}
|
|
|
+ console.log(this.startTime, this.endTime)
|
|
|
this.getDataList();
|
|
|
},
|
|
|
|
|
|
onCancel() {
|
|
|
- console.log("onCancel....");
|
|
|
this.showStartPicker = false;
|
|
|
this.showEndPicker = false;
|
|
|
},
|
|
|
@@ -183,7 +180,6 @@ export default {
|
|
|
this.endWeekStr = `第${weekOfYear}周`;
|
|
|
this.startTime = today.startOf('week').toDate();
|
|
|
this.endTime = today.endOf('week').toDate();
|
|
|
- console.log('this.startTime', this.startTime, 'this.endTime', this.endTime)
|
|
|
},
|
|
|
validateDates() {
|
|
|
if (!this.startWeekStr || !this.endWeekStr) {
|