From 685a6db03e247bb99d1ccc1ca8254a0d9351d674 Mon Sep 17 00:00:00 2001 From: lijun Date: Thu, 5 Dec 2024 00:17:06 +0800 Subject: [PATCH] update code --- yanzhu-bigscreen/src/api/index.js | 4 +- yanzhu-bigscreen/src/api/weather.js | 28 + .../src/assets/icons/svg/humidity.svg | 1 + .../src/assets/icons/svg/precipitation.svg | 5 + .../src/assets/icons/svg/pressure.svg | 1 + .../src/assets/icons/svg/wind.svg | 1 + .../people-number.vue | 2 +- yanzhu-bigscreen/src/views/init.js | 2 + yanzhu-bigscreen/src/views/projectDetail.vue | 405 +++++++- yanzhu-bigscreen/src/views/test/detail.js | 910 ++++++++++++++++++ .../yanzhu/common/core/utils/DateUtils.java | 13 + yanzhu-modules/yanzhu-manage/pom.xml | 6 +- .../manage/controller/WeatherController.java | 123 +++ 13 files changed, 1492 insertions(+), 9 deletions(-) create mode 100644 yanzhu-bigscreen/src/api/weather.js create mode 100644 yanzhu-bigscreen/src/assets/icons/svg/humidity.svg create mode 100644 yanzhu-bigscreen/src/assets/icons/svg/precipitation.svg create mode 100644 yanzhu-bigscreen/src/assets/icons/svg/pressure.svg create mode 100644 yanzhu-bigscreen/src/assets/icons/svg/wind.svg rename yanzhu-bigscreen/src/{components-old => components}/people-number.vue (86%) create mode 100644 yanzhu-bigscreen/src/views/test/detail.js create mode 100644 yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/WeatherController.java diff --git a/yanzhu-bigscreen/src/api/index.js b/yanzhu-bigscreen/src/api/index.js index 90877d10..f9074947 100644 --- a/yanzhu-bigscreen/src/api/index.js +++ b/yanzhu-bigscreen/src/api/index.js @@ -1,8 +1,10 @@ import {axios,download} from '@/utils/request' import project from './project' +import weather from './weather' export default { http:axios, downFile:download, - project + project, + weather } \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api/weather.js b/yanzhu-bigscreen/src/api/weather.js new file mode 100644 index 00000000..9e2ae8ab --- /dev/null +++ b/yanzhu-bigscreen/src/api/weather.js @@ -0,0 +1,28 @@ +import request from "@/utils/request"; + + +const getByCity = (id) => { + return request({ + url: "/manage/weather/city/"+id, + method: "get", + }); + }; + +const getCityInfo = () => { +return request({ + url: "/manage/weather/getCityInfo", + method: "get", +}); +}; + +const getCityNowInfo = (id) => { + return request({ + url: "/manage/weather/getCityNowInfo/"+id, + method: "get", + }); + }; +export default { + getByCity, + getCityInfo, + getCityNowInfo +} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/assets/icons/svg/humidity.svg b/yanzhu-bigscreen/src/assets/icons/svg/humidity.svg new file mode 100644 index 00000000..f956d0c4 --- /dev/null +++ b/yanzhu-bigscreen/src/assets/icons/svg/humidity.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/yanzhu-bigscreen/src/assets/icons/svg/precipitation.svg b/yanzhu-bigscreen/src/assets/icons/svg/precipitation.svg new file mode 100644 index 00000000..cbdd0e3f --- /dev/null +++ b/yanzhu-bigscreen/src/assets/icons/svg/precipitation.svg @@ -0,0 +1,5 @@ + + \ No newline at end of file diff --git a/yanzhu-bigscreen/src/assets/icons/svg/pressure.svg b/yanzhu-bigscreen/src/assets/icons/svg/pressure.svg new file mode 100644 index 00000000..90e2533e --- /dev/null +++ b/yanzhu-bigscreen/src/assets/icons/svg/pressure.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/yanzhu-bigscreen/src/assets/icons/svg/wind.svg b/yanzhu-bigscreen/src/assets/icons/svg/wind.svg new file mode 100644 index 00000000..8a6aa820 --- /dev/null +++ b/yanzhu-bigscreen/src/assets/icons/svg/wind.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/people-number.vue b/yanzhu-bigscreen/src/components/people-number.vue similarity index 86% rename from yanzhu-bigscreen/src/components-old/people-number.vue rename to yanzhu-bigscreen/src/components/people-number.vue index 004f9fb6..6dccccc2 100644 --- a/yanzhu-bigscreen/src/components-old/people-number.vue +++ b/yanzhu-bigscreen/src/components/people-number.vue @@ -1,7 +1,7 @@