diff --git a/pages/investigation/task.vue b/pages/investigation/task.vue index a88f451..c2c82de 100644 --- a/pages/investigation/task.vue +++ b/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; },