修改问卷统计
This commit is contained in:
parent
78e73c6819
commit
be6b68271e
@ -289,14 +289,24 @@ export default {
|
|||||||
console.log(startDate, endDate);
|
console.log(startDate, endDate);
|
||||||
this.dischargeTime[0] = startDate;
|
this.dischargeTime[0] = startDate;
|
||||||
this.dischargeTime[1] = endDate;
|
this.dischargeTime[1] = endDate;
|
||||||
|
if(this.dischargeTime[0]){
|
||||||
this.queryParams.taskStartTime = this.formatDate(this.dischargeTime[0]);
|
this.queryParams.taskStartTime = this.formatDate(this.dischargeTime[0]);
|
||||||
|
}
|
||||||
|
if(this.dischargeTime[1]){
|
||||||
this.queryParams.taskEndTime = this.formatDate(this.dischargeTime[1]);
|
this.queryParams.taskEndTime = this.formatDate(this.dischargeTime[1]);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
},
|
},
|
||||||
formatDate(date) {
|
formatDate(date) {
|
||||||
const year = date.getFullYear();
|
if(date){
|
||||||
|
const year = date.getFullYear();
|
||||||
const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,需要加1
|
const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,需要加1
|
||||||
const day = String(date.getDate()).padStart(2, '0');
|
const day = String(date.getDate()).padStart(2, '0');
|
||||||
return `${year}-${month}-${day}`;
|
return `${year}-${month}-${day}`;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
// 查看
|
// 查看
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
@ -383,7 +393,6 @@ export default {
|
|||||||
}
|
}
|
||||||
this.getlist();
|
this.getlist();
|
||||||
},
|
},
|
||||||
changeTime() { },
|
|
||||||
// 获取表格最高高度
|
// 获取表格最高高度
|
||||||
getMaxTableHeight() {
|
getMaxTableHeight() {
|
||||||
const windowInnerHeight = window.innerHeight // 屏幕可视高度
|
const windowInnerHeight = window.innerHeight // 屏幕可视高度
|
||||||
@ -408,18 +417,18 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
::-webkit-scrollbar {
|
// ::-webkit-scrollbar {
|
||||||
width: 5px;
|
// width: 5px;
|
||||||
}
|
// }
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
// ::-webkit-scrollbar-thumb {
|
||||||
border-radius: 5px;
|
// border-radius: 5px;
|
||||||
background: #c0c0c0;
|
// background: #c0c0c0;
|
||||||
}
|
// }
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
// ::-webkit-scrollbar-track {
|
||||||
width: 5px;
|
// width: 5px;
|
||||||
}
|
// }
|
||||||
::v-deep .el-progress {
|
::v-deep .el-progress {
|
||||||
width: 64%;
|
width: 64%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user