From df69595c93a17339d98993a98d12c96cd891561e Mon Sep 17 00:00:00 2001 From: freshman-white <2514756131@qq.com> Date: Fri, 1 Sep 2023 11:14:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 5 +-- package.json | 1 + src/api/manage.ts | 7 +++++ src/components/GMap.vue | 33 ++++++++++++++------ src/components/livestream-newOthers.vue | 41 +++++++++++++------------ src/pages/page-web/projects/tsa.vue | 7 ++--- 6 files changed, 60 insertions(+), 34 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index dd8f769..cf2d9ca 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,9 +3,10 @@ module.exports = { browser: true, commonjs: true, es2021: true, - node: true + node: true, }, - extends: ['standard', 'plugin:vue/vue3-essential'], + parser: 'vue-eslint-parser', + extends: ['standard','eslint:recommended', 'plugin:vue/vue3-essential'], parserOptions: { ecmaVersion: 12, parser: '@typescript-eslint/parser' diff --git a/package.json b/package.json index ba0c992..01fa3fd 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "vite-plugin-style-import": "^1.0.1", "vite-plugin-svg-icons": "^1.0.5", "vite-plugin-vconsole": "^1.1.0", + "vue-eslint-parser": "^9.3.1", "vue-tsc": "^0.0.24" }, "license": "ISC", diff --git a/src/api/manage.ts b/src/api/manage.ts index d2d0d52..2a2818d 100644 --- a/src/api/manage.ts +++ b/src/api/manage.ts @@ -69,6 +69,13 @@ export const getLiveCapacity = async function (body: {}): Promise> { + const url = `${HTTP_PREFIX}/live/capacity?sn=${id}` + const result = await request.get(url) + return result.data +} + // Start Livestream export const startLivestream = async function (body: {}): Promise> { const url = `${HTTP_PREFIX}/live/streams/start` diff --git a/src/components/GMap.vue b/src/components/GMap.vue index db81615..762993f 100644 --- a/src/components/GMap.vue +++ b/src/components/GMap.vue @@ -140,14 +140,14 @@ {{ 10 > (deviceInfo.device.battery.remain_flight_time % 60) ? '0' : ''}}{{deviceInfo.device.battery.remain_flight_time % 60 }} -
-
直播视频
+
+
直播视频
- +
+ +