@@ -29,5 +29,5 @@ export function timestamp2String(timestamp, wasAddOne = false) {
* @returns String
*/
function add0(num) {
- return Number(num) > 10 ? num : '0' + num
+ return Number(num) >= 10 ? num : '0' + num
}
@@ -55,6 +55,8 @@ export default {
gte(){
let date = timestamp2String(+this.value)
let month = parseInt(date.slice(4,6))-1
+ console.log(date)
+ console.log(month)
return date.slice(0,4) + (month > 10 ? month : ('0'+month) )+ date.slice(6,8)
},
@@ -76,8 +76,6 @@ export default {
// this.strategy3.push(null);
// }
});
- console.log(this.strategy1)
- console.log(this.strategy2)
console.log(this.strategy3)
this.drawIt();
@@ -89,8 +89,7 @@ export default {
"20:00",
"21:00",
"22:00",
- "23:00",
- "24:00"
+ "23:00"
]
yAxis: {
@@ -75,7 +75,7 @@ export default {
methods: {
expandChange(row,expandedRows){
console.log(row,expandedRows)
- if(expandedRows){
+ if(expandedRows.length > 0){
this.$nextTick(() => this.doSelect())