|
|
@ -1156,21 +1156,22 @@ |
|
|
|
getChartsData() { |
|
|
|
getChartsData() { |
|
|
|
//模拟服务器返回数据,如果数据格式和标准格式不同,需自行按下面的格式拼接 |
|
|
|
//模拟服务器返回数据,如果数据格式和标准格式不同,需自行按下面的格式拼接 |
|
|
|
let res = { |
|
|
|
let res = { |
|
|
|
categories: ["2018", "2019", "2020", "2021", "2022", "2023"], |
|
|
|
categories: ["01", "02", "03", "04", "05", "06","07", "08", "09", "10", "11", "12"], |
|
|
|
series: [{ |
|
|
|
series: [ |
|
|
|
|
|
|
|
{ |
|
|
|
name: "总量", |
|
|
|
name: "总量", |
|
|
|
legendShape: "line", |
|
|
|
legendShape: "line", |
|
|
|
data: [35, 8, 25, 37, 4, 20], |
|
|
|
data: [], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: "大车", |
|
|
|
name: "大车", |
|
|
|
legendShape: "line", |
|
|
|
legendShape: "line", |
|
|
|
data: [70, 40, 65, 100, 44, 68], |
|
|
|
data: [], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: "小车", |
|
|
|
name: "小车", |
|
|
|
legendShape: "line", |
|
|
|
legendShape: "line", |
|
|
|
data: [100, 80, 95, 150, 112, 132], |
|
|
|
data: [], |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}; |
|
|
|
}; |
|
|
@ -1241,21 +1242,21 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
bottomButtonTwo(){ |
|
|
|
bottomButtonTwo(){ |
|
|
|
if(!this.formData.roadType){ |
|
|
|
// if(!this.formData.roadType){ |
|
|
|
return this.$.toast("请输入道路类型"); |
|
|
|
// return this.$.toast("请输入道路类型"); |
|
|
|
} |
|
|
|
// } |
|
|
|
if(!this.formData.roadWidth){ |
|
|
|
// if(!this.formData.roadWidth){ |
|
|
|
return this.$.toast("请输入道路宽度"); |
|
|
|
// return this.$.toast("请输入道路宽度"); |
|
|
|
} |
|
|
|
// } |
|
|
|
if(!this.formData.laneCount){ |
|
|
|
// if(!this.formData.laneCount){ |
|
|
|
return this.$.toast("请输入车道数"); |
|
|
|
// return this.$.toast("请输入车道数"); |
|
|
|
} |
|
|
|
// } |
|
|
|
if(!this.formData.designSpeed){ |
|
|
|
// if(!this.formData.designSpeed){ |
|
|
|
return this.$.toast("请输入设计时速"); |
|
|
|
// return this.$.toast("请输入设计时速"); |
|
|
|
} |
|
|
|
// } |
|
|
|
if(!this.formData.limitSpeed){ |
|
|
|
// if(!this.formData.limitSpeed){ |
|
|
|
return this.$.toast("请输入限速"); |
|
|
|
// return this.$.toast("请输入限速"); |
|
|
|
} |
|
|
|
// } |
|
|
|
this.isEdit = false; |
|
|
|
this.isEdit = false; |
|
|
|
this.active = 2; |
|
|
|
this.active = 2; |
|
|
|
}, |
|
|
|
}, |
|
|
|