...
|
...
|
@@ -215,6 +215,16 @@ export const formSchema: QFormSchema[] = [ |
215
|
215
|
label: '所属组织',
|
216
|
216
|
required: true,
|
217
|
217
|
component: 'OrgTreeSelect',
|
|
218
|
+ componentProps({ formActionType }) {
|
|
219
|
+ return {
|
|
220
|
+ onChange() {
|
|
221
|
+ formActionType.setFieldsValue({
|
|
222
|
+ deviceId: null,
|
|
223
|
+ channelNo: null,
|
|
224
|
+ });
|
|
225
|
+ },
|
|
226
|
+ };
|
|
227
|
+ },
|
218
|
228
|
},
|
219
|
229
|
{
|
220
|
230
|
label: '视频流获取方式',
|
...
|
...
|
@@ -243,6 +253,12 @@ export const formSchema: QFormSchema[] = [ |
243
|
253
|
},
|
244
|
254
|
},
|
245
|
255
|
{
|
|
256
|
+ field: 'deviceName',
|
|
257
|
+ label: '设备名称',
|
|
258
|
+ component: 'Input',
|
|
259
|
+ show: false,
|
|
260
|
+ },
|
|
261
|
+ {
|
246
|
262
|
field: 'deviceId',
|
247
|
263
|
label: '设备',
|
248
|
264
|
required: true,
|
...
|
...
|
@@ -270,9 +286,11 @@ export const formSchema: QFormSchema[] = [ |
270
|
286
|
return [];
|
271
|
287
|
},
|
272
|
288
|
placeholder: '请选择设备',
|
273
|
|
- onChange() {
|
|
289
|
+ onChange(_, options) {
|
|
290
|
+ const { name, alias } = options;
|
274
|
291
|
setFieldsValue({
|
275
|
292
|
channelNo: [],
|
|
293
|
+ deviceName: alias || name,
|
276
|
294
|
});
|
277
|
295
|
},
|
278
|
296
|
onFocus() {
|
...
|
...
|
|