Commit b11aaeb6 by 张杰

修复bug

1 parent 66414775
......@@ -4,6 +4,7 @@
"private": true,
"port": 10201,
"scripts": {
"dev": "vue-cli-service serve",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
......
......@@ -120,8 +120,9 @@ export default {
},
mounted() {
getYears({}).then(res => {
console.log(res.data[0])
this.date = `${res.data[0]}-01-01`
let m = res.data||[]
let min = Math.min(...m)
this.date = `${min}-01-01`
})
for (let i = 1; i <= 31; i++) {
this.reportTableParams.tableColumns.push({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!