折线图默认值

main
limingtao 11 months ago
parent 5935c10e4e
commit a3545c0946
  1. 41
      pages/investigation/task.vue

@ -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;
}, },

Loading…
Cancel
Save