|
@@ -96,7 +96,7 @@
|
|
|
{ field: 'version', componentProps: { options: option } },
|
|
|
{ field: 'wifiNamePrefix', componentProps: { options: wifiNamePrefixlist } },
|
|
|
]);
|
|
|
- setFieldsValue({ colour: '', wifiNamePrefix: wifiNamePrefixlist[0].value, version: '标准版' });
|
|
|
+ setFieldsValue({ colour: '黑色', wifiNamePrefix: wifiNamePrefixlist[0].value, version: '标准版' });
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -159,7 +159,6 @@
|
|
|
modelRef.value = data;
|
|
|
resetFields();
|
|
|
let wifiNamePrefix = data.wifiName && data.wifiName.split('_')[0];
|
|
|
- if (!data.id) return
|
|
|
updateSchema([
|
|
|
{ field: 'colour', componentProps: { options: getColor(data.type || 1) } },
|
|
|
{
|
|
@@ -191,6 +190,7 @@
|
|
|
{ field: 'wifiNamePrefix', show: !data.id, componentProps: { options: getWifilist(data.type || 1) } },
|
|
|
{ field: 'snCode', show: !data.id, },
|
|
|
]);
|
|
|
+ if (!data.id) return
|
|
|
setFieldsValue({
|
|
|
...data,
|
|
|
cameraType: data.type,
|