Merge remote-tracking branch 'remotes/origin/test'

This commit is contained in:
joylink_cuiweidong 2021-05-17 19:20:29 +08:00
commit 5107ed5c0c

View File

@ -139,7 +139,7 @@ export default {
this.field = field === this.field ? '' : field;
},
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);
this.formModel.deviceIds.push(device.code);
}