diff --git a/package.json b/package.json index 9d86044e8..fa30af485 100644 --- a/package.json +++ b/package.json @@ -1,87 +1,87 @@ { - "name": "vue-admin-template", - "version": "4.1.0", - "description": "A vue admin template with Element UI & axios & iconfont & permission control & lint", - "author": "Pan ", - "license": "MIT", - "scripts": { - "dev": "vue-cli-service serve --open", - "build": "vue-cli-service build", - "test": "vue-cli-service build --mode staging", - "local": "vue-cli-service build --mode native", - "preview": "node build/index.js --preview", - "lint": "eslint --ext .js,.vue src", - "test:unit": "jest --clearCache && vue-cli-service test:unit", - "test:ci": "npm run lint && npm run test:unit", - "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml" - }, - "dependencies": { - "axios": "0.18.0", - "echarts": "^4.7.0", - "element-ui": "^2.12.0", - "file-saver": "^1.3.3", - "js-cookie": "2.2.0", - "js-md5": "^0.7.3", - "lodash": "^4.17.11", - "normalize.css": "7.0.0", - "nprogress": "^0.2.0", - "path-to-regexp": "2.4.0", - "qrcode.vue": "^1.6.2", - "script-loader": "^0.7.2", - "sessionstorage": "^0.1.0", - "sockjs-client": "^1.4.0", - "stompjs": "^2.3.3", - "storejs": "^1.0.25", - "three": "^0.107.0", - "vue": "^2.6.10", - "vue-i18n": "^8.12.0", - "vue-router": "^3.1.6", - "vuedraggable": "^2.23.2", - "vuex": "^3.1.0", - "xlsx": "^0.14.2", - "zrender": "^4.0.4" - }, - "devDependencies": { - "@babel/core": "7.0.0", - "@babel/register": "7.0.0", - "@vue/cli-plugin-babel": "3.6.0", - "@vue/cli-plugin-eslint": "3.6.0", - "@vue/cli-plugin-unit-jest": "3.6.3", - "@vue/cli-service": "3.6.0", - "@vue/test-utils": "1.0.0-beta.29", - "autoprefixer": "^9.5.1", - "babel-core": "7.0.0-bridge.0", - "babel-eslint": "10.0.1", - "babel-jest": "23.6.0", - "babel-plugin-syntax-dynamic-import": "^6.18.0", - "babel-preset-env": "1.6.1", - "babel-preset-stage-2": "6.24.1", - "chalk": "2.4.2", - "compression-webpack-plugin": "^3.1.0", - "connect": "3.6.6", - "copy-webpack-plugin": "^4.5.2", - "eslint": "5.15.3", - "eslint-plugin-vue": "5.2.2", - "file-loader": "^3.0.1", - "html-webpack-plugin": "3.2.0", - "mockjs": "1.0.1-beta3", - "node-sass": "^4.9.0", - "runjs": "^4.3.2", - "sass-loader": "^7.1.0", - "script-ext-html-webpack-plugin": "2.1.3", - "script-loader": "^0.7.2", - "serve-static": "^1.13.2", - "svg-sprite-loader": "4.1.3", - "svgo": "1.2.2", - "vue-template-compiler": "2.6.11" - }, - "engines": { - "node": ">=8.9", - "npm": ">= 3.0.0" - }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not ie <= 8" - ] + "name": "vue-admin-template", + "version": "4.1.0", + "description": "A vue admin template with Element UI & axios & iconfont & permission control & lint", + "author": "Pan ", + "license": "MIT", + "scripts": { + "dev": "vue-cli-service serve --open", + "build": "vue-cli-service build", + "test": "vue-cli-service build --mode staging", + "local": "vue-cli-service build --mode native", + "preview": "node build/index.js --preview", + "lint": "eslint --ext .js,.vue src", + "test:unit": "jest --clearCache && vue-cli-service test:unit", + "test:ci": "npm run lint && npm run test:unit", + "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml" + }, + "dependencies": { + "axios": "0.18.0", + "echarts": "^4.7.0", + "element-ui": "^2.12.0", + "file-saver": "^1.3.3", + "js-cookie": "2.2.0", + "js-md5": "^0.7.3", + "lodash": "^4.17.11", + "normalize.css": "7.0.0", + "nprogress": "^0.2.0", + "path-to-regexp": "2.4.0", + "qrcode.vue": "^1.6.2", + "script-loader": "^0.7.2", + "sessionstorage": "^0.1.0", + "sockjs-client": "^1.4.0", + "stompjs": "^2.3.3", + "storejs": "^1.0.25", + "three": "^0.107.0", + "vue": "^2.6.10", + "vue-i18n": "^8.12.0", + "vue-router": "^3.1.6", + "vuedraggable": "^2.23.2", + "vuex": "^3.1.0", + "xlsx": "^0.14.2", + "zrender": "^4.0.4" + }, + "devDependencies": { + "@babel/core": "7.0.0", + "@babel/register": "7.0.0", + "@vue/cli-plugin-babel": "3.6.0", + "@vue/cli-plugin-eslint": "3.6.0", + "@vue/cli-plugin-unit-jest": "3.6.3", + "@vue/cli-service": "3.6.0", + "@vue/test-utils": "1.0.0-beta.29", + "autoprefixer": "^9.5.1", + "babel-core": "7.0.0-bridge.0", + "babel-eslint": "10.0.1", + "babel-jest": "23.6.0", + "babel-plugin-syntax-dynamic-import": "^6.18.0", + "babel-preset-env": "1.6.1", + "babel-preset-stage-2": "6.24.1", + "chalk": "2.4.2", + "compression-webpack-plugin": "^3.1.0", + "connect": "3.6.6", + "copy-webpack-plugin": "^4.5.2", + "eslint": "5.15.3", + "eslint-plugin-vue": "5.2.2", + "file-loader": "^3.0.1", + "html-webpack-plugin": "3.2.0", + "mockjs": "1.0.1-beta3", + "node-sass": "^4.9.0", + "runjs": "^4.3.2", + "sass-loader": "^7.1.0", + "script-ext-html-webpack-plugin": "2.1.3", + "script-loader": "^0.7.2", + "serve-static": "^1.13.2", + "svg-sprite-loader": "4.1.3", + "svgo": "1.2.2", + "vue-template-compiler": "2.6.11" + }, + "engines": { + "node": ">=8.9", + "npm": ">= 3.0.0" + }, + "browserslist": [ + "> 1%", + "last 2 versions", + "not ie <= 8" + ] } diff --git a/src/i18n/langs/zh/router.js b/src/i18n/langs/zh/router.js index c77da6b5b..27aa67831 100644 --- a/src/i18n/langs/zh/router.js +++ b/src/i18n/langs/zh/router.js @@ -3,7 +3,7 @@ export default { designhomePage: '公共地图', designUserPage: '个人地图', - newDesignUserPage: '新版地图', + newDesignUserPage: '地图绘制', mapManage: '地图管理', skinManage: '皮肤管理', diff --git a/src/jlmap3d/edit/neweditmodel/SectionList.js b/src/jlmap3d/edit/neweditmodel/SectionList.js index a0c37bdfc..9a0cd6036 100644 --- a/src/jlmap3d/edit/neweditmodel/SectionList.js +++ b/src/jlmap3d/edit/neweditmodel/SectionList.js @@ -902,7 +902,7 @@ export function SectionList() { // console.log(sectiondata[i]); // console.log(testmesh2); - console.log(newsection); + // console.log(newsection); testmesh2.geometry = newrail; testmesh2.geometry.attributes.position.needsUpdate = true; testmesh2.geometry.attributes.uv.needsUpdate = true; diff --git a/src/jlmap3d/edit/neweditmodel/StationStandList.js b/src/jlmap3d/edit/neweditmodel/StationStandList.js index c0e66f96e..a2f9e59e3 100644 --- a/src/jlmap3d/edit/neweditmodel/StationStandList.js +++ b/src/jlmap3d/edit/neweditmodel/StationStandList.js @@ -181,6 +181,7 @@ export function StationStandList() { if(jlmapstanddata[j].inside == true){ newstationmesh = assetloader.modellist[num].mesh.clone(true); }else{ + console.log(jlmapstanddata[j]); newstationmesh = assetloader.modellist[num2].mesh.clone(true); } // console.log(jlmapstanddata[j]); @@ -190,7 +191,6 @@ export function StationStandList() { newstationstand.direction1.name = standsdata[i].direction1.name; newstationstand.direction2.code = standsdata[i].direction2.code; newstationstand.direction2.name = standsdata[i].direction2.name; - console.log(standsdata[i]); // console.log(standsdata[i]); newstationmesh.position.x = standsdata[i].position.x; newstationmesh.position.y = standsdata[i].position.y; diff --git a/src/jlmap3d/jl3ddevice/component/signallight.js b/src/jlmap3d/jl3ddevice/component/signallight.js index 1bfc51394..1b1601fb1 100644 --- a/src/jlmap3d/jl3ddevice/component/signallight.js +++ b/src/jlmap3d/jl3ddevice/component/signallight.js @@ -1,13 +1,13 @@ export function Signallightload(lights) { - settexture(lights, "red", 'https://test.joylink.club/oss/wx/signal/1.jpg'); + settexture(lights, "red", '../../static/model/device/signal/1.jpg'); - settexture(lights, "yellow", 'https://test.joylink.club/oss/wx/signal/2.jpg'); + settexture(lights, "yellow", '../../static/model/device/signal/2.jpg'); - settexture(lights, "green", 'https://test.joylink.club/oss/wx/signal/3.jpg'); + settexture(lights, "green", '../../static/model/device/signal/3.jpg'); - settexture(lights, "black", 'https://test.joylink.club/oss/wx/signal/4.jpg'); + settexture(lights, "black", '../../static/model/device/signal/4.jpg'); } function settexture(lights, name, textureurl) { diff --git a/src/jlmap3d/jl3ddevice/config.js b/src/jlmap3d/jl3ddevice/config.js index 35b00f777..b2619cb42 100644 --- a/src/jlmap3d/jl3ddevice/config.js +++ b/src/jlmap3d/jl3ddevice/config.js @@ -5,7 +5,7 @@ var Staticmodel = { deviceType: "Switch", type: "fuzhou", picUrl: "", - assetUrl: "https://joylink.club/oss/wx/switch/switch.FBX" + assetUrl: "./../static/model/device/switch/switch.FBX" },//"https://joylink.club/oss/wx/switch/switch.FBX" //../../static/model/device/switch.FBX Signal: { @@ -14,7 +14,7 @@ var Staticmodel = { deviceType: "Signal", type: "low", picUrl: "", - assetUrl: "https://joylink.club/oss/wx/signal/signal.FBX" + assetUrl: "../../static/model/device/signal/signal.FBX" }, stationstand: { id: "3", @@ -22,7 +22,7 @@ var Staticmodel = { deviceType: "stationstand", type: "low", picUrl: "", - assetUrl: "../../static/model/device/stationstand.FBX" + assetUrl: "../../static/model/device/stationstand/stationstand.FBX" //https://joylink.club/oss/wx/stationstand/stationstand.FBX //../../static/model/device/stationstand.FBX diff --git a/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js b/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js index 84d668100..09acbba40 100644 --- a/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js +++ b/src/jlmap3d/jl3ddevice/jl3ddeviceNew.js @@ -178,6 +178,7 @@ export function Jl3ddeviceNew(dom,group,token) { } else if (data.normalPosition == "1") { scope.modelmanager.switchmodel.normalPosition = "1"; scope.modelmanager.switchmodel.action.reset(); + scope.modelmanager.switchmodel.action.time = scope.modelmanager.switchmodel.action._clip.duration; scope.modelmanager.switchmodel.action.timeScale = 1; scope.modelmanager.switchmodel.action.play(); @@ -201,20 +202,19 @@ export function Jl3ddeviceNew(dom,group,token) { } this.updateaction = function (data) { - if (data.type == "SWITCH") { if (data.normal == "0") { scope.modelmanager.switchmodel.normalPosition = "0"; scope.modelmanager.switchmodel.action.reset(); scope.modelmanager.switchmodel.action.time = 0; - scope.modelmanager.switchmodel.action.timeScale = -1; + scope.modelmanager.switchmodel.action.timeScale = 1; scope.modelmanager.switchmodel.action.play(); } else if (data.normal == "1") { scope.modelmanager.switchmodel.normalPosition = "1"; scope.modelmanager.switchmodel.action.reset(); scope.modelmanager.switchmodel.action.time = scope.modelmanager.switchmodel.action._clip.duration; - scope.modelmanager.switchmodel.action.timeScale = 1; + scope.modelmanager.switchmodel.action.timeScale = -1; scope.modelmanager.switchmodel.action.play(); } @@ -271,19 +271,19 @@ export function Jl3ddeviceNew(dom,group,token) { } function initstatus(data) { - if (data._type == "Switch") { if (data.normalPosition == "0") { scope.modelmanager.switchmodel.normalPosition = "0"; scope.modelmanager.switchmodel.action.reset(); - scope.modelmanager.switchmodel.action.time = 0; - scope.modelmanager.switchmodel.action.timeScale = -1; + scope.modelmanager.switchmodel.action.time = scope.modelmanager.switchmodel.action._clip.duration; + scope.modelmanager.switchmodel.action.timeScale = 1; + scope.modelmanager.switchmodel.action.play(); } else if (data.normalPosition == "1") { scope.modelmanager.switchmodel.normalPosition = "1"; scope.modelmanager.switchmodel.action.reset(); - scope.modelmanager.switchmodel.action.time = scope.modelmanager.switchmodel.action._clip.duration; - scope.modelmanager.switchmodel.action.timeScale = 1; + scope.modelmanager.switchmodel.action.time = 0; + scope.modelmanager.switchmodel.action.timeScale = -1; scope.modelmanager.switchmodel.action.play(); } } diff --git a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js index 0b6e8544a..6da7c43d6 100644 --- a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js +++ b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js @@ -102,7 +102,7 @@ export function Jl3dDrivingNew(mixers,updatemmi,sound,translation,routegroup,sta return; } if(data.type == "Train_Hmi_3D"){ - console.log(data.body); + // console.log(data.body); trainhmi(data.body); return; } diff --git a/src/jlmap3d/jl3dpassflow/jl3dpassflow.js b/src/jlmap3d/jl3dpassflow/jl3dpassflow.js index 75ae71fea..4e4620731 100644 --- a/src/jlmap3d/jl3dpassflow/jl3dpassflow.js +++ b/src/jlmap3d/jl3dpassflow/jl3dpassflow.js @@ -90,7 +90,7 @@ var views = [ width: 0.5, height: 0.5, background: new THREE.Color( 0.5, 0.5, 0.7 ), - eye: [ 3.7, 17, 26 ], + eye: [ 3.7, 16, 26 ], up: [3.7, 10 ,16 ], fov: 30 }, @@ -100,7 +100,7 @@ var views = [ width: 0.5, height: 0.5, background: new THREE.Color( 0.5, 0.5, 0.7 ), - eye: [ 3.7,30,-4 ], + eye: [ 3.7,17,-4 ], up: [ 3.7, 10 ,16], fov: 30 }, @@ -120,8 +120,8 @@ var views = [ width: 0.5, height: 0.5, background: new THREE.Color( 0.5, 0.7, 0.7 ), - eye: [ -1,12,0], - up: [-1, 11, 8], + eye: [ -7,17,2], + up: [-7, 10, 8], fov: 60 } ]; @@ -229,6 +229,9 @@ export function Jl3dpassflow(dom) { originhuman1.remove(originhuman1.children[2]); scene.add(rungroup); loadingInstance.close(); + + scope.switchrender(false); + animate(); }) diff --git a/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js b/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js index b63ae5581..637f3393e 100644 --- a/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js +++ b/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js @@ -77,7 +77,7 @@ export function Jlmap3dSubscribeNew(jlmap3d,routegroup,jsonwebwork) { // } if (event.data.type== 'SIGNAL' && signallist) { signalupdate(event.data); - console.log(event.data); + // console.log(event.data); return; } diff --git a/src/jlmap3d/main/loaders/DriverLoadNew.js b/src/jlmap3d/main/loaders/DriverLoadNew.js index 16caa2504..1bc47b86d 100644 --- a/src/jlmap3d/main/loaders/DriverLoadNew.js +++ b/src/jlmap3d/main/loaders/DriverLoadNew.js @@ -125,7 +125,7 @@ export function DriverLoadNew(data,scope,netdata,mapdata,sectionlist,signallist, backdata.loaderdata(sectionlist,linklist,signallist,stationstandlist,trainlisttest,realsectionlist,rails); scope.Subscribe.updatamap(sectionlist,linklist,signallist,stationstandlist,trainlisttest,realsectionlist,rails,scope.materiallist,scope.actions,scope.sceneload); scope.webwork.postMessage("on"); - // console.log(stationstandlist); + console.log(scene); // updatemenulist(stationstandlist.list,trainlisttest.list); loadingInstance.close(); }); diff --git a/src/router/index_Common.js b/src/router/index_Common.js index 98e1b36a9..e80d74501 100644 --- a/src/router/index_Common.js +++ b/src/router/index_Common.js @@ -369,7 +369,7 @@ export const asyncRouter = [ redirect: '/design/userlist/home', component: Layout, meta: { - roles: [admin, user] + roles: [admin] }, children: [ { @@ -387,7 +387,7 @@ export const asyncRouter = [ meta: { } }, - { // 地图绘制 + { // 地图 绘制 path: 'map/draw/:mapId/:view', component: Mapedit, hidden: true @@ -855,7 +855,7 @@ export const asyncRouter = [ redirect: '/design/usermap/home', component: Layout, meta: { - roles: [admin] + roles: [admin, user] }, children: [ { diff --git a/src/views/jlmap3d/passflow/jl3dpassflow.vue b/src/views/jlmap3d/passflow/jl3dpassflow.vue index 44a89f03e..d6b1c8469 100644 --- a/src/views/jlmap3d/passflow/jl3dpassflow.vue +++ b/src/views/jlmap3d/passflow/jl3dpassflow.vue @@ -3,72 +3,75 @@
- +