|
@@ -17,96 +17,26 @@
|
|
|
import { BasicForm, FormSchema, useForm } from '/@/components/Form/index';
|
|
|
// import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
// import { checkUserAddAble } from '/@/api/corporation/modal';
|
|
|
- import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
- // import { bindAnchorListApi } from '/@/api/scene/live';
|
|
|
+ // import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
+ import { bindAnchorListApi } from '/@/api/scene/live';
|
|
|
|
|
|
- const { t } = useI18n();
|
|
|
+ // const { t } = useI18n();
|
|
|
const schemas: FormSchema[] = [
|
|
|
{
|
|
|
field: 'own',
|
|
|
- component: 'Input',
|
|
|
- label: t('routes.devices.own'),
|
|
|
- colProps: {
|
|
|
- span: 24,
|
|
|
- },
|
|
|
+ label: '主播选择:',
|
|
|
+ component: 'ApiSelect',
|
|
|
componentProps: {
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: '全部',
|
|
|
- value: '1',
|
|
|
- key: '1',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '正常',
|
|
|
- value: '2',
|
|
|
- key: '2',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '已关闭',
|
|
|
- value: '2',
|
|
|
- key: '2',
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- required: true,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'cameraType',
|
|
|
- component: 'Select',
|
|
|
- label: t('routes.devices.cameraType'),
|
|
|
- required: true,
|
|
|
- colProps: {
|
|
|
- span: 24,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'childName',
|
|
|
- component: 'Input',
|
|
|
- label: t('routes.devices.childName'),
|
|
|
- required: true,
|
|
|
- colProps: {
|
|
|
- span: 24,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'wifiName',
|
|
|
- component: 'Input',
|
|
|
- label: t('routes.devices.wifiName'),
|
|
|
- colProps: {
|
|
|
- span: 24,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'address',
|
|
|
- component: 'Input',
|
|
|
- label: t('routes.devices.address'),
|
|
|
- colProps: {
|
|
|
- span: 24,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'balance',
|
|
|
- component: 'Input',
|
|
|
- label: t('routes.devices.balance'),
|
|
|
- colProps: {
|
|
|
- span: 24,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'orderSn',
|
|
|
- component: 'Input',
|
|
|
- label: t('routes.devices.orderSn'),
|
|
|
- colProps: {
|
|
|
- span: 24,
|
|
|
- },
|
|
|
- required: true,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'companyId',
|
|
|
- component: 'Input',
|
|
|
- label: t('routes.devices.companyId'),
|
|
|
- colProps: {
|
|
|
- span: 24,
|
|
|
+ api: bindAnchorListApi,
|
|
|
+ // resultField: 'list',
|
|
|
+ numberToString: true,
|
|
|
+ labelField: 'name',
|
|
|
+ valueField: 'id',
|
|
|
+ immediate: true,
|
|
|
+ params: {
|
|
|
+ page: 1,
|
|
|
+ limit: 1000,
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
];
|
|
@@ -128,6 +58,7 @@
|
|
|
] = useForm({
|
|
|
labelWidth: 120,
|
|
|
schemas,
|
|
|
+ // api: bindAnchorListApi,
|
|
|
showActionButtonGroup: false,
|
|
|
actionColOptions: {
|
|
|
span: 24,
|