diff --git a/src/api/script.js b/src/api/script.js index b4cc5e639..a400453b7 100644 --- a/src/api/script.js +++ b/src/api/script.js @@ -26,9 +26,9 @@ export function getScriptById(id) { }); } /** 通过ID查询未发布剧本的详细信息 */ -export function getDraftScriptById(id) { +export function getDraftScriptByGroup(group) { return request({ - url: `/api/script/draft/${id}/detail`, + url: `/api/simulation/${group}/script/loadedScript`, method: 'get' }); } diff --git a/src/api/simulation.js b/src/api/simulation.js index c47d936b8..8ae6212eb 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -425,3 +425,12 @@ export function handlerIbpEvent(group, data) { data: data }); } + +/** 预览脚本仿真*/ +export function scriptDraftRecordNotify(scriptId) { + return request({ + url: `/api/simulation/scriptDraft/${scriptId}`, + method: 'get' + }); +} + diff --git a/src/i18n/langs/en/tip.js b/src/i18n/langs/en/tip.js index 0906d6b29..d02b978a2 100644 --- a/src/i18n/langs/en/tip.js +++ b/src/i18n/langs/en/tip.js @@ -205,5 +205,6 @@ export default { publishTheCourseHint: 'This operation will publish the course. Are you sure?', rejectedCourseReleaseApplicationSuccessful: 'Rejected course release application successful!', rejectedCourseReleaseApplicationFailed: 'Rejected course release application failed!', - duplicatePlanFailedTips: 'The interval needs to be more than 30 seconds or the times is more than 1' + duplicatePlanFailedTips: 'The interval needs to be more than 30 seconds or the times is more than 1', + createSwitchPortion: 'The relevant turnout is not formed' }; diff --git a/src/i18n/langs/zh/tip.js b/src/i18n/langs/zh/tip.js index a84170e28..d4e308a98 100644 --- a/src/i18n/langs/zh/tip.js +++ b/src/i18n/langs/zh/tip.js @@ -205,5 +205,6 @@ export default { publishTheCourseHint: '此操作将发布课程,是否确定?', rejectedCourseReleaseApplicationSuccessful: '驳回课程发布申请成功!', rejectedCourseReleaseApplicationFailed: '驳回课程发布申请失败!', - duplicatePlanFailedTips: '间隔时间需要大于30秒或次数大于1' + duplicatePlanFailedTips: '间隔时间需要大于30秒或次数大于1', + createSwitchPortion: '相关道岔未生成' }; diff --git a/src/jmap/map.js b/src/jmap/map.js index 5800b8714..cd50c6fb3 100644 --- a/src/jmap/map.js +++ b/src/jmap/map.js @@ -40,6 +40,7 @@ class Jlmap { initMapInstance(opts) { const width = opts.dom.clientWidth; const height = opts.dom.clientHeight; + this.zoomOnMouseWheel = opts.options.zoomOnMouseWheel; this.$zr = zrender.init(opts.dom, deepAssign({ renderer, devicePixelRatio, width, height }, opts.config)); @@ -125,6 +126,7 @@ class Jlmap { if (this.$options.disabled == true) { this.$mouseController.disable(); } else { + opts['zoomOnMouseWheel'] = this.zoomOnMouseWheel; this.$mouseController.enable(opts); } diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue deleted file mode 100644 index 98c839e9f..000000000 --- a/src/layout/components/AppMain.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/src/layout/components/index.js b/src/layout/components/index.js index 6744940ba..4cd35432d 100644 --- a/src/layout/components/index.js +++ b/src/layout/components/index.js @@ -1,3 +1,3 @@ export { default as Navbar } from './Navbar'; export { default as Sidebar } from './Sidebar'; -export { default as AppMain } from './AppMain'; +// export { default as AppMain } from './AppMain'; diff --git a/src/layout/components/userInfo.vue b/src/layout/components/userInfo.vue index 827b24a74..f2f523c4f 100644 --- a/src/layout/components/userInfo.vue +++ b/src/layout/components/userInfo.vue @@ -119,7 +119,7 @@ diff --git a/src/views/designPlatform/userIndex.vue b/src/views/designPlatform/userIndex.vue index b1c1ef93b..a856f93e6 100644 --- a/src/views/designPlatform/userIndex.vue +++ b/src/views/designPlatform/userIndex.vue @@ -1,20 +1,13 @@ @@ -47,9 +40,6 @@ export default { ...mapGetters([ 'lessonbar' ]), - height() { - return this.$store.state.app.height - 50; - }, width() { return this.$store.state.app.width; } @@ -140,8 +130,6 @@ export default { } .examList { - // position: fixed; - // top: 61px; float: left; height: 100%; } diff --git a/src/views/jlmap/index.vue b/src/views/jlmap/index.vue index b93312fc2..397fac459 100644 --- a/src/views/jlmap/index.vue +++ b/src/views/jlmap/index.vue @@ -131,6 +131,12 @@ export default { document.getElementById(this.canvasId).oncontextmenu = function (e) { return false; }; + // 默认个人地图绘制可以滚轮放大缩小 其他地图显示不允许此操作 + const path = window.location.href; + let flag = false; + if (path.includes('design/userlist/map/draw')) { + flag = true; + } Vue.prototype.$jlmap = new Jlmap({ dom: document.getElementById(this.canvasId), @@ -142,7 +148,8 @@ export default { options: { scaleRate: 1, offsetX: 0, - offsetY: 0 + offsetY: 0, + zoomOnMouseWheel: flag }, methods: { dataLoaded: this.handleDataLoaded, diff --git a/src/views/map/mapdraft/mapedit/mapoperate/config/data.vue b/src/views/map/mapdraft/mapedit/mapoperate/config/data.vue index 263a90896..0e1572878 100644 --- a/src/views/map/mapdraft/mapedit/mapoperate/config/data.vue +++ b/src/views/map/mapdraft/mapedit/mapoperate/config/data.vue @@ -104,6 +104,7 @@