Merge remote-tracking branch 'origin/prod' into prod
| | |
| | | # 算法仓库图片地址 |
| | | 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 |
| | | |
| | |
| | | |
| | | 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', |
| | |
| | | const mutations = { |
| | | // 获取视频相关信息 |
| | | SAVE_VIDEO_SURVEILLANCE_INFO (state, info) { |
| | | console.log('videoSurveillanceInfo', info) |
| | | // console.log('videoSurveillanceInfo', info) |
| | | state.videoSurveillance = info |
| | | }, |
| | | SET_LAYER_INFO (state, info) { |
| | |
| | | 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; |
| | | } |
| | |
| | | } |
| | | |
| | | // 设置设备属性 |
| | | 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: '设备属性设置成功!', |