sics调整
This commit is contained in:
parent
c65429fc1c
commit
6604c4eb00
@ -71,6 +71,7 @@ export default class Vidicon extends Group {
|
||||
}
|
||||
|
||||
this.grouper.add(this.rect);
|
||||
this.grouper.rotation = Math.PI / 180 * (this.model.rotationAngle || 0);
|
||||
if (this.model.right) {
|
||||
this.grouper.add(this.PolylineRight);
|
||||
} else {
|
||||
|
@ -22,6 +22,7 @@ export default class Staircase extends Group {
|
||||
this.grouper.origin = [this.model.width / 2, this.model.width * 1.368 / 2];
|
||||
this.grouper.scale = [-1, 1];
|
||||
}
|
||||
this.grouper.rotation = Math.PI / 180 * (this.model.rotationAngle || 0);
|
||||
this.grouper.add(this.path);
|
||||
}
|
||||
setModel(dx, dy) {
|
||||
|
@ -34,6 +34,14 @@
|
||||
@deleteDataModel="deleteDataModel"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="扶梯" name="Staircase">
|
||||
<staircase
|
||||
ref="staircase"
|
||||
style="width: 90%;"
|
||||
@createDataModel="createDataModel"
|
||||
@deleteDataModel="deleteDataModel"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="文字" name="IscsText">
|
||||
<iscs-text
|
||||
ref="iscsText"
|
||||
@ -71,7 +79,7 @@
|
||||
import IscsText from '../iscsCommonElem/text';
|
||||
import IscsRect from '../iscsCommonElem/rect';
|
||||
import BrakeMachine from '../iscsAfcOperate/brakeMachine';
|
||||
|
||||
import Staircase from '../iscsOperate/staircase';
|
||||
export default {
|
||||
name: 'IscsOperate',
|
||||
components: {
|
||||
@ -80,7 +88,8 @@
|
||||
IscsRect,
|
||||
IscsLine,
|
||||
IscsText,
|
||||
BrakeMachine
|
||||
BrakeMachine,
|
||||
Staircase
|
||||
},
|
||||
mixins: [
|
||||
],
|
||||
|
@ -10,6 +10,9 @@
|
||||
<el-form-item label="扶梯朝右" prop="isRight">
|
||||
<el-checkbox v-model="addModel.isRight" />
|
||||
</el-form-item>
|
||||
<el-form-item label="旋转角度">
|
||||
<el-input-number v-model="addModel.rotationAngle"></el-input-number>
|
||||
</el-form-item>
|
||||
<el-form-item label="X轴坐标" prop="x">
|
||||
<el-input-number v-model="addModel.x" />
|
||||
</el-form-item>
|
||||
@ -37,6 +40,7 @@ export default {
|
||||
width: 25,
|
||||
x: 10,
|
||||
y: 10,
|
||||
rotationAngle: 0,
|
||||
isRight:false
|
||||
},
|
||||
rules: {
|
||||
@ -66,6 +70,7 @@ export default {
|
||||
this.addModel.x = model.point.x;
|
||||
this.addModel.y = model.point.y;
|
||||
this.addModel.isRight = model.isRight;
|
||||
this.addModel.rotationAngle = model.rotationAngle || 0;
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -80,6 +85,7 @@ export default {
|
||||
},
|
||||
fill:'#fff',
|
||||
isRight: this.addModel.isRight,
|
||||
rotationAngle: this.addModel.rotationAngle,
|
||||
code: this.isUpdate ? this.addModel.code : getUID('Staircase', this.iscs.staircaseList),
|
||||
_type: 'Staircase',
|
||||
width: this.addModel.width
|
||||
@ -99,6 +105,7 @@ export default {
|
||||
},
|
||||
code: this.addModel.code,
|
||||
isRight: this.addModel.isRight,
|
||||
rotationAngle: this.addModel.rotationAngle,
|
||||
_type: 'Staircase',
|
||||
width: this.addModel.width
|
||||
};
|
||||
@ -114,7 +121,8 @@ export default {
|
||||
width: 25,
|
||||
x: 10,
|
||||
y: 10,
|
||||
isRight:false
|
||||
isRight:false,
|
||||
rotationAngle: 0
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user