diff --git a/frontend/Skyeye-sys-ui/src/api/task.js b/frontend/Skyeye-sys-ui/src/api/task.js index ea685c1..ae9a118 100644 --- a/frontend/Skyeye-sys-ui/src/api/task.js +++ b/frontend/Skyeye-sys-ui/src/api/task.js @@ -86,4 +86,7 @@ export const changePayloadRadarOpenState = params => export const changeJobStatus = params => - req('post', '/sar/job/status/', params) + req('post', '/sar/job/status', params) + +export const execBrightnessexport = params => + req('post', '/jm/job/exec/brightnessexport', params) diff --git a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js index 4b7a493..3f2f8a8 100644 --- a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js +++ b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js @@ -21,7 +21,7 @@ import { getTaskItemDetail, getTaskListData, getUavListData, - reRunTask, stopTaskFly, getExecJobs + reRunTask, stopTaskFly, getExecJobs, execBrightnessexport } from '@/api/task' import UavTarget from './uavTarget' import PicturesUpload from '../pictures-upload/index.vue' @@ -395,7 +395,7 @@ export default { data: [] }, emptyImg: require('@/assets/img/common/empty.svg'), - lightPercent: 10, + lightPercent: 0, contrastPercent: 10 } }, @@ -588,8 +588,14 @@ export default { }, // 亮度设置变化 onLightChange: debounce(function (value) { - - }, 200), + execBrightnessexport({ + jobId: this.detailUav.id, + brightness: value + }).then(res => { + console.log('亮度调整成功'); + // this.$message.success('亮度调整成功') + }) + }, 500), // startTest() { // let testHeight = 1000 // window.detectType = { diff --git a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue index 0778be3..0b914c9 100644 --- a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue +++ b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue @@ -138,6 +138,7 @@