打包调整

This commit is contained in:
fan 2020-12-15 11:18:15 +08:00
parent dff745b94a
commit 3c6047d4ad
59 changed files with 55 additions and 105 deletions

View File

@ -1,4 +1,4 @@
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export default {
bind(el) {

View File

@ -1,7 +1,7 @@
import deviceType from './constant/deviceType';
import Eventful from 'zrender/src/mixin/Eventful';
import * as eventTool from 'zrender/src/core/event';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
// import * as Event from 'zrender/src/core/event';
class EventModel {

View File

@ -2,7 +2,7 @@ import * as zrUtil from 'zrender/src/core/util';
import * as matrix from 'zrender/src/core/matrix';
import deviceType from '../constant/deviceType';
import deviceRender from '../constant/deviceRender';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export function createTransform(opts) {
let transform = matrix.create();

View File

@ -7,7 +7,7 @@ import deviceType from './constant/deviceType';
import KeyboardController from './keyboardController';
import {calculateDCenter, createBoundingRect, deviceFactory} from './utils/parser';
import { updateIscsData } from './utils/parser';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import { selectLineCode } from './constant/deviceStyle';
const renderer = 'canvas';

View File

@ -1,7 +1,7 @@
import deviceType from './constant/deviceType';
import Eventful from 'zrender/src/mixin/Eventful';
import * as eventTool from 'zrender/src/core/event';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
class EventModel {
constructor(e) {

View File

@ -1,7 +1,7 @@
import deviceType from './constant/deviceType';
import Eventful from 'zrender/src/mixin/Eventful';
import * as eventTool from 'zrender/src/core/event';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
class EventModel {
constructor(e) {

View File

@ -2,7 +2,6 @@ import * as zrUtil from 'zrender/src/core/util';
import * as matrix from 'zrender/src/core/matrix';
import deviceType from '../constant/deviceType';
import deviceRender from '../constant/deviceRender';
// import store from '@/store/index_APP_TARGET';
// import { deepClone } from '@/utils/index';
export function createTransform(opts) {

View File

@ -15,7 +15,7 @@ import { getPublishMapDetail,getPublish3dMapDetail} from '@/api/jlmap3d/load3dda
import StompClient from '@/utils/sock';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
var clock = new THREE.Clock();
export function Jl3ddeviceNew(dom,group,token,skinCode) {

View File

@ -6,7 +6,7 @@ import {SignalListN} from '@/jlmap3d/main/newmodel/SignalListN';
import {StationStandListN} from '@/jlmap3d/main/newmodel/StationStandListN';
import {SwitchListN} from '@/jlmap3d/main/newmodel/SwitchListN';
import {RailListN} from '@/jlmap3d/main/newmodel/RailListN.js';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import {Materialload} from '@/jlmap3d/main/loaders/Materialload.js';

View File

@ -1,7 +1,7 @@
import StompClient from '@/utils/sock';
import { getBaseUrl } from '@/utils/baseUrl'
import { getToken } from '@/utils/auth';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
// 定于仿真socket接口
export function PassflowConnect(deviceaction,toptrain,downtrain,routegroup,passerStation,passerAi) {

View File

@ -29,7 +29,7 @@ import { PathFinder } from '@/jlmap3d/jl3dpassflow/passerai/pathfinder.js';
import { PassflowConnect } from '@/jlmap3d/jl3dpassflow/connect/passflowconnect.js';
import StompClient from '@/utils/sock';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
// import { Loading } from 'element-ui';
import {Stats} from '@/jlmap3d/main/lib/stats.min.js';

View File

@ -1,7 +1,7 @@
import StompClient from '@/utils/sock';
import { getBaseUrl } from '@/utils/baseUrl'
import { getToken } from '@/utils/auth';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
// 定于仿真socket接口
export function PassflowConnect(deviceaction,toptrain,downtrain,routegroup,passerStation,passerAi,jl3d) {

View File

@ -1,7 +1,7 @@
import StompClient from '@/utils/sock';
import { getBaseUrl } from '@/utils/baseUrl'
import { getToken } from '@/utils/auth';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
// 定于仿真socket接口
export function TrainConnect(trafficTrain,deviceaction,toptrain,routegroup,passerAi) {

View File

@ -30,7 +30,7 @@ import { PathFinder } from '@/jlmap3d/jl3dtrafficplan/passerai/pathfinder.js';
import { PassflowConnect } from '@/jlmap3d/jl3dtrafficplan/connect/stationconnect.js';
import StompClient from '@/utils/sock';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
// import { Loading } from 'element-ui';
import {Stats} from '@/jlmap3d/main/lib/stats.min.js';

View File

@ -31,7 +31,7 @@ import { PathFinder } from '@/jlmap3d/jl3dpassflow/passerai/pathfinder.js';
import { TrainConnect } from '@/jlmap3d/jl3dtrafficplan/connect/trainconnect.js';
import StompClient from '@/utils/sock';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
// import { Loading } from 'element-ui';
import {Stats} from '@/jlmap3d/main/lib/stats.min.js';

View File

@ -1,5 +1,5 @@
import { BASE_ASSET_API } from '@/api/jlmap3d/assets3d.js';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
//模型管理器
let mode = "0";
export function ModelManager(){

View File

@ -10,7 +10,7 @@ import {TdtList} from '@/jlmap3d/main/newmodel/TdtList.js';
import {Materialload} from '@/jlmap3d/main/loaders/Materialload.js';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
// import { Loading } from 'element-ui';
// import {SwitchModel} from '@/jlmap3d/model/SwitchModel.js';

View File

@ -10,7 +10,7 @@ import deviceType from './constant/deviceType';
import { selectLineCode } from './config/deviceStyle';
import { deviceFactory, createBoundingRect, calculateDCenter } from './utils/parser';
import { deepAssign } from '@/utils/index';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import Vue from 'vue';
const renderer = 'canvas';

View File

@ -1,7 +1,7 @@
import deviceType from './constant/deviceType';
import Eventful from 'zrender/src/mixin/Eventful';
import * as eventTool from 'zrender/src/core/event';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
class EventModel {
constructor(e) {

View File

@ -1,6 +1,6 @@
import Group from 'zrender/src/container/Group';
import Line from 'zrender/src/graphic/shape/Line';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
class EVertical2Door extends Group {
constructor(model) {

View File

@ -2,7 +2,7 @@ import Group from 'zrender/src/container/Group';
import Text from 'zrender/src/graphic/Text';
import Rect from 'zrender/src/graphic/shape/Rect';
import Polygon from 'zrender/src/graphic/shape/Polygon';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import JTriangle from '../../utils/JTriangle';
class EMouse extends Group {
constructor(device, code) {

View File

@ -12,7 +12,7 @@ import ELimitName from './ELimitName'; // 成都三号线 限速名称
// import JTriangle from '../../utils/JTriangle';
import { drawSectionStyle } from '../../config/defaultStyle';
import EStopRouteImg from './EStopRouteImg';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import Vue from 'vue';
/** 区段*/

View File

@ -10,7 +10,7 @@ import EArrow from './EArrow';
import { arrow } from '../utils/ShapePoints';
import Rect from 'zrender/src/graphic/shape/Rect';
import Text from 'zrender/src/graphic/Text';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import EStationText from './EStationText';
import { traverseLineElements } from '../utils/ShapeStatusCovert';

View File

@ -1,6 +1,6 @@
import Group from 'zrender/src/container/Group';
import Rect from 'zrender/src/graphic/shape/Rect';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
class EMouse extends Group {
constructor(device) {
super();

View File

@ -10,7 +10,7 @@ import ELockArc from './ELockArc';
import EMouse from './EMouse';
import EHighlight from '../element/EHighlight';
import ETriangle from './ETriangle';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import Vue from 'vue';
export default class Switch extends Group {

View File

@ -2,7 +2,7 @@ import Group from 'zrender/src/container/Group';
import Text from 'zrender/src/graphic/Text';
import LangStorage from '@/utils/lang';
import Rect from 'zrender/src/graphic/shape/Rect';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import Vue from 'vue';
class EMouse extends Group {

View File

@ -3,7 +3,7 @@ import TrainBodyBox from './TrainBodyBox';
// import '../StationStand/EDetain';
import ETextName from '../element/ETextName'; // 名称文字 (共有)
import EMouse from './EMouse';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import Circle from 'zrender/src/graphic/shape/Circle';
import BoundingRect from 'zrender/src/core/BoundingRect';
import Vue from 'vue';

View File

@ -3,7 +3,7 @@ import TrainHead from './TrainHead';
import TrainBody from './TrainBody';
import BoundingRect from 'zrender/src/core/BoundingRect';
import ETriangle from '../Train/ETriangle';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import EDirection from './EDirection';
/** 列车 */

View File

@ -2,7 +2,7 @@
import Polygon from 'zrender/src/graphic/shape/Polygon';
import Group from 'zrender/src/container/Group';
import EMouse from './EMouse';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
class TrainWindow extends Group {
constructor(model, style) {

View File

@ -1,4 +1,4 @@
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import { timeFormat } from '@/utils/date';
/** 创建一个车次数据点*/

View File

@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList } from '@/utils/runPlan';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export default {
/** 边缘高度*/
EdgeHeight: 600,

View File

@ -1,5 +1,5 @@
import { createMartPointReverse, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList } from '@/utils/runPlan';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export default {
/** 边缘高度*/
EdgeHeight: 600,

View File

@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList } from '@/utils/runPlan';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export default {
/** 边缘高度*/
EdgeHeight: 600,

View File

@ -1,4 +1,4 @@
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { sendCommandTrain } from '@/api/jmap/training';

View File

@ -1,5 +1,5 @@
import { createMartPointReverse, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList, prefixTime } from '@/utils/runPlan';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export default {
/** 边缘高度*/
EdgeHeight: 600,

View File

@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, prefixTime, convertSheetToList } from '@/utils/runPlan';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export default {
/** 边缘高度*/
EdgeHeight: 180,

View File

@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, prefixTime, convertSheetToList } from '@/utils/runPlan';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export default {
/** 边缘高度*/
EdgeHeight: 3,

View File

@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList, prefixTime } from '@/utils/runPlan';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export default {
/** 边缘高度*/
EdgeHeight: 600,

View File

@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList } from '@/utils/runPlan';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export default {
/** 边缘高度*/
EdgeHeight: 600 / 3,

View File

@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList, prefixTime } from '@/utils/runPlan';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export default {
/** 边缘高度*/
EdgeHeight: 600,

View File

@ -1,5 +1,5 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList } from '@/utils/runPlan';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
const StationMap = {
YARD1: '潏河停车场',
YARD2: '潏河停车场',

View File

@ -1,4 +1,4 @@
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
const { body } = document;
const WIDTH = 1024;

View File

@ -10,7 +10,7 @@ import LangStorage from '@/utils/lang';
import App from './App';
import VueI18n from 'vue-i18n';
import store from './store/index_APP_TARGET';
import store from './store/index';
import router from './router/index_APP_TARGET';
import CancelMouseState from '@/mixin/CancelMouseState.js';
Vue.mixin(CancelMouseState);

View File

@ -1,5 +1,5 @@
import Vue from 'vue';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import router from './router/index_APP_TARGET';
import {loginInfo} from '@/scripts/ProjectConfig';
import NProgress from 'nprogress';

View File

@ -1,4 +1,4 @@
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import router from '@/router/index_APP_TARGET';
import CommandHandler from './CommandHandler.js';
import ValidateHandler from './ValidateHandler.js';

View File

@ -1,4 +1,4 @@
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import CommandHandler from './CommandHandler';
import { State2SimulationMap, State2ControlMap } from './Config';
import { OperateMode } from '@/scripts/ConstDic';

View File

@ -1,48 +0,0 @@
import Vuex from 'vuex';
import Vue from 'vue';
import app from './modules/app';
import settings from './modules/settings';
import user from './modules/user';
import config from './modules/config';
import permission from './modules/permission';
import map from './modules/map';
import menuOperation from './modules/menuoperation';
import training from './modules/training';
import trainingList from './modules/trainingList';
import exam from './modules/exam';
import runPlan from './modules/runplan';
import socket from './modules/socket';
import scriptRecord from './modules/scriptRecord';
import ibp from './modules/ibp';
import order from './modules/order';
import iscs from './modules/iscs';
import race from './modules/race';
import getters from './getters';
Vue.use(Vuex);
const store = new Vuex.Store({
modules: {
app,
settings,
user,
permission,
config,
map,
menuOperation,
training,
trainingList,
exam,
runPlan,
socket,
scriptRecord,
ibp,
order,
iscs,
race
},
getters
});
export default store;

View File

@ -1,4 +1,4 @@
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
const exam = {
namespaced: true,

View File

@ -1,4 +1,4 @@
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import { Notification } from 'element-ui';
function handle(state, data) {

View File

@ -1,4 +1,4 @@
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import { getPublishMapVersionById, getPublishMapDetailById} from '@/api/jmap/map';
// getNewMapDataByMapId
// import { getNewMapDataByGroup } from '@/api/simulation';

View File

@ -1,5 +1,5 @@
import axios from 'axios';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import qs from 'qs';
import { i18n } from '@/main.js';
import { MessageBox } from 'element-ui';

View File

@ -1,4 +1,4 @@
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import { timeFormat } from '@/utils/date';
/** 创建一个车次数据点*/

View File

@ -2,7 +2,7 @@ import { getToken } from '@/utils/auth';
import { checkLoginLine } from '@/api/login';
import { getBaseUrl } from '@/utils/baseUrl';
import { MessageBox } from 'element-ui';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import Stomp from 'stompjs';
const isDev = process.env.NODE_ENV === 'development';

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
import StompClient from '@/utils/sock';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export const displayTopic = '/user/queue/simulation'; // 其他仿真topic
export const perpetualTopic = '/user/topic/message'; // 公用topic

View File

@ -200,7 +200,6 @@
</el-dialog>
</template>
<script>
// import store from '@/store/index_APP_TARGET';
import ConstConfig from '@/scripts/ConstConfig';
import Cookies from 'js-cookie';
import {getScriptByIdNew} from '@/api/script';

View File

@ -43,7 +43,7 @@
import Vue from 'vue';
import localStore from 'storejs';
import axios from 'axios';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import { mapGetters } from 'vuex';

View File

@ -1,5 +1,5 @@
import CMD from '@/scripts/cmdPlugin/CommandEnum';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
import { deviceFaultType, deviceType} from '@/scripts/cmdPlugin/Config';
// 操作
export const operateEnum = {

View File

@ -1,6 +1,6 @@
import ConstConfig from '@/scripts/ConstConfig';
import Cookies from 'js-cookie';
import store from '@/store/index_APP_TARGET';
import store from '@/store/index';
export function covertMemberData (activeTrainList, resp) {
let lastData = JSON.stringify(resp);
const roleTypeList = ConstConfig.ConstSelect.roleTypeNew;