diff --git a/src/view/sy.vue b/src/view/sy.vue index 4f5bcb9..bb87f0c 100644 --- a/src/view/sy.vue +++ b/src/view/sy.vue @@ -410,25 +410,6 @@ -
@@ -457,7 +438,7 @@
{{ data.jtsyList[1].key2 }}: - {{ data.jtsyList[1].key2_value }} + {{ data.jtsyList[1].key2_value }}h
@@ -1096,44 +1077,6 @@ const jysyList = ref([ }, ]); -const jtsyList = ref([ - { - name: "公共自行车", - key1: "骑行次数", - key1_value: "1172491", - key2: "骑行时长", - key2_value: "1283h", - }, - { - name: "电动单车", - key1: "骑行次数", - key1_value: "1172491", - key2: "骑行时长", - key2_value: "1283h", - }, - { - name: "公共汽车", - key1: "公交线路", - key1_value: "176", - key2: "乘坐人次", - key2_value: "239741", - }, - { - name: "长途汽车", - key1: "班车次数", - key1_value: "133", - key2: "客流量", - key2_value: "192874", - }, - { - name: "高铁", - key1: "列车班次", - key1_value: "23", - key2: "客流量", - key2_value: "113414", - }, -]); - // 县城学校师生比样式 const cs = computed(() => { let str = `--teacher: ${jysyList.value[0].teacher}; --total: ${ @@ -1297,6 +1240,10 @@ const getData = async () => { data.tysyList[index].value = res.data.whtysy[key]; }); // 交通事业 + data.jtsyList[1].key1_value = res.data.transportation.electricbicycle.cyclingFrequency + data.jtsyList[1].key2_value = res.data.transportation.electricbicycle.cyclingDduration + data.jtsyList[4].key1_value = res.data.transportation.highSpeedRail.trainSchedule + console.log(data.jtsyList[4].key1_value) } }); };