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.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 = {};
|
this.iscsDevice = {};
|
||||||
@ -280,6 +280,9 @@ class Iscs {
|
|||||||
case this.events.dblclick:
|
case this.events.dblclick:
|
||||||
this.$mouseController.on(this.events.dblclick, cb, context);
|
this.$mouseController.on(this.events.dblclick, cb, context);
|
||||||
break;
|
break;
|
||||||
|
case this.events.click:
|
||||||
|
this.$mouseController.on(this.events.click, cb, context);
|
||||||
|
break;
|
||||||
case this.events.Contextmenu:
|
case this.events.Contextmenu:
|
||||||
this.$mouseController.on(this.events.Contextmenu, cb, context);
|
this.$mouseController.on(this.events.Contextmenu, cb, context);
|
||||||
break;
|
break;
|
||||||
@ -303,6 +306,9 @@ class Iscs {
|
|||||||
case this.events.dblclick:
|
case this.events.dblclick:
|
||||||
this.$mouseController.off(this.events.dblclick, cb);
|
this.$mouseController.off(this.events.dblclick, cb);
|
||||||
break;
|
break;
|
||||||
|
case this.events.click:
|
||||||
|
this.$mouseController.off(this.events.click, cb);
|
||||||
|
break;
|
||||||
case this.events.Contextmenu:
|
case this.events.Contextmenu:
|
||||||
this.$mouseController.off(this.events.Contextmenu, cb);
|
this.$mouseController.off(this.events.Contextmenu, cb);
|
||||||
break;
|
break;
|
||||||
|
@ -138,7 +138,11 @@ class MouseController extends Eventful {
|
|||||||
}
|
}
|
||||||
click(e) {
|
click(e) {
|
||||||
var em = this.checkEvent(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) {
|
moveEvent(e) {
|
||||||
const newEm = new EventModel(e);
|
const newEm = new EventModel(e);
|
||||||
|
@ -91,7 +91,7 @@ export default {
|
|||||||
function: '',
|
function: '',
|
||||||
textColor: '',
|
textColor: '',
|
||||||
textColorActive: '#000',
|
textColorActive: '#000',
|
||||||
fillColor: 'rgba(0,0,0,0)',
|
fillColor: 'rgba(0,0,0,0)',
|
||||||
fillColorActive: 'rgba(0,0,0,0)'
|
fillColorActive: 'rgba(0,0,0,0)'
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
@ -127,8 +127,8 @@ export default {
|
|||||||
this.form.fontSize = model.fontSize;
|
this.form.fontSize = model.fontSize;
|
||||||
this.form.textColor = model.textColor || '#fff';
|
this.form.textColor = model.textColor || '#fff';
|
||||||
this.form.textColorActive = model.textColorActive || '#000';
|
this.form.textColorActive = model.textColorActive || '#000';
|
||||||
this.form.fillColor = model.fillColor;
|
this.form.fillColor = model.fillColor;
|
||||||
this.form.fillColorActive = model.fillColorActive;
|
this.form.fillColorActive = model.fillColorActive;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -136,6 +136,8 @@ export default {
|
|||||||
if (this.$route.query.lineCode == '02') {
|
if (this.$route.query.lineCode == '02') {
|
||||||
this.functionList = [
|
this.functionList = [
|
||||||
{label: '操作按钮', value: 'OperatingButton'},
|
{label: '操作按钮', value: 'OperatingButton'},
|
||||||
|
{label: '门禁站台层', value: 'goToStand'},
|
||||||
|
{label: '门禁站厅层', value: 'goToStation'},
|
||||||
{label: '元素显隐', value: 'ElementShow'},
|
{label: '元素显隐', value: 'ElementShow'},
|
||||||
{label: '返回', value: 'GoBack'}
|
{label: '返回', value: 'GoBack'}
|
||||||
];
|
];
|
||||||
@ -172,8 +174,8 @@ export default {
|
|||||||
fontSize: this.form.fontSize,
|
fontSize: this.form.fontSize,
|
||||||
textColor: this.form.textColor,
|
textColor: this.form.textColor,
|
||||||
textColorActive: this.form.textColorActive,
|
textColorActive: this.form.textColorActive,
|
||||||
fillColor: this.form.fillColor,
|
fillColor: this.form.fillColor,
|
||||||
fillColorActive: this.form.fillColorActive
|
fillColorActive: this.form.fillColorActive
|
||||||
};
|
};
|
||||||
this.$emit('createDataModel', rectModel);
|
this.$emit('createDataModel', rectModel);
|
||||||
this.initPage();
|
this.initPage();
|
||||||
@ -195,8 +197,8 @@ export default {
|
|||||||
context: this.form.context,
|
context: this.form.context,
|
||||||
function: this.form.function,
|
function: this.form.function,
|
||||||
fontSize: this.form.fontSize,
|
fontSize: this.form.fontSize,
|
||||||
fillColor: this.form.fillColor,
|
fillColor: this.form.fillColor,
|
||||||
fillColorActive: this.form.fillColorActive
|
fillColorActive: this.form.fillColorActive
|
||||||
};
|
};
|
||||||
this.$emit('deleteDataModel', rectModel);
|
this.$emit('deleteDataModel', rectModel);
|
||||||
},
|
},
|
||||||
@ -216,8 +218,8 @@ export default {
|
|||||||
function: '',
|
function: '',
|
||||||
textColor: '',
|
textColor: '',
|
||||||
textColorActive: '#000',
|
textColorActive: '#000',
|
||||||
fillColor: '',
|
fillColor: '',
|
||||||
fillColorActive: ''
|
fillColorActive: ''
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -90,6 +90,7 @@ export default {
|
|||||||
this.$store.dispatch('iscs/setIscsData', iscsData);
|
this.$store.dispatch('iscs/setIscsData', iscsData);
|
||||||
if (this.$route.query.group) {
|
if (this.$route.query.group) {
|
||||||
this.$iscs.on('dblclick', this.onDblclick, this);
|
this.$iscs.on('dblclick', this.onDblclick, this);
|
||||||
|
this.$iscs.on('click', this.onlclick, this);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onDblclick(em) {
|
onDblclick(em) {
|
||||||
@ -97,10 +98,30 @@ export default {
|
|||||||
if (em.deviceType == 'IscsGroup') {
|
if (em.deviceType == 'IscsGroup') {
|
||||||
this.$iscs.iscsDevice[em.deviceModel.code].instance.hide();
|
this.$iscs.iscsDevice[em.deviceModel.code].instance.hide();
|
||||||
this.$refs.valve.doShow(em.deviceModel);
|
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);
|
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() {
|
handleViewLoaded() {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
@ -126,7 +147,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
setIscs(data, oldData) {
|
setIscs(data, oldData) {
|
||||||
this.$iscs.setIscs(oldData, data, this.$route.query.mapId);
|
this.$iscs.setIscs(oldData, data, this.$route.query.lineCode);
|
||||||
},
|
},
|
||||||
// 执行操作
|
// 执行操作
|
||||||
handleModel(model) {
|
handleModel(model) {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<normal v-else-if="mode=='environmentTwelve'" /> -->
|
<normal v-else-if="mode=='environmentTwelve'" /> -->
|
||||||
<!-- <big-screen v-else-if="mode === 'signal'" /> -->
|
<!-- <big-screen v-else-if="mode === 'signal'" /> -->
|
||||||
<!-- <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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -62,12 +62,18 @@ export default {
|
|||||||
this.title = this.stationName + ' 自动售检票系统';
|
this.title = this.stationName + ' 自动售检票系统';
|
||||||
this.scaleRate = window.innerWidth / 1920;
|
this.scaleRate = window.innerWidth / 1920;
|
||||||
this.height = 800;
|
this.height = 800;
|
||||||
} else if (this.mode == 'entranceGuard') {
|
} else if (this.mode == 'afcTwo02') {
|
||||||
params.userInterface = 'afcTwo02';
|
params.userInterface = 'afcTwo02';
|
||||||
params.system = 'entranceGuard';
|
params.system = 'entranceGuard';
|
||||||
this.title = this.stationName + ' 门禁系统 站台层';
|
this.title = this.stationName + ' 门禁系统 站台层';
|
||||||
this.scaleRate = window.innerWidth / 1920;
|
this.scaleRate = window.innerWidth / 1920;
|
||||||
this.height = 800;
|
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;
|
this.loading = true;
|
||||||
|
@ -249,8 +249,8 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '门禁系统',
|
name: '门禁系统',
|
||||||
mode: 'entranceGuard',
|
mode: 'afcOne02',
|
||||||
id: 'entranceGuard',
|
id: 'afcOne02',
|
||||||
type: 'interface'
|
type: 'interface'
|
||||||
}
|
}
|
||||||
]},
|
]},
|
||||||
@ -443,6 +443,7 @@ export default {
|
|||||||
stationId: this.selectStation,
|
stationId: this.selectStation,
|
||||||
group: this.group,
|
group: this.group,
|
||||||
mapId: this.$route.query.mapId,
|
mapId: this.$route.query.mapId,
|
||||||
|
lineCode:'02',
|
||||||
noPreLogout:this.$route.query.noPreLogout
|
noPreLogout:this.$route.query.noPreLogout
|
||||||
};
|
};
|
||||||
if (isReplace) {
|
if (isReplace) {
|
||||||
|
Loading…
Reference in New Issue
Block a user