iscs 绘图组件代码调整
This commit is contained in:
parent
40cca79ce8
commit
0d3a095a81
@ -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
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -26,7 +26,7 @@ export default class frozenPump extends Group {
|
||||
},
|
||||
style: {
|
||||
stroke: this.model.color,
|
||||
lineWidth:2
|
||||
lineWidth:1
|
||||
}
|
||||
});
|
||||
this.triangle = new Polygon({
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -66,9 +66,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
onSubmit(form) {
|
||||
if (!this.addModel.code) {
|
||||
this.generateCode();
|
||||
}
|
||||
this.$refs[form].validate((valid) => {
|
||||
if (valid) {
|
||||
const maButtonModel = {
|
||||
|
Loading…
Reference in New Issue
Block a user