列车调整
This commit is contained in:
parent
ecf816d32a
commit
a64373e9b7
@ -16,6 +16,7 @@ export default class Train extends Group {
|
||||
this.zlevel = model.zlevel;
|
||||
this.model = model;
|
||||
this.style = style;
|
||||
this.size = 0;
|
||||
this.z = 40;
|
||||
this.section = null;
|
||||
this.isShowShape = true;
|
||||
@ -37,6 +38,7 @@ export default class Train extends Group {
|
||||
this.create();
|
||||
this.setState(model, this);
|
||||
this.initShowStation(model);
|
||||
console.log(this, '-------------------');
|
||||
}
|
||||
|
||||
_computed() {
|
||||
@ -422,6 +424,8 @@ export default class Train extends Group {
|
||||
if (!style.Train.trainBody.changeTrainWidth) { return; }
|
||||
if (this.nameFormat) {
|
||||
const arr = this.nameFormat.split(':');
|
||||
console.log(this.size,arr, '-----------------', (style.Train.trainNumber.targetCodePrefix || '').length, (style.Train.trainServer.serviceNumberPrefix || '').length,
|
||||
(style.Train.trainTarget.tripNumberPrefix || '').length, (style.Train.trainTargetNumber.groupNumberPrefix || '').length);
|
||||
arr.forEach(ele => {
|
||||
switch (ele) {
|
||||
case 'targetCode': {
|
||||
|
@ -2,9 +2,9 @@ export function getBaseUrl() {
|
||||
let BASE_API;
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// BASE_API = 'https://joylink.club/jlcloud';
|
||||
// BASE_API = 'https://test.joylink.club/jlcloud';
|
||||
BASE_API = 'https://test.joylink.club/jlcloud';
|
||||
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
||||
BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
||||
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
||||
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
||||
|
Loading…
Reference in New Issue
Block a user