调整ibp文件配置路径
This commit is contained in:
parent
925ff55acf
commit
1c78d52fed
@ -176,8 +176,9 @@ class SkinCode extends defaultStyle {
|
||||
blueColor: '#0070C0' // 信号灯蓝色
|
||||
},
|
||||
route: {
|
||||
direction: true, // 自动通过方向
|
||||
offset: { x: 4, y: 0 }, // 自动通过偏移量
|
||||
direction: false, // 自动通过方向
|
||||
radiusR: 8, // 自动通过三角半径
|
||||
offset: { x: 2, y: 0 }, // 自动通过偏移量
|
||||
routeColor: '#00FF00' // 自动进路
|
||||
},
|
||||
auto: {
|
||||
|
@ -3,44 +3,44 @@ import Group from 'zrender/src/container/Group';
|
||||
import { triangular } from '../utils/ShapePoints';
|
||||
|
||||
class ESigDrict extends Group {
|
||||
constructor(model) {
|
||||
super();
|
||||
this.model = model;
|
||||
this.create();
|
||||
}
|
||||
constructor(model) {
|
||||
super();
|
||||
this.model = model;
|
||||
this.create();
|
||||
}
|
||||
|
||||
create() {
|
||||
const model = this.model;
|
||||
const style = this.model.style;
|
||||
create() {
|
||||
const model = this.model;
|
||||
const style = this.model.style;
|
||||
|
||||
this.isNew = true;
|
||||
this.sigDrict = new Polygon({
|
||||
this.isNew = true;
|
||||
this.sigDrict = new Polygon({
|
||||
zlevel: model.zlevel,
|
||||
z: model.z,
|
||||
shape: {
|
||||
points: triangular(model.x, model.y, model.drict, style.Signal.lamp.radiusR)
|
||||
points: triangular(model.x, model.y, model.drict, style.Signal.route.radiusR)
|
||||
},
|
||||
style: {
|
||||
stroke: style.backgroundColor,
|
||||
lineWidth: 0.5,
|
||||
fill: style.Signal.route.routeColor
|
||||
}
|
||||
});
|
||||
this.add(this.sigDrict);
|
||||
});
|
||||
this.add(this.sigDrict);
|
||||
this.sigDrict.hide();
|
||||
}
|
||||
}
|
||||
|
||||
// 隐藏
|
||||
hide() {
|
||||
this.sigDrict.hide();
|
||||
}
|
||||
// 隐藏
|
||||
hide() {
|
||||
this.sigDrict.hide();
|
||||
}
|
||||
|
||||
// 显示
|
||||
show() {
|
||||
this.sigDrict.show();
|
||||
}
|
||||
// 显示
|
||||
show() {
|
||||
this.sigDrict.show();
|
||||
}
|
||||
setStyle(styles) {
|
||||
this.sigDrict.setStyle( styles );
|
||||
this.sigDrict.setStyle( styles );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,6 @@ const UserSimulation = () => import('@/views/system/userSimulation/index');
|
||||
const ExistingSimulation = () => import('@/views/system/existingSimulation/index');
|
||||
const CacheControl = () => import('@/views/system/cacheControl/index');
|
||||
const SystemGenerate = () => import('@/views/system/systemGenerate/index');
|
||||
const IbpDraw = () => import('@/views/system/ibpDraw/index');
|
||||
const News = () => import('@/views/system/news/index');
|
||||
const CommandDictionary = () => import('@/views/system/commandDictionary/index');
|
||||
const CommandDictionaryDetail = () => import('@/views/system/commandDictionary/edit');
|
||||
@ -59,6 +58,7 @@ const ScriptmanageHome = () => import('@/views/scriptManage/home');
|
||||
const ScriptDisplay = () => import('@/views/scriptManage/display/index');
|
||||
|
||||
const IbpHome = () => import('@/views/ibp/home');
|
||||
const IbpDraw = () => import('@/views/ibp/ibpDraw/index');
|
||||
|
||||
const TeachDetail = () => import('@/views/teach/detail/index');
|
||||
const TeachHome = () => import('@/views/teach/index');
|
||||
@ -797,13 +797,6 @@ export const asyncRouter = [
|
||||
roles: [admin]
|
||||
},
|
||||
children: [
|
||||
// {
|
||||
// path: 'ibp/edit',
|
||||
// component: IbpDraw,
|
||||
// meta: {
|
||||
// i18n: 'router.ibpDraw'
|
||||
// }
|
||||
// },
|
||||
{
|
||||
path: 'dictionary',
|
||||
component: Dictionary,
|
||||
|
@ -94,8 +94,8 @@ class MenuContextHandler {
|
||||
if (control) {
|
||||
if (this.getPrdType() != '') {
|
||||
const type = State2SimulationMap[this.getPrdType()];
|
||||
const status = State2ControlMap[control.controlMode]; // 判断当前模式
|
||||
// const status = 'LocalStationControl';
|
||||
// const status = State2ControlMap[control.controlMode]; // 判断当前模式
|
||||
const status = 'LocalStationControl';
|
||||
menu = [...menuList[type]];
|
||||
// 特殊处理站台的右键操作( 因为小站台不允许有操作 )
|
||||
if (selected._type == 'StationStand') {
|
||||
|
@ -61,7 +61,7 @@ export default {
|
||||
type: 'primary'
|
||||
},
|
||||
{
|
||||
name: '修改绘图',
|
||||
name: '绘图',
|
||||
handleClick: this.handleModify,
|
||||
type: 'primary'
|
||||
},
|
||||
@ -125,7 +125,7 @@ export default {
|
||||
},
|
||||
// 进入绘图数据
|
||||
handleModify(index, row) {
|
||||
const query = { mapId: this.$route.params.mapId, stationCode: '33333' };
|
||||
const query = { mapId: this.$route.params.mapId, stationCode: row.stationCode, ibpId: row.id };
|
||||
this.$router.push({ path: `/design/ibp/edit`, query: query });
|
||||
},
|
||||
// 更新
|
||||
|
@ -11,7 +11,7 @@
|
||||
</transition>
|
||||
</template>
|
||||
<script>
|
||||
import IbpPlate from '@/views/ibpsystem/index';
|
||||
import IbpPlate from '@/views/ibp/ibpsystem/index';
|
||||
import IbpOperate from './ibpOperate/index';
|
||||
import localStore from 'storejs';
|
||||
|
@ -58,9 +58,6 @@ export default {
|
||||
]),
|
||||
ibpId() {
|
||||
return ['ibp', (Math.random().toFixed(5)) * 100000].join('_');
|
||||
},
|
||||
width() {
|
||||
return this.canvasWidth - 200;
|
||||
}
|
||||
},
|
||||
watch: {
|
Loading…
Reference in New Issue
Block a user