This commit is contained in:
lnn19986213 2024-06-12 13:06:44 +08:00
parent f3a96d3b42
commit b923247040
1 changed files with 5 additions and 58 deletions

View File

@ -410,25 +410,6 @@
<i></i> <i></i>
</div> </div>
</div> </div>
<!-- <table class="table">
<tbody>
<tr v-for="(item, index) in jtsyList" :key="index" style="display: flex; box-sizing: border-box">
<td>{{ item.name }}</td>
<td>
<div class="s1" style="font-size: 16px">{{ item.key1 }}</div>
:<span class="s2" style="font-size: 15px">{{
item.key1_value
}}</span>
</td>
<td>
<span class="s1" style="font-size: 16px">{{ item.key2 }}</span>:<span class="s2"
style="font-size: 15px">{{
item.key2_value
}}</span>
</td>
</tr>
</tbody>
</table> -->
<div class="jtsyBox"> <div class="jtsyBox">
<div class="jtsyBoxtop"> <div class="jtsyBoxtop">
<div class="jtsyBoxtop1" @click="showEc('公共自行车')"> <div class="jtsyBoxtop1" @click="showEc('公共自行车')">
@ -457,7 +438,7 @@
</div> </div>
<div> <div>
{{ data.jtsyList[1].key2 }} {{ data.jtsyList[1].key2 }}
<span>{{ data.jtsyList[1].key2_value }}</span> <span>{{ data.jtsyList[1].key2_value }}h</span>
</div> </div>
</div> </div>
</div> </div>
@ -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(() => { const cs = computed(() => {
let str = `--teacher: ${jysyList.value[0].teacher}; --total: ${ let str = `--teacher: ${jysyList.value[0].teacher}; --total: ${
@ -1297,6 +1240,10 @@ const getData = async () => {
data.tysyList[index].value = res.data.whtysy[key]; 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)
} }
}); });
}; };