From 61cbf02877feefc275f0ff602afe2a9b122d8d65 Mon Sep 17 00:00:00 2001 From: 18650502300 <18650502300@163.com> Date: Mon, 2 Sep 2024 09:09:08 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8F=90=E7=8E=B0=E5=B1=95=E7=A4=BA=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81=202.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 4 +- src/api/system/hardwareVersion.js | 9 +++ src/views/system/device/index.vue | 14 ++--- src/views/system/hardwareVersion/index.vue | 19 +++++- src/views/system/recharge/index.vue | 2 +- src/views/system/withdrawAudit/index.vue | 69 ++++++++++++---------- 6 files changed, 74 insertions(+), 43 deletions(-) diff --git a/.env.production b/.env.production index bbd9562..1fe549c 100644 --- a/.env.production +++ b/.env.production @@ -5,8 +5,8 @@ VUE_APP_TITLE = 共享电动车管理系统 ENV = 'production' # 共享电动车管理系统/生产环境 -# VUE_APP_BASE_API = 'https://dche.ccttiot.com/prod-api' -VUE_APP_BASE_API = 'https://che.chuangtewl.com/prod-api' +VUE_APP_BASE_API = 'https://dche.ccttiot.com/prod-api' +# VUE_APP_BASE_API = 'https://che.chuangtewl.com/prod-api' # 小程序外链跳转设备 VUE_APP_WX_DEVICE_URL = 'weixin://dl/business/?appid=wx4d178f8c80348214&env_version=release' diff --git a/src/api/system/hardwareVersion.js b/src/api/system/hardwareVersion.js index 1741ae0..35cac74 100644 --- a/src/api/system/hardwareVersion.js +++ b/src/api/system/hardwareVersion.js @@ -9,6 +9,15 @@ export function listHardwareVersion(query) { }) } +// 查询硬件版本列表 排除父节点 +export function listHardwareVersionExcludeParent(query) { + return request({ + url: '/system/hardwareVersion/list/exclude', + method: 'get', + params: query + }) +} + // 查询硬件版本详细 export function getHardwareVersion(id) { return request({ diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue index 48d3c03..2d3701d 100644 --- a/src/views/system/device/index.vue +++ b/src/views/system/device/index.vue @@ -809,7 +809,7 @@ { - this.hardwareVersionOptions = response.rows; + listHardwareVersionExcludeParent(this.queryParams).then((response) => { + this.hardwareVersionOptions = response.data; this.loading2 = false; }); console.log("当前用户信息:", this.$store.state.user.name); @@ -1483,13 +1483,13 @@ export default { endTime: this.formatDate(this.endTime), }; this.showPlaceSearchMap=false - + gettrajectory(data).then((response) => { this.tripRouteStr = response.data; // this.re this.showPlaceSearchMap=true setTimeout(() => { - + this.$refs.map.trajectory(); }, 600); diff --git a/src/views/system/hardwareVersion/index.vue b/src/views/system/hardwareVersion/index.vue index abd2286..77983f6 100644 --- a/src/views/system/hardwareVersion/index.vue +++ b/src/views/system/hardwareVersion/index.vue @@ -100,6 +100,14 @@ @click="handleUpdate(scope.row)" v-hasPermi="['system:hardwareVersion:edit']" >修改 + 新增