Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
52a9aa7b61
@ -28,6 +28,7 @@ export function postLicenseValidate(data) {
|
|||||||
return request({
|
return request({
|
||||||
url: `/api/license/validate`,
|
url: `/api/license/validate`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
production: true,
|
||||||
// baseURL: 'https://joylink.club/jlcloud',
|
// baseURL: 'https://joylink.club/jlcloud',
|
||||||
data
|
data
|
||||||
});
|
});
|
||||||
|
@ -167,7 +167,7 @@ export default class Station extends Group {
|
|||||||
const queryCtc = queryList.find(item => {
|
const queryCtc = queryList.find(item => {
|
||||||
return item.includes('ctc');
|
return item.includes('ctc');
|
||||||
});
|
});
|
||||||
if (queryCtc) {
|
if (queryCtc && model.createControlMode) {
|
||||||
this.createCtcControlMode();
|
this.createCtcControlMode();
|
||||||
} else if (this.style.Station.StationControl.special) {
|
} else if (this.style.Station.StationControl.special) {
|
||||||
if (model.visible && model.createControlMode) { // model.createControlMode 控制模式
|
if (model.visible && model.createControlMode) { // model.createControlMode 控制模式
|
||||||
|
@ -354,9 +354,23 @@ export default {
|
|||||||
for (const key in mapDevice) {
|
for (const key in mapDevice) {
|
||||||
list.push(mapDevice[key]);
|
list.push(mapDevice[key]);
|
||||||
}
|
}
|
||||||
this.$jlmap.updateShowStation(list, this.$store.state.map.showCentralizedStationCode || this.showCentralizedStationCode);
|
if (this.$store.state.map.map && this.$store.state.map.map.pictureList) {
|
||||||
this.$jlmap.setCenter(this.$store.state.map.showCentralizedStationCode || this.showCentralizedStationCode);
|
const picture = this.$store.state.map.map.pictureList.find(picture => picture.stationCode === this.showCentralizedStationCode && picture.type === 'chainStation');
|
||||||
this.$jlmap.updateTransform(map.scaling, map.origin);
|
if (picture) {
|
||||||
|
this.$store.dispatch('map/setPictureDeviceMap', picture.deviceMap);
|
||||||
|
const deviceList = [];
|
||||||
|
const mapDevice = this.$store.state.map.mapDevice;
|
||||||
|
for (const deviceCode in mapDevice) {
|
||||||
|
deviceList.push(deviceCode);
|
||||||
|
}
|
||||||
|
this.$jlmap.updatePicture(deviceList);
|
||||||
|
this.$jlmap.updateTransform(picture.scaling, picture.origin);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$jlmap.updateShowStation(list, this.$store.state.map.showCentralizedStationCode || this.showCentralizedStationCode);
|
||||||
|
this.$jlmap.setCenter(this.$store.state.map.showCentralizedStationCode || this.showCentralizedStationCode);
|
||||||
|
this.$jlmap.updateTransform(map.scaling, map.origin);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getRailwaySimulationRunplanSend() {
|
getRailwaySimulationRunplanSend() {
|
||||||
const stationCode = this.$store.state.training.roleDeviceCode;
|
const stationCode = this.$store.state.training.roleDeviceCode;
|
||||||
|
@ -77,6 +77,14 @@ class CommandHandle {
|
|||||||
Driver_Stop: {
|
Driver_Stop: {
|
||||||
operate: 'Driver_Stop',
|
operate: 'Driver_Stop',
|
||||||
paramList: [{name: 'groupNumber'}, {name: 'eb'}]
|
paramList: [{name: 'groupNumber'}, {name: 'eb'}]
|
||||||
|
},
|
||||||
|
RAIL_QUERY_REGISTER: {
|
||||||
|
operate: 'RAIL_QUERY_REGISTER',
|
||||||
|
paramList: [{name: 'stationCode'}]
|
||||||
|
},
|
||||||
|
RAIL_FILL_IN_REGISTER: {
|
||||||
|
operate: 'RAIL_FILL_IN_REGISTER',
|
||||||
|
paramList: [{name: 'stationCode'}, {name: 'line'}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -66,5 +66,6 @@ export function handlerUrl(data) {
|
|||||||
UPLOAD_API = 'http://joylink.club/jlfile';
|
UPLOAD_API = 'http://joylink.club/jlfile';
|
||||||
BASE_SITE = 'https://joylink.club/cbtc';
|
BASE_SITE = 'https://joylink.club/cbtc';
|
||||||
}
|
}
|
||||||
return {BASE_API, VOICE_API, UPLOAD_API, BASE_SITE};
|
const PROD_API = 'https://joylink.club/jlcloud';
|
||||||
|
return {BASE_API, VOICE_API, UPLOAD_API, BASE_SITE, PROD_API};
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,9 @@ service.interceptors.request.use(config => {
|
|||||||
if (config.upload) {
|
if (config.upload) {
|
||||||
config.baseURL = urlData.UPLOAD_API;
|
config.baseURL = urlData.UPLOAD_API;
|
||||||
}
|
}
|
||||||
|
if (config.production) {
|
||||||
|
config.baseURL = urlData.PROD_API;
|
||||||
|
}
|
||||||
if (config.time) {
|
if (config.time) {
|
||||||
config.timeout = config.time; // 让每个请求携带自定义token 请根据实际情况自行修改
|
config.timeout = config.time; // 让每个请求携带自定义token 请根据实际情况自行修改
|
||||||
}
|
}
|
||||||
|
@ -482,6 +482,7 @@ export default {
|
|||||||
this.$store.dispatch('map/setPictureDeviceMap', picture.deviceMap);
|
this.$store.dispatch('map/setPictureDeviceMap', picture.deviceMap);
|
||||||
this.$jlmap.updatePicture(deviceList);
|
this.$jlmap.updatePicture(deviceList);
|
||||||
this.$jlmap.updateTransform(picture.scaling, picture.origin);
|
this.$jlmap.updateTransform(picture.scaling, picture.origin);
|
||||||
|
this.$store.dispatch('map/setShowCentralizedStationCode', this.centralizedStationMap[deviceCode]);
|
||||||
} else {
|
} else {
|
||||||
this.$jlmap.amendDevice([...this.sectionList, ...this.signalList, ...this.trainWindowList]);
|
this.$jlmap.amendDevice([...this.sectionList, ...this.signalList, ...this.trainWindowList]);
|
||||||
this.mapViewLoadedOver && this.switchStationMode(deviceCode);
|
this.mapViewLoadedOver && this.switchStationMode(deviceCode);
|
||||||
|
@ -47,7 +47,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
centerDialogVisible: false,
|
centerDialogVisible: false,
|
||||||
skinCodeList: [],
|
skinCodeList: [],
|
||||||
ruleForm: { name: '', type: '', stationCode: '', lineCode: '', deviceMap: {} },
|
ruleForm: { name: '', type: '', stationCode: '', lineCode: '' },
|
||||||
rules: {
|
rules: {
|
||||||
name: [{ required: true, message: '请输入画面名称', trigger: 'blur' }],
|
name: [{ required: true, message: '请输入画面名称', trigger: 'blur' }],
|
||||||
type: [{ required: true, message: '请选择画面类型', trigger: 'change' }],
|
type: [{ required: true, message: '请选择画面类型', trigger: 'change' }],
|
||||||
@ -78,9 +78,9 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
const map = this.$store.state.map.map;
|
const map = this.$store.state.map.map;
|
||||||
if (map && map.pictureList && map.pictureList.length) {
|
if (map && map.pictureList && map.pictureList.length) {
|
||||||
map.pictureList.push({...this.ruleForm, scaling: map.scaling || '1', origin: { x: map.origin ? map.origin.x : 0, y: map.origin ? map.origin.y : 0 }});
|
map.pictureList.push({...this.ruleForm, deviceMap: {}, scaling: map.scaling || '1', origin: { x: map.origin ? map.origin.x : 0, y: map.origin ? map.origin.y : 0 }});
|
||||||
} else {
|
} else {
|
||||||
map.pictureList = [{...this.ruleForm, scaling: map.scaling || '1', origin: { x: map.origin ? map.origin.x : 0, y: map.origin ? map.origin.y : 0 }}];
|
map.pictureList = [{...this.ruleForm, deviceMap: {}, scaling: map.scaling || '1', origin: { x: map.origin ? map.origin.x : 0, y: map.origin ? map.origin.y : 0 }}];
|
||||||
}
|
}
|
||||||
if (map && parseInt(this.$route.params.mapId)) {
|
if (map && parseInt(this.$route.params.mapId)) {
|
||||||
saveMap(Object.assign(map, { mapId: this.$route.params.mapId })).then(() => {
|
saveMap(Object.assign(map, { mapId: this.$route.params.mapId })).then(() => {
|
||||||
|
@ -423,6 +423,35 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row style="display: flex;">
|
||||||
|
<div class="border-box" style="width: 10%;">计数器</div>
|
||||||
|
<div style="width: 90%;">
|
||||||
|
<el-row style="display: flex;justify-content: space-between;">
|
||||||
|
<div class="border-box" style="width: 100%;">名称</div>
|
||||||
|
<div class="border-box" style="width: 100%;">S总人工解锁</div>
|
||||||
|
<div class="border-box" style="width: 100%;">S引导</div>
|
||||||
|
<div class="border-box" style="width: 100%;">S总锁闭</div>
|
||||||
|
<div class="border-box" style="width: 100%;">X总人工解锁</div>
|
||||||
|
<div class="border-box" style="width: 100%;">X引导</div>
|
||||||
|
<div class="border-box" style="width: 100%;">X总锁闭</div>
|
||||||
|
<div class="border-box" style="width: 100%;">S故障</div>
|
||||||
|
<div class="border-box" style="width: 100%;">S接车引导</div>
|
||||||
|
<div class="border-box" style="width: 100%;">南场</div>
|
||||||
|
</el-row>
|
||||||
|
<el-row style="display: flex;justify-content: space-between;">
|
||||||
|
<div class="border-box" style="width: 100%;">号码</div>
|
||||||
|
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||||
|
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||||
|
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||||
|
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||||
|
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||||
|
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||||
|
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||||
|
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||||
|
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-row>
|
||||||
</el-tab-pane>-->
|
</el-tab-pane>-->
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
Loading…
Reference in New Issue
Block a user