Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
692c9f0c03
@ -18,7 +18,7 @@ class Iscs {
|
||||
this.methods = opts.methods;
|
||||
|
||||
// 鼠标事件
|
||||
this.events = { __Pan: 'pan', Selected: 'selected', Contextmenu: 'contextmenu', Keyboard: 'keyboard', dblclick: 'dblclick'};
|
||||
this.events = { __Pan: 'pan', Selected: 'selected', Contextmenu: 'contextmenu', Keyboard: 'keyboard', dblclick: 'dblclick', click:'click'};
|
||||
|
||||
// 设备数据
|
||||
this.iscsDevice = {};
|
||||
@ -280,6 +280,9 @@ class Iscs {
|
||||
case this.events.dblclick:
|
||||
this.$mouseController.on(this.events.dblclick, cb, context);
|
||||
break;
|
||||
case this.events.click:
|
||||
this.$mouseController.on(this.events.click, cb, context);
|
||||
break;
|
||||
case this.events.Contextmenu:
|
||||
this.$mouseController.on(this.events.Contextmenu, cb, context);
|
||||
break;
|
||||
@ -303,6 +306,9 @@ class Iscs {
|
||||
case this.events.dblclick:
|
||||
this.$mouseController.off(this.events.dblclick, cb);
|
||||
break;
|
||||
case this.events.click:
|
||||
this.$mouseController.off(this.events.click, cb);
|
||||
break;
|
||||
case this.events.Contextmenu:
|
||||
this.$mouseController.off(this.events.Contextmenu, cb);
|
||||
break;
|
||||
|
@ -138,7 +138,11 @@ class MouseController extends Eventful {
|
||||
}
|
||||
click(e) {
|
||||
var em = this.checkEvent(e);
|
||||
this.trigger(this.events.Selected, em);
|
||||
if (em.deviceType == 'IscsButton') {
|
||||
this.trigger(this.events.click, em);
|
||||
} else {
|
||||
this.trigger(this.events.Selected, em);
|
||||
}
|
||||
}
|
||||
moveEvent(e) {
|
||||
const newEm = new EventModel(e);
|
||||
|
@ -91,7 +91,7 @@ export default {
|
||||
function: '',
|
||||
textColor: '',
|
||||
textColorActive: '#000',
|
||||
fillColor: 'rgba(0,0,0,0)',
|
||||
fillColor: 'rgba(0,0,0,0)',
|
||||
fillColorActive: 'rgba(0,0,0,0)'
|
||||
},
|
||||
rules: {
|
||||
@ -127,8 +127,8 @@ export default {
|
||||
this.form.fontSize = model.fontSize;
|
||||
this.form.textColor = model.textColor || '#fff';
|
||||
this.form.textColorActive = model.textColorActive || '#000';
|
||||
this.form.fillColor = model.fillColor;
|
||||
this.form.fillColorActive = model.fillColorActive;
|
||||
this.form.fillColor = model.fillColor;
|
||||
this.form.fillColorActive = model.fillColorActive;
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -136,6 +136,8 @@ export default {
|
||||
if (this.$route.query.lineCode == '02') {
|
||||
this.functionList = [
|
||||
{label: '操作按钮', value: 'OperatingButton'},
|
||||
{label: '门禁站台层', value: 'goToStand'},
|
||||
{label: '门禁站厅层', value: 'goToStation'},
|
||||
{label: '元素显隐', value: 'ElementShow'},
|
||||
{label: '返回', value: 'GoBack'}
|
||||
];
|
||||
@ -172,8 +174,8 @@ export default {
|
||||
fontSize: this.form.fontSize,
|
||||
textColor: this.form.textColor,
|
||||
textColorActive: this.form.textColorActive,
|
||||
fillColor: this.form.fillColor,
|
||||
fillColorActive: this.form.fillColorActive
|
||||
fillColor: this.form.fillColor,
|
||||
fillColorActive: this.form.fillColorActive
|
||||
};
|
||||
this.$emit('createDataModel', rectModel);
|
||||
this.initPage();
|
||||
@ -195,8 +197,8 @@ export default {
|
||||
context: this.form.context,
|
||||
function: this.form.function,
|
||||
fontSize: this.form.fontSize,
|
||||
fillColor: this.form.fillColor,
|
||||
fillColorActive: this.form.fillColorActive
|
||||
fillColor: this.form.fillColor,
|
||||
fillColorActive: this.form.fillColorActive
|
||||
};
|
||||
this.$emit('deleteDataModel', rectModel);
|
||||
},
|
||||
@ -216,8 +218,8 @@ export default {
|
||||
function: '',
|
||||
textColor: '',
|
||||
textColorActive: '#000',
|
||||
fillColor: '',
|
||||
fillColorActive: ''
|
||||
fillColor: '',
|
||||
fillColorActive: ''
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -90,6 +90,7 @@ export default {
|
||||
this.$store.dispatch('iscs/setIscsData', iscsData);
|
||||
if (this.$route.query.group) {
|
||||
this.$iscs.on('dblclick', this.onDblclick, this);
|
||||
this.$iscs.on('click', this.onlclick, this);
|
||||
}
|
||||
},
|
||||
onDblclick(em) {
|
||||
@ -97,10 +98,30 @@ export default {
|
||||
if (em.deviceType == 'IscsGroup') {
|
||||
this.$iscs.iscsDevice[em.deviceModel.code].instance.hide();
|
||||
this.$refs.valve.doShow(em.deviceModel);
|
||||
} else if (em.deviceType == 'IscsButton') {
|
||||
} else if (em.deviceType == 'IscsButton' && em.deviceModel.function != 'goToStand' && em.deviceModel.function != 'goToStation') {
|
||||
this.$refs.protectReset.doShow(em.deviceModel);
|
||||
}
|
||||
},
|
||||
|
||||
onlclick(em) {
|
||||
// 父编组上元素内容
|
||||
const query = {
|
||||
stationName: this.$route.query.stationName,
|
||||
stationId: this.$route.query.stationId,
|
||||
group: this.$route.query.group,
|
||||
mapId: this.$route.query.mapId,
|
||||
lineCode:'02',
|
||||
noPreLogout:this.$route.query.noPreLogout
|
||||
};
|
||||
let type = '';
|
||||
if (em.deviceType == 'IscsButton' && em.deviceModel.function == 'goToStand') {
|
||||
type = 'afcTwo02';
|
||||
} else if (em.deviceType == 'IscsButton' && em.deviceModel.function == 'goToStation') {
|
||||
type = 'afcOne02';
|
||||
}
|
||||
this.$router.replace({ path: `/displayIscs/system/stationConfig/${type}`, query: query });
|
||||
},
|
||||
|
||||
// 地图加载完成
|
||||
handleViewLoaded() {
|
||||
this.loading = false;
|
||||
@ -126,7 +147,7 @@ export default {
|
||||
}
|
||||
},
|
||||
setIscs(data, oldData) {
|
||||
this.$iscs.setIscs(oldData, data, this.$route.query.mapId);
|
||||
this.$iscs.setIscs(oldData, data, this.$route.query.lineCode);
|
||||
},
|
||||
// 执行操作
|
||||
handleModel(model) {
|
||||
|
@ -19,7 +19,7 @@
|
||||
<normal v-else-if="mode=='environmentTwelve'" /> -->
|
||||
<!-- <big-screen v-else-if="mode === 'signal'" /> -->
|
||||
<!-- <big-screen v-else-if="mode === 'signal'" /> -->
|
||||
<ticket-or-entrance v-else-if="mode === 'autoTicket'||mode === 'entranceGuard'" />
|
||||
<ticket-or-entrance v-else-if="mode === 'autoTicket'||mode === 'afcTwo02'||mode === 'afcOne02'" />
|
||||
<!-- -->
|
||||
</div>
|
||||
</template>
|
||||
|
@ -62,12 +62,18 @@ export default {
|
||||
this.title = this.stationName + ' 自动售检票系统';
|
||||
this.scaleRate = window.innerWidth / 1920;
|
||||
this.height = 800;
|
||||
} else if (this.mode == 'entranceGuard') {
|
||||
} else if (this.mode == 'afcTwo02') {
|
||||
params.userInterface = 'afcTwo02';
|
||||
params.system = 'entranceGuard';
|
||||
this.title = this.stationName + ' 门禁系统 站台层';
|
||||
this.scaleRate = window.innerWidth / 1920;
|
||||
this.height = 800;
|
||||
} else if (this.mode == 'afcOne02') {
|
||||
params.userInterface = 'afcOne02';
|
||||
params.system = 'entranceGuard';
|
||||
this.title = this.stationName + ' 门禁系统 站厅层';
|
||||
this.scaleRate = window.innerWidth / 1920;
|
||||
this.height = 800;
|
||||
}
|
||||
|
||||
this.loading = true;
|
||||
|
@ -249,8 +249,8 @@ export default {
|
||||
},
|
||||
{
|
||||
name: '门禁系统',
|
||||
mode: 'entranceGuard',
|
||||
id: 'entranceGuard',
|
||||
mode: 'afcOne02',
|
||||
id: 'afcOne02',
|
||||
type: 'interface'
|
||||
}
|
||||
]},
|
||||
@ -443,6 +443,7 @@ export default {
|
||||
stationId: this.selectStation,
|
||||
group: this.group,
|
||||
mapId: this.$route.query.mapId,
|
||||
lineCode:'02',
|
||||
noPreLogout:this.$route.query.noPreLogout
|
||||
};
|
||||
if (isReplace) {
|
||||
|
Loading…
Reference in New Issue
Block a user