From 4c185346cda738c6b906cecc80d89ec8f1d48b80 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Mon, 26 Oct 2020 17:50:35 +0800
Subject: [PATCH 01/97] =?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/views/newMap/displayNew/dispatherContest/theoryExam.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/newMap/displayNew/dispatherContest/theoryExam.vue b/src/views/newMap/displayNew/dispatherContest/theoryExam.vue
index 1bda55faf..c3dd6a794 100644
--- a/src/views/newMap/displayNew/dispatherContest/theoryExam.vue
+++ b/src/views/newMap/displayNew/dispatherContest/theoryExam.vue
@@ -155,7 +155,7 @@ export default {
currentMode = '02';
}
this.mode = type;
- getItemListByProjectCode('drts', {mode:currentMode}).then(res=>{
+ getItemListByProjectCode('DRTS', {mode:currentMode}).then(res=>{
this.questionList = res.data;
if (this.isTest) {
this.questionList.forEach((question, index)=>{
@@ -163,7 +163,7 @@ export default {
});
}
if (this.mode == 'practice') {
- getPracticeQuestionProgress('drts').then(res=>{
+ getPracticeQuestionProgress('DRTS').then(res=>{
this.currentQuestionNum = res.data.questionIndex;
this.loading = false;
}).catch(error=>{
From 3ac4945d71da5ae8c41753ff1bb056397dae0d94 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Mon, 26 Oct 2020 18:41:10 +0800
Subject: [PATCH 02/97] =?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/store/modules/map.js | 4 ++--
src/utils/loaddata.js | 4 ++++
src/views/newMap/displayNew/dispatherContest/theoryExam.vue | 4 ++--
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/store/modules/map.js b/src/store/modules/map.js
index b05d06c77..9633d0a7b 100644
--- a/src/store/modules/map.js
+++ b/src/store/modules/map.js
@@ -795,7 +795,7 @@ const map = {
state.routeStartSignalData[data.startSignalCode] = [data];
}
});
- state.map.automaticRouteButtonList && state.map.automaticRouteButtonList.forEach(item => {
+ state.map && state.map.automaticRouteButtonList && state.map.automaticRouteButtonList.forEach(item => {
state.routeData[item.automaticRouteCode].automaticRouteCode = item.code;
});
state.routeList = routeDataList;
@@ -812,7 +812,7 @@ const map = {
autoReentryList.forEach(data => {
state.autoReentryData[data.code] = data;
});
- state.map.cycleButtonList && state.map.cycleButtonList.forEach(item => {
+ state.map && state.map.cycleButtonList && state.map.cycleButtonList.forEach(item => {
state.autoReentryData[item.cycleCode].cycleButtonCode = item.code;
});
state.autoReentryList = autoReentryList;
diff --git a/src/utils/loaddata.js b/src/utils/loaddata.js
index c0bac5f53..594b1d12d 100644
--- a/src/utils/loaddata.js
+++ b/src/utils/loaddata.js
@@ -68,6 +68,10 @@ export function covertData(resp, type, resolve) {
resolve();
});
});
+ } else if (type == 'mapId') {
+ store.dispatch('map/setMapData', mapData).then(() => {
+ resolve();
+ });
}
const routeData = resp.data.logicDataNew.routeList; // 设置进路数据
diff --git a/src/views/newMap/displayNew/dispatherContest/theoryExam.vue b/src/views/newMap/displayNew/dispatherContest/theoryExam.vue
index c3dd6a794..75d7932c2 100644
--- a/src/views/newMap/displayNew/dispatherContest/theoryExam.vue
+++ b/src/views/newMap/displayNew/dispatherContest/theoryExam.vue
@@ -287,7 +287,7 @@ export default {
},
submitConfirmExam(submitData) {
this.loading = true;
- submitPracticeQuestionData('drts', {mode:'02', theoryAnswers:submitData}).then(res=>{
+ submitPracticeQuestionData('DRTS', {mode:'02', theoryAnswers:submitData}).then(res=>{
this.loading = false;
this.isResult = true;
this.$message.success('提交成功');
@@ -369,7 +369,7 @@ export default {
}
}
this.isSelect = true;
- updatePracticeQuestionProgress('drts', {index:this.currentQuestionNum}).then(res=>{
+ updatePracticeQuestionProgress('DRTS', {index:this.currentQuestionNum}).then(res=>{
}).catch(error=>{
console.log(error.message);
});
From 0a6852fb270c2773f1334d7b557b77b615146134 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Tue, 27 Oct 2020 10:43:55 +0800
Subject: [PATCH 03/97] =?UTF-8?q?=E7=90=86=E8=AE=BA=E9=A2=98=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/management/user.js | 4 +-
src/api/race.js | 4 +-
src/components/QueryListPage/DataForm.vue | 1 +
src/components/QueryListPage/QueryForm.vue | 1 +
src/i18n/langs/en/system.js | 2 +-
src/i18n/langs/zh/system.js | 2 +-
.../competitionManage/bankList/index.vue | 245 +++++++++++------
.../bankList/item-answer.vue | 63 +++--
.../competitionManage/bankList/preImport.vue | 43 ++-
.../bankList/question-create-page.vue | 9 +-
.../bankList/question-form.vue | 23 +-
.../bankList/question-update-page.vue | 13 +-
src/views/system/companyManage/add.vue | 2 +-
src/views/system/companyManage/index.vue | 6 +-
src/views/system/questionsRuleManage/add.vue | 29 +-
.../system/questionsRuleManage/index.vue | 251 ++++++++++--------
src/views/system/userControl/edit.vue | 17 +-
17 files changed, 444 insertions(+), 271 deletions(-)
diff --git a/src/api/management/user.js b/src/api/management/user.js
index 62f0f5af3..403615804 100644
--- a/src/api/management/user.js
+++ b/src/api/management/user.js
@@ -85,10 +85,10 @@ export function saveUserSubscribe(data) {
});
}
-// 修改用户权限
+// 修改用户信息
export function putRoles(data) {
return request({
- url: `/api/user/${data.id}/role`,
+ url: `/api/user/${data.id}/info`,
method: 'put',
data: data
});
diff --git a/src/api/race.js b/src/api/race.js
index a99547f86..7e4e43cc2 100644
--- a/src/api/race.js
+++ b/src/api/race.js
@@ -34,9 +34,9 @@ export function updateRace(id, data) {
// });
// }
/** 导入项目试题库 */
-export function importQuestionBand(data) {
+export function importQuestionBand(data, companyId) {
return request({
- url: `/api/questionBank/questions/import`,
+ url: `/api/questionBank/questions/import?id=${companyId}`,
method: 'post',
data
});
diff --git a/src/components/QueryListPage/DataForm.vue b/src/components/QueryListPage/DataForm.vue
index f4a9a984d..f9edadf9c 100644
--- a/src/components/QueryListPage/DataForm.vue
+++ b/src/components/QueryListPage/DataForm.vue
@@ -214,6 +214,7 @@
{deviceChange(val, item)})"
diff --git a/src/components/QueryListPage/QueryForm.vue b/src/components/QueryListPage/QueryForm.vue
index 2b4c11a8b..e71a49c2e 100644
--- a/src/components/QueryListPage/QueryForm.vue
+++ b/src/components/QueryListPage/QueryForm.vue
@@ -302,6 +302,7 @@ export default {
// 初始化页面数据
initPageData() {
this.modelFields = [];
+ this.formModel = {};
this.exportFlag = this.queryForm.canExport;
this.resetShow = this.queryForm.reset;
this.buildQueryField();
diff --git a/src/i18n/langs/en/system.js b/src/i18n/langs/en/system.js
index 4d6d0a763..e5dcaf2c6 100644
--- a/src/i18n/langs/en/system.js
+++ b/src/i18n/langs/en/system.js
@@ -41,7 +41,7 @@ export default {
nickname: 'Nickname',
wellDelType: 'This operation will delete the type. Do you want to continue?',
permission: 'Permission',
- editUserPermission: 'Edit User Rights',
+ editUserPermission: 'Edit User Info',
lessonName: 'Lesson Name',
selectTraining: 'Selection Training',
createUserTraining: 'Creating User Training',
diff --git a/src/i18n/langs/zh/system.js b/src/i18n/langs/zh/system.js
index d41320c94..3c9e83713 100644
--- a/src/i18n/langs/zh/system.js
+++ b/src/i18n/langs/zh/system.js
@@ -41,7 +41,7 @@ export default {
nickname: '昵称',
wellDelType: '此操作将删除该类型, 是否继续?',
permission: '权限',
- editUserPermission: '编辑用户权限',
+ editUserPermission: '编辑用户信息',
lessonName: '课程名称',
selectTraining: '选择实训',
createUserTraining: '创建用户实训',
diff --git a/src/views/competitionManage/bankList/index.vue b/src/views/competitionManage/bankList/index.vue
index 5a72768d0..a716da874 100644
--- a/src/views/competitionManage/bankList/index.vue
+++ b/src/views/competitionManage/bankList/index.vue
@@ -10,6 +10,7 @@ import { UrlConfig } from '@/scripts/ConstDic';
import { listQuestionPage, deleteQuestion } from '@/api/questionBank.js';
import DialogDetail from './dialog-detail';
import { convertSheetToList } from '@/utils/runPlan';
+import { getCompanyList } from '@/api/company';
import XLSX from 'xlsx';
export default {
@@ -18,6 +19,7 @@ export default {
},
data() {
return {
+ companyList: [],
pagerConfig: {
pageSize: 'pageSize',
pageIndex: 'pageNum'
@@ -37,6 +39,13 @@ export default {
topic: {
type: 'text',
label: '题 目'
+ },
+ companyId: {
+ type: 'select',
+ label: '单位',
+ config: {
+ data: []
+ }
}
}
},
@@ -99,7 +108,8 @@ export default {
actions: [
{ text: '添 加', handler: this.doCreate },
{ text: '导 入', fileType: 'file', handler: this.importQuestionBank },
- { text: '出题规则管理', handler: this.questionsRuleManage}
+ { text: '出题规则管理', handler: this.questionsRuleManage},
+ { text: '模板导出', handler: this.exportTemplate}
]
}
};
@@ -109,6 +119,14 @@ export default {
return this.$store.state.user.id;
}
},
+ mounted() {
+ this.companyList = [];
+ getCompanyList().then(resp => {
+ resp.data.forEach(item => {
+ this.queryForm.queryObject.companyId.config.data.push({ value: item.id, label: item.name });
+ });
+ });
+ },
methods: {
doCreate() {
this.$router.push({path: `${UrlConfig.bank.questionCreate}`});
@@ -178,100 +196,104 @@ export default {
'问答': 'answer'
};
if (file) {
- setTimeout(() => {
- const that = this;
- const reader = new FileReader();
- if (reader) {
- reader.onload = function (e) {
- let wb;
- const data = e.target.result;
- if (that.rABS) {
- wb = XLSX.read(btoa(that.fixdata(data)), { // 手动转化
- type: 'base64'
- });
- } else {
- wb = XLSX.read(data, {
- type: 'binary'
- });
- }
- const questionList = [];
- if (wb && wb.Sheets) {
- for (const index in wb.Sheets) {
- const dataList = convertSheetToList(wb.Sheets[index], true);
- let questionTypeIndex;
- let topicIndex;
- let option1Index;
- let option2Index;
- let option3Index;
- let option4Index;
- let answerIndex;
- dataList.forEach((item, index) => {
- if (item[0] === '题型') {
- questionTypeIndex = index;
- } else if (item[0] === '题目') {
- topicIndex = index;
- } else if ( item[0] === '选项' && item[1] === 'A') {
- option1Index = index;
- } else if (!item[0] && item[1] === 'B') {
- option2Index = index;
- } else if (!item[0] && item[1] === 'C') {
- option3Index = index;
- } else if (!item[0] && item[1] === 'D') {
- option4Index = index;
- } else if (item[0] === '答案') {
- answerIndex = index;
- }
+ try {
+ setTimeout(() => {
+ const that = this;
+ const reader = new FileReader();
+ if (reader) {
+ reader.onload = function (e) {
+ let wb;
+ const data = e.target.result;
+ if (that.rABS) {
+ wb = XLSX.read(btoa(that.fixdata(data)), { // 手动转化
+ type: 'base64'
});
- if (questionTypeIndex || questionTypeIndex === 0) {
- dataList[questionTypeIndex].forEach((item, index) => {
- if (item && item !== '题型') {
- const param = {
- type: questionTypeMap[item],
- topic: dataList[topicIndex][index],
- optionList: []
- };
- if (param.type === 'fill') {
- const answer = dataList[answerIndex][index];
- const answerList = answer.split('&&');
- answerList && answerList.forEach(item => {
- param.optionList.push({content: item, correct: true});
- });
- } else if (param.type === 'answer') {
- param.optionList.push({content: dataList[answerIndex][index]});
- } else {
- param.optionList.push({ content:dataList[option1Index][index] || '正确', correct: dataList[answerIndex][index].includes('A') || dataList[answerIndex][index] == '√' });
- param.optionList.push({ content:dataList[option2Index][index] || '错误', correct: dataList[answerIndex][index].includes('B') || dataList[answerIndex][index] == '×' });
- if (dataList[option3Index][index]) {
- param.optionList.push({content:dataList[option3Index][index], correct: dataList[answerIndex][index].includes('C')});
- }
- if (dataList[option4Index][index]) {
- param.optionList.push({content:dataList[option4Index][index], correct: dataList[answerIndex][index].includes('D')});
- }
- }
- questionList.push(param);
+ } else {
+ wb = XLSX.read(data, {
+ type: 'binary'
+ });
+ }
+ const questionList = [];
+ if (wb && wb.Sheets) {
+ for (const index in wb.Sheets) {
+ const dataList = convertSheetToList(wb.Sheets[index], true);
+ let questionTypeIndex;
+ let topicIndex;
+ let option1Index;
+ let option2Index;
+ let option3Index;
+ let option4Index;
+ let answerIndex;
+ dataList.forEach((item, index) => {
+ if (item[0] === '题型') {
+ questionTypeIndex = index;
+ } else if (item[0] === '题目') {
+ topicIndex = index;
+ } else if ( item[0] === '选项' && item[1] === 'A') {
+ option1Index = index;
+ } else if (!item[0] && item[1] === 'B') {
+ option2Index = index;
+ } else if (!item[0] && item[1] === 'C') {
+ option3Index = index;
+ } else if (!item[0] && item[1] === 'D') {
+ option4Index = index;
+ } else if (item[0] === '答案') {
+ answerIndex = index;
}
});
+ if (questionTypeIndex || questionTypeIndex === 0) {
+ dataList[questionTypeIndex].forEach((item, index) => {
+ if (item && item !== '题型') {
+ const param = {
+ type: questionTypeMap[item],
+ topic: dataList[topicIndex][index],
+ optionList: []
+ };
+ if (param.type === 'fill') {
+ const answer = dataList[answerIndex][index];
+ const answerList = answer.split('&&');
+ answerList && answerList.forEach(item => {
+ param.optionList.push({content: item, correct: true});
+ });
+ } else if (param.type === 'answer') {
+ param.optionList.push({content: dataList[answerIndex][index]});
+ } else {
+ param.optionList.push({ content:dataList[option1Index][index] || '正确', correct: dataList[answerIndex][index].includes('A') || dataList[answerIndex][index] == '√' });
+ param.optionList.push({ content:dataList[option2Index][index] || '错误', correct: dataList[answerIndex][index].includes('B') || dataList[answerIndex][index] == '×' });
+ if (dataList[option3Index][index]) {
+ param.optionList.push({content:dataList[option3Index][index], correct: dataList[answerIndex][index].includes('C')});
+ }
+ if (dataList[option4Index][index]) {
+ param.optionList.push({content:dataList[option4Index][index], correct: dataList[answerIndex][index].includes('D')});
+ }
+ }
+ questionList.push(param);
+ }
+ });
+ }
}
+ that.$store.dispatch('race/setPreTheoryData', questionList).then(() => {
+ that.$router.push({ path: `/system/preTheoryImport`});
+ }).catch((e) => {
+ that.$message.error('导入题库失败!');
+ });
+ // importQuestionBand(questionList, 'DRTS').then(resp => {
+ // this.$message.success('导入题库成功!');
+ // }).catch(()=>{
+ // this.$message.error('导入题库失败!');
+ // });
}
- that.$store.dispatch('race/setPreTheoryData', questionList).then(() => {
- that.$router.push({ path: `/system/preTheoryImport`});
- }).catch((e) => {
- that.$message.error('导入题库失败!');
- });
- // importQuestionBand(questionList, 'DRTS').then(resp => {
- // this.$message.success('导入题库成功!');
- // }).catch(()=>{
- // this.$message.error('导入题库失败!');
- // });
+ };
+ if (that.rABS) {
+ reader.readAsArrayBuffer(file);
+ } else {
+ reader.readAsBinaryString(file);
}
- };
- if (that.rABS) {
- reader.readAsArrayBuffer(file);
- } else {
- reader.readAsBinaryString(file);
}
- }
- }, 200);
+ }, 200);
+ } catch (e) {
+ this.$message.error('请根据下载模板导入题目!');
+ }
}
},
importQuestionBank() {
@@ -282,6 +304,53 @@ export default {
},
questionsRuleManage() {
this.$router.push({ path: `/system/questionsRuleManage`});
+ },
+ exportTemplate() {
+ const wb = XLSX.utils.book_new();
+ const data1 = [{A: '序号', B: '题型', C:'题目', D:'选项', E: '', F: '', G: '', H: '答案'}];
+ const data2 = [{A: '', B: '', C:'', D:'A', E: 'B', F: 'C', G: 'D', H: ''}];
+ const data3 = [{A: '1', B: '判断', C:'题目一', D:'', E: '', F: '', G: '', H: '√'}];
+ const data4 = [{A: '2', B: '判断', C:'题目二', D:'', E: '', F: '', G: '', H: '×'}];
+ const data5 = [{A: '3', B: '单选', C:'题目三', D:'选项A', E: '选项B', F: '选项C', G: '选项D', H: 'A'}];
+ const data6 = [{A: '4', B: '多选', C:'题目四', D:'选项A', E: '选项B', F: '选项C', G: '选项D', H: 'ABCD'}];
+ const data7 = [{A: '5', B: '填空', C:'题目五', D:'', E: '', F: '', G: '', H: '第一空答案&&第二空答案&&第三空答案'}];
+ const data8 = [{A: '6', B: '问答', C:'题目六', D:'', E: '', F: '', G: '', H: '问答题答案'}];
+ const data = [...data1, ...data2, ...data3, ...data4, ...data5, ...data6, ...data7, ...data8];
+ const ws = XLSX.utils.json_to_sheet(data, {skipHeader:true});
+ ws['!merges'] = [
+ {
+ s: {c: 3, r: 0},
+ e: {c: 6, r: 0}
+ },
+ {
+ s: {c: 0, r: 0},
+ e: {c: 0, r: 1}
+ },
+ {
+ s: {c: 1, r: 0},
+ e: {c: 1, r: 1}
+ },
+ {
+ s: {c: 2, r: 0},
+ e: {c: 2, r: 1}
+ },
+ {
+ s: {c: 7, r: 0},
+ e: {c: 7, r: 1}
+ }
+ ];
+ ws['!cols'] = [
+ {width: 10},
+ {width: 10},
+ {width: 50},
+ {width: 15},
+ {width: 15},
+ {width: 15},
+ {width: 15},
+ {width: 15}
+ ];
+ XLSX.utils.book_append_sheet(wb, ws, 'file');
+ XLSX.writeFile(wb, '题库模板' + '.xlsx');
}
}
};
diff --git a/src/views/competitionManage/bankList/item-answer.vue b/src/views/competitionManage/bankList/item-answer.vue
index 3eb163cf5..d23557c0e 100644
--- a/src/views/competitionManage/bankList/item-answer.vue
+++ b/src/views/competitionManage/bankList/item-answer.vue
@@ -18,8 +18,16 @@
-
{{ `第${i + 1}空` }}
-
+
{{ `第${i + 1}空` }}
+
+
@@ -36,11 +44,7 @@
diff --git a/src/views/planMonitor/editToolAUS/drawer.vue b/src/views/planMonitor/editToolAUS/drawer.vue
new file mode 100644
index 000000000..d162ebf4a
--- /dev/null
+++ b/src/views/planMonitor/editToolAUS/drawer.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
diff --git a/src/views/planMonitor/editToolAUS/export.vue b/src/views/planMonitor/editToolAUS/export.vue
new file mode 100644
index 000000000..f2bce0803
--- /dev/null
+++ b/src/views/planMonitor/editToolAUS/export.vue
@@ -0,0 +1,268 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/planMonitor/editToolAUS/index.vue b/src/views/planMonitor/editToolAUS/index.vue
index 0d2cf61a3..5c0b3ac9f 100644
--- a/src/views/planMonitor/editToolAUS/index.vue
+++ b/src/views/planMonitor/editToolAUS/index.vue
@@ -19,8 +19,10 @@
@@ -53,15 +77,18 @@ import PlanJustRunning from './dialog/planJustRunning.vue';
import PlanJustStop from './dialog/planJustStop.vue';
import PlanJustTurnback from './dialog/planJustTurnback.vue';
import PlanSetParams from './dialog/planSetParams.vue';
-
+import PlanCreate from './dialog/planCreate.vue';
+import Drawer from './drawer.vue';
import Menus from './menus.vue';
+import Export from './export.vue';
import { MenuEnum } from './utils.js';
import { timeFormat } from '@/utils/date';
import { mapGetters } from 'vuex';
import { getStationList } from '@/api/runplan';
import {
+ listRps, createRp, deleteRp,
getRpTools, clearRpPlan, addRpTrip, delRpTrip,
- justTripNoRunning, justTripNoStop, justTripTurnback,
+ justTripNoRunning, justTripNoStop, justTripTurnBack,
translateRpService, delRpService,
getRpConfig, modifyRpConfig,
createRpArea, modifyRpArea, modifyAreaNote, delRpArea
@@ -74,14 +101,21 @@ export default {
PlanJustStop,
PlanJustTurnback,
PlanSetParams,
- Menus
+ PlanCreate,
+ Menus,
+ Drawer,
+ Export
},
data() {
return {
- title: 'XXX',
- canvasId: 'canvas-plan',
+ defaultProps: {
+ children: 'children',
+ label: 'name'
+ },
+ drawer: false,
+ planList: [],
stations: [],
- planData: [],
+ planData: {},
selected: null,
target: null,
textareaModel: {
@@ -111,6 +145,9 @@ export default {
}
},
computed: {
+ disabled() {
+ return !this.planId;
+ },
show() {
return this.textareaModel.show;
},
@@ -122,7 +159,10 @@ export default {
},
planId() {
return this.$route.query.planId;
- },
+ },
+ title() {
+ return this.$route.query.title||'';
+ },
mapId() {
return 9;
},
@@ -139,14 +179,18 @@ export default {
},
height() {
this.setPosition();
- },
+ },
+ $route() {
+ this.loadPlanData();
+ }
},
created() {
this.planUtil = this.$theme.loadPlanConvert(this.lineCode);
},
mounted() {
this.setPosition();
- this.loadInitData();
+ this.loadPlanList();
+ this.loadPlanData();
},
methods: {
setPosition() {
@@ -154,32 +198,46 @@ export default {
this.$store.dispatch('rpTools/resize', { width: this.width, height: this.height });
});
},
- loadInitData() {
+ loadPlanList() {
+ listRps().then(resp => {
+ this.planList = resp.data;
+ })
+ },
+ loadPlanData() {
getStationList(this.mapId).then(resp => {
const stations = this.stations = resp.data.filter(el => {
return ['车辆段', '停车场'].findIndex(it => { return el.name.includes(it) }) < 0;
});
+
this.$store.commit('rpTools/setStations', stations);
this.$refs.schedule.loadChartPage(stations);
- getRpTools().then(rest => {
- const planData = rest.data;
+ if (this.planId) {
+ getRpTools(this.planId).then(rest => {
+ const planData = this.planData = rest.data;
+ this.$store.commit('rpTools/setPlanData', planData);
+ this.$refs.schedule.loadChartData(planData);
+ getRpConfig(this.planId).then(resm => {
+ const data = resm.data;
+ this.config = {
+ averageSpeed: data.averageSpeed,
+ maxSpeed: data.maxSpeed,
+ stopTime: data.stopTime,
+ minStopTime: data.minStopTime,
+ minIntervalTime: data.minIntervalTime,
+ turnBackTime: data.turnBackTime
+ }
+ }).catch(error => {
+ this.$message.info(error.message);
+ })
+ }).catch(error => {
+ this.$message.info(error.message);
+ })
+ } else {
+ const planData = {}
this.$store.commit('rpTools/setPlanData', planData);
this.$refs.schedule.loadChartData(planData);
- getRpConfig().then(resm => {
- const data = resm.data;
- this.config = {
- averageSpeed: data.averageSpeed,
- maxSpeed: data.maxSpeed,
- stopTime: data.stopTime,
- minStopTime: data.minStopTime,
- minIntervalTime: data.minIntervalTime,
- turnBackTime: data.turnBackTime
- }
- }).catch(error => {
- this.$message.info(error.message)
- })
- });
+ }
}).catch(error => {
this.$messageBox(error.message);
})
@@ -272,16 +330,48 @@ export default {
break;
}
},
+ onSelectPlan(el) {
+ this.$router.replace({ path: 'AUStool', query: { planId: el.id, title: el.name }});
+ },
+ doExport() {
+ this.$refs.export.doShow(this.stations, this.planData);
+ },
doNewPlan() {
- clearRpPlan().then(resp => {
- this.refresh();
- }).catch(error => {
- this.refresh();
- this.$message.info(error.message);
- })
+ this.$refs.create.doShow();
+ this.$nextTick(e => {
+ if (this.$refs.tree) {
+ this.$refs.tree.setCurrentKey(this.planId);
+ }
+ })
+ },
+ doCreatePlan(model) {
+ createRp(model).then(resp => {
+ this.loadPlanList();
+ this.onSelectPlan({id: resp.data});
+ }).catch(error => {
+ this.$message.info(error.message);
+ })
+ },
+ doDeletePlan(el) {
+ this.$confirm('This operation will permanently delete the data. Do you want to continue?', 'Tips', {
+ confirmButtonText: 'Confirm',
+ cancelButtonText: 'Cancel',
+ type: 'warning'
+ }).then(() => {
+ deleteRp(el.id).then(resp => {
+ this.loadPlanList();
+ this.planId == el.id
+ ? this.$router.replace({ path: 'AUStool'})
+ : this.loadPlanData();
+ }).catch(error => {
+ this.$message.info(error.message);
+ })
+ }).catch(() => {
+ this.$message({ type: 'info', message: 'Deletion cancelled.' });
+ });
},
doSetPlanParams(data) {
- modifyRpConfig(data).then(resp => {
+ modifyRpConfig(this.planId, data).then(resp => {
this.config = data;
this.$message.success('Parameters of plan were modified successfully.');
}).catch(error => {
@@ -293,7 +383,7 @@ export default {
text: data.text
}
- modifyAreaNote(data.id, model).then(resp => {
+ modifyAreaNote(this.planId, data.id, model).then(resp => {
this.refresh(false);
}).catch(error => {
this.$message.info(error.message);
@@ -307,7 +397,7 @@ export default {
stationCode: this.selected.stationCode
}
- justTripNoRunning(this.selected.tripNo, model).then(resp => {
+ justTripNoRunning(this.planId, this.selected.tripNo, model).then(resp => {
this.refresh(false);
}).catch(error => {
this.$message.info(error.message);
@@ -322,7 +412,7 @@ export default {
stationCode: this.selected.stationCode
}
- justTripNoStop(this.selected.tripNo, model).then(resp => {
+ justTripNoStop(this.planId, this.selected.tripNo, model).then(resp => {
this.refresh(false);
}).catch(error => {
this.$message.info(error.message);
@@ -337,7 +427,7 @@ export default {
stationCode: this.selected.stationCode
}
- justTripTurnback(this.selected.tripNo, model).then(resp => {
+ justTripTurnBack(this.planId, this.selected.tripNo, model).then(resp => {
this.refresh(false);
}).catch(error => {
this.$message.info(error.message);
@@ -353,7 +443,7 @@ export default {
endTime: timeFormat(data.endTime)
}
- addRpTrip(model).then(resp => {
+ addRpTrip(this.planId, model).then(resp => {
this.refresh();
}).catch(error => {
this.$message.info(error.message);
@@ -374,7 +464,7 @@ export default {
endTime: endTime < startTime? timeFormat(data.startTime): timeFormat(data.endTime)
}
- createRpArea(model).then(resp => {
+ createRpArea(this.planId, model).then(resp => {
this.refresh();
}).catch(error => {
this.$message.info(error.message);
@@ -388,7 +478,7 @@ export default {
seconds : this.selected.time
}
- translateRpService(this.selected.serviceNo, model).then(resp => {
+ translateRpService(this.planId, this.selected.serviceNo, model).then(resp => {
this.refresh(false);
}).catch(error => {
this.refresh(false);
@@ -407,7 +497,7 @@ export default {
text: data.text
}
- modifyRpArea(data.areaNo, model).then(resp => {
+ modifyRpArea(this.planId, data.areaNo, model).then(resp => {
this.refresh(false);
}).catch(error => {
this.refresh(false);
@@ -422,7 +512,7 @@ export default {
cancelButtonText: 'Cancel',
type: 'warning'
}).then(() => {
- delRpService(this.selected.serviceNo).then(resp => {
+ delRpService(this.planId, this.selected.serviceNo).then(resp => {
this.refresh();
}).catch(error => {
this.refresh();
@@ -441,7 +531,7 @@ export default {
type: 'warning'
}).then(() => {
- delRpTrip(this.selected.tripNo).then(resp => {
+ delRpTrip(this.planId, this.selected.tripNo).then(resp => {
this.refresh();
}).catch(error => {
this.refresh();
@@ -460,7 +550,7 @@ export default {
type: 'warning'
}).then(() => {
const data = this.target.model;
- delRpArea(data.areaNo).then(resp => {
+ delRpArea(this.planId, data.areaNo).then(resp => {
this.refresh();
}).catch(error => {
this.refresh();
@@ -472,8 +562,8 @@ export default {
}
},
refresh(cls=true) {
- getRpTools().then(rest => {
- const planData = rest.data;
+ getRpTools(this.planId).then(rest => {
+ const planData = this.planData = rest.data;
this.$store.commit('rpTools/setPlanData', planData);
this.$refs.schedule.loadChartData(planData);
if (cls) {
@@ -524,4 +614,11 @@ export default {
}
}
}
+
+ .flex {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ width: 100%;
+ }
diff --git a/src/views/planMonitor/editToolAUS/menus.vue b/src/views/planMonitor/editToolAUS/menus.vue
index 7886c4990..f68bf91d0 100644
--- a/src/views/planMonitor/editToolAUS/menus.vue
+++ b/src/views/planMonitor/editToolAUS/menus.vue
@@ -5,7 +5,7 @@
-
@@ -13,7 +13,7 @@
-
Date: Tue, 27 Oct 2020 16:36:09 +0800
Subject: [PATCH 12/97] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/planMonitor/editToolAUS/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/planMonitor/editToolAUS/index.vue b/src/views/planMonitor/editToolAUS/index.vue
index 5c0b3ac9f..24aeb1f82 100644
--- a/src/views/planMonitor/editToolAUS/index.vue
+++ b/src/views/planMonitor/editToolAUS/index.vue
@@ -347,7 +347,7 @@ export default {
doCreatePlan(model) {
createRp(model).then(resp => {
this.loadPlanList();
- this.onSelectPlan({id: resp.data});
+ this.onSelectPlan({id: resp.data, name: model.name});
}).catch(error => {
this.$message.info(error.message);
})
From e9e0d39bfc150748f42264dc06d49a93c7794877 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Tue, 27 Oct 2020 16:51:57 +0800
Subject: [PATCH 13/97] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=8A=B6=E6=80=81?=
=?UTF-8?q?=E5=A4=9A=E4=BD=99=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/map.js | 7 +-
src/jmapNew/mouseController.js | 6 +-
src/store/modules/exam.js | 6 -
src/store/modules/ibp.js | 16 -
src/store/modules/iscs.js | 129 -------
src/store/modules/map.js | 327 +-----------------
src/store/modules/order.js | 6 +-
src/store/modules/rpTools.js | 26 +-
src/store/modules/settings.js | 30 +-
src/store/modules/socket.js | 1 -
src/store/modules/training.js | 114 +++---
src/store/modules/trainingList.js | 30 --
src/utils/baseUrl.js | 4 +-
src/utils/loaddata.js | 4 +-
src/views/newMap/jlmapNew/index.vue | 2 +-
.../newMapdraft/mapoperate/checkboxDraft.vue | 2 +-
16 files changed, 110 insertions(+), 600 deletions(-)
diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js
index 085be1252..1fe49d8ea 100644
--- a/src/jmapNew/map.js
+++ b/src/jmapNew/map.js
@@ -338,7 +338,7 @@ class Jlmap {
});
}
setUpdateMapDevice(list) {
- store.dispatch('map/updateMapDevice', list);
+ store.commit('map/updateMapDevice', list);
(list || []).forEach(elem => {
const code = elem.code;
const type = elem._type;
@@ -483,8 +483,7 @@ class Jlmap {
} else {
if (elem.deviceType === 'TRAIN') {
this.isUpdateShowTrainList = true;
- store.dispatch('map/updateActiveTrainList', elem);
- // store.dispatch('map/updateTrainState', elem);
+ store.commit('map/updateActiveTrainList', elem);
} else if (elem.deviceType === 'STAND') {
store.dispatch('map/updateStationStand', elem);
const psdDevice = this.mapDevice[this.mapDevice[elem.code].psdCode];
@@ -505,9 +504,7 @@ class Jlmap {
if (elem.dispose) {
this.$painter.delete(oDevice);
} else {
- // if (this.hookHandle(oDevice, elem)) {
this.$painter.update(oDevice);
- // }
}
}
});
diff --git a/src/jmapNew/mouseController.js b/src/jmapNew/mouseController.js
index 4b7918e82..7ef0a8514 100644
--- a/src/jmapNew/mouseController.js
+++ b/src/jmapNew/mouseController.js
@@ -85,8 +85,8 @@ class MouseController extends Eventful {
mousedown(e) {
// if (eventTool.notLeftMouse(e)) {
// return;
- // }
- this.$zr.dom.focus();
+ // }
+ this.$zr.dom.focus();
if (e.which == 1 || e.which == 3) {
var x = e.offsetX;
var y = e.offsetY;
@@ -287,7 +287,7 @@ class MouseController extends Eventful {
}
});
this.deviceList = includeDeviceList;
- store.dispatch('map/setSeclectDeviceList', this.deviceList); // 给store设置框选的 model
+ store.commit('map/setSeclectDeviceList', this.deviceList); // 给store设置框选的 model
}
// 生成包围盒对象坐标
createFakeBoundingRect(instance) {
diff --git a/src/store/modules/exam.js b/src/store/modules/exam.js
index 989b6197c..bb9c3ee5e 100644
--- a/src/store/modules/exam.js
+++ b/src/store/modules/exam.js
@@ -74,15 +74,9 @@ const exam = {
actions: {
start({ commit }) {
commit('setStarted', true);
- // commit('setSuspend', false);
- // commit('setUsedTime', 0);
- // commit('countUsedTime');
},
over({ commit }) {
commit('setStarted', false);
- // commit('setSuspend', true);
- // commit('setUsedTime', 0);
- // commit('stopCountTime');
},
isOver() {
const trainingList = store.getters['trainingList/trainingList'];
diff --git a/src/store/modules/ibp.js b/src/store/modules/ibp.js
index d626b5d05..9523c8a17 100644
--- a/src/store/modules/ibp.js
+++ b/src/store/modules/ibp.js
@@ -8,33 +8,17 @@ const ibp = {
state: {
ibp: null, // 数据
- ibpDevice: {}, // 解析后的地图数据
- ibpList: {}, // 数据列表
- ibpIdList: {}, // 数据列表(以id为标识)
updateDeviceData: {}, // 修改的数据
rightClickCount: 0, // 右键点击设备
ibpBgDevice: {} // ibp背景设备
},
getters: {
- ibpList: (state) => {
- return state.ibpList;
- },
ibp: (state) => {
return state.ibp;
},
- version: (state) => {
- if (state.ibp) {
- return state.ibp.version;
- } else {
- return null;
- }
- },
updateDeviceData: (state) => {
return state.updateDeviceData;
- },
- ibpBgDevice: (state) => {
- return state.ibpBgDevice;
}
},
diff --git a/src/store/modules/iscs.js b/src/store/modules/iscs.js
index aa333aa99..73fdd0715 100644
--- a/src/store/modules/iscs.js
+++ b/src/store/modules/iscs.js
@@ -7,9 +7,6 @@ const iscs = {
state: {
iscs: null, // 数据
- iscsDevice: {}, // 解析后的地图数据
- iscsList: {}, // 数据列表
- iscsIdList: {}, // 数据列表(以id为标识)
updateDeviceData: {}, // 修改的数据
rightClickCount: 0, // 右键点击设备
selected: '', // 左键选中设备
@@ -19,134 +16,8 @@ const iscs = {
},
getters: {
- incidentList: (state) => {
- return state.incidentList;
- },
- alarmList: (state) => {
- return state.alarmList;
- },
- iscsList: (state) => {
- return state.iscsList;
- },
- iscs: (state) => {
- return state.iscs;
- },
- version: (state) => {
- if (state.iscs) {
- return state.iscs.version;
- } else {
- return null;
- }
- },
updateDeviceData: (state) => {
return state.updateDeviceData;
- },
- iscsGroupList: (state) => {
- if (state.iscs) {
- return state.iscs.iscsGroupList || [];
- } else {
- return [];
- }
- },
- vidiconList: (state) => {
- if (state.iscs) {
- return state.iscs.vidiconList;
- } else {
- return [];
- }
- },
- vidiconCloudList: (state) => {
- if (state.iscs.vidiconCloudList) {
- return state.iscs.vidiconCloudList;
- } else {
- return [];
- }
- },
- frozenPumpList:(state)=>{
- if (state.iscs.frozenPumpList) {
- return state.iscs.frozenPumpList;
- } else {
- return [];
- }
- },
- airConditionerList:(state)=>{
- if (state.iscs.airConditionerList) {
- return state.iscs.airConditionerList;
- } else {
- return [];
- }
- },
- tunnelFanList:(state)=>{
- if (state.iscs.tunnelFanList) {
- return state.iscs.tunnelFanList;
- } else {
- return [];
- }
- },
- orbitalVentilatorList:(state)=>{
- if (state.iscs.orbitalVentilatorList) {
- return state.iscs.orbitalVentilatorList;
- } else {
- return [];
- }
- },
- smookProofFdList:(state)=>{
- if (state.iscs.smookProofFdList) {
- return state.iscs.smookProofFdList;
- } else {
- return [];
- }
- },
- chillerList:(state)=>{
- if (state.iscs.chillerList) {
- return state.iscs.chillerList;
- } else {
- return [];
- }
- },
- coolTowerList:(state)=>{
- if (state.iscs.coolTowerList) {
- return state.iscs.coolTowerList;
- } else {
- return [];
- }
- },
- fireDamperList:(state)=>{
- if (state.iscs.fireDamperList) {
- return state.iscs.fireDamperList;
- } else {
- return [];
- }
- },
- jetFanList:(state)=>{
- if (state.iscs.jetFanList) {
- return state.iscs.jetFanList;
- } else {
- return [];
- }
- },
- ventilatorList:(state)=>{
- if (state.iscs.ventilatorList) {
- return state.iscs.ventilatorList;
- } else {
- return [];
- }
- },
- arcStatusList:(state)=>{
- if (state.iscs.arcStatusList) {
- return state.iscs.arcStatusList;
- } else {
- return [];
- }
- },
- selected: (state) => {
- return state.selected;
- },
- selectedCount: (state) => {
- return state.selectedCount;
- },
- getDeviceByCode: (state) => (code) => {
- return state.iscsDevice[code];
}
},
diff --git a/src/store/modules/map.js b/src/store/modules/map.js
index 9633d0a7b..d92b2393d 100644
--- a/src/store/modules/map.js
+++ b/src/store/modules/map.js
@@ -1,5 +1,4 @@
import deviceType from '@/jmapNew/constant/deviceType';
-// import { parser, updateMapData } from '@/jmap/utils/parser';
import { parser, updateMapData } from '@/jmapNew/utils/parser';
import Vue from 'vue';
import { deepAssign } from '@/utils/index';
@@ -237,101 +236,23 @@ const map = {
holdStatus: false, // 是否有扣车状态
jumpStandList: [], // 跳停站台列表
jumpStatus: false, // 是否有跳停状态
- selectDeviceFlag: false, // 设备管理激活判断
+ // selectDeviceFlag: false, // 设备管理激活判断
keyboardEnterCount: 0, // 键盘enter键触发
controlTransfer:[] // 控制权转移消息
},
getters: {
- mapList: (state) => {
- return state.mapList;
- },
- trainWindowSectionCode: (state) => {
- return state.trainWindowSectionCode;
- },
- mapConfig: (state) => {
- return state.mapConfig;
- },
- routeList: (state) => {
- return state.routeList;
- },
- routeData: (state) => {
- return state.routeData;
- },
- routeStartSignalData: (state) => {
- if (state.map) {
- return state.map.routeStartSignalData || {};
- } else {
- return {};
- }
- },
- overlapData: (state) => {
- return state.overlapData;
- },
autoReentryData: (state) => {
return state.autoReentryData;
},
- autoReentryList: (state) => {
- return state.autoReentryList;
- },
- signalApproachSectionData: (state) => {
- return state.signalApproachSectionData;
- },
- signalApproachSectionList: (state) => {
- return state.signalApproachSectionList;
- },
- seclectDeviceList: (state) => {
- return state.seclectDeviceList;
- },
- stepData: (state) => {
- return state.stepData;
- },
- recoverStepData: (state) => {
- return state.recoverStepData;
- },
map: (state) => {
return state.map;
},
- psdList: (state) => {
- if (state.map) {
- return state.map.psdList;
- } else {
- return [];
- }
- },
- espList: (state) => {
- if (state.map) {
- return state.map.espList;
- } else {
- return [];
- }
- },
lineCode: (state) => {
if (state.map && state.map.skinVO) {
return state.map.skinVO.code;
}
},
- name: (state) => {
- if (state.map) {
- return state.map.name;
- } else {
- return null;
- }
- },
- version: (state) => {
- if (state.map) {
- return state.version;
- } else {
- return null;
- }
- },
- linkList: (state) => {
- if (state.map) {
- return state.map.linkList;
- } else {
- return [];
- }
- },
switchList: (state) => {
if (state.map) {
return state.map.switchList;
@@ -339,20 +260,6 @@ const map = {
return [];
}
},
- floodGateList: (state) => {
- if (state.map) {
- return state.map.floodGateList;
- } else {
- return [];
- }
- },
- buttonList: (state) => {
- if (state.map) {
- return state.map.buttonList;
- } else {
- return [];
- }
- },
signalList: (state) => {
if (state.map) {
return state.map.signalList;
@@ -367,104 +274,6 @@ const map = {
return [];
}
},
- zcList: (state) => {
- if (state.map) {
- return state.map.zcList;
- } else {
- return [];
- }
- },
- powerLineList: (state) => {
- if (state.map) {
- return state.map.powerLineList || [];
- } else {
- return [];
- }
- },
- tempSpeedLimitList: (state) => {
- if (state.map) {
- return state.map.tempSpeedLimitList;
- } else {
- return [];
- }
- },
- lcList: (state) => {
- if (state.map) {
- return state.map.lcList;
- } else {
- return [];
- }
- },
- tbStrategyList: (state) => {
- if (state.map) {
- return state.map.tbStrategyList || [];
- } else {
- return [];
- }
- },
- axleCounterResetButtonList: (state) => {
- if (state.map) {
- return state.map.axleCounterResetButtonList || [];
- } else {
- return [];
- }
- },
- totalGuideLockButtonVOList: (state) => {
- if (state.map) {
- return state.map.totalGuideLockButtonVOList || [];
- } else {
- return [];
- }
- },
- cycleButtonList: (state) => {
- if (state.map) {
- return state.map.cycleButtonList || [];
- } else {
- return [];
- }
- },
- outerFrameList: (state) => {
- if (state.map) {
- return state.map.outerFrameList || [];
- } else {
- return [];
- }
- },
- bigScreenConfig: (state) => {
- if (state.map) {
- return state.map.bigScreenConfig || {};
- } else {
- return {};
- }
- },
- indicatorLightList: (state) => {
- if (state.map) {
- return state.map.indicatorLightList || [];
- } else {
- return [];
- }
- },
- splitStationList: (state) => {
- if (state.map) {
- return state.map.splitStationList || [];
- } else {
- return [];
- }
- },
- automaticRouteButtonList: (state) => {
- if (state.map) {
- return state.map.automaticRouteButtonList || [];
- } else {
- return [];
- }
- },
- resourceList: (state) => {
- if (state.map) {
- return state.map.resourceList;
- } else {
- return [];
- }
- },
stationList: (state) => {
if (state.map) {
return state.map.stationList;
@@ -472,13 +281,6 @@ const map = {
return [];
}
},
- stationStandList: (state) => {
- if (state.map) {
- return state.map.stationStandList;
- } else {
- return [];
- }
- },
stationControlList: (state) => {
if (state.map) {
return state.map.stationControlList;
@@ -486,41 +288,6 @@ const map = {
return [];
}
},
- counterList: (state) => {
- if (state.map) {
- return state.map.counterList;
- } else {
- return [];
- }
- },
- delayShowList: (state) => {
- if (state.map) {
- return state.map.delayShowList;
- } else {
- return [];
- }
- },
- lineList: (state) => {
- if (state.map) {
- return state.map.lineList;
- } else {
- return [];
- }
- },
- arrowList: (state) => {
- if (state.map) {
- return state.map.arrowList || [];
- } else {
- return [];
- }
- },
- textList: (state) => {
- if (state.map) {
- return state.map.textList;
- } else {
- return [];
- }
- },
trainWindowList: (state) => {
if (state.map) {
return state.map.trainWindowList;
@@ -528,36 +295,6 @@ const map = {
return [];
}
},
- trainList: (state) => {
- if (state.map) {
- return state.map.trainList;
- } else {
- return [];
- }
- },
- trainModelList: (state) => {
- if (state.map) {
- return state.map.trainModelList;
- } else {
- return [];
- }
- },
- directionRodList: (state) => {
- if (state.map) {
- return state.map.directionRodList;
- } else {
- return [];
- }
- },
- trainDetails: (state) => {
- return state.trainDetails;
- },
- flankProtectList: (state) => {
- return state.flankProtectList;
- },
- mapDevice: (state) => {
- return state.mapDevice;
- },
getDeviceByCode: (state) => (code) => {
return state.mapDevice[code];
},
@@ -596,22 +333,6 @@ const map = {
return device;
},
- // 查询所属车站关联的控制模式
- getStationControlByStationCode: (state) => (code) => {
- let device = null;
- if (code &&
- state.map &&
- state.map.stationControlList && state.map.stationControlList.length) {
- state.map.stationControlList.forEach(elem => {
- if (elem.stationCode == code) {
- device = state.mapDevice[elem.code];
- }
- });
- }
-
- return device;
- },
-
// 查询所属车站的控制模式
getDeviceStationCodeByStationCode: (state) => (code) => {
let device = null;
@@ -654,6 +375,7 @@ const map = {
},
mutations: {
+ // 设置地图数据
setMapData: (state, map) => {
if (map && map.skinVO) {
state.map = map;
@@ -673,12 +395,15 @@ const map = {
state.mapDevice[elem.code] = deepAssign(state.mapDevice[elem.code] || {}, elem);
});
},
+ // 设置地图所属线路
setMapConfig: (state, config) => {
state.mapConfig = config;
},
+ // 获取包围框选中元素列表
setSeclectDeviceList: (state, list) => {
state.seclectDeviceList = list;
},
+ // 设置缩放位置
setDataZoom: (state, dataZoom) => {
state.dataZoom = dataZoom;
},
@@ -784,6 +509,7 @@ const map = {
setMousemove: (state) => {
state.mousemove++;
},
+ // 设置进路数据
setRouteData: (state, routeDataList) => {
state.routeData = {};
state.routeStartSignalData = {};
@@ -830,11 +556,6 @@ const map = {
updateAutoReentryState: (state, status) => {
state.autoReentryData[status.code] = deepAssign(state.autoReentryData[status.code], status);
},
- // updateTrainState:(state, status) =>{
- // if (state.map.trainList) {
- // state.map.trainList[parseInt(status.code) - 1] = deepAssign(state.map.trainList[parseInt(status.code) - 1] || {}, status);
- // }
- // },
updateStationStand: (state, status) => {
const holdIndex = state.holdStandList.indexOf(status.code);
const jumpIndex = state.jumpStandList.indexOf(status.code);
@@ -870,6 +591,7 @@ const map = {
}
});
},
+ // 更新激活的列车信息
updateActiveTrainList: (state, data)=>{
let isExist = false;
state.activeTrainList.forEach(elem => {
@@ -899,31 +621,12 @@ const map = {
},
actions: {
- mapClear: ({ commit }) => {
+ setMapData:({ commit }, mapData) => {
+ commit('setMapData', mapData);
+ },
+ mapClear:({ commit }) => {
commit('mapClear');
},
- // 获取包围框选中元素列表
- setSeclectDeviceList: ({ commit }, list) => {
- commit('setSeclectDeviceList', list);
- },
-
- // 设置缩放位置
- updateZoom: ({ commit }, dataZoom) => {
- commit('setDataZoom', dataZoom);
- },
-
- setMapData: ({ commit }, map) => { // 设置地图数据
- commit('setMapData', map);
- },
- updateMapDevice: ({ commit }, list) => {
- commit('updateMapDevice', list);
- },
- setMapConfig: ({ commit }, config) => { // 设置地图所属线路
- commit('setMapConfig', config);
- },
- setRouteData: ({ commit }, routeData) => { // 设置进路数据
- commit('setRouteData', routeData);
- },
setOverlapData: ({ commit }, overlapData) => {
commit('setOverlapData', overlapData);
commit('mapRender', overlapData);
@@ -940,9 +643,6 @@ const map = {
updateAutoReentryState: ({ commit }, status) => {
commit('updateAutoReentryState', status);
},
- // updateTrainState:({ commit }, status) => {
- // commit('updateTrainState', status);
- // },
updateStationStand: ({ commit }, status) => {
commit('updateStationStand', status);
},
@@ -970,11 +670,6 @@ const map = {
}
},
- // 更新激活的列车信息
- updateActiveTrainList:({ commit }, train) => {
- commit('updateActiveTrainList', train);
- },
-
setMapDataIdList: ({ state }, data) => {
state.mapIdList[`mapDate_${data.mapId}`] = data.mapData;
},
diff --git a/src/store/modules/order.js b/src/store/modules/order.js
index b85a0ddf6..640e400ab 100644
--- a/src/store/modules/order.js
+++ b/src/store/modules/order.js
@@ -7,9 +7,9 @@ const order = {
orderList: [] // 选中的商品列表,
},
getters: {
- orderList: (state)=>{
- return state.orderList;
- }
+ // orderList: (state)=>{
+ // return state.orderList;
+ // }
},
mutations: {
setOrderList: (state, orderList) => {
diff --git a/src/store/modules/rpTools.js b/src/store/modules/rpTools.js
index 640a5a80f..63267e92b 100644
--- a/src/store/modules/rpTools.js
+++ b/src/store/modules/rpTools.js
@@ -9,20 +9,20 @@ const runPlan = {
planLoadedCount: 0, // 运行图数据更新
planUpdateCount: 0, // 运行图更新标识
selected: {}, // 选择的对象
- refreshCount: 0, // 刷新页面重新加载
- width: 800, // 运行图canvas 容器 宽度
- height: 600, // 运行图canvas 容器 高度
+ refreshCount: 0, // 刷新页面重新加载
+ width: 800, // 运行图canvas 容器 宽度
+ height: 600 // 运行图canvas 容器 高度
},
getters: {
stations: (state) => {
return state.stations || [];
- },
- planData: (state) => {
- return state.planData || [];
- }
+ },
+ planData: (state) => {
+ return state.planData || [];
+ }
},
mutations: {
- setWidth: (state, width) => {
+ setWidth: (state, width) => {
state.width = width;
state.planSizeCount += 1;
},
@@ -51,11 +51,11 @@ const runPlan = {
}
},
actions: {
- /** 更新数据*/
- updateRunPlanData: ({ commit }, data) => {
- commit('updateRunPlanData', data);
- },
- /** 设置运行图大小*/
+ /** 更新数据*/
+ updateRunPlanData: ({ commit }, data) => {
+ commit('updateRunPlanData', data);
+ },
+ /** 设置运行图大小*/
resize({ commit }, opt) {
if (opt.width) {
commit('setWidth', opt.width);
diff --git a/src/store/modules/settings.js b/src/store/modules/settings.js
index d3fea1a27..5c49ad70f 100644
--- a/src/store/modules/settings.js
+++ b/src/store/modules/settings.js
@@ -3,29 +3,29 @@ import defaultSettings from '@/settings';
const { showSettings, fixedHeader, sidebarLogo } = defaultSettings;
const state = {
- showSettings: showSettings,
- fixedHeader: fixedHeader,
- sidebarLogo: sidebarLogo
+ showSettings: showSettings,
+ fixedHeader: fixedHeader,
+ sidebarLogo: sidebarLogo
};
const mutations = {
- CHANGE_SETTING: (state, { key, value }) => {
- if (state.hasOwnProperty(key)) {
- state[key] = value;
- }
- }
+ CHANGE_SETTING: (state, { key, value }) => {
+ if (state.hasOwnProperty(key)) {
+ state[key] = value;
+ }
+ }
};
const actions = {
- changeSetting({ commit }, data) {
- commit('CHANGE_SETTING', data);
- }
+ changeSetting({ commit }, data) {
+ commit('CHANGE_SETTING', data);
+ }
};
export default {
- namespaced: true,
- state,
- mutations,
- actions
+ namespaced: true,
+ state,
+ mutations,
+ actions
};
diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js
index f40fc82c7..dc4a9f79e 100644
--- a/src/store/modules/socket.js
+++ b/src/store/modules/socket.js
@@ -240,7 +240,6 @@ const socket = {
simulationStart: '', // 仿真-开始消息
simulationOver:0, // 退出仿真推送消息
simulationReset: 0, // 仿真-异常消息
- // coversitionList:{}, // 历史仿真-用户消息列表
inviteSimulationConversition: {}, // 仿真会话邀请消息
acceptConversionInvite:{}, // 仿真会话成员接收邀请
createConversition:{}, // 仿真创建会话
diff --git a/src/store/modules/training.js b/src/store/modules/training.js
index 6e58f27d7..21bb1475c 100644
--- a/src/store/modules/training.js
+++ b/src/store/modules/training.js
@@ -48,51 +48,51 @@ const training = {
},
getters: {
- steps: (state) => {
- return state.steps;
- },
- order: (state) => {
- return state.order;
- },
- offsetStationCode: (state) => {
- return state.offsetStationCode;
- },
+ // steps: (state) => {
+ // return state.steps;
+ // },
+ // order: (state) => {
+ // return state.order;
+ // },
+ // offsetStationCode: (state) => {
+ // return state.offsetStationCode;
+ // },
basicInfo: (state) => {
return state.basicInfo;
},
- mode: (state) => {
- return state.mode;
- },
- operatemode: (state) => {
- return state.operatemode;
- },
- started: (state) => {
- return state.started;
- },
- score: (state) => {
- return state.score;
- },
- usedTime: (state) => {
- return state.usedTime;
- },
- tipEvent: (state) => {
- return state.tipEvent;
- },
- initTime: (state) => {
- return state.initTime;
- },
- prdType: (state) => {
- return state.prdType;
- },
- roles: (state) => {
- return state.roles;
- },
- memberList: (state) => {
- return state.memberList;
- },
- simulationUserList: (state) => {
- return state.simulationUserList;
- },
+ // mode: (state) => {
+ // return state.mode;
+ // },
+ // operatemode: (state) => {
+ // return state.operatemode;
+ // },
+ // started: (state) => {
+ // return state.started;
+ // },
+ // score: (state) => {
+ // return state.score;
+ // },
+ // usedTime: (state) => {
+ // return state.usedTime;
+ // },
+ // tipEvent: (state) => {
+ // return state.tipEvent;
+ // },
+ // initTime: (state) => {
+ // return state.initTime;
+ // },
+ // prdType: (state) => {
+ // return state.prdType;
+ // },
+ // roles: (state) => {
+ // return state.roles;
+ // },
+ // memberList: (state) => {
+ // return state.memberList;
+ // },
+ // simulationUserList: (state) => {
+ // return state.simulationUserList;
+ // },
// 视图中的列车列表
viewTrainList: (state) => () =>{
const trainList = [];
@@ -104,22 +104,22 @@ const training = {
});
return trainList;
- },
- commonMenuStep: (state) => {
- return state.commonMenuStep;
- },
- scriptQuitCount: (state) => {
- return state.scriptQuitCount;
- },
- scriptOperationType: (state) => {
- return state.scriptOperationType;
- },
- triggerFaultCount: (state) => {
- return state.triggerFaultCount;
- },
- triggerFaultDevice: (state) => {
- return state.triggerFaultDevice;
}
+ // commonMenuStep: (state) => {
+ // return state.commonMenuStep;
+ // },
+ // scriptQuitCount: (state) => {
+ // return state.scriptQuitCount;
+ // },
+ // scriptOperationType: (state) => {
+ // return state.scriptOperationType;
+ // },
+ // triggerFaultCount: (state) => {
+ // return state.triggerFaultCount;
+ // },
+ // triggerFaultDevice: (state) => {
+ // return state.triggerFaultDevice;
+ // }
},
mutations: {
diff --git a/src/store/modules/trainingList.js b/src/store/modules/trainingList.js
index ce4ba205c..f29494ab0 100644
--- a/src/store/modules/trainingList.js
+++ b/src/store/modules/trainingList.js
@@ -8,22 +8,6 @@ const trainingList = {
getters: {
trainingList: (state) => {
return state.trainingList;
- },
- prevTraining: (state) => () => {
- if (state.trainingList && state.trainingList.length > 0) {
- state.index = state.index - 1;
- if (state.index >= 0) {
- return state.trainingList[state.index];
- }
- }
- },
- nextTraining: (state) => () => {
- if (state.trainingList && state.trainingList.length > 0) {
- state.index = state.index + 1;
- if (state.index < state.trainingList.length) {
- return state.trainingList[state.index];
- }
- }
}
},
mutations: {
@@ -39,20 +23,6 @@ const trainingList = {
}
},
actions: {
- setIndex({ commit }, index) {
- commit('setIndex', index);
- },
- setIndexByTrainingObj({ commit, state }, trainingId) {
- let index = 0;
- if (state.trainingList && state.trainingList.length) {
- state.trainingList.forEach((elem, i) => {
- if (elem.id === trainingId) {
- index = i;
- }
- });
- }
- commit('setIndex', index);
- },
setTrainingList({ commit }, trainingList) {
commit('setTrainingList', trainingList);
},
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index d73c13463..5c17a46dd 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -2,11 +2,11 @@ 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 = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.169:9000'; // 旭强
// BASE_API = 'http://192.168.3.175:9000'; // 张赛
- BASE_API = 'http://192.168.3.82:9000'; // 杜康
+ // BASE_API = 'http://192.168.3.82:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
// BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛
diff --git a/src/utils/loaddata.js b/src/utils/loaddata.js
index 594b1d12d..687757f2e 100644
--- a/src/utils/loaddata.js
+++ b/src/utils/loaddata.js
@@ -81,12 +81,12 @@ export function covertData(resp, type, resolve) {
overlapData.forEach(item => {
item._type = 'OverAp';
});
- store.dispatch('map/setRouteData', routeData);
+ store.commit('map/setRouteData', routeData);
store.dispatch('map/setOverlapData', overlapData);
store.dispatch('map/setAutoReentryData', autoReentryData);
store.dispatch('map/setSignalApproachSectionData', signalApproachSectionData);
const mapConfig = resp.data.configVO;
- store.dispatch('map/setMapConfig', mapConfig);
+ store.commit('map/setMapConfig', mapConfig);
store.dispatch('map/setMapVersion', resp.data.version);
}
diff --git a/src/views/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue
index dbe291f31..097984cf4 100644
--- a/src/views/newMap/jlmapNew/index.vue
+++ b/src/views/newMap/jlmapNew/index.vue
@@ -377,7 +377,7 @@ export default {
offsetX: this.dataZoom.offsetX,
lineCode: lineCode
};
- this.$store.dispatch('map/updateZoom', this.dataZoom);
+ this.$store.commit('map/setDataZoom', this.dataZoom);
localStore.set(`scaleRate_${lineCode}`, JSON.stringify(param)); // 保存缩放倍数
}
diff --git a/src/views/newMap/newMapdraft/mapoperate/checkboxDraft.vue b/src/views/newMap/newMapdraft/mapoperate/checkboxDraft.vue
index 0104ff4ea..00ba58821 100644
--- a/src/views/newMap/newMapdraft/mapoperate/checkboxDraft.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/checkboxDraft.vue
@@ -154,7 +154,7 @@ export default {
},
clearList() { // 清空数据
this.stationCode = '';
- this.$store.dispatch('map/setSeclectDeviceList', []);
+ this.$store.commit('map/setSeclectDeviceList', []);
this.seclectDeviceList = [];
this.modelList = [
{
From 85216079e4b87862fce9049bbb1ad55887103c24 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Tue, 27 Oct 2020 17:00:00 +0800
Subject: [PATCH 14/97] =?UTF-8?q?=E7=90=86=E8=AE=BA=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../theme/haerbin_01/menus/menuBar.vue | 78 +++++++++++++++-
src/utils/baseUrl.js | 2 +-
.../competitionManage/bankList/index.vue | 2 +-
src/views/system/companyManage/index.vue | 16 +++-
src/views/system/questionsRuleManage/add.vue | 89 ++++++++-----------
5 files changed, 129 insertions(+), 58 deletions(-)
diff --git a/src/jmapNew/theme/haerbin_01/menus/menuBar.vue b/src/jmapNew/theme/haerbin_01/menus/menuBar.vue
index 21d4f8b86..56336e40e 100644
--- a/src/jmapNew/theme/haerbin_01/menus/menuBar.vue
+++ b/src/jmapNew/theme/haerbin_01/menus/menuBar.vue
@@ -1,7 +1,7 @@
@@ -103,7 +156,8 @@ export default {
centralizedStationList2: [],
colsNum: 0,
version: '',
- centralizedMap: {}
+ centralizedMap: {},
+ tipContent: []
};
},
computed: {
@@ -423,4 +477,24 @@ export default {
background: #ffffff;
cursor: not-allowed;
}
+ .div-simulate-button{
+ height: 20px;
+ line-height: 20px;
+ display: inline-block;
+ font-size: 14px;
+ color: #303030;
+ border: 1px solid #44556D;
+ background: #FFF;
+ text-align: center;
+ border-radius: 5px;
+ width: 80px;
+ }
+ .tip-content-box{
+ height: 20px;
+ width: 100%;
+ line-height: 20px;
+ background: #001528;
+ color: #C20F29;
+ font-size: 14px;
+ }
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index d73c13463..347a63319 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -6,7 +6,7 @@ export function getBaseUrl() {
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.169:9000'; // 旭强
// BASE_API = 'http://192.168.3.175:9000'; // 张赛
- BASE_API = 'http://192.168.3.82:9000'; // 杜康
+ BASE_API = 'http://192.168.8.110:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
// BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛
diff --git a/src/views/competitionManage/bankList/index.vue b/src/views/competitionManage/bankList/index.vue
index a716da874..d2f9d11c5 100644
--- a/src/views/competitionManage/bankList/index.vue
+++ b/src/views/competitionManage/bankList/index.vue
@@ -27,7 +27,7 @@ export default {
queryForm: {
reset: true,
labelWidth: '80px',
- leftSpan: 17,
+ leftSpan: 16,
queryObject: {
type: {
type: 'select',
diff --git a/src/views/system/companyManage/index.vue b/src/views/system/companyManage/index.vue
index 4cbb9e0cd..8f6afafe5 100644
--- a/src/views/system/companyManage/index.vue
+++ b/src/views/system/companyManage/index.vue
@@ -2,16 +2,19 @@
+
diff --git a/src/views/drts/scene/index.vue b/src/views/drts/scene/index.vue
index d780193dc..f970803e4 100644
--- a/src/views/drts/scene/index.vue
+++ b/src/views/drts/scene/index.vue
@@ -4,19 +4,22 @@
+
diff --git a/src/permission.js b/src/permission.js
index e57d4f663..2a2426851 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -4,32 +4,18 @@ import router from './router/index_APP_TARGET';
import {loginInfo} from '@/scripts/ProjectConfig';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
-// import { admin } from './router/index_APP_TARGET';
import { getToken, removeToken, getSessionStorage } from '@/utils/auth';
import localStore from 'storejs';
-// function hasPermission(roles, permissionRoles) {
-// if (roles.indexOf(admin) >= 0) return true;
-// if (!permissionRoles) return true;
-// return roles.some(role => permissionRoles.indexOf(role) >= 0);
-// }
-
const whiteList = ['/login', '/design/login', '/gzzbxy/relay', '/authorization', '/AUStool']; // 不重定向白名单
-// const designPageRegex = [/^\/design/, /^\/scriptDisplay/, /^\/publish/, /^\/orderauthor/, /^\/system/, /^\/iscs/, /^\/display\/record/, /^\/display\/manage/, /^\/apply/, /^\/plan/, /^\/display\/plan/, /^\/displayNew\/record/, /^\/displayNew\/manage/, /^\/displayNew\/plan/, /^\/practiceDisplayNew/, /^\/bigSplitScreen/];
-
-// function isDesignPage(toRoutePath) {
-// return designPageRegex.some(item => item.test(toRoutePath) );
-// }
for (const val in loginInfo) {
if (loginInfo[val].loginPath && !whiteList.includes(loginInfo[val].loginPath)) {
whiteList.push(loginInfo[val].loginPath);
}
}
-// const loginPage = whiteList[0];
-// const loginDesignPage = whiteList[1];
-// 获取路径数据
+// 登录路径判断获取
function getRouteInfo(to) {
let loginPath = '';
const toRoutePath = to.redirectedFrom || to.path;
@@ -71,14 +57,12 @@ function handleRoute(to, next, loginPath) {
});
} else {
// 除没有动态改变权限的需求可直接next() 删下方权限判断
- // if (hasPermission(store.getters.roles, to.meta.roles)) {
if (to.path === '/404' && to.redirectedFrom === '/') {
const project = getSessionStorage('project');
next(localStore.get('trainingPlatformRoute' + store.getters.id + project) || '/trainingPlatform');
} else {
next();
}
- // }
}
}
diff --git a/src/store/modules/ibp.js b/src/store/modules/ibp.js
index 9523c8a17..9c0c50d56 100644
--- a/src/store/modules/ibp.js
+++ b/src/store/modules/ibp.js
@@ -14,12 +14,25 @@ const ibp = {
},
getters: {
+ // ibpList: (state) => {
+ // return state.ibpList;
+ // },
ibp: (state) => {
return state.ibp;
},
+ // version: (state) => {
+ // if (state.ibp) {
+ // return state.ibp.version;
+ // } else {
+ // return null;
+ // }
+ // },
updateDeviceData: (state) => {
return state.updateDeviceData;
}
+ // ibpBgDevice: (state) => {
+ // return state.ibpBgDevice;
+ // }
},
mutations: {
diff --git a/src/store/modules/iscs.js b/src/store/modules/iscs.js
index 73fdd0715..b26e74f82 100644
--- a/src/store/modules/iscs.js
+++ b/src/store/modules/iscs.js
@@ -16,9 +16,135 @@ const iscs = {
},
getters: {
+ incidentList: (state) => {
+ return state.incidentList;
+ },
+ alarmList: (state) => {
+ return state.alarmList;
+ },
+ // iscsList: (state) => {
+ // return state.iscsList;
+ // },
+ iscs: (state) => {
+ return state.iscs;
+ },
+ // version: (state) => {
+ // if (state.iscs) {
+ // return state.iscs.version;
+ // } else {
+ // return null;
+ // }
+ // },
updateDeviceData: (state) => {
return state.updateDeviceData;
+ },
+ iscsGroupList: (state) => {
+ if (state.iscs) {
+ return state.iscs.iscsGroupList || [];
+ } else {
+ return [];
+ }
}
+ // vidiconList: (state) => {
+ // if (state.iscs) {
+ // return state.iscs.vidiconList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // vidiconCloudList: (state) => {
+ // if (state.iscs.vidiconCloudList) {
+ // return state.iscs.vidiconCloudList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // frozenPumpList:(state)=>{
+ // if (state.iscs.frozenPumpList) {
+ // return state.iscs.frozenPumpList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // airConditionerList:(state)=>{
+ // if (state.iscs.airConditionerList) {
+ // return state.iscs.airConditionerList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // tunnelFanList:(state)=>{
+ // if (state.iscs.tunnelFanList) {
+ // return state.iscs.tunnelFanList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // orbitalVentilatorList:(state)=>{
+ // if (state.iscs.orbitalVentilatorList) {
+ // return state.iscs.orbitalVentilatorList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // smookProofFdList:(state)=>{
+ // if (state.iscs.smookProofFdList) {
+ // return state.iscs.smookProofFdList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // chillerList:(state)=>{
+ // if (state.iscs.chillerList) {
+ // return state.iscs.chillerList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // coolTowerList:(state)=>{
+ // if (state.iscs.coolTowerList) {
+ // return state.iscs.coolTowerList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // fireDamperList:(state)=>{
+ // if (state.iscs.fireDamperList) {
+ // return state.iscs.fireDamperList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // jetFanList:(state)=>{
+ // if (state.iscs.jetFanList) {
+ // return state.iscs.jetFanList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // ventilatorList:(state)=>{
+ // if (state.iscs.ventilatorList) {
+ // return state.iscs.ventilatorList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // arcStatusList:(state)=>{
+ // if (state.iscs.arcStatusList) {
+ // return state.iscs.arcStatusList;
+ // } else {
+ // return [];
+ // }
+ // },
+ // selected: (state) => {
+ // return state.selected;
+ // },
+ // selectedCount: (state) => {
+ // return state.selectedCount;
+ // },
+ // getDeviceByCode: (state) => (code) => {
+ // return state.iscsDevice[code];
+ // }
},
mutations: {
diff --git a/src/store/modules/map.js b/src/store/modules/map.js
index d92b2393d..1da1932c6 100644
--- a/src/store/modules/map.js
+++ b/src/store/modules/map.js
@@ -242,17 +242,95 @@ const map = {
},
getters: {
+ // mapList: (state) => {
+ // return state.mapList;
+ // },
+ trainWindowSectionCode: (state) => {
+ return state.trainWindowSectionCode;
+ },
+ mapConfig: (state) => {
+ return state.mapConfig;
+ },
+ routeList: (state) => {
+ return state.routeList;
+ },
+ routeData: (state) => {
+ return state.routeData;
+ },
+ // routeStartSignalData: (state) => {
+ // if (state.map) {
+ // return state.map.routeStartSignalData || {};
+ // } else {
+ // return {};
+ // }
+ // },
+ overlapData: (state) => {
+ return state.overlapData;
+ },
autoReentryData: (state) => {
return state.autoReentryData;
},
+ autoReentryList: (state) => {
+ return state.autoReentryList;
+ },
+ // signalApproachSectionData: (state) => {
+ // return state.signalApproachSectionData;
+ // },
+ // signalApproachSectionList: (state) => {
+ // return state.signalApproachSectionList;
+ // },
+ seclectDeviceList: (state) => {
+ return state.seclectDeviceList;
+ },
+ stepData: (state) => {
+ return state.stepData;
+ },
+ recoverStepData: (state) => {
+ return state.recoverStepData;
+ },
map: (state) => {
return state.map;
},
+ psdList: (state) => {
+ if (state.map) {
+ return state.map.psdList;
+ } else {
+ return [];
+ }
+ },
+ espList: (state) => {
+ if (state.map) {
+ return state.map.espList;
+ } else {
+ return [];
+ }
+ },
lineCode: (state) => {
if (state.map && state.map.skinVO) {
return state.map.skinVO.code;
}
},
+ name: (state) => {
+ if (state.map) {
+ return state.map.name;
+ } else {
+ return null;
+ }
+ },
+ // version: (state) => {
+ // if (state.map) {
+ // return state.version;
+ // } else {
+ // return null;
+ // }
+ // },
+ // linkList: (state) => {
+ // if (state.map) {
+ // return state.map.linkList;
+ // } else {
+ // return [];
+ // }
+ // },
switchList: (state) => {
if (state.map) {
return state.map.switchList;
@@ -260,6 +338,20 @@ const map = {
return [];
}
},
+ floodGateList: (state) => {
+ if (state.map) {
+ return state.map.floodGateList;
+ } else {
+ return [];
+ }
+ },
+ // buttonList: (state) => {
+ // if (state.map) {
+ // return state.map.buttonList;
+ // } else {
+ // return [];
+ // }
+ // },
signalList: (state) => {
if (state.map) {
return state.map.signalList;
@@ -274,6 +366,104 @@ const map = {
return [];
}
},
+ zcList: (state) => {
+ if (state.map) {
+ return state.map.zcList;
+ } else {
+ return [];
+ }
+ },
+ powerLineList: (state) => {
+ if (state.map) {
+ return state.map.powerLineList || [];
+ } else {
+ return [];
+ }
+ },
+ tempSpeedLimitList: (state) => {
+ if (state.map) {
+ return state.map.tempSpeedLimitList;
+ } else {
+ return [];
+ }
+ },
+ lcList: (state) => {
+ if (state.map) {
+ return state.map.lcList;
+ } else {
+ return [];
+ }
+ },
+ tbStrategyList: (state) => {
+ if (state.map) {
+ return state.map.tbStrategyList || [];
+ } else {
+ return [];
+ }
+ },
+ axleCounterResetButtonList: (state) => {
+ if (state.map) {
+ return state.map.axleCounterResetButtonList || [];
+ } else {
+ return [];
+ }
+ },
+ totalGuideLockButtonVOList: (state) => {
+ if (state.map) {
+ return state.map.totalGuideLockButtonVOList || [];
+ } else {
+ return [];
+ }
+ },
+ cycleButtonList: (state) => {
+ if (state.map) {
+ return state.map.cycleButtonList || [];
+ } else {
+ return [];
+ }
+ },
+ outerFrameList: (state) => {
+ if (state.map) {
+ return state.map.outerFrameList || [];
+ } else {
+ return [];
+ }
+ },
+ bigScreenConfig: (state) => {
+ if (state.map) {
+ return state.map.bigScreenConfig || {};
+ } else {
+ return {};
+ }
+ },
+ indicatorLightList: (state) => {
+ if (state.map) {
+ return state.map.indicatorLightList || [];
+ } else {
+ return [];
+ }
+ },
+ splitStationList: (state) => {
+ if (state.map) {
+ return state.map.splitStationList || [];
+ } else {
+ return [];
+ }
+ },
+ automaticRouteButtonList: (state) => {
+ if (state.map) {
+ return state.map.automaticRouteButtonList || [];
+ } else {
+ return [];
+ }
+ },
+ resourceList: (state) => {
+ if (state.map) {
+ return state.map.resourceList;
+ } else {
+ return [];
+ }
+ },
stationList: (state) => {
if (state.map) {
return state.map.stationList;
@@ -281,6 +471,13 @@ const map = {
return [];
}
},
+ stationStandList: (state) => {
+ if (state.map) {
+ return state.map.stationStandList;
+ } else {
+ return [];
+ }
+ },
stationControlList: (state) => {
if (state.map) {
return state.map.stationControlList;
@@ -288,6 +485,41 @@ const map = {
return [];
}
},
+ counterList: (state) => {
+ if (state.map) {
+ return state.map.counterList;
+ } else {
+ return [];
+ }
+ },
+ delayShowList: (state) => {
+ if (state.map) {
+ return state.map.delayShowList;
+ } else {
+ return [];
+ }
+ },
+ lineList: (state) => {
+ if (state.map) {
+ return state.map.lineList;
+ } else {
+ return [];
+ }
+ },
+ arrowList: (state) => {
+ if (state.map) {
+ return state.map.arrowList || [];
+ } else {
+ return [];
+ }
+ },
+ textList: (state) => {
+ if (state.map) {
+ return state.map.textList;
+ } else {
+ return [];
+ }
+ },
trainWindowList: (state) => {
if (state.map) {
return state.map.trainWindowList;
@@ -295,6 +527,36 @@ const map = {
return [];
}
},
+ trainList: (state) => {
+ if (state.map) {
+ return state.map.trainList;
+ } else {
+ return [];
+ }
+ },
+ trainModelList: (state) => {
+ if (state.map) {
+ return state.map.trainModelList;
+ } else {
+ return [];
+ }
+ },
+ directionRodList: (state) => {
+ if (state.map) {
+ return state.map.directionRodList;
+ } else {
+ return [];
+ }
+ },
+ // trainDetails: (state) => {
+ // return state.trainDetails;
+ // },
+ flankProtectList: (state) => {
+ return state.flankProtectList;
+ },
+ // mapDevice: (state) => {
+ // return state.mapDevice;
+ // },
getDeviceByCode: (state) => (code) => {
return state.mapDevice[code];
},
@@ -333,6 +595,22 @@ const map = {
return device;
},
+ // // 查询所属车站关联的控制模式
+ // getStationControlByStationCode: (state) => (code) => {
+ // let device = null;
+ // if (code &&
+ // state.map &&
+ // state.map.stationControlList && state.map.stationControlList.length) {
+ // state.map.stationControlList.forEach(elem => {
+ // if (elem.stationCode == code) {
+ // device = state.mapDevice[elem.code];
+ // }
+ // });
+ // }
+
+ // return device;
+ // },
+
// 查询所属车站的控制模式
getDeviceStationCodeByStationCode: (state) => (code) => {
let device = null;
diff --git a/src/store/modules/training.js b/src/store/modules/training.js
index 21bb1475c..4e486be96 100644
--- a/src/store/modules/training.js
+++ b/src/store/modules/training.js
@@ -48,51 +48,33 @@ const training = {
},
getters: {
- // steps: (state) => {
- // return state.steps;
- // },
- // order: (state) => {
- // return state.order;
- // },
- // offsetStationCode: (state) => {
- // return state.offsetStationCode;
- // },
+ steps: (state) => {
+ return state.steps;
+ },
+ order: (state) => {
+ return state.order;
+ },
basicInfo: (state) => {
return state.basicInfo;
},
- // mode: (state) => {
- // return state.mode;
- // },
- // operatemode: (state) => {
- // return state.operatemode;
- // },
- // started: (state) => {
- // return state.started;
- // },
- // score: (state) => {
- // return state.score;
- // },
- // usedTime: (state) => {
- // return state.usedTime;
- // },
- // tipEvent: (state) => {
- // return state.tipEvent;
- // },
- // initTime: (state) => {
- // return state.initTime;
- // },
- // prdType: (state) => {
- // return state.prdType;
- // },
- // roles: (state) => {
- // return state.roles;
- // },
- // memberList: (state) => {
- // return state.memberList;
- // },
- // simulationUserList: (state) => {
- // return state.simulationUserList;
- // },
+ mode: (state) => {
+ return state.mode;
+ },
+ operatemode: (state) => {
+ return state.operatemode;
+ },
+ started: (state) => {
+ return state.started;
+ },
+ score: (state) => {
+ return state.score;
+ },
+ usedTime: (state) => {
+ return state.usedTime;
+ },
+ memberList: (state) => {
+ return state.memberList;
+ },
// 视图中的列车列表
viewTrainList: (state) => () =>{
const trainList = [];
@@ -105,21 +87,6 @@ const training = {
return trainList;
}
- // commonMenuStep: (state) => {
- // return state.commonMenuStep;
- // },
- // scriptQuitCount: (state) => {
- // return state.scriptQuitCount;
- // },
- // scriptOperationType: (state) => {
- // return state.scriptOperationType;
- // },
- // triggerFaultCount: (state) => {
- // return state.triggerFaultCount;
- // },
- // triggerFaultDevice: (state) => {
- // return state.triggerFaultDevice;
- // }
},
mutations: {
diff --git a/src/store/modules/trainingList.js b/src/store/modules/trainingList.js
index f29494ab0..c60755e11 100644
--- a/src/store/modules/trainingList.js
+++ b/src/store/modules/trainingList.js
@@ -9,6 +9,22 @@ const trainingList = {
trainingList: (state) => {
return state.trainingList;
}
+ // prevTraining: (state) => () => {
+ // if (state.trainingList && state.trainingList.length > 0) {
+ // state.index = state.index - 1;
+ // if (state.index >= 0) {
+ // return state.trainingList[state.index];
+ // }
+ // }
+ // },
+ // nextTraining: (state) => () => {
+ // if (state.trainingList && state.trainingList.length > 0) {
+ // state.index = state.index + 1;
+ // if (state.index < state.trainingList.length) {
+ // return state.trainingList[state.index];
+ // }
+ // }
+ // }
},
mutations: {
setIndex: (state, index) => {
diff --git a/src/views/iscsSystem/index.vue b/src/views/iscsSystem/index.vue
index 1a491f7ff..3a64755df 100644
--- a/src/views/iscsSystem/index.vue
+++ b/src/views/iscsSystem/index.vue
@@ -13,10 +13,7 @@ import {getIscsData} from '@/api/iscs';
// import {getIscsData} from '@/iscs/constant/iscsData';
import { mapGetters } from 'vuex';
import { exitFullscreen } from '@/utils/screen';
-import { putJointTrainingSimulationUser } from '@/api/chat';
import { putJointTrainingSimulationUserNew} from '@/api/jointTraining';
-// import { handlerIscsEvent } from '@/api/simulation';
-// import { IscsOperation } from '@/scripts/ConstDic';
import { deepAssign } from '@/utils/index';
import { getUID } from '@/iscs/utils/Uid';
@@ -100,7 +97,6 @@ export default {
this.iscsDestroy();
this.loading = true;
- // const data = parser(getIscsData(mode, system, part), {width: this.canvasWidth, height: this.canvasHeight});
this.$iscs = new Iscs({
dom: document.getElementById(this.iscsId),
config: {
diff --git a/src/views/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue
index 097984cf4..c6a79908c 100644
--- a/src/views/newMap/jlmapNew/index.vue
+++ b/src/views/newMap/jlmapNew/index.vue
@@ -84,7 +84,6 @@ export default {
computed: {
...mapGetters('training', [
'mode'
- // 'offsetStationCode'
]),
canvasId() {
const canvasId = ['map', (Math.random().toFixed(5)) * 100000].join('_');
From f9bab3da35d831693066e94c9eae9cea85b463e5 Mon Sep 17 00:00:00 2001
From: lVAL
Date: Tue, 27 Oct 2020 18:32:54 +0800
Subject: [PATCH 18/97] =?UTF-8?q?=E5=A2=9E=E5=8A=A0AUSline=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/permission.js | 2 +-
src/router/index_Common.js | 12 +-
src/utils/baseUrl.js | 4 +-
.../editToolAUS/{ => components}/drawer.vue | 4 +-
.../{export.vue => dialog/planExport.vue} | 4 +-
.../planMonitor/editToolAUS/line/index.vue | 135 ++++++++++++++++++
.../editToolAUS/{ => tool}/index.vue | 24 ++--
.../editToolAUS/{ => tool}/menus.vue | 0
.../editToolAUS/{ => tool}/monitor.js | 11 +-
.../editToolAUS/{ => tool}/schedule.vue | 2 +-
src/views/planMonitor/editToolAUS/utils.js | 1 -
11 files changed, 170 insertions(+), 29 deletions(-)
rename src/views/planMonitor/editToolAUS/{ => components}/drawer.vue (96%)
rename src/views/planMonitor/editToolAUS/{export.vue => dialog/planExport.vue} (99%)
create mode 100644 src/views/planMonitor/editToolAUS/line/index.vue
rename src/views/planMonitor/editToolAUS/{ => tool}/index.vue (96%)
rename src/views/planMonitor/editToolAUS/{ => tool}/menus.vue (100%)
rename src/views/planMonitor/editToolAUS/{ => tool}/monitor.js (98%)
rename src/views/planMonitor/editToolAUS/{ => tool}/schedule.vue (99%)
diff --git a/src/permission.js b/src/permission.js
index e57d4f663..c99508435 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -14,7 +14,7 @@ import localStore from 'storejs';
// return roles.some(role => permissionRoles.indexOf(role) >= 0);
// }
-const whiteList = ['/login', '/design/login', '/gzzbxy/relay', '/authorization', '/AUStool']; // 不重定向白名单
+const whiteList = ['/login', '/design/login', '/gzzbxy/relay', '/authorization', '/AUSline', '/AUStool']; // 不重定向白名单
// const designPageRegex = [/^\/design/, /^\/scriptDisplay/, /^\/publish/, /^\/orderauthor/, /^\/system/, /^\/iscs/, /^\/display\/record/, /^\/display\/manage/, /^\/apply/, /^\/plan/, /^\/display\/plan/, /^\/displayNew\/record/, /^\/displayNew\/manage/, /^\/displayNew\/plan/, /^\/practiceDisplayNew/, /^\/bigSplitScreen/];
diff --git a/src/router/index_Common.js b/src/router/index_Common.js
index a15745950..3ec99e1e0 100644
--- a/src/router/index_Common.js
+++ b/src/router/index_Common.js
@@ -80,7 +80,8 @@ const ExamCourseDetail = () => import('@/views/exam/detail/courseDetail');
const DemonstrationDetail = () => import('@/views/demonstration/detail/index');
const PlanMonitorEditTool = () => import('@/views/planMonitor/editTool/index');
-const PlanMonitorEditAUSTool = () => import('@/views/planMonitor/editToolAUS/index');
+const PlanMonitorEditAUSTool = () => import('@/views/planMonitor/editToolAUS/tool/index');
+const PlanMonitorEditAUSLine = () => import('@/views/planMonitor/editToolAUS/line/index');
const PlanMonitorDetail = () => import('@/views/planMonitor/detail');
const DesignPlatformHome = () => import('@/views/designPlatform/home');
@@ -210,12 +211,17 @@ export const constantRoutes = [
path: '/design/jlmap3d/assetmanager',
component: Jlmap3dAssetManager,
hidden: true
- },
+ },
+ { // 线信息
+ path: '/AUSline',
+ component: PlanMonitorEditAUSLine,
+ hidden: true
+ },
{ // 运行图编辑
path: '/AUStool',
component: PlanMonitorEditAUSTool,
hidden: true
- },
+ },
{
path: '/jlmap3d/sandbox',
component: Jlmap3dSandbox,
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index 7bb629cc4..49f270cfe 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.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.169:9000'; // 旭强
// BASE_API = 'http://192.168.3.175:9000'; // 张赛
diff --git a/src/views/planMonitor/editToolAUS/drawer.vue b/src/views/planMonitor/editToolAUS/components/drawer.vue
similarity index 96%
rename from src/views/planMonitor/editToolAUS/drawer.vue
rename to src/views/planMonitor/editToolAUS/components/drawer.vue
index d162ebf4a..3cb64f3e1 100644
--- a/src/views/planMonitor/editToolAUS/drawer.vue
+++ b/src/views/planMonitor/editToolAUS/components/drawer.vue
@@ -1,6 +1,6 @@
-
+
@@ -28,7 +28,7 @@ export default {
},
width: {
type: Number,
- default: 600
+ default: 360
},
visible: {
type: Boolean,
diff --git a/src/views/planMonitor/editToolAUS/export.vue b/src/views/planMonitor/editToolAUS/dialog/planExport.vue
similarity index 99%
rename from src/views/planMonitor/editToolAUS/export.vue
rename to src/views/planMonitor/editToolAUS/dialog/planExport.vue
index aae2bba44..6ffa11d3f 100644
--- a/src/views/planMonitor/editToolAUS/export.vue
+++ b/src/views/planMonitor/editToolAUS/dialog/planExport.vue
@@ -11,7 +11,7 @@
+
+
diff --git a/src/views/planMonitor/editToolAUS/index.vue b/src/views/planMonitor/editToolAUS/tool/index.vue
similarity index 96%
rename from src/views/planMonitor/editToolAUS/index.vue
rename to src/views/planMonitor/editToolAUS/tool/index.vue
index ec9089b26..b033d5d8e 100644
--- a/src/views/planMonitor/editToolAUS/index.vue
+++ b/src/views/planMonitor/editToolAUS/tool/index.vue
@@ -62,26 +62,27 @@
+
+
-
+
diff --git a/src/views/drts/scene/index.vue b/src/views/drts/scene/index.vue
index f970803e4..7d61a66f2 100644
--- a/src/views/drts/scene/index.vue
+++ b/src/views/drts/scene/index.vue
@@ -4,12 +4,11 @@
-
-
+
-
-
diff --git a/src/views/jsxt/competition/examDetail.vue b/src/views/jsxt/competition/examDetail.vue
deleted file mode 100644
index 1a02efe47..000000000
--- a/src/views/jsxt/competition/examDetail.vue
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-
- {{ examType }}
-
-
- {{ $t('exam.startTheExam') }}
-
-
-
-
-
-
diff --git a/src/views/jsxt/competition/home.vue b/src/views/jsxt/competition/home.vue
deleted file mode 100644
index 23e368aeb..000000000
--- a/src/views/jsxt/competition/home.vue
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
城市轨道交通竞赛平台
-
-
-
-
-
-
-
-
{{ $t('demonstration.simulationSystemDescription') }}
-
-
-
-
-
-
-
diff --git a/src/views/jsxt/competition/index.vue b/src/views/jsxt/competition/index.vue
deleted file mode 100644
index 829c64b7c..000000000
--- a/src/views/jsxt/competition/index.vue
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
-
-
-
diff --git a/src/views/jsxt/competition/result.vue b/src/views/jsxt/competition/result.vue
deleted file mode 100644
index 311c96b31..000000000
--- a/src/views/jsxt/competition/result.vue
+++ /dev/null
@@ -1,185 +0,0 @@
-
-
-
- {{ $t('exam.examResultsDetails') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 返回首页
-
-
-
-
-
diff --git a/src/views/jsxt/competition/theory/question.vue b/src/views/jsxt/competition/theory/question.vue
deleted file mode 100644
index 207115cd3..000000000
--- a/src/views/jsxt/competition/theory/question.vue
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-
- {{ el.content }}
-
-
-
-
-
-
- {{ $asc2chart(i+65) }}.
-
-
-
-
-
-
-
-
-
diff --git a/src/views/jsxt/competition/theory/quiz/index.vue b/src/views/jsxt/competition/theory/quiz/index.vue
deleted file mode 100644
index 7a1b8af89..000000000
--- a/src/views/jsxt/competition/theory/quiz/index.vue
+++ /dev/null
@@ -1,285 +0,0 @@
-
-
-
-
-
-
-
- {{ index2UnicodeList[i] }}、{{ el.title }}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/jsxt/competition/theory/quiz/question.vue b/src/views/jsxt/competition/theory/quiz/question.vue
deleted file mode 100644
index 8871b1b61..000000000
--- a/src/views/jsxt/competition/theory/quiz/question.vue
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
-
-
-
- {{ el.content }}
-
-
-
-
-
-
- {{ $asc2chart(i+65) }}.
-
-
-
-
-
-
-
-
-
diff --git a/src/views/jsxt/competition/theory/result.vue b/src/views/jsxt/competition/theory/result.vue
deleted file mode 100644
index 2b572fd33..000000000
--- a/src/views/jsxt/competition/theory/result.vue
+++ /dev/null
@@ -1,200 +0,0 @@
-
-
-
-
-
-
-
- {{ index2UnicodeList[i] }}、{{ el.title }}
-
-
-
-
- 考试总分:
- {{ totalScore }}分
-
-
-
-
-
-
-
-
-
From 509d43c8345ccec97fa2ec365f673ad90f5a6015 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Wed, 28 Oct 2020 09:45:04 +0800
Subject: [PATCH 25/97] =?UTF-8?q?=E7=AB=9E=E8=B5=9B=20=E8=BF=90=E8=90=A5?=
=?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=95=B0=E6=8D=AE=E5=BC=B9=E7=AA=97=20?=
=?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=97=AE=E9=A2=98=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/store/modules/scriptRecord.js | 7 -------
.../newMap/displayNew/dispatherContest/index.vue | 2 --
.../dispatherContest/operationalStatistic.vue | 16 +---------------
3 files changed, 1 insertion(+), 24 deletions(-)
diff --git a/src/store/modules/scriptRecord.js b/src/store/modules/scriptRecord.js
index 705418a79..7fb3b0447 100644
--- a/src/store/modules/scriptRecord.js
+++ b/src/store/modules/scriptRecord.js
@@ -14,7 +14,6 @@ const scriptRecord = {
updateRoleId:'', // 剧本更新角色id
updateCoversitionStatus:0, // 剧本仿真更新会话信息
userRole:null, // 剧本更新的角色
- operationalItemVOs:{}, // 剧本场景的运营统计数据缓存
audioPlay:false // 语音是否自动播放
},
getters: {
@@ -75,9 +74,6 @@ const scriptRecord = {
updateCoversitionInfo:(state) => {
state.updateCoversitionStatus += 1;
},
- updateOperationalItemVOs:(state, operationalItemVOs) => {
- state.operationalItemVOs = operationalItemVOs;
- },
setAudioPlay:(state, audioPlay) => {
state.audioPlay = audioPlay;
}
@@ -110,9 +106,6 @@ const scriptRecord = {
updateCoversitionInfo:({ commit }) => {
commit('updateCoversitionInfo');
},
- updateOperationalItemVOs:({ commit }, operationalItemVOs) => {
- commit('updateOperationalItemVOs', operationalItemVOs);
- },
updateAudioPlay:({ commit }, audioPlay) => {
commit('setAudioPlay', audioPlay);
}
diff --git a/src/views/newMap/displayNew/dispatherContest/index.vue b/src/views/newMap/displayNew/dispatherContest/index.vue
index eece5d30f..44e748eeb 100644
--- a/src/views/newMap/displayNew/dispatherContest/index.vue
+++ b/src/views/newMap/displayNew/dispatherContest/index.vue
@@ -260,7 +260,6 @@ export default {
clearTimeout(this.time);
}
this.$store.dispatch('scriptRecord/updateSimulationPause', false);
- this.$store.dispatch('scriptRecord/updateOperationalItemVOs', {});
this.$store.dispatch('map/resetActiveTrainList', true);
},
mounted() {
@@ -397,7 +396,6 @@ export default {
getSimulationInfoNew(this.group).then((res)=>{
this.$store.dispatch('scriptRecord/updateAudioPlay', false);
EventBus.$emit('quitScene');
- this.$store.dispatch('scriptRecord/updateOperationalItemVOs', {});
this.quitQuest();
// this.initLoadPage();
this.isScriptRun = false;
diff --git a/src/views/newMap/displayNew/dispatherContest/operationalStatistic.vue b/src/views/newMap/displayNew/dispatherContest/operationalStatistic.vue
index 942abc0d4..bb1170403 100644
--- a/src/views/newMap/displayNew/dispatherContest/operationalStatistic.vue
+++ b/src/views/newMap/displayNew/dispatherContest/operationalStatistic.vue
@@ -46,20 +46,7 @@ export default {
this.dialogShow = true;
this.resultData.score = resultData.score;
this.resultData.itemVOS = resultData.itemVOS;
- const operationalItemVOs = this.$store.state.scriptRecord.operationalItemVOs;
- if (JSON.stringify(operationalItemVOs) !== '{}') {
- this.resultData.itemVOS = operationalItemVOs;
- const itemVOs = Object.values(operationalItemVOs);
- itemVOs.forEach((item, index)=>{
- if (item.type == 'Time') {
- this.dataList.push(item.timeFilledInByUser.slice(0, item.timeFilledInByUser.length - 3));
- } else if (item.type == 'Non_Time') {
- this.dataList.push(item.userAnswer);
- }
- });
- } else {
- this.dataList = [];
- }
+ this.dataList = [];
},
roleDoClose() {
this.dialogShow = false;
@@ -81,7 +68,6 @@ export default {
// this.formatScore = res.data;
// this.$messageBox('得分:' + this.formatScore);
this.$emit('finishTraining', res.data);
- this.$store.dispatch('scriptRecord/updateOperationalItemVOs', this.resultData.itemVOS);
this.dialogShow = false;
}).catch(error=>{
this.$message.error('运营统计数据提交失败:' + error.message);
From 2509d11baf548c33c27342ed33cfaa430e1b88f7 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Wed, 28 Oct 2020 10:00:04 +0800
Subject: [PATCH 26/97] =?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/assets/voice.png | Bin 1563 -> 0 bytes
src/assets/voiceClose.png | Bin 0 -> 6180 bytes
src/assets/voiceOpen.png | Bin 0 -> 3692 bytes
src/jmapNew/theme/haerbin_01/menus/index.vue | 2 +-
src/jmapNew/theme/haerbin_01/menus/menuBar.vue | 12 ++++++++----
src/scripts/cmdPlugin/CommandEnum.js | 4 +++-
src/scripts/cmdPlugin/CommandHandler.js | 7 +++++++
src/store/modules/socket.js | 4 +++-
src/utils/baseUrl.js | 4 ++--
.../newMap/newMapdraft/mapoperate/power.vue | 6 +++++-
src/views/system/companyManage/add.vue | 5 ++++-
11 files changed, 33 insertions(+), 11 deletions(-)
delete mode 100644 src/assets/voice.png
create mode 100644 src/assets/voiceClose.png
create mode 100644 src/assets/voiceOpen.png
diff --git a/src/assets/voice.png b/src/assets/voice.png
deleted file mode 100644
index 2300cf9856684855ed0d0eb385e7e97c2ee4cee7..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 1563
zcmV+$2ITpPP)
djrdW7XrO{
z1XvK=^K}_t16~21Xi(N#q_0rV2kr!RF17kX;7L!%?=`P}Q#S7b4;c+^TE|qmzCoRB
zU|wYD)mOltp57hQX+-0XiqxP@fLXu}rSCm}Qz}DB=#g42+y=ZD%2-YxHPo{W(7hrX
z9ShZ0ot9lE0w)0aJ4PM=u8YYy$}x3o1M|w*hMIhBKrKJ=EZ}P3@Q8MN3>*@XZzL1d
z=?3UNF%7KbX&Y)${bdHOhKP^^-|k?B&=YE;Z*E{lzebk2yMn4m>Ftr$-X7@F8^B4v
zJi~&jMrbBIpvI42%i1N>verHtXy>)SB3GWSp>Aqm-joQlC_W6RdX^?IX{5B*CFi(S
z1zkct)&Ol|%~%JjmS(2`Yk+Ue_xr$~4Sv{90xN_=fsd;7b^&!G15@j}w#BEZ+879;
zOI|kymv?~AYc%W&U|&c6m9`{
zm%vVrx-S79E2mYV-VYoEwE4XDiRsdUA@~)??WvH@6
zO4Ir*KB#9J19aW?ziP(dP&r@y)3mjKDy#Ump;~*8?t>}|*WJKzz|5L${T@*HkjSp9
zQ-!Kb(^f%kYTOMqpo{dFC6x>`hXMPU2}a*Bz^s!_r4us9NV9G7zqSghZ+7bfOiGVOw?91WC^c2yTlKQArsKxVj;HS-rO|*QHHR^XyV_k2zPI4DcDpc{3;aT=vo7`oL(=M*E
zuU=zG{6K5;Nrt*HppAe{{x;ewjkJjjL^_4F$*f6+Dj?ES*HMX1XK(fl0j{~|ib;nm
zX3qk1E%0PV*xdtFehBAU(idf@gGuQ_2Rz@zcs+2RrQG5S6=d`M*|E&>O;|cow=KPv
zXQ%^Jlcw4Z^>hLtUjm!Be79C+r~_QCt@`th@m6It-mbRLUYnr~sLThRu>g{HpnL>u
zA~WD0mW01D)C`rjwy9MG%dfv@?btLaPgG6GIm+cFRixKn9qxJY-vQL7+f>&<#JMJ
z!Jk5uruP2%hWDf!Qw*TC>P(>uv)fOc7fZC;PoezTLCwDpQzXkv
zjx1IOwIXkJrLutceL~YYSGx#i)mDkwD2l3;Y34lWYonpivIq!Zbf~9s{{t^FYH2eH?JEEP
N002ovPDHLkV1mnp`_upc
diff --git a/src/assets/voiceClose.png b/src/assets/voiceClose.png
new file mode 100644
index 0000000000000000000000000000000000000000..84f7f1e65cc52814bde0329a05ea9123d5252585
GIT binary patch
literal 6180
zcmbVQ1z6KF^?v7k*V%Rb_kZH|-1qO!J=YS=P4!rq_?RdtC|C^iwJphS^`nP@
zj{IGW_WMYFG5YFX!c$PNb{;*HH_oy0Q&7Nj6q=`PhWHbeZ
zvKrABj_^Ve0In!^G)6^urLk2QfJUka+sK)KO?JN9~1!&Ao_S?@Gzo^@K3og^7v>OBnYaA&A*qWFFw6Hi7Ku%g7h=4%l
z018Ud5P4asl9Cia1`JUIffYdzSs+9n1_i@pWB|WE!enhYq#MjqTlcpv@=Qh8gFx_w
zfk1(QfzpAp(pa232%@B<1Om%|WMqJ31P~vDA;5`13|{0f3EC(;0*Ce`ps^UhkwmyF
z)}NpvOlJDa1Rvi&VlnvNZX!DjM1=c-AkyF?lYRn`h(9=Af1LMEwzU;@gCTJBl^$wzbGKP*2LtGj(_Ch;QHh7(XK
z!ZKhPFc1O;$|zccm0%DEOa^ietOx^xe?d*KNVHqfKS5<=VPN@xfs(TZ2`9k+PcRYz
zbHn0%;AET8K5%yw$QR=-4EWiz6#0vy=V%x`CFKIS%WF_9k!OE%h`320B{u
z5G8qepo}!+CtVX0m;nY)fMXCS18o&yvVWw}Xe11Qbb}(05E&p+&eau&1VfQP_|X)s
zfK*g+lYz@A$-)0RuZ>0cA7#PO`CkQr#3INt{+k{`76OIHDaZibz)(4$oB|XKgd>n}
zAi1*SWZb}tGH}!{=aJc%;n3uognR#8>Jcj>St6MfM9~dJmV*Gx1L0t(B2Y;V3hBYyJ{7y)y_1l`~t-IN>vO)1N>H;pD0#U0{AdUpUn?PW7?uF2r
z+KWCG%cUQjyce2BoQJurxSWe+4=ui0
z%i^=WB_1=#-ar>gMRS#B)>VB%v?XMqv}nptcl(~Rv}1vxs&aqDmEe~OH0FkRsy-}x
zmjRl1gXBQJORY4XVf}9hxJf7TysjKU`--!Azoz%az^Qu&=92OjB*fIb-iOd?dgzN4
zwM?S6rmRA7o2NSP*NKY@_}FiIYYGcSswJ+UCY9Zi1r3L8DO(<&QT4j5cEYySq-pd;
zT(kUnRmCnro6=GR(_yG@No7po)QvHcYhZME25}ee`PZYZGtoDSo
zBYj(~SVNgeuokiWq|+s)6DQb*yGt{0s+tbPqN4#VNp5Yk`K_XlNyG{q+(H7LgUAn-Qz{8r_ZSiYZGUav#2Wzv)T$<;of`vIn=xD
z!!);hU#2sw1f5q%Yy0X)G-S&?4Z2*neUT5IKGDFq_hNNnqP$za42FQudJ5}P*tSr6(CN}UcEzK_+B_6C;Q5I5$Yuexi`a6
z@ak8C*^{xuPEm3ZQL$TEZrscQOveOcJ0Fa20orth3zq6`d*)Lx{1BZo`(&;vIKOUC
zy%YS&d7>@c{hVm0h;FL7BZT)`3RWXDv@rzQHhy~Q4b=LD(qeOC`$RI23b)Uo`I`~H
zMyq`&gyYy7wl+^)B$xFLa#!)zu?C~{F6004mCGs
zM%viPZ=C=M@c!91xi=Y098xbh#!hW;Zjr2LswykWTN68#6hwC1buqRZrB{9$kKKIMTrD6wYDDcE2n;s$th@y(x5EqH~Uw
z%9o9gIg->b0-))xGMlk$W=zeDn!?evgc@qEb5Rw1XsqY1vCgC&t!)cDsW}&7+o3n8
z9L6mp+1(|n>5*vA=^S>ttYXGoQXr$B76giQ&(U?Pn_T3q7)%`sUWd+{BDL^7y1WaC*cDytiLbbp?Dk}h=rVjhVg790
zKBlKnLoJ+n>lz!o-Fi0{OB0LJM^Mueqdls5V`rG
zmgAvm?gg8?FpTovx{Ys#xANP!qNR4J2g}k7bgrD5hKU2S9V=Ubu)@N^IFmc_76D%Y
znhewBE!;C9YU-gIPS7Iud)YC%Anl--GzZEvX1M|f^6gdbjLEI1c2LhElvxiq88RZG
zx4Xkq&AKU~Toy7*7e7=Sd)s@~`-8aZz4DFZ`}_=fa5e$M@6~g+%A2VM_F(fJ>EaA}
z(RXPy4dFSZ&&Hl`*SMc?!!fz#RLP{@y)3uumgP>;6i{O{3Qr5&zpy7L(CxjdD;ha4
zi|Ee;me^KAtAuP3VA4XWQ6(i(se)=R^R(ix=INM;i%kih7r10~d2C%Fx-kH7=MJde
znb9t~xmGs0hpJ@B9(-8IIena6D_*Fw%D(J&&<~oHO^QvQs=Q*(ADvr_Qs=s1e%1C3
z?vDp5{W^57+~oTH&K~PGzg}c&mej^t1g=>?LZ5b2)UJ+g&sozrKC
zUgI!_uvhwbeU-{eyx04fl+RCSlo!nf*ufn*8ERs^y*tNR*=EL7zRvMJnLPjXb)nWB
zpxH3XdNo1cD1LNBw|=}QaI39B?yHH3@5JRvTur`LmiT$YfG0sSZl>9=p}32)@C-Q5
zgF;yESVjg{EoQWjbV*i&p?aNAw;{dygMD|4bF4{VNP&6_RX-lr=V%wH9Ff{qwq*Of
z&&5_qc^%9w@ahMPh;IJ=s@~Tvm4s!VNOBQ=95=T}EpDWUoTwyX4?~(ZKX_#;;pu$2
z+gX1Y8EA!3zc~4WfWyhmbf@N5R9ut&%*s;MOo?ec#(cSL6G*eUqNT%r%72L}E6%rG
zU7@WuyJ}yjZp8ZpmCueb)fO-pO(K3`6YM(JIXw~)%9<6Hu{hRs4Aj)t;J={g9MbZ-
zm-@}{@b~E?P^Hg8Z9wZuZf;8l2U3yML)#`IBn3_zTWc|e6LE0l3p^&w|CV-hdAz^)
z!sAtiUB7yVTrY->wvrNn`3?u8V8$BibfH3UURkD(;A!`_%VBRWz|2gK+dXWVFrR2M
z0=0B5Dpl1_b@SWB$}`8Y^7jE1CN$@E3%p0_q9k9JiJpmbk;2gugpp{pq}l$wB=R9;
zLR-2Acz#7sUu}(YfA2aevhxfydYo}qrl)@(zqU4$nw}LLy6wx!$!S+Mu^r3b+ux6P
z|F~SnMIB?zl(3g7&7EF${84mRArjx#O}A_`cq#jPY18d$Q)Dvk*IqU&b~?V&cRnuNK$}
zSeI1D89TZc>dk&6-t~4Q@YeA*XxQ2D(bCec8!UBvLp(1kE%j08uJwUBCP^d#t-U@x
zjE$H5_9Ql5z$hW}iBAk#SVaJ-DLf=@*pWXVIf6OMCI7I%wbFjJR`E1-J5y`d^MGN3
zxM_BR&--jiHLai^rMbB|i(Zbn7<1R!ji;%O0I0gS7#uY_2@A-ma};CfPfo0$ke29*
z%l(unp5z|NEtxf`*DD>K{Yki)Uyn2};7+;)p(zEtXff&-%gOb6*RV_j(NMeJYgAGs
zOF5!`+*d=RNb)@g;ngaB#y`g(Af4?^f2!Q;+;eR!=I!`%>wdI17heD*CpbYa*9cC#m+r)#8Sn?!l)_a}*88>Gs*Z&%TT?
z&*E|JJIm}$`E-`{tH;muloZFj;i}sg*d8NNFflPnNJ!MhY>i@DUtAN><57cCy$=d9
z_v@>7$ueD&htU!UZ&NZe7BkBDn#~<)sd4uGHtH4@96CBWj@REep=HVa8L_{!0VVP?
z&_&zUe~Pv{BX4ie2WMzMT?X5JB@oof-JGn(NC(u%wfv@#W$EO0{OgVz}bkZE;~q
z#%md4iO?mHDCv_LDzZu2cUqFY#%L7HnbM?V!WtX1z4dN^{iu?-fzunq&hA6^b&Rv1
zjA^6CuS|1M(vDu1Z>*HgpG$InwiT-cwYlh`y322^wJ)|lKR<8#WA;X!gLEO+iK!uf
z+ntc@7ofJA@Y@NED_ysOW}OeUlI7mGS23c(v0j=daOJQY|1g`#ApX9WP%@10?wUJ(h~@ZQNn-8
zjg>NZUm8zk!mvIi!jT4yTX16^9_yUUKXWTPtEc1+#&z$3!TQ{Up#OpLGMgd9jTBw~
zRA+pIy`J_Hv%1uFV6t96dq`k=&fT8HQ`UCQ>lr;JWxy{l?&t*s$jiyeWeA+@8U%5k
z5u#k)=YH_u>hyP+=Hh6-;g|R4cD&3loPdVmu5459u7(nL!VVl)3-07+3KgsC*N=_V
z|48Vd9})<;)s}%y;BQF?_-q`*VQ(zwH?5r$x@M3Qu^hCswUTBz|4M(Q0hD{)>RP#!
zSkNvvXP@f*xwWFY)PvK*dV;Q>nPZZ}Ar}fqjY_R0?$3`T$CTv{+)gSk)lmL^N*AS+
zIS}uBcFgL^pol}z=(D8&eAfw^Tr^+K%PdLD-8RzWp&d6s&W>bvH;bsXO}^m%dApB*
zMcN6CWS()Bhek=lgQk>MQV+4;AH#D~c
zg|A4j_ZjLvuZ_K4``Y_7%QtXZ?U(Y5DzG8{rAr#$D+_KF&PFN@7i6wBi~p(_xTpT*YIFYE|agyMK-Qx_ZVf%=<;V-lvGq%y~sC=uyP8iV>4#`
zgAtp~60L$mr?gXeQzXJqtkLUDeBT{bU{|wGKEvLL_zK1dPwTa|sdzH?`3f~iYOGeYly&u2_UB;u4NC9#A_EokBh;
zs1$XVuY>iD)}O_JgErJhS4Ek2)88RNl%Z
z^6+in;kPedez|btUg;_%zw7M@OT%bNHUDz?K(78X*h+$;IqoIl&MbW_{36*>F%z2F`u7ItY|-80*C
zD$=@gw-fFWJ;GXj=wQwsY{KfvPo0rdG83Avqv7NnjynWu#yo8~bGXH_VLHd#*9Y<~
zd%4o2y#ZQVgXT%uxHcs!tR6MB^c09;snUvYlbx64~hrU4{{v3JqKfZyEsdkyBOZ0yMYckAW
literal 0
HcmV?d00001
diff --git a/src/assets/voiceOpen.png b/src/assets/voiceOpen.png
new file mode 100644
index 0000000000000000000000000000000000000000..87c81818fbe11439b7d5a13aa9e5542b4afe504e
GIT binary patch
literal 3692
zcmbVP3piA1A0HMeV(2D{F{Et9T#cE@Bn%l0a>=DsW6qf|nVXq$>#O8mvZV;Qq-3pB
zn-uGkl!QWLv&E9+R&8P`yQK1+k$mmNFmvzQz57RpFpYZot#D$!h8_&2{EqA8EA?f#P*_5~
zITH{Dg60u?5rl@ptgItMOja-`MFfHzu7HXhtFA>NxBwODW5K{MM0Q{h*Kv;+^xWg>
z#o80hA_GY4jR>m<3PivMrA$NwpC^z|BB;n&UJ5jpPot5DS%@^4inNg%MEEk?5q3f`
zh_EmxqF7jh1;UbSjwRv=WU?6ohryE27!n$bM`4K+0)~RaA?7Y5WK9gPDIPS3Ia|;d
z6&WOziYRDwczC#ZINn?+=Af};G8v7*p>a4Agg{9m1yW`NN+2=%%s>MrEHPIk
z5EeU+6$J^ULP?PDFR162|6~9PErT&{1`kQFMg0{Q+=2LceXAddgY3nbt%ftEM|iVfoNC=8Aeh$7)gI204aTY{E29FE8)
zd{*No=0azZ$@`L3t_pw{$pF@p#0GIFB7sdt;Xwi(MP@_8AU!Mfq^P9YY`U4ILCf)MBVzM|&!(!(gg9befGK19otxe|@s*ODuGTGTvDY+`lar_OT-f5a
z%8`vDQF)S68ImK$afqae>X`>Kpxc4QszY!Dy+BzBp-`OvWXF@I-M>aP9ZIKfQQR+U
zSh!_tMP`hBB~Xn+h9_aOvSU+V3RTSe`)c!MdR`6+qk0T&;tu2rbKtj~m%oY4*ebg?
zq`#{8c;KNteL?8&uXi}F-?_J|RhE_Kbl1B3>c=s&sGCz~zYCrk?uf6*(V$gbn_7#Y
zKY6h9btx`rtg21;ar?}Mi6c=5ru@vW*Yw1i+&PynJ7=rfBwd%bVkkBD`I942FmFq<
zRawb}MUT>z%j3;{7=f3VsWlVsh#ZSb;{?7%+S=tPSTwk;N&IeiG(TI1t!jS&Jn86I
zr9N}`G1pCF%Ah>eXUSXxSCPwmZ`o&2lYl2xQ(VKE0{>SD0HA-6C=
zwVkf7Vzzs&i44@VrWZ6Qb(b^3!!5`1BJ(68_p}zpH(XfTjPrYQB?UaWKvUnim6^&a
z$C|dTIg+SpAg=mISnGCb@QR!DEkX%u
z)3nArV=qPg*0ha4w1|Oid$jKEWOQb6aavlMyN5?iZKKjhwA3JXe(JCt|oBZ&R+l)6_47Y`=Dn-1Xl*PSJ>vz>Hv>CA0BZt0N
znqeM*9AAeyW4AJ$*LdgZ-jy0@>Y&CZ<$H8nL#`pO4N{Eu=v5)u-MtOMM*bkpknmBC(9
z<@{eo|LWEmOTkw!zlPvX|U!f6;lqt1@_PA-5y!EI-aZ({xx#Au=*D
z?ZkHNJ=`q4ux9ny?jFBhirp`
zMu;j5ZXyBjV>hRxfGXUbmX=ikKQ?6=rk0lze+;O0@Ckn?@>6t{34YT1=~wEDsU&hgG8w+b|4UB+YnGI>z
zZeB*j-6%El_xC4-z0^tUvuepI3ohJaDMP
z;u^BPxK1|Ect14v!}K3lE<|))1+zo(72+YM9aFOPyuRzJk2a=`f4I2|p4Yb7$7hA}
zqVy8xEfuj?Vp1Ejs-RvIip}>`Ray3jmn(RdAVP{Ro#%|5s(JbNN_Ol5P1p4c;78NQ
zwzr#;x~_0Ey}iA$hcU-Y)#7cp*Y00EL$zMEY#Fb&D%4;1t+7WHrgVU_!M93k+8fXd
z=}TKkUeh&D%AJ=*9&F&zpvw=3Bq;
zusNmhO<1I=@b;m+(Fe?n2lX=@cgC%qKGroh4u=y9xy-DsacADfm7rX1)t6joBAdEf
zFie)>bX2Wu9Znlz-XbvBHg`Q805sreP_O>{SvtK5=L*VF>T{99LA|
zhS4c~rlylaE)`CWOPBWbPO)b$R%=EsB_y`xw1vaouH<=P)L_vh}Z
Um#N#O%Ks12?Oka<+U|<^H<20f%m4rY
literal 0
HcmV?d00001
diff --git a/src/jmapNew/theme/haerbin_01/menus/index.vue b/src/jmapNew/theme/haerbin_01/menus/index.vue
index 6572f98d4..e89c40d72 100644
--- a/src/jmapNew/theme/haerbin_01/menus/index.vue
+++ b/src/jmapNew/theme/haerbin_01/menus/index.vue
@@ -1,7 +1,7 @@
@@ -15,6 +16,7 @@
import PopMenu from '@/components/PopMenu';
import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionControl';
import TrainAddPlan from '@/jmapNew/theme/components/menus/dialog/trainAddPlan';
+import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SectionUnLock from '@/jmapNew/theme/components/menus/dialog/sectionUnLock';
import SpeedLimitControl from '@/jmapNew/theme/components/menus/dialog/speedCmdControl';
@@ -36,7 +38,8 @@ export default {
AlxeEffective,
NoticeInfo,
TrainAddPlan,
- SetFault
+ SetFault,
+ LoadSpareTrain
},
props: {
selected: {
@@ -102,6 +105,11 @@ export default {
label: '取消临时限速',
handler: this.cancelSpeed,
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED
+ },
+ {
+ label: '加载备用车',
+ handler: this.loadSpare,
+ cmdType: CMD.Section.CMD_TRAIN_LOAD_SPARE_TRAIN
}
]
},
@@ -270,6 +278,13 @@ export default {
}
});
},
+ loadSpare() {
+ commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
+ if (valid) {
+ this.$refs.loadSpareTrain.doShow(operate, this.selected);
+ }
+ });
+ },
// 设置故障
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js
index 5bd7011eb..1702248f2 100644
--- a/src/scripts/cmdPlugin/OperationHandler.js
+++ b/src/scripts/cmdPlugin/OperationHandler.js
@@ -1464,6 +1464,12 @@ export const OperationEvent = {
operation: '414',
domId: '_Tips-Section-Confirm-Limit-Menu'
}
+ },
+ loadSpareTrain: {
+ menu: {
+ operation: '415',
+ domId: '_Tips-Section-Load-Spare-Train'
+ }
}
},
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index 7bb629cc4..7dd4746ec 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -5,7 +5,7 @@ export function getBaseUrl() {
BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
- // BASE_API = 'http://192.168.3.169:9000'; // 旭强
+ // BASE_API = 'http://192.168.8.144:9000'; // 旭强
// BASE_API = 'http://192.168.3.175:9000'; // 张赛
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip';
diff --git a/src/views/newMap/newMapdraft/mapoperate/power.vue b/src/views/newMap/newMapdraft/mapoperate/power.vue
index afd3c7539..e5bb63f21 100644
--- a/src/views/newMap/newMapdraft/mapoperate/power.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/power.vue
@@ -19,6 +19,12 @@
@create="create"
/>
+
+
+
根据左右端点区段重置供电线坐标
+
批量设置
+
+
@@ -169,10 +175,34 @@ export default {
this.field = field == this.field ? '' : field;
if (this.field) {
this.$emit('deviceSelect', 'Power');
+ } else {
+ this.$emit('deviceSelect', '');
}
},
+ batchSetPosition() {
+ const models = [];
+ this.powerLineList.forEach(item => {
+ if (item.leftSectionCode && item.leftTerminal) {
+ const section = this.$store.getters['map/getDeviceByCode'](item.leftSectionCode);
+ item.points[0].x = section.points[0].x + 10;
+ } else if (item.leftSectionCode && !item.leftTerminal) {
+ const section = this.$store.getters['map/getDeviceByCode'](item.leftSectionCode);
+ item.points[0].x = section.points[0].x;
+ }
+ if (item.rightSectionCode) {
+ const section = this.$store.getters['map/getDeviceByCode'](item.rightSectionCode);
+ item.points[item.points.length - 1].x = section.points[section.points.length - 1].x;
+ }
+ if (item.rightSectionCode || item.leftSectionCode) {
+ models.push(item);
+ }
+ });
+ console.log(models);
+ this.$emit('updateMapModel', models);
+ },
tabClick() {
this.field = '';
+ this.$emit('deviceSelect', '');
},
deviceChange(code) {
this.$emit('setCenter', code);
@@ -183,14 +213,21 @@ export default {
this.$refs.form && this.$refs.form.resetFields();
this.$refs.make && this.$refs.make.resetFields();
this.activeName = 'first';
+ this.initEditModel();
this.editModel = deepAssign(this.editModel, selected);
} else if (selected && selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field === 'leftSectionCode' && this.activeName === 'first') {
this.editModel.leftSectionCode = selected.code;
} else if (selected && selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field === 'leftSectionCode' && this.activeName === 'second') {
this.addModel.leftSectionCode = selected.code;
} else if (selected && selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field === 'rightSectionCode' && this.activeName === 'first') {
+ if (selected.lengthFact) {
+ this.editModel.rightOffset = selected.lengthFact;
+ }
this.editModel.rightSectionCode = selected.code;
} else if (selected && selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field === 'rightSectionCode' && this.activeName === 'second') {
+ if (selected.lengthFact) {
+ this.addModel.rightOffset = selected.lengthFact;
+ }
this.addModel.rightSectionCode = selected.code;
}
},
@@ -240,6 +277,20 @@ export default {
// 修改对象
edit() {
this.$refs.dataform.edit();
+ },
+ initEditModel() {
+ this.editModel = {
+ code: '',
+ width: 1,
+ leftTerminal: true, // 左端点显示
+ rightTerminal: true,
+ showConditions: '01', // 显示条件
+ points: [],
+ leftSectionCode: '',
+ leftOffset: 0,
+ rightSectionCode: '',
+ rightOffset: 0
+ };
}
}
};
From c660931d925ee008d2decf01bdef614f0fda208b Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Wed, 28 Oct 2020 11:27:17 +0800
Subject: [PATCH 33/97] =?UTF-8?q?=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../menus/dialog/loadSpareTrain.vue | 22 ++++++++++---------
src/jmapNew/theme/haerbin_01/menus/index.vue | 2 +-
.../theme/ningbo_01/menus/menuSection.vue | 10 ++++-----
3 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/src/jmapNew/theme/components/menus/dialog/loadSpareTrain.vue b/src/jmapNew/theme/components/menus/dialog/loadSpareTrain.vue
index a43ac8726..587359339 100644
--- a/src/jmapNew/theme/components/menus/dialog/loadSpareTrain.vue
+++ b/src/jmapNew/theme/components/menus/dialog/loadSpareTrain.vue
@@ -1,7 +1,7 @@
车组号
+ 上下行
-
+
-
-
- 上下行
-
-
-
+
@@ -54,7 +55,7 @@ export default {
NoticeInfo
},
props:{
- systemName:{
+ popClass:{
type:String,
required:true
}
@@ -75,7 +76,8 @@ export default {
},
computed: {
...mapGetters('map', [
- 'mapConfig'
+ 'mapConfig',
+ 'trainList'
]),
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
diff --git a/src/jmapNew/theme/haerbin_01/menus/index.vue b/src/jmapNew/theme/haerbin_01/menus/index.vue
index e89c40d72..6572f98d4 100644
--- a/src/jmapNew/theme/haerbin_01/menus/index.vue
+++ b/src/jmapNew/theme/haerbin_01/menus/index.vue
@@ -1,7 +1,7 @@
@@ -25,6 +26,7 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import TrainAddPlan from '@/jmapNew/theme/components/menus/dialog/trainAddPlan';
+import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
export default {
name: 'SectionMenu',
@@ -35,7 +37,8 @@ export default {
AlxeEffective,
NoticeInfo,
SetFault,
- TrainAddPlan
+ TrainAddPlan,
+ LoadSpareTrain
},
props: {
selected: {
@@ -79,6 +82,11 @@ export default {
label: '取消临时限速',
handler: this.cancelSpeed,
cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED
+ },
+ {
+ label: '加载备用车',
+ handler: this.loadSpare,
+ cmdType: CMD.Section.CMD_TRAIN_LOAD_SPARE_TRAIN
}
]
},
@@ -188,6 +196,13 @@ export default {
}
});
},
+ loadSpare() {
+ commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
+ if (valid) {
+ this.$refs.loadSpareTrain.doShow(operate, this.selected);
+ }
+ });
+ },
// // 设置计轴失效
// alxeFailure() {
// const operate = {
diff --git a/src/jmapNew/theme/chengdu_01/menus/menuSection.vue b/src/jmapNew/theme/chengdu_01/menus/menuSection.vue
index 0dfa44083..4c0a76d35 100644
--- a/src/jmapNew/theme/chengdu_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/chengdu_01/menus/menuSection.vue
@@ -7,6 +7,7 @@
+
@@ -24,6 +25,7 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
+import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
export default {
name: 'SectionMenu',
@@ -34,7 +36,8 @@ export default {
SectionControl,
SectionCmdControl,
SetFault,
- TrainAddPlan
+ TrainAddPlan,
+ LoadSpareTrain
},
props: {
selected: {
@@ -60,6 +63,11 @@ export default {
label: '轨道解封',
handler: this.unlock,
cmdType: CMD.Section.CMD_SECTION_UNBLOCK
+ },
+ {
+ label: '加载备用车',
+ handler: this.loadSpare,
+ cmdType: CMD.Section.CMD_TRAIN_LOAD_SPARE_TRAIN
}
// {
// label: '速度控制',
@@ -214,6 +222,13 @@ export default {
}
});
},
+ loadSpare() {
+ commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
+ if (valid) {
+ this.$refs.loadSpareTrain.doShow(operate, this.selected);
+ }
+ });
+ },
lock() {
const step = {
start: true,
diff --git a/src/jmapNew/theme/chengdu_03/menus/menuSection.vue b/src/jmapNew/theme/chengdu_03/menus/menuSection.vue
index 793c7d90d..548ba2e4b 100644
--- a/src/jmapNew/theme/chengdu_03/menus/menuSection.vue
+++ b/src/jmapNew/theme/chengdu_03/menus/menuSection.vue
@@ -6,6 +6,7 @@
+
@@ -22,6 +23,7 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import { menuOperate, commitOperate } from '@/jmapNew/theme/components/utils/menuOperate';
+import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
export default {
name: 'SectionMenu',
@@ -31,7 +33,8 @@ export default {
SectionDetail,
NoticeInfo,
TrainAddPlan,
- SetFault
+ SetFault,
+ LoadSpareTrain
},
props: {
selected: {
@@ -62,8 +65,12 @@ export default {
label: '属性',
handler: this.detail,
cmdType: CMD.Section.CMD_SECTION_DETAILS
+ },
+ {
+ label: '加载备用车',
+ handler: this.loadSpare,
+ cmdType: CMD.Section.CMD_TRAIN_LOAD_SPARE_TRAIN
}
-
]
},
menuForce: [
@@ -141,6 +148,13 @@ export default {
this.$refs.popMenu.close();
}
},
+ loadSpare() {
+ commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
+ if (valid) {
+ this.$refs.loadSpareTrain.doShow(operate, this.selected);
+ }
+ });
+ },
// 设置计轴失效
alxeFailure() {
const step = {
diff --git a/src/jmapNew/theme/components/menus/dialog/loadSpareTrain.vue b/src/jmapNew/theme/components/menus/dialog/loadSpareTrain.vue
index 587359339..9a6c8e71a 100644
--- a/src/jmapNew/theme/components/menus/dialog/loadSpareTrain.vue
+++ b/src/jmapNew/theme/components/menus/dialog/loadSpareTrain.vue
@@ -16,12 +16,14 @@
-
+
+
+
@@ -89,7 +91,7 @@ export default {
return this.dialogShow ? OperationEvent.Train.editTrainId.menu.domId : '';
},
title() {
- return '设置计划车';
+ return '加载备用车';
},
rightTrueLabel() {
return this.mapConfig.upRight ? '上行' : '下行';
diff --git a/src/jmapNew/theme/foshan_01/menus/menuSection.vue b/src/jmapNew/theme/foshan_01/menus/menuSection.vue
index ead4076d8..8312a6d2d 100644
--- a/src/jmapNew/theme/foshan_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/foshan_01/menus/menuSection.vue
@@ -8,6 +8,7 @@
+
@@ -25,6 +26,7 @@ import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
import AllLineCancelLimit from './dialog/allLineCancelLimit';
+import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
export default {
name: 'SectionMenu',
@@ -36,7 +38,8 @@ export default {
NoticeInfo,
TrainAddPlan,
SetFault,
- AllLineCancelLimit
+ AllLineCancelLimit,
+ LoadSpareTrain
},
props: {
selected: {
@@ -97,6 +100,11 @@ export default {
label: '全线取消限速',
handler: this.cancelSpeed,
cmdType:CMD.LimitControl.CMD_CANCEL_ALL_LIMIT_SPEED
+ },
+ {
+ label: '加载备用车',
+ handler: this.loadSpare,
+ cmdType: CMD.Section.CMD_TRAIN_LOAD_SPARE_TRAIN
}
]
},
@@ -174,6 +182,13 @@ export default {
this.$refs.popMenu.close();
}
},
+ loadSpare() {
+ commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
+ if (valid) {
+ this.$refs.loadSpareTrain.doShow(operate, this.selected);
+ }
+ });
+ },
// 新建计划车(开发专用)
addPlanTrain() {
commitOperate(menuOperate.Train.createPlanTrain, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue
index 669463855..7b6a02460 100644
--- a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue
@@ -7,6 +7,7 @@
+
@@ -25,6 +26,7 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
+import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
export default {
name: 'SectionMenu',
@@ -35,7 +37,8 @@ export default {
SpeedCmdControl,
NoticeInfo,
TrainAddPlan,
- SetFault
+ SetFault,
+ LoadSpareTrain
},
props: {
selected: {
@@ -132,6 +135,11 @@ export default {
label: this.$t('menu.menuSection.sectionCancelSpeedLimit'),
handler: this.cancelSpeed,
cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED
+ },
+ {
+ label: '加载备用车',
+ handler: this.loadSpare,
+ cmdType: CMD.Section.CMD_TRAIN_LOAD_SPARE_TRAIN
}
]
},
@@ -228,6 +236,13 @@ export default {
this.$refs.popMenu.close();
}
},
+ loadSpare() {
+ commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
+ if (valid) {
+ this.$refs.loadSpareTrain.doShow(operate, this.selected);
+ }
+ });
+ },
// 设置故障
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
diff --git a/src/jmapNew/theme/haerbin_01/menus/index.vue b/src/jmapNew/theme/haerbin_01/menus/index.vue
index 6572f98d4..e89c40d72 100644
--- a/src/jmapNew/theme/haerbin_01/menus/index.vue
+++ b/src/jmapNew/theme/haerbin_01/menus/index.vue
@@ -1,7 +1,7 @@
@@ -25,6 +26,7 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
+import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
export default {
name: 'SectionMenu',
@@ -36,7 +38,8 @@ export default {
AlxeEffective,
NoticeInfo,
TrainAddPlan,
- SetFault
+ SetFault,
+ LoadSpareTrain
},
props: {
selected: {
@@ -102,6 +105,11 @@ export default {
label: '取消临时限速',
handler: this.cancelSpeed,
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED
+ },
+ {
+ label: '加载备用车',
+ handler: this.loadSpare,
+ cmdType: CMD.Section.CMD_TRAIN_LOAD_SPARE_TRAIN
}
]
},
@@ -213,6 +221,13 @@ export default {
}
});
},
+ loadSpare() {
+ commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
+ if (valid) {
+ this.$refs.loadSpareTrain.doShow(operate, this.selected);
+ }
+ });
+ },
// 确认计轴有效
alxeEffective() {
commitOperate(menuOperate.Section.alxeEffective, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
diff --git a/src/jmapNew/theme/xian_01/menus/menuSection.vue b/src/jmapNew/theme/xian_01/menus/menuSection.vue
index d423fca7f..df6a06166 100644
--- a/src/jmapNew/theme/xian_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/xian_01/menus/menuSection.vue
@@ -7,6 +7,7 @@
+
@@ -23,6 +24,7 @@ import { mapGetters } from 'vuex';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
+import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
// import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
export default {
@@ -34,7 +36,8 @@ export default {
SpeedCmdControl,
NoticeInfo,
TrainAddPlan,
- SetFault
+ SetFault,
+ LoadSpareTrain
},
props: {
selected: {
@@ -110,6 +113,11 @@ export default {
label: '取消限速',
handler: this.cancelSpeed,
cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED
+ },
+ {
+ label: '加载备用车',
+ handler: this.loadSpare,
+ cmdType: CMD.Section.CMD_TRAIN_LOAD_SPARE_TRAIN
}
]
},
@@ -213,6 +221,13 @@ export default {
}
});
},
+ loadSpare() {
+ commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
+ if (valid) {
+ this.$refs.loadSpareTrain.doShow(operate, this.selected);
+ }
+ });
+ },
// 故障解锁
fault() {
commitOperate(menuOperate.Section.fault, { sectionCode: this.selected.code }, 0).then(({valid, operate})=>{
diff --git a/src/jmapNew/theme/xian_02/menus/menuSection.vue b/src/jmapNew/theme/xian_02/menus/menuSection.vue
index 1fda1839a..f925e7e5b 100644
--- a/src/jmapNew/theme/xian_02/menus/menuSection.vue
+++ b/src/jmapNew/theme/xian_02/menus/menuSection.vue
@@ -7,6 +7,7 @@
+
@@ -23,6 +24,7 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
// import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
+import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
export default {
@@ -34,7 +36,8 @@ export default {
SpeedLimitControl,
NoticeInfo,
TrainAddPlan,
- SetFault
+ SetFault,
+ LoadSpareTrain
},
props: {
selected: {
@@ -114,6 +117,11 @@ export default {
{
label: '帮助',
handler: this.undeveloped
+ },
+ {
+ label: '加载备用车',
+ handler: this.loadSpare,
+ cmdType: CMD.Section.CMD_TRAIN_LOAD_SPARE_TRAIN
}
]
},
@@ -251,6 +259,13 @@ export default {
}
});
},
+ loadSpare() {
+ commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
+ if (valid) {
+ this.$refs.loadSpareTrain.doShow(operate, this.selected);
+ }
+ });
+ },
// 区段封锁
lock() {
commitOperate(menuOperate.Section.lock, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
diff --git a/src/views/competitionManage/bankList/preImport.vue b/src/views/competitionManage/bankList/preImport.vue
index 372d743d4..774d0650b 100644
--- a/src/views/competitionManage/bankList/preImport.vue
+++ b/src/views/competitionManage/bankList/preImport.vue
@@ -82,7 +82,7 @@ export default {
currentPage: 1,
tableData: [],
pageSize: 10,
- companyId: null,
+ companyId: '',
companyList: []
};
},
From d6aa7b0c1d0b39c113c3db69904252c892d27b8d Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Wed, 28 Oct 2020 13:46:20 +0800
Subject: [PATCH 36/97] =?UTF-8?q?=E5=93=88=E5=B0=94=E6=BB=A8=E5=8A=A0?=
=?UTF-8?q?=E8=BD=BD=E5=A4=87=E7=94=A8=E8=BD=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../theme/haerbin_01/menus/menuSection.vue | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/src/jmapNew/theme/haerbin_01/menus/menuSection.vue b/src/jmapNew/theme/haerbin_01/menus/menuSection.vue
index f67947d95..3789bc68e 100644
--- a/src/jmapNew/theme/haerbin_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/haerbin_01/menus/menuSection.vue
@@ -4,6 +4,7 @@
+
@@ -17,6 +18,7 @@ import { mapGetters } from 'vuex';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
+import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain';
export default {
name: 'SectionMenu',
@@ -24,7 +26,8 @@ export default {
PopMenu,
NoticeInfo,
TrainAddPlan,
- SetFault
+ SetFault,
+ LoadSpareTrain
},
props: {
selected: {
@@ -41,6 +44,11 @@ export default {
Local: [
],
Center: [
+ {
+ label: '加载备用车',
+ handler: this.loadSpare,
+ cmdType: CMD.Section.CMD_TRAIN_LOAD_SPARE_TRAIN
+ }
]
},
menuForce: [
@@ -106,6 +114,13 @@ export default {
this.menu = this.menuForce;
}
},
+ loadSpare() {
+ commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
+ if (valid) {
+ this.$refs.loadSpareTrain.doShow(operate, this.selected);
+ }
+ });
+ },
doShow(point) {
this.clickEvent();
this.initMenu();
From 316249fbd6857532e9b0033ad4af5c624b266bf5 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Wed, 28 Oct 2020 13:51:26 +0800
Subject: [PATCH 37/97] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=A4=9A=E4=BD=99?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=B7=AF=E5=BE=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/company.js | 8 +-
src/api/competition.js | 130 +-----
src/api/designPlatform.js | 17 -
src/api/jmap/lessondraft.js | 9 -
src/api/jmap/map.js | 42 --
src/api/jmap/mapdraft.js | 190 --------
src/api/jmap/pathunit.js | 42 --
src/api/jmap/training.js | 108 -----
src/api/jointTraining.js | 211 ---------
src/api/management/author.js | 49 +-
src/api/management/dictionary.js | 5 +-
src/api/management/distribute.js | 88 ----
src/api/management/exam.js | 8 -
src/api/management/goods.js | 85 +---
src/api/management/mapline.js | 25 -
src/api/management/order.js | 42 --
src/api/management/user.js | 42 --
src/api/management/userexam.js | 16 -
src/api/project.js | 9 +-
src/api/questionsRule.js | 15 +-
src/api/race.js | 33 --
src/api/rpTools.js | 78 +---
src/api/runplan.js | 41 +-
src/api/scheduling.js | 48 +-
src/api/script.js | 41 --
src/api/simulation.js | 434 +-----------------
src/api/statistics.js | 88 ----
src/components/Hamburger/index.vue | 24 +-
src/views/competitionManage/setExamTime.vue | 4 +-
src/views/components/PopMenu/index.vue | 240 +++++-----
src/views/components/pay/finish.vue | 90 ++--
src/views/components/progressBar/index.vue | 2 -
src/views/components/quickMenu/index.vue | 331 ++++++-------
src/views/components/systemTime/point.vue | 30 +-
src/views/components/systemTime/separator.vue | 58 +--
src/views/demonstration/deomonTopic/index.vue | 2 +-
src/views/designPlatform/demonList.vue | 6 +-
src/views/error-page/404.vue | 18 +-
.../lessoncategory/edit/chapter/list.vue | 2 +-
.../lesson/trainingRule/detail/index.vue | 1 -
src/views/lesson/trainingRule/list.vue | 6 +-
src/views/login/index.vue | 16 +-
src/views/newMap/displayNew/demonChat.vue | 2 +-
.../displayNew/dispatherContest/sceneList.vue | 2 +-
.../newMap/newDesignUser/mapmanage/create.vue | 3 -
.../newDesignUser/mapmanage/mapImport.vue | 2 +-
.../newDesignUser/mapmanage/publish3d.vue | 3 +-
src/views/orderauthor/rules/index.vue | 2 +-
src/views/planMonitor/editTool/index.vue | 296 +-----------
src/views/planMonitor/editTool/menuBar.vue | 4 -
.../editTool/menus/addSmoothRunTime.vue | 88 ++--
.../planMonitor/editTool/menus/addTask.vue | 1 -
.../editTool/menus/duplicateTrain.vue | 116 ++---
.../editTool/menus/editPlanningTrain.vue | 1 -
.../editTool/menus/editSmoothRunTime.vue | 96 ++--
.../editTool/menus/editStationBetweenTime.vue | 58 +--
.../planMonitor/editTool/menus/lookup.vue | 58 +--
.../editTool/menus/modifyingBeginTime.vue | 62 +--
.../editTool/menus/modifyingRouting.vue | 68 +--
.../menus/parameter/baseParameter.vue | 58 +--
.../editTool/menus/parameter/baseStation.vue | 32 +-
.../editTool/menus/quickLoopsIncrease.vue | 58 +--
.../editTool/menus/quickTaskIncrease.vue | 58 +--
.../editTool/menus/routingSelection.vue | 54 +--
.../editTool/menus/selectDeleteRoute.vue | 58 +--
.../editTool/menus/selectPrintArea.vue | 58 +--
.../menus/updateStationIntervalTime.vue | 128 +++---
.../planMonitor/editToolAUS/tool/index.vue | 1 -
src/views/planSchedule/index.vue | 2 +-
src/views/planSchedule/menuBar.vue | 24 +-
src/views/planSchedule/menuTool.vue | 2 +-
src/views/planSchedule/titleBar.vue | 3 +-
src/views/publish/examRule/draft/rule.vue | 2 +-
src/views/publish/publishMap/index.vue | 3 +-
src/views/publish/publishMap/mapSort.vue | 54 +--
src/views/scriptManage/getAction.vue | 2 +-
src/views/system/cacheControl/index.vue | 140 +++---
.../system/commandDictionary/copyParam.vue | 46 +-
src/views/system/dictionary/edit.vue | 274 +++++------
src/views/system/dictionaryDetail/edit.vue | 282 ++++++------
src/views/system/questionsRuleManage/add.vue | 4 +-
src/views/system/userControl/createUser.vue | 2 +-
src/views/system/userExam/edit.vue | 178 +++----
src/views/system/userTraining/addTraining.vue | 1 -
84 files changed, 1491 insertions(+), 3629 deletions(-)
diff --git a/src/api/company.js b/src/api/company.js
index 1f7b00ea5..b39fcd373 100644
--- a/src/api/company.js
+++ b/src/api/company.js
@@ -22,13 +22,7 @@ export function deleteCompany(id) {
method: 'delete'
});
}
-// /** 根据id查询公司信心 */
-// export function getCompanyById(id) {
-// return request({
-// url: `/api/company/${id}`,
-// method: 'get'
-// });
-// }
+
/** 更新公司信息 */
export function updateCompany(id, data) {
return request({
diff --git a/src/api/competition.js b/src/api/competition.js
index 74a4fffd8..d4733131b 100644
--- a/src/api/competition.js
+++ b/src/api/competition.js
@@ -7,20 +7,7 @@ export function refereeExitSimulation(group) {
method: 'delete'
});
}
-// /** 裁判进入仿真 */
-// export function refereeEnterSimulation(group) {
-// return request({
-// url: `/api/v1/competition/room/${group}/refree`,
-// method: 'post'
-// });
-// }
-// /** 裁判查询竞赛人员的房间列表 */
-// export function refereeGetCompetitionList(id) {
-// return request({
-// url: `/api/v1/competition/${id}/room`,
-// method: 'get'
-// });
-// }
+
/** 参赛者创建演练房间 */
export function participantCreatTrainingRoom(id, data) {
return request({
@@ -30,23 +17,6 @@ export function participantCreatTrainingRoom(id, data) {
});
}
-// // 加载试卷
-// export function loadingPaper(competitionId, data) {
-// return request({
-// url: `/api/v1/competition/${competitionId}/testPaper`,
-// method: 'post',
-// data
-// });
-// }
-// /** 竞赛报名 */
-// export function postSignUp(id, data) {
-// return request({
-// url: `/api/race/${id}/signUp`,
-// method: 'post',
-// data
-// });
-// }
-
/** 查询用户是否已经报名该竞赛 */
export function getIsSignUp(raceId, params = {}) {
return request({
@@ -56,24 +26,6 @@ export function getIsSignUp(raceId, params = {}) {
});
}
-// /** 分页查询竞赛报名人员 */
-// export function getRaceUserList(params) {
-// return request({
-// url: `/api/race/${params.raceId}/raceUser/page`,
-// method: 'get',
-// params
-// });
-// }
-
-// /** 裁判打分 */
-// export function putRefereeScoring(data) {
-// return request({
-// url: `/api/v1/competition/referee/scoring`,
-// method: 'put',
-// data
-// });
-// }
-
/** 提交试卷 */
export function postCompetitionTheory(data) {
return request({
@@ -83,14 +35,6 @@ export function postCompetitionTheory(data) {
});
}
-// /** 查询本竞赛用的实操列表 */
-// export function getCompetitionPractical(competitionId) {
-// return request({
-// url: `/api/v1/competitionPractical/competition/${competitionId}`,
-// method: 'get'
-// });
-// }
-
/** 查询竞赛报名人员详情 */
export function getRaceUserById(raceId) {
return request({
@@ -169,68 +113,6 @@ export function getPracticalCompetitionResult(competitionId) {
});
}
-// /** 回访准备 */
-// export function playBackReady(params) {
-// return request({
-// url: `/api/v1/simulationRecord/playback/ready`,
-// method: 'get',
-// params
-// });
-// }
-
-// /** 设置倍速 */
-// export function setPlaySpeed(params) {
-// return request({
-// url: `/api/v1/simulationRecord/playback/setPlaySpeed`,
-// method: 'get',
-// params
-// });
-// }
-
-// /** 开始播放 */
-// export function startPlaying(params) {
-// return request({
-// url: `/api/v1/simulationRecord/playback/startPlaying`,
-// method: 'get',
-// params
-// });
-// }
-
-// /** 暂停播放 */
-// export function playingPause(params) {
-// return request({
-// url: `/api/v1/simulationRecord/playback/pausePlaying`,
-// method: 'get',
-// params
-// });
-// }
-
-// /** 结束播放 */
-// export function endPlaying(params) {
-// return request({
-// url: `/api/v1/simulationRecord/playback/endPlaying`,
-// method: 'get',
-// params
-// });
-// }
-
-// /** 从暂停中播放 */
-// export function fromPauseToPlay(params) {
-// return request({
-// url: `/api/v1/simulationRecord/playback/playing`,
-// method: 'get',
-// params
-// });
-// }
-
-// /** 裁判查询理论考试结果 */
-// export function getTheroyCompetitionResult(competitionId, raceUserId) {
-// return request({
-// url: `api/v1/competitionTheory/detail/competition/${competitionId}/raceUser/${raceUserId}`,
-// method: 'get'
-// });
-// }
-
// 以下drts项目使用
/** 项目获取试题列表 */
@@ -360,16 +242,6 @@ export function getEmptyOperationalStatistics(group) {
});
}
-// /** 草稿场景数据导入*/
-// export function postSceneImport(scriptId, data) {
-// return request({
-// url: `/api/v1/competitionPractical/${scriptId}/import`,
-// method: 'post',
-// data: data,
-// time: 60000
-// });
-// }
-
/** 草稿场景数据导出 */
export function getSceneExport(id) {
return request({
diff --git a/src/api/designPlatform.js b/src/api/designPlatform.js
index 69207233b..985d6a6e8 100644
--- a/src/api/designPlatform.js
+++ b/src/api/designPlatform.js
@@ -138,14 +138,6 @@ export function previewRunPlan(planId) {
});
}
-// /** 加载剧本 */
-// export function loadDraftScript(scriptId, memberId, group) {
-// return request({
-// url: `/api/simulation/${group}/scriptDraft/${scriptId}?memberId=${memberId}`,
-// method: 'post'
-// });
-// }
-
/** 剧本预览选择角色 */
export function loadDraftScriptNew(memberId, group) {
return request({
@@ -153,12 +145,3 @@ export function loadDraftScriptNew(memberId, group) {
method: 'put'
});
}
-
-// /** 剧本预览选择角色 */
-// export function loadDraftScriptNewMode(memberId, group, mode) {
-// return request({
-// url: `/api/scriptSimulation/${group}/chooseMemberAndStart?memberId=${memberId}&mode=${mode}`,
-// method: 'put'
-// });
-// }
-
diff --git a/src/api/jmap/lessondraft.js b/src/api/jmap/lessondraft.js
index 22703fccb..e1a1475ec 100644
--- a/src/api/jmap/lessondraft.js
+++ b/src/api/jmap/lessondraft.js
@@ -85,15 +85,6 @@ export function getLessonChapterDetail(data) {
});
}
-// /** 发布课程*/
-// export function publishLesson(data) {
-// return request({
-// url: `/api/lessonDraft/${data.id}/publish`,
-// method: 'post',
-// data: data
-// });
-// }
-
/** 课程章节拖拽排序*/
export function dragSortLessonChapter(data) {
return request({
diff --git a/src/api/jmap/map.js b/src/api/jmap/map.js
index dfc52e5bc..9acfc87ba 100644
--- a/src/api/jmap/map.js
+++ b/src/api/jmap/map.js
@@ -16,14 +16,6 @@ export function getPublishMapListOnline() {
});
}
-// /** 根据皮肤获取发布地图列表*/
-// export function getPublishMapListByLineCode(lineCode) {
-// return request({
-// url: `/api/map/${lineCode}/list`,
-// method: 'get'
-// });
-// }
-
/** 根据地图id获取地图版本信息*/
export function getPublishMapVersionById(id) {
return request({
@@ -107,15 +99,6 @@ export function putMapOffLine(mapId) {
});
}
-// /** 修改发布地图名称*/
-// export function updatePublishMapName(data) {
-// return request({
-// url: `/api/map/${data.mapId}/updateName`,
-// method: 'put',
-// data: data
-// });
-// }
-
// 检测地图名称唯一性
export function checkMapName(name) {
return request({
@@ -133,23 +116,6 @@ export function getPublishMapDetailList(params, code) {
});
}
-// /** 获取有屏蔽门的站台列表*/
-// export function hasDoorStationList(mapId) {
-// return request({
-// url: `/api/map/${mapId}/stand/hasDoor`,
-// method: 'get'
-// });
-// }
-
-// /** 修改发布地图城市*/
-// export function updatePublishMapCity(data) {
-// return request({
-// url: `/api/map/${data.mapId}/city`,
-// method: 'put',
-// data: data
-// });
-// }
-
// 修改地图基本信息
export function updatePublishMapInfo(data) {
return request({
@@ -263,14 +229,6 @@ export function publisMapCityList(data) {
});
}
-// // 获取所有需要值班员的车站(新版)
-// export function getAvailableStaionList(mapId) {
-// return request({
-// url: `/api/map/${mapId}/station/needSupervisor`,
-// method: 'get'
-// });
-// }
-
/** 新版地图根据仿真mapId获取仿真地图数据 */
export function getNewMapDataByMapId(mapId) {
return request({
diff --git a/src/api/jmap/mapdraft.js b/src/api/jmap/mapdraft.js
index 96e720eb1..0332b4ef4 100644
--- a/src/api/jmap/mapdraft.js
+++ b/src/api/jmap/mapdraft.js
@@ -60,15 +60,6 @@ export function saveMap(data) {
});
}
-// 保存新草稿地图
-// export function saveNewMap(data) {
-// return request({
-// url: `/api/mapBuild/${data.mapId}/saveNewElements`,
-// method: 'post',
-// data: data
-// });
-// }
-
/** 草稿地图另存为*/
export function saveAsMap(data) {
return request({
@@ -124,78 +115,6 @@ export function getBuildMapExport(mapId) {
});
}
-// /** 查询进路列表*/
-// export function listRouteRoute(mapId, params) {
-// return request({
-// url: `/api/mapBuild/${mapId}/route`,
-// method: 'get',
-// params: params
-// });
-// }
-// /** 查询进路地图列表*/
-// export function listRouteMapRoute(mapId) {
-// return request({
-// url: `/api/mapBuild/${mapId}/route/all`,
-// method: 'get'
-// });
-// }
-// /** 查询进路明细*/
-// export function queryRouteRouteDetail(data) {
-// return request({
-// url: `/api/mapBuild/route/${data.id}`,
-// method: 'get'
-// });
-// }
-// /** 创建进路*/
-// export function createRouteRoute(data) {
-// return request({
-// url: `/api/mapBuild/route`,
-// method: 'post',
-// data: data
-// });
-// }
-// /** 删除进路*/
-// export function deleteRouteRoute(id) {
-// return request({
-// url: `/api/mapBuild/route/${id}`,
-// method: 'delete'
-// });
-// }
-// /** 更新进路*/
-// export function updateRouteRoute(data) {
-// return request({
-// url: `/api/mapBuild/route/${data.id}`,
-// method: 'put',
-// data: data
-// });
-// }
-
-// /** 创建联动道岔*/
-// export function createLinkageSwitch(data) {
-// return request({
-// url: `/api/mapBuild/switchCoupled`,
-// method: 'post',
-// data: data
-// });
-// }
-
-// /** 删除联动道岔*/
-// export function deleteLinkageSwitch(coupleId) {
-// return request({
-// url: `/api/mapBuild/switchCoupled/${coupleId}`,
-// method: 'delete'
-// });
-// }
-
-// /** get联动道岔列表*/
-// export function listLinkageSwitch(mapId, params) {
-// return request({
-// url: `/api/mapBuild/${mapId}/switchCoupled`,
-// method: 'get',
-// params: params
-// });
-// }
-
/** 草稿地图数据校验*/
export function verifyMap(id) {
return request({
@@ -204,49 +123,6 @@ export function verifyMap(id) {
});
}
-// /** 分页查询交路数据*/
-// export function listRouting(mapId, params) {
-// return request({
-// url: `/api/mapBuild/${mapId}/routing`,
-// method: 'get',
-// params: params
-// });
-// }
-
-// /** 创建交路*/
-// export function addRouting(data) {
-// return request({
-// url: `/api/mapBuild/routing`,
-// method: 'post',
-// data: data
-// });
-// }
-
-// /** 删除交路*/
-// export function deleteRouting(routingId) {
-// return request({
-// url: `/api/mapBuild/routing/${routingId}`,
-// method: 'delete'
-// });
-// }
-
-// /** 获取交路详情*/
-// export function getRouting(routingId) {
-// return request({
-// url: `/api/mapBuild/routing/${routingId}`,
-// method: 'get'
-// });
-// }
-
-// /** 更新交路*/
-// export function updateRouting(data) {
-// return request({
-// url: `/api/mapBuild/routing/${data.id}`,
-// method: 'put',
-// data: data
-// });
-// }
-
/** 分页查询交路数据(新版)*/
export function listRoutingData(mapId, params) {
return request({
@@ -307,49 +183,6 @@ export function generateStationRunData(routingId) {
});
}
-// // 创建自动信号 old(旧数据)
-// export function postAutoSignal(data) {
-// return request({
-// url: `/api/mapBuild/autoSignal`,
-// method: 'post',
-// data: data
-// });
-// }
-
-// // 删除自动信号 old(旧数据)
-// export function delAutoSignal(autoSignalId) {
-// return request({
-// url: `/api/mapBuild/autoSignal/${autoSignalId}`,
-// method: 'delete'
-// });
-// }
-
-// // 分页获取自动信号列表 old(旧数据)
-// export function getAutoSignalList(mapId, params) {
-// return request({
-// url: `/api/mapBuild/${mapId}/autoSignal`,
-// method: 'get',
-// params
-// });
-// }
-
-// // 获取自动信号详情 old(旧数据)
-// export function getAutoSignalDetail(autoSignalId) {
-// return request({
-// url: `/api/mapBuild/autoSignal/${autoSignalId}`,
-// method: 'get'
-// });
-// }
-
-// // 更新自动信号 old(旧数据)
-// export function putAutoSignal(data) {
-// return request({
-// url: `/api/mapBuild/autoSignal/${data.autoSignalId}`,
-// method: 'put',
-// data: data
-// });
-// }
-
// 分页获取自动信号列表 new(新数据)
export function getAutoSignalListNew(mapId, params) {
return request({
@@ -392,14 +225,6 @@ export function putAutoSignalNew(data) {
data: data
});
}
-
-// export function getListByCityCode(cityCode) {
-// return request({
-// url: `/api/mapBuild/${cityCode}/list`,
-// method: 'get'
-// });
-// }
-
// 创建信号机接近区段
export function postApproachSection(data) {
return request({
@@ -464,12 +289,6 @@ export function delContinueProtect(id) {
method: 'delete'
});
}
-// export function getContinueProtectById(id) {
-// return request({
-// url: `/api/mapBuild/overlap/${id}`,
-// method: 'get'
-// });
-// }
export function getContinueProtectList(mapId, params) {
return request({
url: `/api/mapBuild/${mapId}/overlap/paging`,
@@ -545,15 +364,6 @@ export function getRouteNewList(mapId, params) {
params
});
}
-// // 获取自动折返分组列表
-// export function getAutoReentryGroupList(mapId, params) {
-// return request({
-// url: `/api/mapBuild/${mapId}/autoReentry/group/reentryTrack`,
-// method: 'get',
-// params
-// });
-// }
-
// 新建进路侧防
export function postFlankProtection(data) {
return request({
diff --git a/src/api/jmap/pathunit.js b/src/api/jmap/pathunit.js
index 0fcad2fbc..c5bc487f2 100644
--- a/src/api/jmap/pathunit.js
+++ b/src/api/jmap/pathunit.js
@@ -1,44 +1,2 @@
// import request from '@/utils/request';
-// /** 获取路径单元列表*/
-// export function getRouteUnitList(id, data) {
-// return request({
-// url: `/api/mapBuild/${id}/routeUnit`,
-// method: 'get',
-// params: data
-// });
-// }
-
-// /** 创建路径单元*/
-// export function addRouteUnit(data) {
-// return request({
-// url: `/api/mapBuild/routeUnit`,
-// method: 'post',
-// data: data
-// });
-// }
-
-// /** 删除路径单元*/
-// export function delRouteUnit(id) {
-// return request({
-// url: `/api/mapBuild/routeUnit/${id}`,
-// method: 'DELETE'
-// });
-// }
-
-// /** 获取路径单元*/
-// export function getRouteUnit(id) {
-// return request({
-// url: `/api/mapBuild/routeUnit/${id}`,
-// method: 'get'
-// });
-// }
-
-// /** 更新路径单元*/
-// export function setRouteUnit(data) {
-// return request({
-// url: `/api/mapBuild/routeUnit/${data.id}`,
-// method: 'put',
-// data: data
-// });
-// }
diff --git a/src/api/jmap/training.js b/src/api/jmap/training.js
index ef1223a03..280a8c200 100644
--- a/src/api/jmap/training.js
+++ b/src/api/jmap/training.js
@@ -1,29 +1,5 @@
import request from '@/utils/request';
-// /** 开始实训 0*/
-// export function startTraining(args, group) {
-// return request({
-// url: `/api/training/${args.id}/start`,
-// method: 'get',
-// params: {
-// group
-// }
-// });
-// }
-
-// /** 实训结束*/
-// export function endTraining(args, group) {
-// return request({
-// url: `/api/training/${args.lessonId}/${args.id}/end`,
-// method: 'get',
-// params: {
-// mode: args.mode,
-// usedTime: args.usedTime,
-// group
-// }
-// });
-// }
-
/** 发送步骤数据*/
export function sendTrainingNextStep(data, group) {
return request({
@@ -35,32 +11,6 @@ export function sendTrainingNextStep(data, group) {
}
});
}
-// /** 获取章节基本信息 0*/
-// export function getTrainingDetail(trainingId) {
-// return request({
-// url: `/api/training/${trainingId}`,
-// method: 'get'
-// });
-// }
-
-// /** 添加实训 0*/
-// export function addTraining(data) {
-// return request({
-// url: '/api/training',
-// method: 'post',
-// data: data
-// });
-// }
-
-// /** 获取实训步骤数据 0*/
-// export function getTrainingStepsDetail(trainingId, params) {
-// return request({
-// url: `/api/training/${trainingId}/detail`,
-// method: 'get',
-// params: params
-// });
-// }
-
/** 查询实训列表 0*/
export function pageQueryTraining(params) {
return request({
@@ -69,41 +19,6 @@ export function pageQueryTraining(params) {
params: params
});
}
-// /** 自动生成实训操作 0*/
-// export function addAutoTraining(data) {
-// return request({
-// url: `/api/training/generate`,
-// method: 'post',
-// data: data
-// });
-// }
-
-// /** 修改自动删除实训操作 0*/
-// export function updateAutoTraining(data) {
-// return request({
-// url: `/api/training/batchUpdateGenerate`,
-// method: 'put',
-// data: data
-// });
-// }
-// /** 删除自动生成实训 0*/
-// export function deleteAutoTraining(params) {
-// return request({
-// url: `/api/training/generate`,
-// method: 'delete',
-// params: params
-// });
-// }
-
-// /** 获取用户实训列表 0*/
-// export function getTrainingList(data) {
-// return request({
-// url: `/api/training/list`,
-// method: 'get',
-// params: data
-// });
-// }
-
export function sendCommand(group, command) {
return request({
url: `/api/training/deviceChange?group=${group}`,
@@ -125,29 +40,6 @@ export function sendCommandNew(group, commandDefinitionId, command) {
data: command
});
}
-// // 添加用户实训数据 0
-// export function addUserTraining(data) {
-// return request({
-// url: `/api/training/userTraining`,
-// method: 'post',
-// data: data
-// });
-// }
-// // 更新用户实训数据 0
-// export function putUserTraining(data) {
-// return request({
-// url: `/api/training/userTraining/${data.id}`,
-// method: 'put',
-// data: data
-// });
-// }
-// // 清除实训数据 0
-// export function deleteUserTraining(statsId) {
-// return request({
-// url: `/api/training/userTraining/${statsId}`,
-// method: 'delete'
-// });
-// }
/** 开始实训 (新版地图) */
export function startTrainingNew (args, group) {
diff --git a/src/api/jointTraining.js b/src/api/jointTraining.js
index 722c3acc0..ebd203cff 100644
--- a/src/api/jointTraining.js
+++ b/src/api/jointTraining.js
@@ -1,34 +1,5 @@
import request from '@/utils/request';
-// // 文字聊天 发送文字
-// export function chatWithTextNew(data, group) {
-// return request({
-// url: `/api/v1/jointTraining/chatWithText?group=${group}`,
-// method: 'post',
-// data: {
-// message: data
-// }
-// });
-// }
-
-// // 生成分发二维码
-// export function getJoinTrainCodeNew(data, group) {
-// return request({
-// url: `/api/v1/jointTraining/qrCode?group=${group}`,
-// method: 'post',
-// data: data
-// });
-// }
-
-// // 创建房间
-// export function postCreateRoomNew(data) {
-// return request({
-// url: `/api/v1/jointTraining/room`,
-// method: 'post',
-// data: data
-// });
-// }
-
// 检查房间存在
export function checkRoomExistNew(params) {
return request({
@@ -38,45 +9,6 @@ export function checkRoomExistNew(params) {
});
}
-// // 获取房间详情
-// export function postRoomDetailNew(group) {
-// return request({
-// url: `/api/v1/jointTraining/room/${group}`,
-// method: 'get'
-// });
-// }
-
-// // 销毁房间
-// export function deljointTrainRoomNew(group) {
-// return request({
-// url: `/api/v1/jointTraining/room`,
-// method: 'delete',
-// params: {
-// group: group
-// }
-// });
-// }
-
-// // 查询有权限房间列表
-// export function getjointTrainListNew(params) {
-// return request({
-// url: `/api/v1/jointTraining/room/list`,
-// method: 'get',
-// params: params
-// });
-// }
-
-// // 加入房间
-// export function getjointTrainingNew(group) {
-// return request({
-// url: `/api/v1/jointTraining/room/join`,
-// method: 'put',
-// params: {
-// group: group
-// }
-// });
-// }
-
// 设置人员角色
export function putUserRolesNew(data, group) {
return request({
@@ -86,70 +18,6 @@ export function putUserRolesNew(data, group) {
});
}
-// // 获取房间里的用户列表
-// export function getJointTrainRoomUserListNew(group) {
-// return request({
-// url: `/api/v1/jointTraining/room/${group}/user/list`,
-// method: 'get'
-// });
-// }
-
-// // 离开房间接口
-// export function putJointTrainingExitNew(group) {
-// return request({
-// url: `/api/v1/jointTraining/room/exit`,
-// method: 'put',
-// params: {
-// group: group
-// }
-// });
-// }
-
-// // 开始联合演练
-// export function startJointTrainingNew(group) {
-// return request({
-// url: `/api/v1/jointTraining/room/simulation`,
-// method: 'post',
-// params: {
-// group: group
-// }
-// });
-// }
-
-// // 获取个人信息
-// export function getUserRolesNew(group) {
-// return request({
-// url: `/api/v1/jointTraining/room/user/role`,
-// method: 'get',
-// params: {
-// group: group
-// }
-// });
-// }
-
-// // 踢出用户
-// export function putJointTrainingUserkickedNew(userId, group) {
-// return request({
-// url: `/api/v1/jointTraining/room/user`,
-// method: 'put',
-// params: {
-// userId: userId,
-// group: group
-// }
-// });
-// }
-
-// // 管理员结束所有人的仿真
-// export function putJointTrainingSimulationNew(group) {
-// return request({
-// url: `/api/v1/jointTraining/room/simulation/all`,
-// method: 'put',
-// params: {
-// group: group
-// }
-// });
-// }
-
// 结束仿真返回房间
export function putJointTrainingSimulationUserNew(group) {
return request({
@@ -160,82 +28,3 @@ export function putJointTrainingSimulationUserNew(group) {
}
});
}
-
-// // 进入仿真
-// export function putJointTrainingSimulationEntranceNew(group) {
-// return request({
-// url: `/api/v1/jointTraining/room/simulation/user/entrance`,
-// method: 'put',
-// params: {
-// group: group
-// }
-// });
-// }
-
-// /**
-// * 权限获取(房间权限)
-// */
-// export function getPermissionJointNew(group) {
-// return request({
-// url: '/api/v1/jointTraining/qrCode',
-// method: 'get',
-// params: {
-// group: group
-// }
-// });
-// }
-
-// // 添加或更新真实设备和仿真对象连接
-// export function setRealDeviceNew(group, data) {
-// return request({
-// url: `/api/v1/jointTraining/room/realDevice?group=${group}`,
-// method: 'post',
-// data: data
-// });
-// }
-
-// // 删除真实设备和仿真对象连接
-// export function delRealDeviceNew(id, group) {
-// return request({
-// url: `/api/v1/jointTraining/room/realDevice/${id}`,
-// method: 'delete',
-// params: { group: group }
-// });
-// }
-
-// // 获取真实设备列表
-// export function getRealDevicesNew(group) {
-// return request({
-// url: `/api/v1/jointTraining/room/${group}/devices`,
-// method: 'get'
-// });
-// }
-
-// // 获取房间真实设备连接关系
-// export function getRealDevicesInRoomNew(group) {
-// return request({
-// url: `/api/v1/jointTraining/room/${group}/realDevice/connect`,
-// method: 'get'
-// });
-// }
-
-// // 更新真实设备的连接关系
-// export function updateRealDevicesNew(group, data) {
-// return request({
-// url: `/api/v1/jointTraining/room/${group}/realDevice`,
-// method: 'put',
-// data: data
-// });
-// }
-
-// // 真实设备是否被其他仿真使用
-// export function realDeviceIsUsedNew(group, projectCode) {
-// return request({
-// url: `/api/v1/jointTraining/room/${group}/realDeviceUsed`,
-// method: 'get',
-// params: {
-// projectCode: projectCode
-// }
-// });
-// }
-
diff --git a/src/api/management/author.js b/src/api/management/author.js
index b72d7bad4..e580cf508 100644
--- a/src/api/management/author.js
+++ b/src/api/management/author.js
@@ -10,15 +10,6 @@ export function getLessonPermissonPageList(params) {
});
}
-// /** 创建课程权限*/
-// export function createLessonPermisson(data) {
-// return request({
-// url: '/api/permission',
-// method: 'post',
-// data: data
-// });
-// }
-
/** 获取权限详情*/
export function getPermissonDetail(id) {
return request({
@@ -44,14 +35,6 @@ export function postPermissonList(mapId) {
});
}
-// /** 获取用户某课程某段时间内可用的权限数量*/
-// export function getTotalRemains(params) {
-// return request({
-// url: '/api/userPermission/totalRemains',
-// method: 'get',
-// params: params
-// });
-// }
/** 设置权限失效或有效*/
export function setLessonPermisson(data) {
return request({
@@ -61,25 +44,7 @@ export function setLessonPermisson(data) {
});
}
-// /** 设置权限失效或有效*/
-// export function getPermissionList(id) {
-// return request({
-// url: `/api/permission/${id}`,
-// method: 'get'
-// });
-// }
-
-// /** 获取大屏权限列表*/
-// export function queryPermissionScreen() {
-// return request({
-// url: `/api/userPermission/bigScreen`,
-// method: 'get'
-// });
-// }
-
-/**
- * 用户权限列表
- */
+/** 用户权限列表*/
export function listPermision(params) {
return request({
url: `/api/userPermission`,
@@ -88,9 +53,7 @@ export function listPermision(params) {
});
}
-/**
- * 个人权限列表
- */
+/** 个人权限列表*/
export function listUserPermision(params) {
return request({
url: `/api/userPermission/my`,
@@ -99,14 +62,6 @@ export function listUserPermision(params) {
});
}
-// /** 用户权限列表 */
-// export function getDistribute(id) {
-// return request({
-// url: `/api/distribute/${id}`,
-// method: 'get'
-// });
-// }
-
/** 设置权限所有者 */
export function putPermissionOwner(data) {
return request({
diff --git a/src/api/management/dictionary.js b/src/api/management/dictionary.js
index ea2446efd..f1d4b1d0c 100644
--- a/src/api/management/dictionary.js
+++ b/src/api/management/dictionary.js
@@ -48,10 +48,7 @@ export function update(data) {
});
}
-/**
- * 根据字典code获取明细列表
- * @param {*} code
- */
+/** 根据字典code获取明细列表*/
export function getDetailList(code) {
return request({
url: '/api/dictionary/getDetailListByCode',
diff --git a/src/api/management/distribute.js b/src/api/management/distribute.js
index 1a5eb170f..97c19a813 100644
--- a/src/api/management/distribute.js
+++ b/src/api/management/distribute.js
@@ -1,32 +1,5 @@
import request from '@/utils/request';
-// /** 权限转增*/
-// export function getLessons(data) {
-// return request({
-// url: '/api/distribute/getLessons',
-// method: 'get',
-// data: data
-// });
-// }
-
-// /** 权限分发*/
-// export function giveLessons(data) {
-// return request({
-// url: '/api/distribute/distribute',
-// method: 'post',
-// data: data
-// });
-// }
-
-// /** 权限转增*/
-// export function permissionTurnAdd(data) {
-// return request({
-// url: '/api/distribute/transfer',
-// method: 'post',
-// data: data
-// });
-// }
-
/** 权限获取*/
export function getPermission(state) {
return request({
@@ -35,24 +8,6 @@ export function getPermission(state) {
});
}
-// /** 接收课程权限*/
-// export function receiveLessons(data) {
-// return request({
-// url: '/api/distribute/receiveLessons',
-// method: 'get',
-// data: data
-// });
-// }
-
-// /** 考试权限分发*/
-// export function giveExams(data) {
-// return request({
-// url: `/api/distribute/giveExams`,
-// method: 'post',
-// data: data
-// });
-// }
-
/** 权限打包分页查询*/
export function listPackagePermission(params) {
return request({
@@ -62,15 +17,6 @@ export function listPackagePermission(params) {
});
}
-// /** 打包权限*/
-// export function packagePermissionDistribute(data) {
-// return request({
-// url: `/api/distribute/givePermission/package`,
-// method: 'post',
-// data: data
-// });
-// }
-
/** 权限回收*/
export function restorePackagePermission(id) {
return request({
@@ -97,32 +43,6 @@ export function getPermissionPackageDetail(id, params) {
});
}
-// /** 权限分发打包*/
-// export function permissionDistributePackage(data) {
-// return request({
-// url: `/api/distribute/package`,
-// method: 'post',
-// data: data
-// });
-// }
-
-// /** 权限分发解包*/
-// export function permissionDistributeUnPackage(permissionId) {
-// return request({
-// url: `/api/distribute/${permissionId}/unPackage`,
-// method: 'delete'
-// });
-// }
-
-// /** 查询可打包的权限分发*/
-// export function listCanPackagePermission(params) {
-// return request({
-// url: `/api/distribute/package`,
-// method: 'get',
-// params: params
-// });
-// }
-
// 设置权限分发列表 权限失效
export function setCommodityStatus(id) {
return request({
@@ -148,11 +68,3 @@ export function givePermission(data) {
data: data
});
}
-
-// /** 查询权限分发领取用户列表 */
-// export function distributeUsers(distributeId) {
-// return request({
-// url: `/api/distribute/${distributeId}/distributeUsers`,
-// method: 'get'
-// });
-// }
diff --git a/src/api/management/exam.js b/src/api/management/exam.js
index 9a46c9802..88e2b9b4f 100644
--- a/src/api/management/exam.js
+++ b/src/api/management/exam.js
@@ -93,11 +93,3 @@ export function updateExamRules(data) {
data: data
});
}
-
-// /** 根据课程ID获取试卷 */
-// export function getExamParperList(lessonId) {
-// return request({
-// url: `/api/exam/${lessonId}/list`,
-// method: 'get'
-// });
-// }
diff --git a/src/api/management/goods.js b/src/api/management/goods.js
index 9aa33a1f1..aeb3d25a4 100644
--- a/src/api/management/goods.js
+++ b/src/api/management/goods.js
@@ -9,9 +9,7 @@ export function getCommodityDetailByParams(data) {
});
}
-/**
- * 获取商品明细列表
- */
+/** 获取商品明细列表*/
export function getCommodityList(params) {
return request({
url: '/api/goods',
@@ -20,20 +18,7 @@ export function getCommodityList(params) {
});
}
-// /**
-// * 保存商品明细列表
-// */
-// export function saveCommodityList(params) {
-// return request({
-// url: '/api/goods',
-// method: 'post',
-// data: params
-// });
-// }
-
-/**
- * 删除商品明细
- */
+/** 删除商品明细*/
export function delCommodity(id) {
return request({
url: `/api/goods/${id}`,
@@ -41,29 +26,7 @@ export function delCommodity(id) {
});
}
-// /**
-// * 获取商品地图,产品,课程列表
-// */
-// export function getMapLesson() {
-// return request({
-// url: `/api/goods/tree`,
-// method: 'get'
-// });
-// }
-
-// /**
-// * 获取商品地图,产品,课程列表
-// */
-// export function getCommodityDetailById(id) {
-// return request({
-// url: `/api/goods/${id}`,
-// method: 'get'
-// });
-// }
-
-/**
- * 获取商品地图,产品,课程列表
- */
+/** 获取商品地图,产品,课程列表*/
export function updataCommodityList(data) {
return request({
url: `/api/goods/${data.id}`,
@@ -72,9 +35,7 @@ export function updataCommodityList(data) {
});
}
-/**
- * 设置失效或有效切换
- */
+/** 设置失效或有效切换*/
export function setCommodityStatus(id) {
return request({
url: `/api/goods/${id}/status`,
@@ -110,44 +71,6 @@ export function getGoodsList() {
});
}
-// // 根据权限id查询商品
-// export function getGoodsByPermissionId(id) {
-// return request({
-// url: `/api/goods/permissionId`,
-// method: 'get',
-// params: {
-// permissionId: id
-// }
-// });
-// }
-
-// // 创建商品
-// export function postsPermissionGoods(data) {
-// return request({
-// // url: `/api/goods`,
-// url: `/api/goods/create/list`,
-// method: 'post',
-// data: data
-// });
-// }
-
-// // 创建万能权限商品
-// export function postPermissionIdsGoods(data) {
-// return request({
-// url: `/api/goods/permissionIds`,
-// method: 'post',
-// data: data
-// });
-// }
-
-// // 创建万能权限商品
-// export function postCreatePackage(data) {
-// return request({
-// url: `/api/goods/create/package`,
-// method: 'post',
-// data: data
-// });
-// }
// 获取订单对应的商品列表
export function getGoodsListByOrderId(id) {
return request({
diff --git a/src/api/management/mapline.js b/src/api/management/mapline.js
index e29d8b4ba..f3b2acc6d 100644
--- a/src/api/management/mapline.js
+++ b/src/api/management/mapline.js
@@ -26,14 +26,6 @@ export function delSkinCode(id) {
});
}
-// /** 根据id查询真实线路 */
-// export function querySkinCode(id) {
-// return request({
-// url: `/api/realLine/${id}`,
-// method: 'get'
-// });
-// }
-
/** 修改真实线路*/
export function updateSkinCode(data) {
return request({
@@ -60,23 +52,6 @@ export function putRealLineConfig(id, data) {
});
}
-// /** 通过皮肤Code更新地图皮肤*/
-// export function updateSkinCodeByCode(data) {
-// return request({
-// url: `/api/realLine/${data.code}/update`,
-// method: 'put',
-// data: data
-// });
-// }
-
-// /** 检查code是否存在*/
-// export function querySkinCodeExistByCode(code) {
-// return request({
-// url: `/api/realLine/${code}/exist`,
-// method: 'get'
-// });
-// }
-
/** 获取真实线路列表*/
export function getLineCodeList() {
return request({
diff --git a/src/api/management/order.js b/src/api/management/order.js
index 54fcb9e33..519a15197 100644
--- a/src/api/management/order.js
+++ b/src/api/management/order.js
@@ -10,15 +10,6 @@ export function getOrderPageList(params) {
});
}
-// /** 根据ID获取订单数据*/
-// export function getOrderDetail(id, params) {
-// return request({
-// url: `/api/order/${id}`,
-// method: 'get',
-// params: params
-// });
-// }
-
/** 创建一个订单*/
export function createOrder(data) {
return request({
@@ -37,31 +28,6 @@ export function updateOrder(data) {
});
}
-// export function deleteOrder(id) {
-// return request({
-// url: `/api/order/${id}`,
-// method: 'delete'
-// });
-// }
-
-// /** 订单权限领取*/
-// export function getOrder(params) {
-// return request({
-// url: '/api/order/getOrder',
-// method: 'get',
-// params: params
-// });
-// }
-
-// /** 订单权限分发*/
-// export function giveOrder(data) {
-// return request({
-// url: '/api/order/giveOrder',
-// method: 'post',
-// data: data
-// });
-// }
-
/** 订单续费*/
export function getOrderCharge(id) {
return request({
@@ -104,14 +70,6 @@ export function cancalOrder(orderId) {
});
}
-// // 万能权限查询权限包商品
-// export function postFindPermission(ids) {
-// return request({
-// url: `/api/goods/permissionIds?ids=${ids}`,
-// method: 'get'
-// });
-// }
-
// 获取订单的分发二维码
export function getDistributeFromOrder(orderCode) {
return request({
diff --git a/src/api/management/user.js b/src/api/management/user.js
index 1534adfd4..910e2113f 100644
--- a/src/api/management/user.js
+++ b/src/api/management/user.js
@@ -1,29 +1,4 @@
import request from '@/utils/request';
-// /** 注册用户*/
-// export function createUserInfo(data) {
-// return request({
-// url: '/api/userinfo/create',
-// method: 'put',
-// data: data
-// });
-// }
-// /** 根据用户Id获取用户信息*/
-// export function getUserInfoByOpenId(params) {
-// return request({
-// url: '/api/userinfo/getByOpenId',
-// method: 'get',
-// params: params
-// });
-// }
-
-// /** 根据姓名或者手机号查询用户*/
-// export function getUserInfoByNameOrMobile(params) {
-// return request({
-// url: '/api/userinfo/nameOrMobile',
-// method: 'get',
-// params: params
-// });
-// }
/** 查询用户参数*/
export function getUserConfigInfo() {
@@ -33,15 +8,6 @@ export function getUserConfigInfo() {
});
}
-// /** 设置用户参数*/
-// export function setUserConfigInfo(data) {
-// return request({
-// url: '/api/user/config',
-// method: 'post',
-// data: data
-// });
-// }
-
/** 获取销售列表*/
export function getSellerList() {
return request({
@@ -211,14 +177,6 @@ export function exportStudentResults(projectCode, data) {
data: data
});
}
-// // 生成绑定微信二维码
-// export function getWxQrCode(params) {
-// return request({
-// url: `/api/user/wmurl`,
-// method: 'get',
-// params: params
-// });
-// }
// 获取微信小程序绑定二维码
export function getBindWxQrCodeUrl() {
diff --git a/src/api/management/userexam.js b/src/api/management/userexam.js
index ebf216b2e..584a2745d 100644
--- a/src/api/management/userexam.js
+++ b/src/api/management/userexam.js
@@ -51,22 +51,6 @@ export function delPublishExam(id) {
});
}
-// /** 删除用户实训*/
-// export function delTrainingList() {
-// return request({
-// url: `/api/userExam/list`,
-// method: 'delet'
-// });
-// }
-
-// /** 设置试卷失效 */
-// export function setExamGive(id) {
-// return request({
-// url: `/api/userExam/${id}/abandon`,
-// method: 'put'
-// });
-// }
-
export function updateExam(data) {
return request({
url: `/api/userExam/${data.id}`,
diff --git a/src/api/project.js b/src/api/project.js
index 0f13cf684..480992756 100644
--- a/src/api/project.js
+++ b/src/api/project.js
@@ -85,14 +85,7 @@ export function setPscConfig(id, data) {
data: data
});
}
-// /** 查询项目下的所有设备 */
-// export function getAllDeviceInProject(params) {
-// return request({
-// url: `/api/project/device/project`,
-// method: 'get',
-// params
-// });
-// }
+
/** 添加/修改ibp设备配置 */
export function setVrIbpConfig(id, data) {
return request({
diff --git a/src/api/questionsRule.js b/src/api/questionsRule.js
index b1e8e435e..4bd9c236c 100644
--- a/src/api/questionsRule.js
+++ b/src/api/questionsRule.js
@@ -1,12 +1,5 @@
import request from '@/utils/request';
-// /** 获取出题规则列表 */
-// export function getQuestionRuleList() {
-// return request({
-// url: `/api/questionsRule`,
-// method: 'get'
-// });
-// }
/** 添加出题规则 */
export function addQuestionRule(data) {
return request({
@@ -30,13 +23,7 @@ export function deleteQuestionRule(id) {
method: 'delete'
});
}
-// /** 查询单个出题规则 */
-// export function selectedQuestionRule(id) {
-// return request({
-// url: `/api/questionsRule/${id}`,
-// method: 'get'
-// });
-// }
+
/** 更改出题规则内容 */
export function updateQuestionRule(id, data) {
return request({
diff --git a/src/api/race.js b/src/api/race.js
index 1e876a18c..c5f6bc3ef 100644
--- a/src/api/race.js
+++ b/src/api/race.js
@@ -1,38 +1,5 @@
import request from '@/utils/request';
-// /** 分页查询竞赛 */
-// export function getRaceList(params) {
-// return request({
-// url: `/api/race`,
-// method: 'get',
-// params: params
-// });
-// }
-// /** 创建竞赛 */
-// export function createRace(data) {
-// return request({
-// url: `/api/race`,
-// method: 'post',
-// data
-// });
-// }
-// /** 修改竞赛信息 */
-// export function updateRace(id, data) {
-// return request({
-// url: `/api/race/${id}`,
-// method: 'put',
-// data
-// });
-// }
-
-// /** 获取实操试题列表(题库)*/
-// export function getPracticeList(params) {
-// return request({
-// url: `/api/v1/competitionPractical`,
-// method: 'get',
-// params
-// });
-// }
/** 导入项目试题库 */
export function importQuestionBand(data, companyId) {
return request({
diff --git a/src/api/rpTools.js b/src/api/rpTools.js
index 20ca735d2..9d284d154 100644
--- a/src/api/rpTools.js
+++ b/src/api/rpTools.js
@@ -1,8 +1,6 @@
import request from '@/utils/request';
-/**
- * 查询运行图列表
- */
+/** 查询运行图列表*/
export function listRps() {
return request({
url: `/api/rpTools`,
@@ -10,9 +8,7 @@ export function listRps() {
});
}
-/**
- * 创建运行图
- */
+/** 创建运行图*/
export function createRp(data) {
return request({
url: `/api/rpTools`,
@@ -21,9 +17,7 @@ export function createRp(data) {
});
}
-/**
- * 删除运行图
- */
+/** 删除运行图*/
export function deleteRp(planId) {
return request({
url: `/api/rpTools/${planId}`,
@@ -31,9 +25,7 @@ export function deleteRp(planId) {
});
}
-/**
- * 获取运行图配置
- */
+/** 获取运行图配置*/
export function getRpConfig(planId) {
return request({
url: `/api/rpTools/${planId}/config`,
@@ -41,9 +33,7 @@ export function getRpConfig(planId) {
});
}
-/**
- * 修改运行图配置
- */
+/** 修改运行图配置*/
export function modifyRpConfig(planId, data) {
return request({
url: `/api/rpTools/${planId}/config`,
@@ -52,9 +42,7 @@ export function modifyRpConfig(planId, data) {
});
}
-/**
- * 获取运行图数据
- */
+/** 获取运行图数据*/
export function getRpTools(planId) {
return request({
url: `/api/rpTools/${planId}`,
@@ -62,19 +50,7 @@ export function getRpTools(planId) {
});
}
-// /**
-// * 清除运行图
-// */
-// export function clearRpPlan(planId) {
-// return request({
-// url: `/api/rpTools/${planId}/clear`,
-// method: 'put'
-// });
-// }
-
-/**
- * 添加车次
- */
+/** 添加车次*/
export function addRpTrip(planId, data) {
return request({
url: `/api/rpTools/${planId}/trip`,
@@ -83,9 +59,7 @@ export function addRpTrip(planId, data) {
});
}
-/**
- * 删除车次
- */
+/** 删除车次*/
export function delRpTrip(planId, tripNo) {
return request({
url: `/api/rpTools/${planId}/${tripNo}/trip`,
@@ -93,9 +67,7 @@ export function delRpTrip(planId, tripNo) {
});
}
-/**
- * 平移服务
- */
+/** 平移服务*/
export function translateRpService(planId, serviceNo, data) {
return request({
url: `/api/rpTools/${planId}/${serviceNo}/service`,
@@ -104,9 +76,7 @@ export function translateRpService(planId, serviceNo, data) {
});
}
-/**
- * 删除服务
- */
+/** 删除服务*/
export function delRpService(planId, serviceNo) {
return request({
url: `/api/rpTools/${planId}/${serviceNo}/service`,
@@ -114,9 +84,7 @@ export function delRpService(planId, serviceNo) {
});
}
-/**
- * 添加区域
- */
+/** 添加区域*/
export function createRpArea(planId, data) {
return request({
url: `/api/rpTools/${planId}/area`,
@@ -125,9 +93,7 @@ export function createRpArea(planId, data) {
});
}
-/**
- * 修改区域
- */
+/** 修改区域*/
export function modifyRpArea(planId, areaNo, data) {
return request({
url: `/api/rpTools/${planId}/${areaNo}/area`,
@@ -136,9 +102,7 @@ export function modifyRpArea(planId, areaNo, data) {
});
}
-/**
- * 修改区域文字
- */
+/** 修改区域文字*/
export function modifyAreaNote(planId, areaNo, data) {
return request({
url: `/api/rpTools/${planId}/${areaNo}/text`,
@@ -146,9 +110,7 @@ export function modifyAreaNote(planId, areaNo, data) {
data
});
}
-/**
- * 删除区域
- */
+/** 删除区域*/
export function delRpArea(planId, areaNo) {
return request({
url: `/api/rpTools/${planId}/${areaNo}/area`,
@@ -156,9 +118,7 @@ export function delRpArea(planId, areaNo) {
});
}
-/**
- * 修改运行时间
- */
+/** 修改运行时间*/
export function justTripNoRunning(planId, tripNo, data) {
return request({
url: `/api/rpTools/${planId}/${tripNo}/running`,
@@ -167,9 +127,7 @@ export function justTripNoRunning(planId, tripNo, data) {
});
}
-/**
- * 修改停站时间
- */
+/** 修改停站时间*/
export function justTripNoStop(planId, tripNo, data) {
return request({
url: `/api/rpTools/${planId}/${tripNo}/stop`,
@@ -178,9 +136,7 @@ export function justTripNoStop(planId, tripNo, data) {
});
}
-/**
- * 修改折返时间
- */
+/** 修改折返时间*/
export function justTripTurnBack(planId, tripNo, data) {
return request({
url: `/api/rpTools/${planId}/${tripNo}/turnBack`,
diff --git a/src/api/runplan.js b/src/api/runplan.js
index 3dcf990ee..4d90b75de 100644
--- a/src/api/runplan.js
+++ b/src/api/runplan.js
@@ -1,19 +1,6 @@
import request from '@/utils/request';
-// /**
-// * 新建地图速度等级列表
-// */
-// export function newSpeedLevels(data) {
-// return request({
-// url: '/api/runPlan/draft/speed',
-// method: 'post',
-// data: data
-// });
-// }
-
-/**
- * 获取运行图的车站列表
- */
+/** 获取运行图的车站列表*/
export function getStationList(mapId) {
return request({
url: `/api/runPlan/draft/station/${mapId}`,
@@ -30,20 +17,7 @@ export function populatingGenericData(planId, data) {
});
}
-// /**
-// * 创建运行图
-// */
-// export function newRunPlan(data) {
-// return request({
-// url: '/api/runPlan/draft',
-// method: 'post',
-// data: data
-// });
-// }
-
-/**
- * 查询运行图获取数据
- */
+/** 查询运行图获取数据*/
export function queryRunPlan(planId) {
return request({
url: `/api/runPlan/draft/${planId}`,
@@ -96,9 +70,7 @@ export function publishRunPlan(data) {
});
}
-/**
- * 导入真实运行图
- */
+/** 导入真实运行图*/
export function importRunPlan(data) {
return request({
url: `/api/runPlan/draft/${data.mapId}/prdPlan`,
@@ -115,13 +87,6 @@ export function getRpListByMapId(mapId) {
});
}
-// /** 获取站间运行时间*/
-// export function getStationRunning(mapId) {
-// return request({
-// url: `/api/runPlan/draft/${mapId}/stationRunning`,
-// method: 'get'
-// });
-// }
/** 获取地图原始站间运行等级 */
export function getMapStationRun(mapId) {
return request({
diff --git a/src/api/scheduling.js b/src/api/scheduling.js
index 3e8f0573b..1de48c2f5 100644
--- a/src/api/scheduling.js
+++ b/src/api/scheduling.js
@@ -1,58 +1,12 @@
import request from '@/utils/request';
-// export function querySecheduling(group, params) {
-// return request({
-// url: `/api/scheduling/${group}/day`,
-// method: 'get',
-// params
-// });
-// }
-
-// export function generateScheduling(group, params) {
-// return request({
-// url: `/api/scheduling/${group}/generate`,
-// method: 'post',
-// params
-// });
-// }
-
-// export function getSchedulingAllTrains(group) {
-// return request({
-// url: `/api/scheduling/${group}/train/all`,
-// method: 'get'
-// });
-// }
-
-// export function checkScheduling(group, data) {
-// return request({
-// url: `/api/scheduling/${group}/check`,
-// method: 'post',
-// data
-// });
-// }
-
-// export function saveScheduling(group, data) {
-// return request({
-// url: `/api/scheduling/${group}/save`,
-// method: 'post',
-// data
-// });
-// }
-
export function generateSchedulingAgain(group) {
return request({
url: `/api/scheduling/${group}/rebuild`,
method: 'delete'
});
}
-// /** 生成地图通用派班计划 */
-// export function generateCommonScheduling (data) {
-// return request({
-// url: `/api/v1/scheduling/generate/common`,
-// method: 'post',
-// data
-// });
-// }
+
/** 查询某天的派班计划 */
export function querySechedulingNew (group, params) {
return request({
diff --git a/src/api/script.js b/src/api/script.js
index 83f17effc..ac13e057b 100644
--- a/src/api/script.js
+++ b/src/api/script.js
@@ -1,14 +1,5 @@
import request from '@/utils/request';
-// /** 分页查找上线的剧本*/
-// export function getScriptPageListOnline(params) {
-// return request({
-// url: `/api/script/paging/online`,
-// method: 'get',
-// params: params
-// });
-// }
-
/** 分页查找上线的剧本(新版)*/
export function getScriptPageListOnlineNew(params) {
return request({
@@ -18,14 +9,6 @@ export function getScriptPageListOnlineNew(params) {
});
}
-// /** 通过ID查询发布的剧本的详细信息 */
-// export function getScriptById(id) {
-// return request({
-// url: `/api/script/${id}/detail`,
-// method: 'get'
-// });
-// }
-
/** 通过ID查询发布的剧本的详细信息(新版) */
export function getScriptByIdNew(id) {
return request({
@@ -34,14 +17,6 @@ export function getScriptByIdNew(id) {
});
}
-// /** 通过group查询未发布剧本的详细信息 */
-// export function getDraftScriptByGroup(group) {
-// return request({
-// url: `/api/simulation/${group}/script/loadedScript`,
-// method: 'get'
-// });
-// }
-
/** 通过group查询未发布剧本的详细信息(新版) */
export function getDraftScriptByGroupNew(group) {
return request({
@@ -126,22 +101,6 @@ export function getAllSelectedScriptRole(group) {
});
}
-// /** 加载剧本接口(仿真使用 竞赛) */
-// export function loadScript(group, scriptId) {
-// return request({
-// url: `/api/scriptSimulation/${group}/load/script/${scriptId}`,
-// method: 'PUT'
-// });
-// }
-
-// /** 剧本实训结束 接口(仿真使用 竞赛) */
-// export function endScriptTraining(group) {
-// return request({
-// url: `/api/scriptSimulation/${group}/finish`,
-// method: 'get'
-// });
-// }
-
/** 草稿剧本数据导入*/
export function postScriptImport(mapId, data) {
return request({
diff --git a/src/api/simulation.js b/src/api/simulation.js
index 5ce0a98cb..df8606af0 100644
--- a/src/api/simulation.js
+++ b/src/api/simulation.js
@@ -1,23 +1,5 @@
import request from '@/utils/request';
-// /** 获取故障规则列表*/
-// export function getFailureGenerateRules(params) {
-// return request({
-// url: `/api/simulation/failureGenerateRules`,
-// method: 'get',
-// params: params
-// });
-// }
-
-// /** 设置自动故障*/
-// export function setFailureMode(data, group) {
-// return request({
-// url: `/api/simulation/${group}/failureMode`,
-// method: 'post',
-// data: data
-// });
-// }
-
/** 设置自动故障(新版)*/
export function setFailureModeNew(data, group) {
return request({
@@ -41,15 +23,6 @@ export function getSimulationFaultRules(group) {
});
}
-// // 创建故障规则(新版)
-// export function addFailureRule(data) {
-// return request({
-// url: `/api/v1/faultRule`,
-// method: 'post',
-// data: data
-// });
-// }
-
/** 根据id删除故障规则 */
export function deleteFailureRule(id) {
return request({
@@ -58,56 +31,7 @@ export function deleteFailureRule(id) {
});
}
-// /** 获取故障规则列表(新版)*/
-// export function getFailureRulesNew(params) {
-// return request({
-// url: `/api/v1/faultRule/page`,
-// method: 'get',
-// params: params
-// });
-// }
-
-// // 修改故障规则(新版)
-// export function modifyFailureRule(data) {
-// return request({
-// url: `/api/v1/faultRule`,
-// method: 'put',
-// data: data
-// });
-// }
-
-// /** 通过id获取故障规则(新版)*/
-// export function getFailureRulesByIdNew(id) {
-// return request({
-// url: `/api/v1/faultRule/${id}`,
-// method: 'get'
-// });
-// }
-
-// /**
-// * 仿真系统按计划行车
-// */
-// export function runDiagramStart(params, group) {
-// return request({
-// url: `/api/simulation/${group}/start`,
-// method: 'put',
-// params: params
-// });
-// }
-
-// /**
-// * 仿真系统结束计划行车
-// */
-// export function runDiagramOver(group) {
-// return request({
-// url: `/api/simulation/${group}/over`,
-// method: 'put'
-// });
-// }
-
-/**
- * 退出仿真系统
- */
+/** 退出仿真系统*/
export function runDiagramQuit(group) {
return request({
url: `/api/simulation/${group}/quit`,
@@ -115,43 +39,6 @@ export function runDiagramQuit(group) {
});
}
-// /** 获取仿真系统时间*/
-// export function runDiagramGetTime(group) {
-// return request({
-// url: `/api/simulation/${group}/systemTime`,
-// method: 'get'
-// });
-// }
-
-// // 查看是否开始按计划行车
-// export function runDiagramIsStart(group) {
-// return request({
-// url: `/api/simulation/${group}/isRunPlanStart`,
-// method: 'get'
-// });
-// }
-
-// /**
-// * 仿真系统CBTC
-// * @param {*} mapId
-// */
-// export function simulationNotify({ mapId, prdType }) {
-// return request({
-// url: `/api/simulation/${mapId}/${prdType}`,
-// method: 'get'
-// });
-// }
-
-// /**
-// * 实训系统CBTC
-// * @param {*} data
-// */
-// export function trainingNotify({ trainingId }) {
-// return request({
-// url: `/api/simulation/training/${trainingId}`,
-// method: 'get'
-// });
-// }
/** 实训系统(新版地图) */
export function trainingNotifyNew({ trainingId }) {
return request({
@@ -159,16 +46,7 @@ export function trainingNotifyNew({ trainingId }) {
method: 'get'
});
}
-// /**
-// * 考试系统CBTC
-// * @param {*} data
-// */
-// export function examNotify({ examId }) {
-// return request({
-// url: `/api/simulation/exam/${examId}`,
-// method: 'get'
-// });
-// }
+
/** 考试系统(新版地图)*/
export function examNotifyNew({ examId }) {
return request({
@@ -211,30 +89,6 @@ export function deleteSimulationStats(statsId) {
});
}
-// /** 获取用户鼠标左键选中的设备信息*/
-// export function letfMouseSelectDevice(deviceCode, group) {
-// return request({
-// url: `/api/simulation/${group}/device/${deviceCode}`,
-// method: 'get'
-// });
-// }
-
-// /** 获取每日运行图*/
-// export function getEveryDayRunPlanData(group) {
-// return request({
-// url: `/api/simulation/${group}/runPlan`,
-// method: 'get'
-// });
-// }
-
-// /** 录制脚本仿真*/
-// export function scriptRecordNotify(scriptId) {
-// return request({
-// url: `/api/simulation/scriptWrite/${scriptId}`,
-// method: 'get'
-// });
-// }
-
/** 录制脚本仿真(新版)*/
export function scriptRecordNotifyNew(scriptId) {
return request({
@@ -243,14 +97,6 @@ export function scriptRecordNotifyNew(scriptId) {
});
}
-// /** 保存剧本背景*/
-// export function saveScriptScenes(group) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/scenes`,
-// method: 'put'
-// });
-// }
-
/** 保存剧本背景(新版)*/
export function saveScriptScenesNew(group) {
return request({
@@ -267,14 +113,6 @@ export function scriptRePreview(group) {
});
}
-// /** 保存录制任务数据*/
-// export function saveScriptData(group) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/saveData`,
-// method: 'put'
-// });
-// }
-
/** 保存录制任务数据(新版)*/
export function saveScriptDataNew(group) {
return request({
@@ -283,15 +121,6 @@ export function saveScriptDataNew(group) {
});
}
-// /** 更新任务地图定位信息*/
-// export function updateMapLocation(group, data) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/mapLocation`,
-// method: 'put',
-// data
-// });
-// }
-
/** 更新任务地图定位信息(新版)*/
export function updateMapLocationNew(group, data) {
return request({
@@ -301,82 +130,6 @@ export function updateMapLocationNew(group, data) {
});
}
-// /** 获取剧本编制的所有成员角色*/
-// export function getScriptMemberData(group) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/members`,
-// method: 'get'
-// });
-// }
-
-// /** 获取剧本出演成员角色 */
-// export function getScriptPlayMember(group) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/players`,
-// method: 'get'
-// });
-// }
-
-// /** 获取剧本出演成员角色(新版地图) */
-// export function getScriptPlayMemberNew(group) {
-// return request({
-// url: `/api/scriptSimulation/${group}/allPlayer`,
-// method: 'get'
-// });
-// }
-
-// /** 取消剧本演出成员角色 */
-// export function cancleScriptMembers(group, data) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/removePlayers`,
-// method: 'put',
-// data
-// });
-// }
-
-// /** 取消剧本演出成员角色 */
-// export function cancleScriptMembersNew(group, data) {
-// return request({
-// url: `/api/scriptSimulation/${group}/removePlayers`,
-// method: 'put',
-// data
-// });
-// }
-
-// /** 选择剧本演出成员角色 */
-// export function selectScriptMembers(group, data) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/choosePlayers`,
-// method: 'put',
-// data
-// });
-// }
-
-// /** 选择剧本演出成员角色 (新版地图)*/
-// export function selectScriptMembersNew(group, data) {
-// return request({
-// url: `/api/scriptSimulation/${group}/choosePlayers`,
-// method: 'put',
-// data
-// });
-// }
-
-// /** 修改剧本演出成员性别 */
-// export function modifyScriptMemberSex(group, playerId, data) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/player/${playerId}?gender=${data.gender}`,
-// method: 'put'
-// });
-// }
-
-// /** 清除仿真剧本数据*/
-// export function dumpScriptData(group) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/saveData`,
-// method: 'delete'
-// });
-// }
-
/** 清除仿真剧本数据(新版)*/
export function dumpScriptDataNew(group) {
return request({
@@ -385,57 +138,6 @@ export function dumpScriptDataNew(group) {
});
}
-// /** 查询录制剧本步骤*/
-// export function queryScriptStep(group) {
-// return request({
-// url: `/api/simulation/${group}/scriptRecordStage`,
-// method: 'get'
-// });
-// }
-
-// /** 获取指定时间里可加载列车的个数*/
-// export function getDesignatedTimeTrainNum(params, group) {
-// return request({
-// url: `/api/simulation/${group}/plan/trainNum`,
-// method: 'get',
-// params
-// });
-// }
-// /** 添加剧本动作 */
-// export function addScriptAction(group, data) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/action`,
-// method: 'post',
-// data
-// });
-// }
-
-// /** 添加剧本动作(新版) */
-// export function addScriptActionNew(group, data) {
-// return request({
-// url: `/api/scriptSimulation/${group}/addAction`,
-// method: 'PUT',
-// data
-// });
-// }
-
-// /** 删除剧本动作 */
-// export function deleteScriptAction(group, actionId) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/action/${actionId}`,
-// method: 'delete'
-// });
-// }
-
-// /** 修改剧本动作 */
-// export function modifyScriptAction(group, actionId, data) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/action/${actionId}`,
-// method: 'put',
-// data
-// });
-// }
-
/** 修改剧本动作(新版) */
export function modifyScriptActionNew(group, data) {
return request({
@@ -461,22 +163,6 @@ export function deleteExistingSimulation(group) {
method: 'delete'
});
}
-// /** 根据设备类型获取设备列表 */
-// export function getDeviceCodeByDeviceType(group, params) {
-// return request({
-// url: `/api/simulation/${group}/deviceType/devices`,
-// method: 'get',
-// params
-// });
-// }
-
-// /** 获取任务录制的数据 */
-// export function getScriptRecord(group) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite`,
-// method: 'get'
-// });
-// }
/** 获取任务录制的所有动作(新版)*/
export function getScriptAllAction(group) {
@@ -486,22 +172,6 @@ export function getScriptAllAction(group) {
});
}
-// /** 加载任务*/
-// export function loadQuest(questId, memberId, group) {
-// return request({
-// url: `/api/simulation/${group}/quest/${questId}?memberId=${memberId}`,
-// method: 'post'
-// });
-// }
-
-// /** 加载剧本 */
-// export function loadScript(scriptId, memberId, group) {
-// return request({
-// url: `api/simulation/${group}/script/${scriptId}?memberId=${memberId}`,
-// method: 'post'
-// });
-// }
-
/** 加载剧本(新版) */
export function loadScriptNew(scriptId, memberId, group) {
return request({
@@ -510,14 +180,6 @@ export function loadScriptNew(scriptId, memberId, group) {
});
}
-// /** 退出剧本*/
-// export function quitScript(group) {
-// return request({
-// url: `/api/simulation/${group}/script`,
-// method: 'delete'
-// });
-// }
-
/** 退出剧本(新版)*/
export function quitScriptNew(group) {
return request({
@@ -526,48 +188,6 @@ export function quitScriptNew(group) {
});
}
-// /** 退出任务*/
-// export function quitQuest(group) {
-// return request({
-// url: `/api/simulation/${group}/quest`,
-// method: 'put'
-// });
-// }
-
-// /** 根据group获取仿真对象*/
-// export function getSimulationInfo(group) {
-// return request({
-// url: `/api/simulation/${group}`,
-// method: 'get'
-// });
-// }
-
-// /** 获取可用的设备指令*/
-// export function getAvailableDeviceCommand(params) {
-// return request({
-// url: `/api/simulation/deviceCommand/available`,
-// method: 'get',
-// params
-// });
-// }
-
-// /** 保存/修改任务剧本*/
-// export function saveTaskScript(group, data) {
-// return request({
-// url: `/api/simulation/${group}/questRecord/script`,
-// method: 'post',
-// data
-// });
-// }
-
-// /** 暂停剧本编制的仿真 */
-// export function scriptPause(group) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/pause`,
-// method: 'post'
-// });
-// }
-
/** 暂停仿真 */
export function simulationPause(group) {
return request({
@@ -576,14 +196,6 @@ export function simulationPause(group) {
});
}
-// /** 恢复仿真运行并执行刚编辑的剧本动作 */
-// export function executeScript(group) {
-// return request({
-// url: `/api/simulation/${group}/scriptWrite/execute`,
-// method: 'post'
-// });
-// }
-
/** 恢复仿真运行并执行刚编辑的剧本动作(新版) */
export function executeScriptNew(group) {
return request({
@@ -592,31 +204,6 @@ export function executeScriptNew(group) {
});
}
-// /** 生成用户自己的当日运行图*/
-// export function generateDayRunPlan(planId, group) {
-// return request({
-// url: `/api/simulation/${group}/loadRunPlan/${planId}`,
-// method: 'post'
-// });
-// }
-
-// /** 创建派班计划仿真*/
-// export function schedulingNotify(params) {
-// return request({
-// url: `/api/scheduling/simulation`,
-// method: 'post',
-// params
-// });
-// }
-
-// /** 获取PLC网关 */
-// export function getPlcGateway(group) {
-// return request({
-// url: `/api/simulation/${group}/plcGateway`,
-// method: 'get'
-// });
-// }
-
/** 处理ibp盘事件 */
export function handlerIbpEvent(group, button, stationCode) {
return request({
@@ -664,14 +251,6 @@ export function getNewMapDataByGroup(group) {
});
}
-// /** 新版地图指令操作定义 */
-// export function newMapOperate(group, operationId, data) {
-// return request({
-// url: `/simulation/${group}/operate/${operationId}`,
-// method: 'post',
-// data: data
-// });
-// }
/** 新版地图根据group获取仿真运行图 */
export function getEveryDayRunPlanNew(group) {
return request({
@@ -696,15 +275,6 @@ export function clearSimulation(group) {
});
}
-// /** 查询进路信息*/
-// export function querySignalStatus(group, params) {
-// return request({
-// url: `/api/simulation/${group}/status/signal`,
-// method: 'get',
-// params
-// });
-// }
-
/** 获取仿真运行图车次号列表 */
export function getTripNumberList(group) {
return request({
diff --git a/src/api/statistics.js b/src/api/statistics.js
index 349dce602..c761cf7f0 100644
--- a/src/api/statistics.js
+++ b/src/api/statistics.js
@@ -1,89 +1 @@
// import request from '@/utils/request';
-
-// // 课程列表
-// export function getLessonList(code) {
-// return request({
-// url: '/api/stats/lesson/list',
-// method: 'get',
-// params: {
-// wmCode: code
-// }
-// });
-// }
-
-// // 课程内实训数据统计
-// export function getLessonTimeChart(data) {
-// return request({
-// url: `/api/stats/lesson/${data.id}/stats`,
-// method: 'get',
-// params: {
-// wmCode: data.code
-// }
-// });
-// }
-
-// // 查询参与考试的课程列表
-// export function getExamTree(code) {
-// return request({
-// url: '/api/stats/exam/lessonList',
-// method: 'get',
-// params: {
-// wmCode: code
-// }
-// });
-// }
-
-// // 查询参与考试的试题列表
-// export function getstatsExamList(data) {
-// return request({
-// url: `/api/stats/exam/${data.lessonId}/list`,
-// method: 'get',
-// params: {
-// wmCode: data.code
-// }
-// });
-// }
-
-// // 个人考试数据统计
-// export function getExamChart(data) {
-// return request({
-// url: `/api/stats/exam/${data.examId}/stats`,
-// method: 'get',
-// params: {
-// wmCode: data.code
-// }
-// });
-// }
-
-// // 个人关注地图数据统计列表
-// export function getRelevanceMapList(code) {
-// return request({
-// url: `/api/user/subscribe`,
-// method: 'get',
-// params: {
-// wmCode: code
-// }
-// });
-// }
-
-// // 仿真地图下产品列表
-// export function getSimulationPrdList(mapId, code) {
-// return request({
-// url: `/api/stats/simulation/${mapId}/prdList`,
-// method: 'get',
-// params: {
-// wmCode: code
-// }
-// });
-// }
-
-// // 个人仿真数据统计
-// export function getSimulationTimeChart(data) {
-// return request({
-// url: `/api/stats/simulation/${data.mapId}/stats`,
-// method: 'get',
-// params: {
-// wmCode: data.code
-// }
-// });
-// }
diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue
index 4b927baaa..62cbc67e7 100644
--- a/src/components/Hamburger/index.vue
+++ b/src/components/Hamburger/index.vue
@@ -15,18 +15,18 @@
diff --git a/src/views/competitionManage/setExamTime.vue b/src/views/competitionManage/setExamTime.vue
index 1276e6079..057f4039e 100644
--- a/src/views/competitionManage/setExamTime.vue
+++ b/src/views/competitionManage/setExamTime.vue
@@ -2,10 +2,10 @@
-   分
+ 分
-   分
+ 分
导出
diff --git a/src/views/components/PopMenu/index.vue b/src/views/components/PopMenu/index.vue
index 31f0832d3..bdb8f0a54 100644
--- a/src/views/components/PopMenu/index.vue
+++ b/src/views/components/PopMenu/index.vue
@@ -90,126 +90,126 @@ import { checkRectCollision } from '@/utils/index';
import { EventBus } from '@/scripts/event-bus';
export default {
- name: 'PopMenu',
- props: {
- menu: {
- type: Array,
- required: true
- }
- },
- data() {
- return {
- show: false,
- defaultFontSize: 14,
- tPosition: {
- x: -1000,
- y: -1000
- },
- height: 'auto'
- };
- },
- computed: {
- width() {
- let fontNum = 0;
- this.menu.forEach(elem => {
- if (elem.label && elem.label.length > fontNum) {
- fontNum = elem.label.length;
- }
- });
- var width = fontNum * this.defaultFontSize + 40 + 'px';
- return width;
- }
- },
- mounted() {
- EventBus.$on('closeMenu', () => {
- this.$nextTick(() => {
- this.show = false;
- });
- });
- },
- methods: {
- resetShowPosition(point) {
- if (point) {
- this.show = true;
- const self = this;
- this.$nextTick(() => {
- const gutter = 3;
- // 位置
- const height = self.$el.clientHeight;
- const width = self.$el.clientWidth;
- let px = 0;
- let py = 0;
- if (point.x + width > document.documentElement.clientWidth) {
- px = document.documentElement.clientWidth - width - gutter;
- } else {
- px = point.x;
- }
- if (point.y + height > document.documentElement.clientHeight) {
- py = document.documentElement.clientHeight - height - gutter;
- } else {
- py = point.y;
- }
- // 处理和提示框重叠问题
- const popTipDialog = document.getElementById('pop_tip_dialog');
- if (popTipDialog) {
- const tipRect = {
- point: { x: popTipDialog.offsetLeft, y: popTipDialog.offsetTop },
- width: popTipDialog.offsetWidth,
- height: popTipDialog.offsetHeight
- };
- const menuRect = {
- point: { x: px, y: py },
- width: self.$el.offsetWidth,
- height: self.$el.offsetHeight
- };
- const collision = checkRectCollision(tipRect, menuRect);
- // 若重叠,调整位置
- if (collision) {
- px = tipRect.point.x + tipRect.width + gutter;
- if (px + width > document.documentElement.clientWidth) {
- px = tipRect.point.x - menuRect.width - gutter;
- }
- }
- }
- self.tPosition.x = px;
- self.tPosition.y = py;
- });
- }
- },
- close() {
- this.show = false;
- },
- checkIfDisabled(menuObj) {
- return menuObj.disabled === true;
- },
- isShow(menuObj) {
- if (typeof (menuObj.show) == 'undefined') {
- return true;
- } else {
- return menuObj.show;
- }
- },
- calculateSubWidth(item) {
- const children = item.children;
- let width = 0;
- let fontNum = 0;
- children.forEach(elem => {
- if (elem.label.length > fontNum) {
- fontNum = elem.label.length;
- }
- });
- width = fontNum * this.defaultFontSize + 20 + 'px';
- return width;
- },
- openLoadFile(item) {
- const obj = this.$refs[item.label][0];
- if (obj.files) {
- const file = obj.files[0];
- item.handler(file);
- obj.value = '';
- }
- }
- }
+ name: 'PopMenu',
+ props: {
+ menu: {
+ type: Array,
+ required: true
+ }
+ },
+ data() {
+ return {
+ show: false,
+ defaultFontSize: 14,
+ tPosition: {
+ x: -1000,
+ y: -1000
+ },
+ height: 'auto'
+ };
+ },
+ computed: {
+ width() {
+ let fontNum = 0;
+ this.menu.forEach(elem => {
+ if (elem.label && elem.label.length > fontNum) {
+ fontNum = elem.label.length;
+ }
+ });
+ var width = fontNum * this.defaultFontSize + 40 + 'px';
+ return width;
+ }
+ },
+ mounted() {
+ EventBus.$on('closeMenu', () => {
+ this.$nextTick(() => {
+ this.show = false;
+ });
+ });
+ },
+ methods: {
+ resetShowPosition(point) {
+ if (point) {
+ this.show = true;
+ const self = this;
+ this.$nextTick(() => {
+ const gutter = 3;
+ // 位置
+ const height = self.$el.clientHeight;
+ const width = self.$el.clientWidth;
+ let px = 0;
+ let py = 0;
+ if (point.x + width > document.documentElement.clientWidth) {
+ px = document.documentElement.clientWidth - width - gutter;
+ } else {
+ px = point.x;
+ }
+ if (point.y + height > document.documentElement.clientHeight) {
+ py = document.documentElement.clientHeight - height - gutter;
+ } else {
+ py = point.y;
+ }
+ // 处理和提示框重叠问题
+ const popTipDialog = document.getElementById('pop_tip_dialog');
+ if (popTipDialog) {
+ const tipRect = {
+ point: { x: popTipDialog.offsetLeft, y: popTipDialog.offsetTop },
+ width: popTipDialog.offsetWidth,
+ height: popTipDialog.offsetHeight
+ };
+ const menuRect = {
+ point: { x: px, y: py },
+ width: self.$el.offsetWidth,
+ height: self.$el.offsetHeight
+ };
+ const collision = checkRectCollision(tipRect, menuRect);
+ // 若重叠,调整位置
+ if (collision) {
+ px = tipRect.point.x + tipRect.width + gutter;
+ if (px + width > document.documentElement.clientWidth) {
+ px = tipRect.point.x - menuRect.width - gutter;
+ }
+ }
+ }
+ self.tPosition.x = px;
+ self.tPosition.y = py;
+ });
+ }
+ },
+ close() {
+ this.show = false;
+ },
+ checkIfDisabled(menuObj) {
+ return menuObj.disabled === true;
+ },
+ isShow(menuObj) {
+ if (typeof (menuObj.show) == 'undefined') {
+ return true;
+ } else {
+ return menuObj.show;
+ }
+ },
+ calculateSubWidth(item) {
+ const children = item.children;
+ let width = 0;
+ let fontNum = 0;
+ children.forEach(elem => {
+ if (elem.label.length > fontNum) {
+ fontNum = elem.label.length;
+ }
+ });
+ width = fontNum * this.defaultFontSize + 20 + 'px';
+ return width;
+ },
+ openLoadFile(item) {
+ const obj = this.$refs[item.label][0];
+ if (obj.files) {
+ const file = obj.files[0];
+ item.handler(file);
+ obj.value = '';
+ }
+ }
+ }
};
diff --git a/src/views/components/pay/finish.vue b/src/views/components/pay/finish.vue
index d816e6dd2..7cd0b3c8b 100644
--- a/src/views/components/pay/finish.vue
+++ b/src/views/components/pay/finish.vue
@@ -32,50 +32,50 @@
import img_pay_fail from '@/assets/pay_images/PayFail.png';
import img_pay_success from '@/assets/pay_images/PaySuccess.png';
export default {
- name: 'FinishDraft',
- props: {
- finishStatus: {
- type: String,
- required: true
- }
- },
- data() {
- return {
- count: 0,
- maxTime: 5,
- timer: null,
- images: {
- img_pay_fail,
- img_pay_success
- }
- };
- },
- beforeDestroy() {
- this.destroy();
- },
- methods: {
- // 设置计时器,maxTime后返回
- createCountTimer() {
- const that = this;
- // 如果计时器已存在,则先注销
- this.destroy();
- // 重新创建定时器
- if (this.timer == null) {
- this.count = this.maxTime;
- this.timer = setInterval(() => {
- (that.count-- <= 0) && that.finish();
- }, 1000);
- }
- },
- // 返回到课程首页
- finish() {
- this.$emit('finish');
- },
- // 注销计时器
- destroy() {
- clearInterval(this.timer);
- this.timer = null;
- }
- }
+ name: 'FinishDraft',
+ props: {
+ finishStatus: {
+ type: String,
+ required: true
+ }
+ },
+ data() {
+ return {
+ count: 0,
+ maxTime: 5,
+ timer: null,
+ images: {
+ img_pay_fail,
+ img_pay_success
+ }
+ };
+ },
+ beforeDestroy() {
+ this.destroy();
+ },
+ methods: {
+ // 设置计时器,maxTime后返回
+ createCountTimer() {
+ const that = this;
+ // 如果计时器已存在,则先注销
+ this.destroy();
+ // 重新创建定时器
+ if (this.timer == null) {
+ this.count = this.maxTime;
+ this.timer = setInterval(() => {
+ (that.count-- <= 0) && that.finish();
+ }, 1000);
+ }
+ },
+ // 返回到课程首页
+ finish() {
+ this.$emit('finish');
+ },
+ // 注销计时器
+ destroy() {
+ clearInterval(this.timer);
+ this.timer = null;
+ }
+ }
};
diff --git a/src/views/components/progressBar/index.vue b/src/views/components/progressBar/index.vue
index 7df3d9acc..6411e7093 100644
--- a/src/views/components/progressBar/index.vue
+++ b/src/views/components/progressBar/index.vue
@@ -14,8 +14,6 @@
\ No newline at end of file
+
diff --git a/src/views/components/systemTime/point.vue b/src/views/components/systemTime/point.vue
index 6d03098c4..87805cf6e 100644
--- a/src/views/components/systemTime/point.vue
+++ b/src/views/components/systemTime/point.vue
@@ -7,21 +7,21 @@
diff --git a/src/views/components/systemTime/separator.vue b/src/views/components/systemTime/separator.vue
index 555734ca3..34121c49e 100644
--- a/src/views/components/systemTime/separator.vue
+++ b/src/views/components/systemTime/separator.vue
@@ -9,35 +9,35 @@
import Point from './point';
export default {
- name: 'Separator',
- components: {
- Point
- },
- props: {
- zoom: {
- type: Number,
- required: true
- },
- fine: {
- type: Number,
- required: true
- },
- color: {
- type: String,
- required: true
- }
- },
- computed: {
- p() {
- return this.fine * 1;
- },
- w() {
- return this.fine * 4;
- },
- h() {
- return this.zoom * 8 + this.fine * 6 + this.p*2;
- }
- }
+ name: 'Separator',
+ components: {
+ Point
+ },
+ props: {
+ zoom: {
+ type: Number,
+ required: true
+ },
+ fine: {
+ type: Number,
+ required: true
+ },
+ color: {
+ type: String,
+ required: true
+ }
+ },
+ computed: {
+ p() {
+ return this.fine * 1;
+ },
+ w() {
+ return this.fine * 4;
+ },
+ h() {
+ return this.zoom * 8 + this.fine * 6 + this.p * 2;
+ }
+ }
};
diff --git a/src/views/demonstration/deomonTopic/index.vue b/src/views/demonstration/deomonTopic/index.vue
index fee4f6092..30d7a100c 100644
--- a/src/views/demonstration/deomonTopic/index.vue
+++ b/src/views/demonstration/deomonTopic/index.vue
@@ -74,7 +74,7 @@ export default {
async handleJoin() {
try {
this.loading = true;
- const rest = await getPublishMapInfo(this.mapId);
+ await getPublishMapInfo(this.mapId);
launchFullscreen();
const query = { lineCode: this.lineCode, mapId: this.mapId, group: this.group};
this.$router.push({path: `/jointTrainingNew`, query: query});
diff --git a/src/views/designPlatform/demonList.vue b/src/views/designPlatform/demonList.vue
index 7568da2c4..d6064243a 100644
--- a/src/views/designPlatform/demonList.vue
+++ b/src/views/designPlatform/demonList.vue
@@ -151,7 +151,7 @@ export default {
name: this.$t('designPlatform.mapPreview'),
type: 'mapPreview',
mapId: elem.id,
- cityCode: elem.cityCode,
+ cityCode: elem.cityCode
}
];
this.isAdministrator() ? elem.children.push({id: '2', name: this.$t('designPlatform.lessonDesign'), type: 'lessonDesign', mapId: elem.id, cityCode: elem.cityCode, lineCode: elem.lineCode}) : '';
@@ -162,7 +162,7 @@ export default {
type: 'scriptDesign',
mapId: elem.id,
cityCode: elem.cityCode,
- lineCode: elem.lineCode,
+ lineCode: elem.lineCode
// code:elem.children.find(n => { return n.name.includes("行调")})
});
elem.children.push(
@@ -172,7 +172,7 @@ export default {
type: 'runPlanDesign',
mapId: elem.id,
lineCode: elem.lineCode,
- cityCode: elem.cityCode,
+ cityCode: elem.cityCode
}
);
if (process.env.VUE_APP_PRO !== 'local') {
diff --git a/src/views/error-page/404.vue b/src/views/error-page/404.vue
index c94ad1250..0ccdb6a22 100644
--- a/src/views/error-page/404.vue
+++ b/src/views/error-page/404.vue
@@ -15,7 +15,7 @@
{{ message }}
Please check that the URL you entered is correct, or click the button below to
return to the homepage.
-
+
@@ -23,18 +23,18 @@
diff --git a/src/views/planMonitor/editTool/menuBar.vue b/src/views/planMonitor/editTool/menuBar.vue
index 909c1546f..a3c2effe2 100644
--- a/src/views/planMonitor/editTool/menuBar.vue
+++ b/src/views/planMonitor/editTool/menuBar.vue
@@ -123,10 +123,6 @@ import { publishRunPlan, deleteRunPlan } from '@/api/designPlatform';
export default {
name: 'PlanMenuBar',
props: {
- // skinCode: {
- // type: String,
- // default: ''
- // },
planConvert: {
type: Object,
default: function() {
diff --git a/src/views/planMonitor/editTool/menus/addSmoothRunTime.vue b/src/views/planMonitor/editTool/menus/addSmoothRunTime.vue
index defda51df..b729aac41 100644
--- a/src/views/planMonitor/editTool/menus/addSmoothRunTime.vue
+++ b/src/views/planMonitor/editTool/menus/addSmoothRunTime.vue
@@ -13,7 +13,7 @@
- {{$t('global.startTime')+$t('global.colon')}}
+ {{ $t('global.startTime')+$t('global.colon') }}
@@ -21,7 +21,7 @@
- {{$t('global.endTime')+$t('global.colon')}}
+ {{ $t('global.endTime')+$t('global.colon') }}
@@ -29,16 +29,16 @@
- {{$t('planMonitor.trainRunningTimeInterval')+$t('global.colon')}}
+ {{ $t('planMonitor.trainRunningTimeInterval')+$t('global.colon') }}
- {{$t('global.colon')}}
+ {{ $t('global.colon') }}
- {{$t('planMonitor.sizeOfTheLoopTrainProportion')+$t('global.colon')}}
+ {{ $t('planMonitor.sizeOfTheLoopTrainProportion')+$t('global.colon') }}
@@ -48,28 +48,28 @@
- {{$t('planMonitor.applicationRouteSelection')+$t('global.colon')}}
+ {{ $t('planMonitor.applicationRouteSelection')+$t('global.colon') }}
- {{$t('planMonitor.bothway')}}
- {{$t('planMonitor.up')}}
- {{$t('planMonitor.down')}}
+ {{ $t('planMonitor.bothway') }}
+ {{ $t('planMonitor.up') }}
+ {{ $t('planMonitor.down') }}
-
+
- {{$t('global.confirm')}}
- {{$t('global.cancel')}}
+ {{ $t('global.confirm') }}
+ {{ $t('global.cancel') }}
@@ -77,38 +77,38 @@
diff --git a/src/views/planMonitor/editToolAUS/line/modify.vue b/src/views/planMonitor/editToolAUS/line/modify.vue
new file mode 100644
index 000000000..ae3e4bd19
--- /dev/null
+++ b/src/views/planMonitor/editToolAUS/line/modify.vue
@@ -0,0 +1,114 @@
+
+ drawer=false">
+ 修改表单
+
+
+
+
+
+
+ m
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/planMonitor/editToolAUS/line/stations.vue b/src/views/planMonitor/editToolAUS/line/stations.vue
new file mode 100644
index 000000000..2c8172df0
--- /dev/null
+++ b/src/views/planMonitor/editToolAUS/line/stations.vue
@@ -0,0 +1,50 @@
+
+
+
+
+
+ {{el.name}}
+
+
+
+
+
+ 编辑
+
+
+
+
+ 暂无数据
+
+
+
+
+
+
+
diff --git a/src/views/planMonitor/editToolAUS/dialog/planCreate.vue b/src/views/planMonitor/editToolAUS/tool/dialog/planCreate.vue
similarity index 70%
rename from src/views/planMonitor/editToolAUS/dialog/planCreate.vue
rename to src/views/planMonitor/editToolAUS/tool/dialog/planCreate.vue
index 2c87316cb..95bdca82c 100644
--- a/src/views/planMonitor/editToolAUS/dialog/planCreate.vue
+++ b/src/views/planMonitor/editToolAUS/tool/dialog/planCreate.vue
@@ -4,6 +4,11 @@
+
+
+
+
+