|
@@ -44,7 +44,7 @@
|
|
|
import { useModal } from '/@/components/Modal';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
- import { UnbindCameraApi } from '/@/api/account';
|
|
|
+ import { UnbindCameraApi, cameraAllType } from '/@/api/account';
|
|
|
import { isBoolean } from 'lodash';
|
|
|
const { t } = useI18n();
|
|
|
export default defineComponent({
|
|
@@ -154,31 +154,13 @@
|
|
|
{
|
|
|
field: 'type',
|
|
|
label: '设备类型',
|
|
|
- component: 'Select',
|
|
|
+ component: 'ApiSelect',
|
|
|
componentProps: {
|
|
|
- maxLength: 100,
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: '旧双目相机',
|
|
|
- value: '0',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '四维看看',
|
|
|
- value: '1',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '四维看看lite',
|
|
|
- value: '2',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '四维看见',
|
|
|
- value: '9',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '四维深时',
|
|
|
- value: '10',
|
|
|
- },
|
|
|
- ],
|
|
|
+ api: cameraAllType,
|
|
|
+ numberToString: true,
|
|
|
+ labelField: 'name',
|
|
|
+ valueField: 'cameraType',
|
|
|
+ immediate: true,
|
|
|
},
|
|
|
colProps: {
|
|
|
xl: 4,
|