|
|
@ -200,7 +200,9 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
initData() { |
|
|
|
console.log(8888, this.startTime, this.time, this.typeQuery); |
|
|
|
this.startTime = moment().startOf("month").format("YYYY-MM-DD HH:mm:ss"); |
|
|
|
this.time = moment().format("YYYY-MM-DD HH:mm:ss"); |
|
|
|
this.typeQuery = this.searchFormList[1].options.options[0].value; |
|
|
|
clearInterval(this.interval); |
|
|
|
if (this.activeName == "first") { |
|
|
|
this.initDevice(); |
|
|
@ -410,16 +412,9 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.startTime = moment().startOf("month").format("YYYY-MM-DD HH:mm:ss"); |
|
|
|
this.time = moment().format("YYYY-MM-DD HH:mm:ss"); |
|
|
|
this.typeQuery = searchFormList[1].options.options[0].value; |
|
|
|
searchFormList[0].default = [this.startTime, this.time]; |
|
|
|
searchFormList[1].default = this.typeQuery; |
|
|
|
console.log("__________________", searchFormList[0].default); |
|
|
|
this.initData(); |
|
|
|
}); |
|
|
|
async mounted() { |
|
|
|
console.log("__________________", searchFormList[0].default); |
|
|
|
await this.initData(); |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|