iscs调整&ibp接口参数修改

This commit is contained in:
fan 2020-09-18 09:26:25 +08:00
parent aa52945003
commit 89fcb3fe2f
6 changed files with 34 additions and 33 deletions

View File

@ -621,9 +621,9 @@ export function getPlcGateway(group) {
// }); // });
// } // }
export function handlerIbpEvent(group, button) { export function handlerIbpEvent(group, button, stationCode) {
return request({ return request({
url: `/simulation/${group}/ibp/${button}`, url: `/simulation/${group}/ibp/${button}?stationCode=${stationCode}`,
method: 'put' method: 'put'
}); });
} }

View File

@ -131,7 +131,6 @@ class Iscs {
updateIscsData(store.state.iscs, elem); updateIscsData(store.state.iscs, elem);
const oDevice = this.iscsDevice[code] || deviceFactory(type, elem); const oDevice = this.iscsDevice[code] || deviceFactory(type, elem);
const nDevice = deviceFactory(type, Object.assign(oDevice.model || {}, elem)); const nDevice = deviceFactory(type, Object.assign(oDevice.model || {}, elem));
console.log(nDevice, '****', this.iscsDevice[code]);
delete this.iscsDevice[code]; delete this.iscsDevice[code];
this.$painter.delete(oDevice); this.$painter.delete(oDevice);
if (!elem._dispose) { if (!elem._dispose) {

View File

@ -174,16 +174,18 @@ export default class CommunicationButcher extends Group {
lineWidth: 1 lineWidth: 1
} }
}); });
// x: this.model.width / 4 * 3,
// y: this.model.width / 8,
// width: this.model.width / 7,
// height: this.model.width / 12
this.line9 = new Line({ this.line9 = new Line({
zlevel: this.zlevel, zlevel: this.zlevel,
z: this.z + 1, z: this.z + 1,
shape: { shape: {
x1: this.model.width * 3 / 4, x1: this.model.width * 3 / 4,
y1: this.model.width * 10 / 48 y1: this.model.width / 6,
x2: this.model.width * 25 / 28,
y2: this.model.width / 6
},
style: {
stroke: '#000',
lineWidth: 1
} }
}); });
this.grouper.add(this.rect1); this.grouper.add(this.rect1);
@ -197,8 +199,8 @@ export default class CommunicationButcher extends Group {
this.grouper.add(this.line6); this.grouper.add(this.line6);
this.grouper.add(this.line7); this.grouper.add(this.line7);
this.grouper.add(this.line8); this.grouper.add(this.line8);
this.grouper.add(this.line9);
this.add(this.grouper); this.add(this.grouper);
console.log(this.grouper, '-----------');
} }
setState(model) { setState(model) {
if (model.state === 'normal') { if (model.state === 'normal') {

View File

@ -191,7 +191,7 @@ export default {
onMouseDown(em) { onMouseDown(em) {
if (em.deviceModel.mean) { if (em.deviceModel.mean) {
if (IbpOperation[em.deviceModel.mean]) { if (IbpOperation[em.deviceModel.mean]) {
handlerIbpEvent(this.$route.query.group, IbpOperation[em.deviceModel.mean].event); handlerIbpEvent(this.$route.query.group, IbpOperation[em.deviceModel.mean].event, this.stationCode);
} }
} }
}, },

View File

@ -454,47 +454,47 @@ export default {
}, },
{ {
name: '自动售检票/门禁', name: '自动售检票/门禁',
mode: '', mode: 'fafc',
id: '', id: 'fafc',
type: '', type: 'totalSystem',
children: [ children: [
{ {
name: '自动售检票系统', name: '自动售检票系统',
mode: '', mode: 'autoTicket',
id: '', id: 'autoTicket',
type: '' type: 'interface'
}, },
{ {
name: '门禁系统', name: '门禁系统',
mode: '', mode: 'entranceGuard',
id: '', id: 'entranceGuard',
type: '' type: 'interface'
} }
] ]
}, },
{ {
name: '火灾报警系统', name: '火灾报警系统',
mode: '', mode: 'ffas',
id: '', id: 'ffas',
type: '', type: 'totalSystem',
children: [ children: [
{ {
name: '火灾报警系统-FAS联动', name: '火灾报警系统-FAS联动',
mode: '', mode: 'linkage',
id: '', id: 'linkage',
type: '' type: 'interface'
}, },
{ {
name: '火灾报警系统-站厅层', name: '火灾报警系统-站厅层',
mode: '', mode: 'stationHall',
id: '', id: 'stationHall',
type: '' type: 'interface'
}, },
{ {
name: '火灾报警系统-站台层', name: '火灾报警系统-站台层',
mode: '', mode: 'platform',
id: '', id: 'platform',
type: '' type: 'interface'
}, },
{ {
name: '火灾报警系统-区间', name: '火灾报警系统-区间',

View File

@ -28,7 +28,7 @@ export default {
return { return {
form:{ form:{
code: '', code: '',
width: 20, width: 50,
x: 10, x: 10,
y: 10 y: 10
}, },
@ -96,7 +96,7 @@ export default {
this.showDeleteButton = false; this.showDeleteButton = false;
this.form = { this.form = {
code: '', code: '',
width: 20, width: 50,
x: 10, x: 10,
y: 10 y: 10
}; };