代码调整
This commit is contained in:
parent
1ca70a08b8
commit
60aeeaedea
@ -139,7 +139,7 @@ export default {
|
|||||||
this.field = field === this.field ? '' : field;
|
this.field = field === this.field ? '' : field;
|
||||||
},
|
},
|
||||||
clickEvent(em) {
|
clickEvent(em) {
|
||||||
if (this.field.toUpperCase() === 'selectDevice'.toUpperCase()) {
|
if (this.field.toUpperCase() === 'selectDevice'.toUpperCase() && !this.formModel.deviceIds.includes(em.deviceCode)) {
|
||||||
const device = this.getDeviceByEm(em);
|
const device = this.getDeviceByEm(em);
|
||||||
this.formModel.deviceIds.push(device.code);
|
this.formModel.deviceIds.push(device.code);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user