From 01fb0aba38796912e16f079e615903904c6afc5b Mon Sep 17 00:00:00 2001 From: duanxiaohai <1812246227@qq.com> Date: Thu, 1 Aug 2024 14:04:24 +0800 Subject: [PATCH] gx --- src/view/sy.vue | 99 ++++++++++++---------- src/view/sy_details.vue | 4 +- src/view/sy_mapcopy.vue | 3 - src/view/sy_table.vue | 182 +++++++++++++++++++++++++++------------- 4 files changed, 184 insertions(+), 104 deletions(-) diff --git a/src/view/sy.vue b/src/view/sy.vue index 14f597d..94cfe5e 100644 --- a/src/view/sy.vue +++ b/src/view/sy.vue @@ -1368,6 +1368,7 @@ const getTableTab = (url, currentPage) => { .then((res) => { if (res.code == 200) { dataTab.data = res.data; + console.log(res.data); pagination.total = res.count; dialogShowTab.value = true; } @@ -1414,10 +1415,9 @@ const showEc = (val) => { ]; // 骑行次数 dataEc.list2 = [ 695, 892, 1265, 1178, 1246, 1206, 1361, 1323, 1231, 893, 1032, 1196, - 1411, 1232, + 1411, 1232, 1232, ]; // 骑行时长(分钟) dataEc.times = [ - "14", "15", "16", "17", @@ -1432,6 +1432,7 @@ const showEc = (val) => { "26", "27", "28", + "29", ]; dialogShowEc.value = true; break; @@ -1456,27 +1457,33 @@ const showTab = (val) => { dataTab.data = []; switch (val) { case "公共汽车": - dataTab.list1 = [ - 8616, 9616, 10360, 10206, 8970, 10442, 9988, 9487, 8380, 8371, 7984, - 7574, 8647, 9515, 8974, - ]; - dataTab.times = [ - "14", - "15", - "16", - "17", - "18", - "19", - "20", - "21", - "22", - "23", - "24", - "25", - "26", - "27", - "28", - ]; + // dataTab.list1 = [ + // 8616, 9616, 10360, 10206, 8970, 10442, 9988, 9487, 8380, 8371, 7984, + // 7574, 8647, 9515, 8974, + // ]; + // dataTab.times = [ + // "14", + // "15", + // "16", + // "17", + // "18", + // "19", + // "20", + // "21", + // "22", + // "23", + // "24", + // "25", + // "26", + // "27", + // "28", + // ]; + http.get(`/api/ggfwyth/bus`).then((res) => { + if (res.code == 200) { + dataTab.list1 = res.data.data; + dataTab.times = res.data.times; + } + }); dataTab.data = [ { cc: "201A", @@ -1566,26 +1573,32 @@ const showTab = (val) => { dialogShowTab.value = true; break; case "长途汽车": - dataTab.list1 = [ - 97, 57, 37, 46, 46, 54, 40, 46, 37, 48, 39, 48, 48, 31, 43, - ]; - dataTab.times = [ - "14", - "15", - "16", - "17", - "18", - "19", - "20", - "21", - "22", - "23", - "24", - "25", - "26", - "27", - "28", - ]; + http.get(`/api/ggfwyth/longDistanceBus`).then((res) => { + if (res.code == 200) { + dataTab.list1 = res.data.data; + dataTab.times = res.data.times; + } + }); + // dataTab.list1 = [ + // 97, 57, 37, 46, 46, 54, 40, 46, 37, 48, 39, 48, 48, 31, 43, + // ]; + // dataTab.times = [ + // "14", + // "15", + // "16", + // "17", + // "18", + // "19", + // "20", + // "21", + // "22", + // "23", + // "24", + // "25", + // "26", + // "27", + // "28", + // ]; dataTab.data = [ { cc: "303", diff --git a/src/view/sy_details.vue b/src/view/sy_details.vue index 1ffce26..8fb4969 100644 --- a/src/view/sy_details.vue +++ b/src/view/sy_details.vue @@ -541,7 +541,7 @@ const handleCurrentChange = (val) => { const handlePagination = (current) => { // console.log(current,"page1"); pagination.currentPage = current; - getTable("/api/ggfwyth/ysyzt/lyxsdbrymd", pagination.currentPage); + getTable("/api/ggfwyth/pg/lyxsdbrymd", pagination.currentPage); }; // 服务表格样式 const tableHeaderColor = (arg) => { @@ -593,7 +593,7 @@ const getTable = async (url, currentPage) => { }; onMounted(() => { - getTable("/api/ggfwyth/ysyzt/lyxsdbrymd", pagination.currentPage); + getTable("/api/ggfwyth/pg/lyxsdbrymd", pagination.currentPage); handleCurrentChange(1); }); diff --git a/src/view/sy_mapcopy.vue b/src/view/sy_mapcopy.vue index 18b01f2..b8e35f9 100644 --- a/src/view/sy_mapcopy.vue +++ b/src/view/sy_mapcopy.vue @@ -1104,7 +1104,6 @@ const getData = async (i, e) => { "100nlPercent", ]; if (res.data.ageGroupsPercent) { - console.log(PopulationRatio.value[0].progress); agename.forEach((key, index) => { if (PopulationRatio.value[index]) { PopulationRatio.value[index].progress = @@ -1235,7 +1234,6 @@ const getDatas = async (e, i) => { "100nlPercent", ]; if (res.data.ageGroupsPercent) { - console.log(PopulationRatio.value[0].progress); agename.forEach((key, index) => { if (PopulationRatio.value[index]) { PopulationRatio.value[index].progress = @@ -1317,7 +1315,6 @@ const getDatas2 = async (e, i, cs) => { "100nlPercent", ]; if (res.data.ageGroupsPercent) { - console.log(PopulationRatio.value[0].progress); agename.forEach((key, index) => { if (PopulationRatio.value[index]) { PopulationRatio.value[index].progress = diff --git a/src/view/sy_table.vue b/src/view/sy_table.vue index 9cc0f7a..46ca5b1 100644 --- a/src/view/sy_table.vue +++ b/src/view/sy_table.vue @@ -27,7 +27,7 @@ ? 'tabPositionminBoxBgc' : '' " - @click="tapshow(item.id, index1)" + @click="tapshow(item, index1)" > {{ item1.name }} @@ -107,7 +107,7 @@ -