From d52a5837b4913b4d32e74fb5b6a756cac2f37e3a Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 12 May 2021 14:17:14 +0800 Subject: [PATCH 01/32] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E4=B8=89=20=E5=88=97?= =?UTF-8?q?=E8=BD=A6=E7=BB=98=E5=9B=BE=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Train/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jmapNew/shape/Train/index.js b/src/jmapNew/shape/Train/index.js index f15a3da63..477a0ef64 100644 --- a/src/jmapNew/shape/Train/index.js +++ b/src/jmapNew/shape/Train/index.js @@ -151,7 +151,7 @@ export default class Train extends Group { this.triangle = new ETriangle({ style: this.style, zlevel: this.zlevel, - z: 10, + z: 15, right: this.model.right, point: { x: this.startX, y: this.startY } }); From bf69914d21b472110a71a67ed8752b8e70b3b854 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 13 May 2021 13:12:28 +0800 Subject: [PATCH 02/32] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 7cd36b7446177d945db140a1b526fbb8ee3c180a) --- src/utils/indexedDb.js | 6 +++--- src/views/newMap/displayCity/menuDemon.vue | 3 ++- src/views/publish/publishMap/index.vue | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/utils/indexedDb.js b/src/utils/indexedDb.js index 2a882c8a3..1fe60c2b9 100644 --- a/src/utils/indexedDb.js +++ b/src/utils/indexedDb.js @@ -1,10 +1,10 @@ import Vue from 'vue'; -import { getBaseUrl } from '@/utils/baseUrl' +import { getBaseUrl } from '@/utils/baseUrl'; // 创建或者打开数据库 export function openIndexedDB() { - const baseUrl = getBaseUrl(); - const indexedDBName = baseUrl.replace(/http.?:\/\/(.*)[\/|:].*/, "$1"); + const baseUrl = getBaseUrl(); + const indexedDBName = baseUrl.replace(/http.?:\/\/(.*)[\/|:].*/, '$1'); const request = window.indexedDB.open(indexedDBName, 1); request.onerror = function (event) { console.log('数据库打开报错'); diff --git a/src/views/newMap/displayCity/menuDemon.vue b/src/views/newMap/displayCity/menuDemon.vue index c9b5d86d0..dca5cf7a3 100644 --- a/src/views/newMap/displayCity/menuDemon.vue +++ b/src/views/newMap/displayCity/menuDemon.vue @@ -54,6 +54,7 @@ import StatusIcon from '@/views/components/StatusIcon/statusIcon'; import { simulationPause, simulationStart } from '../../../api/rtSimulation'; // import Vue from 'vue'; import { getSessionStorage } from '@/utils/auth'; +import { destroySimulation } from '@/api/rtSimulation'; // import { EventBus } from '@/scripts/event-bus'; export default { @@ -249,7 +250,7 @@ export default { async back() { this.isGoback = true; if (this.projectDevice || this.project === 'wjls') { - clearSimulation(this.group).then(res=>{ + destroySimulation(this.group).then(res=>{ this.$store.dispatch('training/over').then(() => { this.$store.dispatch('LogOut').then(() => { location.reload(); diff --git a/src/views/publish/publishMap/index.vue b/src/views/publish/publishMap/index.vue index a516eb08c..8a6beadc2 100644 --- a/src/views/publish/publishMap/index.vue +++ b/src/views/publish/publishMap/index.vue @@ -378,6 +378,8 @@ export default { message = message + ( index ? '、' : '' ) + '《' + item.name + '》'; }); this.$messageBox(message); + } else { + this.$message.success('一键校验地图数据通过!'); } }).catch(e => { this.loading = false; From 149d4cf995d5e5cd5d41db6e1438dda075fec98a Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 13 May 2021 13:22:30 +0800 Subject: [PATCH 03/32] =?UTF-8?q?Bug=20206=20=E8=AF=AD=E9=9F=B3=E8=AE=AD?= =?UTF-8?q?=E7=BB=83=E7=BB=93=E6=9E=9C=E5=9C=A8=E6=9F=A5=E8=AF=A2=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=EF=BC=8C=E9=80=89=E6=8B=A9A=E7=94=A8?= =?UTF-8?q?=E6=88=B7=EF=BC=8C=E7=BB=93=E6=9E=9C=E9=87=8C=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E4=BA=86B=E7=94=A8=E6=88=B7=E7=9A=84=E8=AF=AD=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/drts/scene/trainingResult.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/drts/scene/trainingResult.vue b/src/views/drts/scene/trainingResult.vue index 12a7cc174..e9cdf59a3 100644 --- a/src/views/drts/scene/trainingResult.vue +++ b/src/views/drts/scene/trainingResult.vue @@ -174,6 +174,13 @@ export default { if (this.userId) { this.loading = true; audioFilesCheckAllSence(this.$route.query.sceneId, this.userId).then(resp => { + this.actionList.forEach(item => { + item.result = ''; + item.wrongKeyWords = []; + item.wrongTripNumbers = []; + item.recordId = ''; + item.filePath = ''; + }); (resp.data || []).forEach(elem => { this.actionList.forEach(item => { if (elem.actionId === item.id) { From f4cd046f1a6b31384d396032f26f317c8ea8ab72 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 13 May 2021 13:55:02 +0800 Subject: [PATCH 04/32] =?UTF-8?q?=E5=A4=A7=E9=93=81=E9=A1=B9=E7=9B=AE=20?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E8=BD=A6=E7=AB=99=E5=80=BC=E7=8F=AD=E5=91=98?= =?UTF-8?q?=20=E6=98=BE=E7=A4=BA=E7=BB=98=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/SignalButton/index.js | 12 ++++++++++++ src/views/newMap/displayCity/menuDemon.vue | 22 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/src/jmapNew/shape/SignalButton/index.js b/src/jmapNew/shape/SignalButton/index.js index e1d8d15e1..6e6abfc47 100644 --- a/src/jmapNew/shape/SignalButton/index.js +++ b/src/jmapNew/shape/SignalButton/index.js @@ -131,6 +131,18 @@ export default class SignalButton extends Group { setShowMode() { } setShowStation(stationCode) { + if (!stationCode || this.model.stationCode === stationCode) { + this.eachChild(item => { + item.show(); + }); + this.isShowShape = true; + this.setState(this.model); + } else { + this.eachChild(item => { + item.hide(); + }); + this.isShowShape = false; + } } getAnchorPoint() { } diff --git a/src/views/newMap/displayCity/menuDemon.vue b/src/views/newMap/displayCity/menuDemon.vue index c9b5d86d0..44ace6908 100644 --- a/src/views/newMap/displayCity/menuDemon.vue +++ b/src/views/newMap/displayCity/menuDemon.vue @@ -188,6 +188,28 @@ export default { methods: { async initLoadPage() { try { + const memberData = Object.values(this.$store.state.training.memberData); + const member = memberData.find(eachMember=>{ + return eachMember.userId == this.$store.state.user.id; + }); + const deviceId = member ? member.deviceId : ''; + if (deviceId) { + const nameList = Object.keys(this.$store.state.map.map || {}); + let list = []; + nameList.forEach(item => { + if (this.$store.state.map.map[item] && this.$store.state.map.map[item].constructor === Array) { + if (item === 'trainList') { + this.$store.state.map.map[item].forEach(elem => { + elem && list.push(elem); + }); + } else { + list = [...list, ...this.$store.state.map.map[item]]; + } + } + }); + this.$jlmap.updateShowStation(list, deviceId); + } + // 'Station83189'; if (this.try != '0') { this.loadInitData(); } From 02241f455acba97c039fcbbf9652753c2be2605c Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 13 May 2021 14:19:58 +0800 Subject: [PATCH 05/32] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E7=BB=98=E5=9B=BE=20?= =?UTF-8?q?=E9=AB=98=E7=BA=A7=E6=95=B0=E6=8D=AE=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/newDesignUser/demonList.vue | 2 +- .../newMap/newMapdraft/dataRelation/index.vue | 76 ++++++++++++------- 2 files changed, 50 insertions(+), 28 deletions(-) diff --git a/src/views/newMap/newDesignUser/demonList.vue b/src/views/newMap/newDesignUser/demonList.vue index e69c5e1a1..1c8b58e68 100644 --- a/src/views/newMap/newDesignUser/demonList.vue +++ b/src/views/newMap/newDesignUser/demonList.vue @@ -127,7 +127,7 @@ export default { if (this.loadingProjectList.includes(this.project)) { this.$store.dispatch('app/transitionAnimations'); } - this.$router.push({ path: `${UrlConfig.newDesignuser.mapDraw}/${obj.mapId}/draft`, query: { name: obj.mapName } }); + this.$router.push({ path: `${UrlConfig.newDesignuser.mapDraw}/${obj.mapId}/draft`, query: { name: obj.mapName, lineCode:obj.lineCode } }); break; } } diff --git a/src/views/newMap/newMapdraft/dataRelation/index.vue b/src/views/newMap/newMapdraft/dataRelation/index.vue index cac3ad7d7..846b86194 100644 --- a/src/views/newMap/newMapdraft/dataRelation/index.vue +++ b/src/views/newMap/newMapdraft/dataRelation/index.vue @@ -29,31 +29,31 @@ From af9eb2c8b64b03c4bb0b080a0ada03c3a83b5e3f Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 14 May 2021 13:14:08 +0800 Subject: [PATCH 07/32] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 183 +++++++++++++++++---------------- src/api/editor.js | 68 ++++++++++++ src/api/upload.js | 25 +++++ src/i18n/langs/zh/router.js | 3 + src/router/index.js | 35 +++++++ src/utils/baseUrl.js | 4 +- src/views/editor/edit.vue | 116 +++++++++++++++++++++ src/views/editor/index.vue | 151 +++++++++++++++++++++++++++ src/views/editor/list.vue | 87 ++++++++++++++++ src/views/editor/listDraft.vue | 108 +++++++++++++++++++ 10 files changed, 687 insertions(+), 93 deletions(-) create mode 100644 src/api/editor.js create mode 100644 src/api/upload.js create mode 100644 src/views/editor/edit.vue create mode 100644 src/views/editor/index.vue create mode 100644 src/views/editor/list.vue create mode 100644 src/views/editor/listDraft.vue diff --git a/package.json b/package.json index 666b32dc3..e1bd92899 100644 --- a/package.json +++ b/package.json @@ -1,93 +1,94 @@ { - "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": { - "start": "vue-cli-service serve --open", - "dev": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve", - "build": "vue-cli-service build --mode production", - "test": "vue-cli-service build --mode staging", - "local": "vue-cli-service build --mode", - "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", - "qs": "^6.9.3", - "quill-emoji": "^0.1.8", - "quill-image-extend-module": "^1.1.2", - "recordrtc": "^5.5.9", - "script-loader": "^0.7.2", - "sessionstorage": "^0.1.0", - "stompjs": "^2.3.3", - "storejs": "^1.0.25", - "three": "^0.107.0", - "video.js": "^7.8.4", - "vue": "^2.6.10", - "vue-i18n": "^8.12.0", - "vue-quill-editor": "^3.0.6", - "vue-router": "^3.1.6", - "vuedraggable": "^2.24.3", - "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": { + "start": "vue-cli-service serve --open", + "dev": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve", + "build": "vue-cli-service build --mode production", + "test": "vue-cli-service build --mode staging", + "local": "vue-cli-service build --mode", + "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", + "qs": "^6.9.3", + "quill-emoji": "^0.1.8", + "quill-image-extend-module": "^1.1.2", + "recordrtc": "^5.5.9", + "script-loader": "^0.7.2", + "sessionstorage": "^0.1.0", + "stompjs": "^2.3.3", + "storejs": "^1.0.25", + "three": "^0.107.0", + "video.js": "^7.8.4", + "vue": "^2.6.10", + "vue-i18n": "^8.12.0", + "vue-quill-editor": "^3.0.6", + "vue-router": "^3.1.6", + "vuedraggable": "^2.24.3", + "vuex": "^3.1.0", + "wangeditor": "^4.6.17", + "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/api/editor.js b/src/api/editor.js new file mode 100644 index 000000000..2fa1e80b6 --- /dev/null +++ b/src/api/editor.js @@ -0,0 +1,68 @@ +import request from '@/utils/request'; +// 获取文章列表 +export function getDoc() { + return request({ + url: `/api/doc`, + method: 'get' + }); +} +// 获取发布内容 +export function getDocById(id) { + return request({ + url: `/api/doc/${id}`, + method: 'get' + }); +} +// 获取草稿列表 +export function getDocDraft() { + return request({ + url: `/api/doc/draft`, + method: 'get' + }); +} +// 创建 +export function postDocDraft(data) { + return request({ + url: `/api/doc/draft`, + method: 'post', + data + }); +} +// 获取草稿数据id +export function getDocDraftById(id) { + return request({ + url: `/api/doc/draft/${id}`, + method: 'get' + }); +} +// 更新草稿数据 +export function putDocDraftById(id, data) { + return request({ + url: `/api/doc/draft/${id}`, + method: 'put', + data + }); +} +// 删除草稿数据 +export function deleteDocDraftById(id) { + return request({ + url: `/api/doc/draft/${id}`, + method: 'delete' + }); +} +// 保存内容根据id +export function putDocDraftByIdData(id, data) { + return request({ + url: `/api/doc/draft/${id}/data`, + method: 'put', + data + }); +} +// 草稿发布 +export function putDocDraftByIdPublish(id) { + return request({ + url: `/api/doc/draft/${id}/publish`, + method: 'put' + }); +} + diff --git a/src/api/upload.js b/src/api/upload.js new file mode 100644 index 000000000..806bb8d7e --- /dev/null +++ b/src/api/upload.js @@ -0,0 +1,25 @@ +import request from '@/utils/request'; + +export const productIdentify = '00001&appSecret=joylink00001'; + +export const pictureUrl = `/api/upload/PICTURE?appId=${productIdentify}`; +// export const modelUrl = `/api/upload/model?appId=${productIdentify}`; + +// export const attachmentUrl = `/api/upload/attachment?appId=${productIdentify}`; +// export const meansUrl = `/api/upload/means?appId=${productIdentify}`; +// export const regulationUrl = `/api/upload/regulation?appId=${productIdentify}`; + +export function getUrl(relatedUrl) { + return `${process.env.VUE_APP_UPLOAD_API}${relatedUrl}`; +} + +export function uploadFile(url, data) { + return request({ + headers: { + 'Content-Type': 'multipart/form-data' + }, + url, + method: 'post', + data: data + }); +} diff --git a/src/i18n/langs/zh/router.js b/src/i18n/langs/zh/router.js index eadca6adb..770d6c8c3 100644 --- a/src/i18n/langs/zh/router.js +++ b/src/i18n/langs/zh/router.js @@ -4,6 +4,9 @@ export default { designhomePage: '公共地图', designUserPage: '个人地图', newDesignUserPage: '地图绘制', + newDesignEditor: '编辑器', + newDesignEditorList: '图文列表', + newDesignDraftEditorList: '文章草稿', mapManage: '地图管理', skinManage: '皮肤管理', diff --git a/src/router/index.js b/src/router/index.js index 8a15ed8d2..dfda13a14 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -172,6 +172,10 @@ const VoiceTraining = () => import('@/views/system/voiceTraining/index'); const SceneTrainingResult = () => import('@/views/drts/scene/trainingResult'); const SceneVoiceTraining = () => import('@/views/drts/scene/voiceTraining'); +const Ueditor = () => import('@/views/editor/index'); +const UeditorList = () => import('@/views/editor/list'); +const UeditorDraftList = () => import('@/views/editor/listDraft'); + // import { GenerateRouteProjectList } from '@/scripts/ProjectConfig'; // import { getSessionStorage } from '@/utils/auth'; @@ -1132,6 +1136,37 @@ export const asyncRouter = [ // } ] }, + { + path: '/editor', + component: Layout, + meta: { + i18n: 'router.newDesignEditor', + roles: [admin, user] + }, + children: [ + { + path: 'list', + component: UeditorList, + meta: { + i18n: 'router.newDesignEditorList' + } + }, + { + path: 'listDraft', + component: UeditorDraftList, + meta: { + i18n: 'router.newDesignDraftEditorList' + } + }, + { + path: '', + component: Ueditor, + meta: { + i18n: 'router.newDesignEditor' + } + } + ] + }, { // 新个人地图 path: '/design', component: Layout, diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 11702c286..f4a99c662 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,8 +2,8 @@ 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 = 'http://192.168.8.107:9000'; // 袁琪 + // BASE_API = 'https://test.joylink.club/jlcloud'; + BASE_API = 'http://192.168.3.119:9000'; // 袁琪 // BASE_API = 'http://192.168.3.83:9000'; // 旭强 有线 // BASE_API = 'http://192.168.8.114:9000'; // 旭强 无线 // BASE_API = 'http://192.168.3.120:9000'; // 张赛 diff --git a/src/views/editor/edit.vue b/src/views/editor/edit.vue new file mode 100644 index 000000000..b8a4935af --- /dev/null +++ b/src/views/editor/edit.vue @@ -0,0 +1,116 @@ + + + diff --git a/src/views/editor/index.vue b/src/views/editor/index.vue new file mode 100644 index 000000000..4977cfd24 --- /dev/null +++ b/src/views/editor/index.vue @@ -0,0 +1,151 @@ + + + + diff --git a/src/views/editor/list.vue b/src/views/editor/list.vue new file mode 100644 index 000000000..1fa57b1cb --- /dev/null +++ b/src/views/editor/list.vue @@ -0,0 +1,87 @@ + + + diff --git a/src/views/editor/listDraft.vue b/src/views/editor/listDraft.vue new file mode 100644 index 000000000..0735d70d8 --- /dev/null +++ b/src/views/editor/listDraft.vue @@ -0,0 +1,108 @@ + + + From ddfddfa292713428e6e1e89be6db95917eeb9085 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 14 May 2021 15:05:57 +0800 Subject: [PATCH 08/32] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/map.js | 1 - src/jmapNew/painter.js | 5 +- src/jmapNew/shape/Train/index.js | 1 - .../theme/haerbin_01/menus/menuButton.vue | 108 ++++---- .../nanjing_02/menus/dialog/mapVisual.vue | 255 ++++++++++++++++++ .../theme/nanjing_02/menus/dialog/rps.vue | 95 +++++++ .../theme/nanjing_02/menus/menuBar.vue | 125 ++++++--- .../theme/nanjing_02/menus/menuButton.vue | 160 +++++++---- src/scripts/cmdPlugin/CommandEnum.js | 8 +- src/scripts/cmdPlugin/OperationHandler.js | 12 + src/store/modules/map.js | 3 + src/utils/baseUrl.js | 4 +- .../newMap/mapsystemNew/common/index.vue | 16 +- 13 files changed, 637 insertions(+), 156 deletions(-) create mode 100644 src/jmapNew/theme/nanjing_02/menus/dialog/mapVisual.vue create mode 100644 src/jmapNew/theme/nanjing_02/menus/dialog/rps.vue diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 6a24d028d..8bd2b7f69 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -500,7 +500,6 @@ class Jlmap { oDevice['cutOff'] = sectionA.cutOff; } } - this.$painter.update(oDevice); } else if (elem.deviceType == 'SECTION') { const oDevice = this.mapDevice[code]; diff --git a/src/jmapNew/painter.js b/src/jmapNew/painter.js index 5f0c5edd2..5f8c3c671 100644 --- a/src/jmapNew/painter.js +++ b/src/jmapNew/painter.js @@ -6,6 +6,7 @@ import transitionDeviceStatus from './constant/stateTransition'; import shapefactory from './shape/factory'; import TransformHandle from './transformHandle'; import TransformHandleScreen from './transformHandleScreen'; +import deviceRender from './constant/deviceRender'; class Painter { constructor(jmap) { @@ -136,6 +137,8 @@ class Painter { const overlapTrainList = this.checkTrainOverlap(device); overlapTrainList.forEach((item, index) => { const trainDevice = this.$jmap.getDeviceByCode(item); + trainDevice._type = deviceRender['Train']._type; + trainDevice.zlevel = deviceRender['Train'].zlevel; trainDevice.overLapIndex = index; trainDevice.instance && this.mapInstanceLevel[deviceType.Train].remove(trainDevice.instance); this.add(trainDevice); @@ -223,7 +226,7 @@ class Painter { getShapeTipPoint(instance, opts) { if (instance) { var point = instance.getShapeTipPoint(opts); - if (point) { + if (point) { // 矩阵变换 var transPoint = instance.transformCoordToGlobal(point.x, point.y); return { diff --git a/src/jmapNew/shape/Train/index.js b/src/jmapNew/shape/Train/index.js index 477a0ef64..db5c0e5bf 100644 --- a/src/jmapNew/shape/Train/index.js +++ b/src/jmapNew/shape/Train/index.js @@ -60,7 +60,6 @@ export default class Train extends Group { this._computed(); const model = this.model; const style = this.style; - if (this.point) { this.trainB = new TrainBody({ zlevel: this.zlevel, diff --git a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue index 411b27c86..38b15bb1f 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue @@ -76,9 +76,9 @@