From 4921ef87bf3f9f18838d5c736f82a1a4c90e08ac Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 06 Sep 2025 17:53:43 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/prod' into prod
---
src/api/device-setting/index.js | 4 ++--
src/store/modules/device.js | 2 +-
src/views/device/components/DeviceSettingBox.vue | 4 ++--
.env.production | 2 ++
src/views/device/components/use-device-setting.js | 4 ++--
5 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/.env.production b/.env.production
index 97e2aff..06cd550 100644
--- a/.env.production
+++ b/.env.production
@@ -33,6 +33,8 @@
# 算法仓库图片地址
VITE_APP_PICTURE_URL = https://wrj.shuixiongit.com/aiskyminio/cloud-bucket
+# 行政区划存放地址
+VITE_APP_REGION_URL = https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ztzf_region
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip
diff --git a/src/api/device-setting/index.js b/src/api/device-setting/index.js
index 3ccc262..a1bef21 100644
--- a/src/api/device-setting/index.js
+++ b/src/api/device-setting/index.js
@@ -14,8 +14,8 @@
const workspaceId = localStorage.getItem(ELocalStorageKey.WorkspaceId) || ''
-export const putDeviceProps = (deviceSn, body) => {
- console.log(deviceSn, body, workspaceId, '8888')
+export const putDeviceProps = (deviceSn, workspaceId, body) => {
+ console.log(deviceSn, workspaceId, body, '8888')
return request({
url: `/drone-device-core/manage/api/v1/devices/${workspaceId}/devices/${deviceSn}/property`,
method: 'put',
diff --git a/src/store/modules/device.js b/src/store/modules/device.js
index 72ad0a7..ea7b9dc 100644
--- a/src/store/modules/device.js
+++ b/src/store/modules/device.js
@@ -80,7 +80,7 @@
const mutations = {
// 获取视频相关信息
SAVE_VIDEO_SURVEILLANCE_INFO (state, info) {
- console.log('videoSurveillanceInfo', info)
+ // console.log('videoSurveillanceInfo', info)
state.videoSurveillance = info
},
SET_LAYER_INFO (state, info) {
diff --git a/src/views/device/components/DeviceSettingBox.vue b/src/views/device/components/DeviceSettingBox.vue
index 1b25451..2621bc2 100644
--- a/src/views/device/components/DeviceSettingBox.vue
+++ b/src/views/device/components/DeviceSettingBox.vue
@@ -356,11 +356,11 @@
deviceSetting.value[settingKey].popConfirm.visible = false;
}
-async function onConfirm(settingKey) {
+async function onConfirm(settingKey,) {
deviceSetting.value[settingKey].popConfirm.loading = true;
const body = genDevicePropsBySettingKey(settingKey, deviceSettingFormModel.value);
localStorage.setItem(ELocalStorageKey.WorkspaceId, props.deviceInfo.workspace_id)
- await setDeviceProps(props.sn, body);
+ await setDeviceProps(props.sn, props.deviceInfo.workspace_id, body);
deviceSetting.value[settingKey].popConfirm.loading = false;
deviceSetting.value[settingKey].popConfirm.visible = false;
}
diff --git a/src/views/device/components/use-device-setting.js b/src/views/device/components/use-device-setting.js
index 258c6bf..a57cc92 100644
--- a/src/views/device/components/use-device-setting.js
+++ b/src/views/device/components/use-device-setting.js
@@ -50,9 +50,9 @@
}
// 设置设备属性
- async function setDeviceProps(sn, body) {
+ async function setDeviceProps(sn, workspaceId, body) {
try {
- await putDeviceProps(sn, body).then(res => {
+ await putDeviceProps(sn, workspaceId, body).then(res => {
if (res.data.code === 0) {
ElMessage({
message: '设备属性设置成功!',
--
Gitblit v1.9.3