|
|
@ -129,6 +129,7 @@ import { |
|
|
|
useCameraStore, |
|
|
|
} from '@/store' |
|
|
|
import { allOperatorApi } from '@/api/publish' |
|
|
|
import { getCameraConfig } from '@/api/camera' |
|
|
|
import moment from 'moment' |
|
|
|
import Cookie from '@/utils/cookie' |
|
|
|
const accountStore = useAccountStore() |
|
|
@ -416,7 +417,11 @@ export default { |
|
|
|
], |
|
|
|
} |
|
|
|
}, |
|
|
|
props: ['startCaptureFunc'], |
|
|
|
props: [ |
|
|
|
'startCaptureFunc', |
|
|
|
'handleSimulationBrightness', |
|
|
|
'handleExposureTime', |
|
|
|
], |
|
|
|
components: { |
|
|
|
PathPlan, |
|
|
|
}, |
|
|
@ -538,10 +543,25 @@ export default { |
|
|
|
accountStore.changePage(0) |
|
|
|
taskStore.updateCurrentDetailTaskId(null) |
|
|
|
}, |
|
|
|
startTask(row, coreName, flag, canUpload) { |
|
|
|
async startTask(row, coreName, flag, canUpload) { |
|
|
|
if (flag == 1 && canUpload) { |
|
|
|
return |
|
|
|
} |
|
|
|
// 需要设置相机的参数 根据核堆id获取 |
|
|
|
const res = await getCameraConfig(row.nuclearCoreId) |
|
|
|
console.log(res) |
|
|
|
if (res?.code == 200) { |
|
|
|
if (res?.data?.exposure) { |
|
|
|
// 改变相机的exposure |
|
|
|
this.startCaptureFunc() |
|
|
|
this.handleExposureTime() |
|
|
|
} |
|
|
|
if (res?.data?.simulation_brightness) { |
|
|
|
// 改变相机的simulation_brightness |
|
|
|
this.startCaptureFunc() |
|
|
|
this.handleSimulationBrightness() |
|
|
|
} |
|
|
|
} |
|
|
|
this.startCaptureFunc() |
|
|
|
taskStore.updateTaskStatus(row.status) |
|
|
|
taskStore.updateCurrentCoord(row.currentCoord) |
|
|
|