From 93f3e485fcd9eb5aeb00dcf5053bbf9b6c569b7f Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 23 Nov 2020 18:00:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=81=E6=97=A7=E6=8E=A5=E5=8F=A3=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/jmap/training.js | 32 --- src/api/runplan.js | 2 +- src/api/scheduling.js | 7 - src/api/simulation.js | 24 +- src/jmapNew/theme/beijing_01/menus/index.vue | 3 - .../theme/beijing_01/menus/menuCancel.vue | 122 --------- src/jmapNew/theme/chengdu_01/menus/index.vue | 2 - .../theme/chengdu_01/menus/menuCancel.vue | 94 ------- src/jmapNew/theme/chengdu_03/menus/index.vue | 2 - .../theme/chengdu_03/menus/menuCancel.vue | 94 ------- src/jmapNew/theme/foshan_01/menus/index.vue | 2 - .../theme/foshan_01/menus/menuCancel.vue | 119 -------- src/jmapNew/theme/fuzhou_01/menus/index.vue | 3 - .../theme/fuzhou_01/menus/menuCancel.vue | 124 --------- src/jmapNew/theme/haerbin_01/menus/index.vue | 3 - .../theme/haerbin_01/menus/menuCancel.vue | 119 -------- src/jmapNew/theme/ningbo_01/menus/index.vue | 3 - .../theme/ningbo_01/menus/menuCancel.vue | 119 -------- src/jmapNew/theme/ningbo_03/menus/index.vue | 3 - .../theme/ningbo_03/menus/menuCancel.vue | 119 -------- src/jmapNew/theme/race_01/menus/index.vue | 3 - .../theme/race_01/menus/menuCancel.vue | 119 -------- src/jmapNew/theme/xian_01/menus/index.vue | 3 - .../theme/xian_01/menus/menuCancel.vue | 119 -------- src/jmapNew/theme/xian_02/menus/index.vue | 3 - .../theme/xian_02/menus/menuCancel.vue | 259 ------------------ src/utils/baseUrl.js | 4 +- src/views/approval/index.vue | 4 +- .../newMap/displayNew/demon/scheduling.vue | 22 +- 29 files changed, 11 insertions(+), 1521 deletions(-) delete mode 100644 src/jmapNew/theme/beijing_01/menus/menuCancel.vue delete mode 100644 src/jmapNew/theme/chengdu_01/menus/menuCancel.vue delete mode 100644 src/jmapNew/theme/chengdu_03/menus/menuCancel.vue delete mode 100644 src/jmapNew/theme/foshan_01/menus/menuCancel.vue delete mode 100644 src/jmapNew/theme/fuzhou_01/menus/menuCancel.vue delete mode 100644 src/jmapNew/theme/haerbin_01/menus/menuCancel.vue delete mode 100644 src/jmapNew/theme/ningbo_01/menus/menuCancel.vue delete mode 100644 src/jmapNew/theme/ningbo_03/menus/menuCancel.vue delete mode 100644 src/jmapNew/theme/race_01/menus/menuCancel.vue delete mode 100644 src/jmapNew/theme/xian_01/menus/menuCancel.vue delete mode 100644 src/jmapNew/theme/xian_02/menus/menuCancel.vue diff --git a/src/api/jmap/training.js b/src/api/jmap/training.js index 280a8c200..072682745 100644 --- a/src/api/jmap/training.js +++ b/src/api/jmap/training.js @@ -1,37 +1,5 @@ import request from '@/utils/request'; -/** 发送步骤数据*/ -export function sendTrainingNextStep(data, group) { - return request({ - url: `/api/training/${data.trainingId}/nextStep`, - method: 'post', - data: data.operate, - params: { - group - } - }); -} -/** 查询实训列表 0*/ -export function pageQueryTraining(params) { - return request({ - url: `/api/training/pagedQuery`, - method: 'get', - params: params - }); -} -export function sendCommand(group, command) { - return request({ - url: `/api/training/deviceChange?group=${group}`, - method: 'put', - data: { - param: command.val, - type: command.type, - code: command.code, - operation: command.operation - } - }); -} - // 发送新的指令 export function sendCommandNew(group, commandDefinitionId, command) { return request({ diff --git a/src/api/runplan.js b/src/api/runplan.js index 4d90b75de..b5a4cd1dd 100644 --- a/src/api/runplan.js +++ b/src/api/runplan.js @@ -362,7 +362,7 @@ export function postDailyRunPlanLoadGenerate(id) { // 加载通用排班计划 export function postSchedulingCommonGenerate(mapId) { return request({ - url: `/api/scheduling/common/generate?mapId=${mapId}`, + url: `/api/v1/scheduling/common/generate?mapId=${mapId}`, method: 'post' }); } diff --git a/src/api/scheduling.js b/src/api/scheduling.js index 1de48c2f5..96f4a0265 100644 --- a/src/api/scheduling.js +++ b/src/api/scheduling.js @@ -1,12 +1,5 @@ import request from '@/utils/request'; -export function generateSchedulingAgain(group) { - return request({ - url: `/api/scheduling/${group}/rebuild`, - method: 'delete' - }); -} - /** 查询某天的派班计划 */ export function querySechedulingNew (group, params) { return request({ diff --git a/src/api/simulation.js b/src/api/simulation.js index bb59c7f2a..34df45ed3 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -31,14 +31,6 @@ export function deleteFailureRule(id) { }); } -/** 退出仿真系统*/ -export function runDiagramQuit(group) { - return request({ - url: `/api/simulation/${group}/quit`, - method: 'put' - }); -} - /** 实训系统(新版地图) */ export function trainingNotifyNew({ trainingId }) { return request({ @@ -57,7 +49,7 @@ export function examNotifyNew({ examId }) { /** 获取用户实训列表*/ export function getSimulationList(data) { return request({ - url: `/api/simulation/stats`, + url: `/api/stats/simulation`, method: 'get', params: data }); @@ -66,7 +58,7 @@ export function getSimulationList(data) { /** 添加用户仿真数据*/ export function postSimulationStats(data) { return request({ - url: `/api/simulation/stats`, + url: `/api/stats/simulation`, method: 'post', data: data }); @@ -75,7 +67,7 @@ export function postSimulationStats(data) { /** 更新用户仿真数据*/ export function putSimulationStats(data) { return request({ - url: `/api/simulation/${data.id}/stats`, + url: `/api/stats/${data.id}`, method: 'put', data: data }); @@ -84,7 +76,7 @@ export function putSimulationStats(data) { /** 删除用户仿真数据*/ export function deleteSimulationStats(statsId) { return request({ - url: `/api/simulation/${statsId}`, + url: `/api/stats/${statsId}`, method: 'delete' }); } @@ -236,14 +228,6 @@ export function handlerIbpEvent(group, button, stationCode) { }); } -/** 预览脚本仿真*/ -export function scriptDraftRecordNotify(scriptId) { - return request({ - url: `/api/simulation/scriptDraft/${scriptId}`, - method: 'get' - }); -} - /** 预览脚本仿真(新版)*/ export function scriptDraftRecordNotifyNew(scriptId) { return request({ diff --git a/src/jmapNew/theme/beijing_01/menus/index.vue b/src/jmapNew/theme/beijing_01/menus/index.vue index e7e5cb502..385ea0189 100644 --- a/src/jmapNew/theme/beijing_01/menus/index.vue +++ b/src/jmapNew/theme/beijing_01/menus/index.vue @@ -1,6 +1,5 @@