iscs 矩形右键代码调整

This commit is contained in:
joylink_cuiweidong 2020-02-05 17:06:42 +08:00
parent e560ee0e02
commit 544b930e48
2 changed files with 33 additions and 2 deletions

View File

@ -69,6 +69,22 @@ export default {
]) ])
}, },
watch:{ watch:{
'$store.state.iscs.rightClickCount': function (val) {
const model = this.$store.getters['iscs/updateDeviceData'];
if (model._type === 'IscsRect' ) {
this.buttonText = '修改';
this.showDeleteButton = true;
this.isUpdate = true;
this.form.code = model.code;
this.form.fillColor = model.fillColor;
this.form.borderWidth = model.borderWidth;
this.form.strokeColor = model.strokeColor;
this.form.width = model.width;
this.form.height = model.height;
this.form.x = model.point.x;
this.form.y = model.point.y;
}
}
}, },
mounted() {}, mounted() {},
methods: { methods: {

View File

@ -74,6 +74,21 @@ export default {
]) ])
}, },
watch:{ watch:{
'$store.state.iscs.rightClickCount': function (val) {
const model = this.$store.getters['iscs/updateDeviceData'];
if (model._type === 'IscsText' ) {
this.buttonText = '修改';
this.showDeleteButton = true;
this.isUpdate = true;
this.form.code = model.code;
this.form.context = model.context;
this.form.fontSize = model.fontSize;
this.form.fontWeight = model.fontWeight;
this.form.textFill = model.textFill;
this.form.x = model.point.x;
this.form.y = model.point.y;
}
}
}, },
mounted() {}, mounted() {},
methods: { methods: {