|
|
@ -80,6 +80,7 @@ |
|
|
|
class="demo-select-base" |
|
|
|
clearable |
|
|
|
filterable |
|
|
|
@change="handleSelectChange" |
|
|
|
placeholder="请选择堆芯" |
|
|
|
> |
|
|
|
<t-option |
|
|
@ -143,7 +144,7 @@ import { |
|
|
|
} from '@/command' |
|
|
|
import { coreListApi } from '@/api/info' |
|
|
|
import { MessagePlugin } from 'tdesign-vue-next' |
|
|
|
import { addCameraConfig } from '@/api/camera' |
|
|
|
import { addCameraConfig, getCameraConfig } from '@/api/camera' |
|
|
|
|
|
|
|
const photoUrl = ref('') |
|
|
|
const recognitionResult = ref('') |
|
|
@ -151,6 +152,28 @@ const station_core_id = ref('') |
|
|
|
|
|
|
|
const coreList = ref([]) |
|
|
|
|
|
|
|
const handleSelectChange = async val => { |
|
|
|
const res = await getCameraConfig(val) |
|
|
|
if (res?.code == 200) { |
|
|
|
if (res?.data?.exposure) { |
|
|
|
exposure.value = res?.data?.exposure |
|
|
|
// 改变相机的exposure |
|
|
|
handleExposureTime(res?.data?.exposure) |
|
|
|
} else { |
|
|
|
exposure.value = 0 |
|
|
|
handleExposureTime(0) |
|
|
|
} |
|
|
|
if (res?.data?.brightness) { |
|
|
|
simulation_brightness.value = res?.data?.brightness |
|
|
|
// 改变相机的simulation_brightness |
|
|
|
handleSimulationBrightness(res?.data?.brightness) |
|
|
|
} else { |
|
|
|
simulation_brightness.value = 0 |
|
|
|
handleSimulationBrightness(0) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
onMounted(async () => { |
|
|
|
const res = await coreListApi() |
|
|
|
if (res?.code == 200) { |
|
|
|