折线图默认值

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

@ -1156,21 +1156,22 @@
getChartsData() {
//
let res = {
categories: ["2018", "2019", "2020", "2021", "2022", "2023"],
series: [{
categories: ["01", "02", "03", "04", "05", "06","07", "08", "09", "10", "11", "12"],
series: [
{
name: "总量",
legendShape: "line",
data: [35, 8, 25, 37, 4, 20],
data: [],
},
{
name: "大车",
legendShape: "line",
data: [70, 40, 65, 100, 44, 68],
data: [],
},
{
name: "小车",
legendShape: "line",
data: [100, 80, 95, 150, 112, 132],
data: [],
},
],
};
@ -1241,21 +1242,21 @@
}
},
bottomButtonTwo(){
if(!this.formData.roadType){
return this.$.toast("请输入道路类型");
}
if(!this.formData.roadWidth){
return this.$.toast("请输入道路宽度");
}
if(!this.formData.laneCount){
return this.$.toast("请输入车道数");
}
if(!this.formData.designSpeed){
return this.$.toast("请输入设计时速");
}
if(!this.formData.limitSpeed){
return this.$.toast("请输入限速");
}
// if(!this.formData.roadType){
// return this.$.toast("");
// }
// if(!this.formData.roadWidth){
// return this.$.toast("");
// }
// if(!this.formData.laneCount){
// return this.$.toast("");
// }
// if(!this.formData.designSpeed){
// return this.$.toast("");
// }
// if(!this.formData.limitSpeed){
// return this.$.toast("");
// }
this.isEdit = false;
this.active = 2;
},

Loading…
Cancel
Save