Commit 3e9263f6 by zhangzhen

驾驶舱细节优化

parent fff5e67b
...@@ -172,6 +172,7 @@ ...@@ -172,6 +172,7 @@
placeholder="选择日期" placeholder="选择日期"
@change="handledataPicker" @change="handledataPicker"
value-format="yyyyMMdd" value-format="yyyyMMdd"
:picker-options='pickerOptions'
style="width: 11vw" style="width: 11vw"
> >
</el-date-picker> </el-date-picker>
...@@ -311,7 +312,13 @@ ...@@ -311,7 +312,13 @@
querySbYesDate:[], querySbYesDate:[],
querySbNoList:[], querySbNoList:[],
querySbNODate:[], querySbNODate:[],
currentTime:dayjs().format("YYYY-MM-DD HH:mm:ss") currentTime:dayjs().format("YYYY-MM-DD HH:mm:ss"),
maxDate:dayjs().format("YYYY-MM-DD"),
pickerOptions:{
disabledDate(time) {
return time.getTime() > Date.now();
}
}
}; };
}, },
mounted() { mounted() {
...@@ -506,7 +513,7 @@ ...@@ -506,7 +513,7 @@
str = dayjs().format('YYYY') + _this.querySbYesDate[_this.querySbYesDate.length-1]; str = dayjs().format('YYYY') + _this.querySbYesDate[_this.querySbYesDate.length-1];
dateArr.unshift(_this.querySbYesDate[_this.querySbYesDate.length-1]) dateArr.unshift(_this.querySbYesDate[_this.querySbYesDate.length-1])
for (let i = 0; i < 6; i++){ for (let i = 0; i < 6; i++){
dateArr.unshift(dayjs(str).subtract(i,'day').format('MMDD')); dateArr.unshift(dayjs(str).subtract(i+1,'day').format('MMDD'));
} }
}else{ }else{
for (let i = 0; i < 7; i++){ for (let i = 0; i < 7; i++){
...@@ -658,7 +665,7 @@ ...@@ -658,7 +665,7 @@
str = dayjs().format('YYYY') + _this.querySbNODate[ _this.querySbNODate.length-1]; str = dayjs().format('YYYY') + _this.querySbNODate[ _this.querySbNODate.length-1];
dateArr.unshift( _this.querySbNODate[ _this.querySbNODate.length-1]) dateArr.unshift( _this.querySbNODate[ _this.querySbNODate.length-1])
for (let i = 0; i < 6; i++){ for (let i = 0; i < 6; i++){
dateArr.unshift(dayjs(str).subtract(i,'day').format('MMDD')); dateArr.unshift(dayjs(str).subtract(i+1,'day').format('MMDD'));
} }
}else{ }else{
for (let i = 0; i < 7; i++){ for (let i = 0; i < 7; i++){
......
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