+
+
+
+
+
+
+
+
+
+
+
+
+ {{ buttonText }}
+ 删除
+ 取消
+
+
+
+
+
+
+
+
diff --git a/src/views/iscs/iscsDraw/iscsCommonElem/ordinaryDoor.vue b/src/views/iscs/iscsDraw/iscsCommonElem/ordinaryDoor.vue
index 5b410dd7c..4b8708839 100644
--- a/src/views/iscs/iscsDraw/iscsCommonElem/ordinaryDoor.vue
+++ b/src/views/iscs/iscsDraw/iscsCommonElem/ordinaryDoor.vue
@@ -53,6 +53,7 @@ export default {
{label: '单扇有矩形', value: '3'},
{label: '双扇有矩形', value: '4'}
],
+ rules: {},
isUpdate: false,
buttonText: '立即创建',
showDeleteButton: false
@@ -74,6 +75,7 @@ export default {
this.form.x = model.point.x;
this.form.y = model.point.y;
this.form.r = model.r;
+ this.form.doorType = model.doorType;
this.form.rotationAngle = model.rotationAngle;
}
}
@@ -85,16 +87,14 @@ export default {
if (valid) {
const model = {
point: {
- x: this.form.x1,
- y: this.form.y1
+ x: this.form.x,
+ y: this.form.y
},
code: this.isUpdate ? this.form.code : getUID('OrdinaryDoor', this.iscs.ordinaryDoorList),
_type: 'OrdinaryDoor',
- lineWidth: this.form.lineWidth,
- fillColor: this.form.fillColor,
- classify: this.form.classify,
- arrowShow: this.form.arrowShow,
- arrowSize: this.form.arrowSize
+ rotationAngle: this.form.rotationAngle,
+ r: this.form.r,
+ doorType: this.form.doorType
};
this.$emit('createDataModel', model);
this.initPage();
@@ -105,21 +105,15 @@ export default {
},
deleteDevice() {
const lineModel = {
- point1: {
- x: this.form.x1,
- y: this.form.y1
- },
- point2: {
- x: this.form.x2,
- y: this.form.y2
+ point: {
+ x: this.form.x,
+ y: this.form.y
},
code: this.form.code,
- _type: 'IscsLine',
- lineWidth: this.form.lineWidth,
- fillColor: this.form.fillColor,
- classify: this.form.classify,
- arrowShow: this.form.arrowShow,
- arrowSize: this.form.arrowSize
+ _type: 'OrdinaryDoor',
+ rotationAngle: this.form.rotationAngle,
+ r: this.form.r,
+ doorType: this.form.doorType
};
this.$emit('deleteDataModel', lineModel);
},
@@ -129,15 +123,11 @@ export default {
this.showDeleteButton = false;
this.form = {
code: '',
- lineWidth: '',
- fillColor: '#fff',
- arrowShow: 'none',
- arrowSize: 5,
- x1: 10,
- y1: 10,
- x2: 20,
- y2: 10,
- classify:'solid'
+ doorType: '1',
+ r: 1,
+ rotationAngle: 0,
+ x: 10,
+ y: 10
};
}
}
diff --git a/src/views/newMap/displayNew/dispatherContest/index.vue b/src/views/newMap/displayNew/dispatherContest/index.vue
index f7e582cfb..8b01e2a32 100644
--- a/src/views/newMap/displayNew/dispatherContest/index.vue
+++ b/src/views/newMap/displayNew/dispatherContest/index.vue
@@ -53,7 +53,8 @@