update
1.AED布点管理,布点位置调整为可手输可选点
This commit is contained in:
@@ -167,27 +167,60 @@ export const formSchema: FormSchema[] = [
|
|||||||
componentProps: () => ({ format: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD', style: { width: '100%' } }),
|
componentProps: () => ({ format: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD', style: { width: '100%' } }),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '布点地址',
|
label: '地点',
|
||||||
|
field: 'geoCollectType',
|
||||||
|
component: 'RadioGroup',
|
||||||
|
required: true,
|
||||||
|
defaultValue: '0',
|
||||||
|
componentProps: {
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
value: '0',
|
||||||
|
label: '地图选点',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '1',
|
||||||
|
label: '手动输入',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '地图选点',
|
||||||
field: 'installAddress',
|
field: 'installAddress',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
slot: 'installAddress',
|
slot: 'installAddress',
|
||||||
rules: [{ required: true, message: '请选择布点位置' }],
|
dynamicRules: ({ values }) => {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
required: values.geoCollectType == 0,
|
||||||
|
message: '请进行地图选点',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
},
|
||||||
|
// required: ({ values }) => values.geoCollectType == 0,
|
||||||
|
show: ({ values }) => values.geoCollectType == 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '经度',
|
label: '经度',
|
||||||
field: 'longitude',
|
field: 'longitude',
|
||||||
component: 'InputNumber',
|
component: 'Input',
|
||||||
componentProps: () => ({ style: { width: '100%' } }),
|
required: ({ values }) => values.geoCollectType == 1,
|
||||||
show: false,
|
show: ({ values }) => values.geoCollectType == 1,
|
||||||
// required: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '纬度',
|
label: '纬度',
|
||||||
field: 'latitude',
|
field: 'latitude',
|
||||||
component: 'InputNumber',
|
component: 'Input',
|
||||||
componentProps: () => ({ style: { width: '100%' } }),
|
required: ({ values }) => values.geoCollectType == 1,
|
||||||
show: false,
|
show: ({ values }) => values.geoCollectType == 1,
|
||||||
// required: true,
|
},
|
||||||
|
{
|
||||||
|
label: '详细地址',
|
||||||
|
field: 'installAddress',
|
||||||
|
component: 'Input',
|
||||||
|
required: ({ values }) => values.geoCollectType == 1,
|
||||||
|
show: ({ values }) => values.geoCollectType == 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '覆盖人数',
|
label: '覆盖人数',
|
||||||
|
|||||||
Reference in New Issue
Block a user