iscs 绘图组件代码调整

This commit is contained in:
joylink_cuiweidong 2020-01-19 14:56:22 +08:00
parent 40cca79ce8
commit 0d3a095a81
7 changed files with 9 additions and 12 deletions

View File

@ -31,7 +31,7 @@ export default class chiller extends Group {
},
style: {
stroke:this.model.color,
lineWidth:2
lineWidth:1
}
});
this.circle1 = new Circle({
@ -81,7 +81,7 @@ export default class chiller extends Group {
},
style: {
stroke:this.model.color,
lineWidth:2
lineWidth:1
}
});
@ -104,7 +104,7 @@ export default class chiller extends Group {
},
style: {
stroke:this.model.color,
lineWidth:2
lineWidth:1
}
});
@ -127,7 +127,7 @@ export default class chiller extends Group {
},
style: {
stroke:this.model.color,
lineWidth:2
lineWidth:1
}
});

View File

@ -26,7 +26,7 @@ export default class frozenPump extends Group {
},
style: {
stroke: this.model.color,
lineWidth:2
lineWidth:1
}
});
this.triangle = new Polygon({

View File

@ -73,7 +73,7 @@ export default {
x: this.addModel.x,
y: this.addModel.y
},
code: this.isUpdate ? this.form.code : getUID('VolumeControlDamper', this.iscs.semiAutomaticTicketMachineList),
code: this.isUpdate ? this.form.code : getUID('SemiAutomaticTicketMachine', this.iscs.semiAutomaticTicketMachineList),
_type: 'SemiAutomaticTicketMachine',
width: this.addModel.width
};

View File

@ -84,7 +84,7 @@ export default {
x: this.form.x,
y: this.form.y
},
_type: 'AirConditioner',
_type: 'VolumeControlDamper',
code: this.isUpdate ? this.form.code : getUID('VolumeControlDamper', this.iscs.volumeControlDamperList),
width: this.form.width,
color:'#00ff00'

View File

@ -72,7 +72,7 @@ export default {
x: this.addModel.x,
y: this.addModel.y
},
code: this.isUpdate ? this.form.code : getUID('VolumeControlDamper', this.iscs.fireHydranAlarmButtonList),
code: this.isUpdate ? this.form.code : getUID('FireHydranAlarmButton', this.iscs.fireHydranAlarmButtonList),
_type: 'FireHydranAlarmButton',
width: this.addModel.width
};

View File

@ -73,7 +73,7 @@ export default {
x: this.addModel.x,
y: this.addModel.y
},
code: this.isUpdate ? this.form.code : getUID('VolumeControlDamper', this.iscs.manualAlarmButtonList),
code: this.isUpdate ? this.form.code : getUID('ManualAlarmButton', this.iscs.manualAlarmButtonList),
_type: 'ManualAlarmButton',
width: this.addModel.width
};

View File

@ -66,9 +66,6 @@ export default {
},
methods: {
onSubmit(form) {
if (!this.addModel.code) {
this.generateCode();
}
this.$refs[form].validate((valid) => {
if (valid) {
const maButtonModel = {