iscs 绘图代码调整
新版地图 交路绘图代码调整
This commit is contained in:
parent
0200d8acf9
commit
76fd09cf08
@ -172,7 +172,7 @@ deviceRender[deviceType.AirConditioner] = {
|
||||
deviceRender[deviceType.VolumeControlDamper] = {
|
||||
_type: deviceType.VolumeControlDamper,
|
||||
zlevel: 1,
|
||||
z: 4
|
||||
z: 5
|
||||
};
|
||||
/** 文字 */
|
||||
deviceRender[deviceType.IscsText] = {
|
||||
|
File diff suppressed because one or more lines are too long
@ -18,9 +18,9 @@ export default class volumeControlDamper extends Group {
|
||||
});
|
||||
this.path = createPathSvg(this.model);
|
||||
this.grouper.add(this.path);
|
||||
this.add(this.grouper);
|
||||
this.grouper.origin = [this.model.width / 2, this.model.width * 1.368 / 2];
|
||||
this.grouper.rotation = Math.PI / 180 * (this.model.rotateAngle || 0);
|
||||
this.add(this.grouper);
|
||||
}
|
||||
setModel(dx, dy) {
|
||||
this.model.point.x += dx;
|
||||
|
@ -64,6 +64,8 @@ const map = {
|
||||
|
||||
export default function createPathSvg(model) {
|
||||
const svg = path.createFromString(map[model._type].path, {
|
||||
z:model.z,
|
||||
zlevel:model.zlevel,
|
||||
style: {
|
||||
fill: model.fill || '#00FF00'
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
<el-input v-model="form.code" :disabled="true" />
|
||||
</el-form-item>
|
||||
<el-form-item label="图形宽度" prop="width">
|
||||
<el-input-number v-model="form.width" :min="20" />
|
||||
<el-input-number v-model="form.width" :min="15" />
|
||||
</el-form-item>
|
||||
<el-form-item label="方向" prop="direction">
|
||||
<el-select v-model="form.direction" placeholder="请选择类型">
|
||||
|
@ -207,6 +207,7 @@ export default {
|
||||
isSave: true,
|
||||
loading: false,
|
||||
generating:false,
|
||||
oldsection:[],
|
||||
DirectionCodeList: [{label: '右行', value: true}, {label: '左行', value: false}],
|
||||
addModel: {
|
||||
name: '',
|
||||
@ -577,15 +578,23 @@ export default {
|
||||
changeSectionSelected(selectedList, flag) {
|
||||
if (this.addModel.parkSectionCodeList.length > 0) {
|
||||
if (flag) {
|
||||
if (this.oldsection.length > 0) {
|
||||
this.oldsection.forEach((section)=>{
|
||||
section.instance.drawBatchSelected(section, '');
|
||||
});
|
||||
this.oldsection = [];
|
||||
}
|
||||
selectedList.forEach(each=>{
|
||||
const section = this.$store.getters['map/getDeviceByCode'](each.sectionCode);
|
||||
const list = section.logicSectionCodeList;
|
||||
if (list.length > 0) {
|
||||
list.forEach(logicSectionCode=>{
|
||||
const logicSection = this.$store.getters['map/getDeviceByCode'](logicSectionCode);
|
||||
this.oldsection.push(logicSection);
|
||||
logicSection.instance.drawBatchSelected(section, 'routingSection');
|
||||
});
|
||||
} else {
|
||||
this.oldsection.push(section);
|
||||
section.instance.drawBatchSelected(section, 'routingSection');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user