Merge remote-tracking branch 'remotes/origin/dev' into test

This commit is contained in:
joylink_cuiweidong 2019-11-11 18:45:09 +08:00
commit e4dffd17af
22 changed files with 1049 additions and 1132 deletions

View File

@ -198,5 +198,6 @@ export default {
companyTel:'Tel: +86 13289398171', companyTel:'Tel: +86 13289398171',
companyICP:'Copyright ©2018 Beijing Jiulian Technology Co., Ltd ICP: 18028522', companyICP:'Copyright ©2018 Beijing Jiulian Technology Co., Ltd ICP: 18028522',
enterPermissionNum:'please input number', enterPermissionNum:'please input number',
enterPermissionNumInt:'number must interger' enterPermissionNumInt:'number must interger',
perpetual: 'perpetual'
}; };

View File

@ -198,5 +198,6 @@ export default {
companyTel:'联系电话: 13289398171', companyTel:'联系电话: 13289398171',
companyICP:'Copyright ©2018 北京玖琏科技有限公司 京ICP备18028522号', companyICP:'Copyright ©2018 北京玖琏科技有限公司 京ICP备18028522号',
enterPermissionNum:'请输入权限数量', enterPermissionNum:'请输入权限数量',
enterPermissionNumInt:'权限数量需为整数' enterPermissionNumInt:'权限数量需为整数',
perpetual: '永久'
}; };

View File

@ -21,7 +21,7 @@
import { runPlanTemplateList } from '@/api/runplan'; import { runPlanTemplateList } from '@/api/runplan';
import { getStationList } from '@/api/runplan'; import { getStationList } from '@/api/runplan';
import { getEveryDayRunPlanData, generateDayRunPlan } from '@/api/simulation'; import { getEveryDayRunPlanData, generateDayRunPlan } from '@/api/simulation';
import { listPublishMap, getPublishMapInfo } from '@/api/jmap/map'; import { getPublishMapInfo } from '@/api/jmap/map';
export default { export default {
name: 'ReloadTodayPlan', name: 'ReloadTodayPlan',
@ -29,7 +29,6 @@ export default {
return { return {
dialogShow: false, dialogShow: false,
loading: false, loading: false,
mapList: [],
pagerConfig: { pagerConfig: {
pageSize: 'pageSize', pageSize: 'pageSize',
pageIndex: 'pageNum' pageIndex: 'pageNum'
@ -52,15 +51,6 @@ export default {
{ {
title: '运行图名称', title: '运行图名称',
prop: 'name' prop: 'name'
},
{
title: '地图名称',
prop: 'mapId',
type: 'tag',
columnValue: (row) => {
return this.$convertField(row.mapId, this.mapList, ['id', 'name']);
},
tagType: (row) => { return 'success'; }
} }
] ]
}, },
@ -74,16 +64,9 @@ export default {
} }
}, },
methods: { methods: {
loadInitData() {
this.mapList = [];
listPublishMap().then(response => {
this.mapList = response.data;
});
},
doShow() { doShow() {
this.loading = false; this.loading = false;
this.dialogShow = true; this.dialogShow = true;
this.loadInitData();
}, },
doClose() { doClose() {
this.dialogShow = false; this.dialogShow = false;

View File

@ -21,7 +21,7 @@
import { runPlanTemplateList } from '@/api/runplan'; import { runPlanTemplateList } from '@/api/runplan';
import { getStationList } from '@/api/runplan'; import { getStationList } from '@/api/runplan';
import { getEveryDayRunPlanData, generateDayRunPlan } from '@/api/simulation'; import { getEveryDayRunPlanData, generateDayRunPlan } from '@/api/simulation';
import { listPublishMap, getPublishMapInfo } from '@/api/jmap/map'; import { getPublishMapInfo } from '@/api/jmap/map';
export default { export default {
name: 'ReloadTodayPlan', name: 'ReloadTodayPlan',
@ -29,7 +29,6 @@ export default {
return { return {
dialogShow: false, dialogShow: false,
loading: false, loading: false,
mapList: [],
pagerConfig: { pagerConfig: {
pageSize: 'pageSize', pageSize: 'pageSize',
pageIndex: 'pageNum' pageIndex: 'pageNum'
@ -52,15 +51,6 @@ export default {
{ {
title: '运行图名称', title: '运行图名称',
prop: 'name' prop: 'name'
},
{
title: '地图名称',
prop: 'mapId',
type: 'tag',
columnValue: (row) => {
return this.$convertField(row.mapId, this.mapList, ['id', 'name']);
},
tagType: (row) => { return 'success'; }
} }
] ]
}, },
@ -74,16 +64,9 @@ export default {
} }
}, },
methods: { methods: {
loadInitData() {
this.mapList = [];
listPublishMap().then(response => {
this.mapList = response.data;
});
},
doShow() { doShow() {
this.loading = false; this.loading = false;
this.dialogShow = true; this.dialogShow = true;
this.loadInitData();
}, },
doClose() { doClose() {
this.dialogShow = false; this.dialogShow = false;

View File

@ -21,7 +21,7 @@
import { runPlanTemplateList } from '@/api/runplan'; import { runPlanTemplateList } from '@/api/runplan';
import { getStationList } from '@/api/runplan'; import { getStationList } from '@/api/runplan';
import { getEveryDayRunPlanData, generateDayRunPlan } from '@/api/simulation'; import { getEveryDayRunPlanData, generateDayRunPlan } from '@/api/simulation';
import { listPublishMap, getPublishMapInfo} from '@/api/jmap/map'; import {getPublishMapInfo} from '@/api/jmap/map';
export default { export default {
name: 'ReloadTodayPlan', name: 'ReloadTodayPlan',
@ -29,7 +29,6 @@ export default {
return { return {
dialogShow: false, dialogShow: false,
loading: false, loading: false,
mapList: [],
pagerConfig: { pagerConfig: {
pageSize: 'pageSize', pageSize: 'pageSize',
pageIndex: 'pageNum' pageIndex: 'pageNum'
@ -52,15 +51,6 @@ export default {
{ {
title: '运行图名称', title: '运行图名称',
prop: 'name' prop: 'name'
},
{
title: '地图名称',
prop: 'mapId',
type: 'tag',
columnValue: (row) => {
return this.$convertField(row.mapId, this.mapList, ['id', 'name']);
},
tagType: (row) => { return 'success'; }
} }
] ]
}, },
@ -74,16 +64,9 @@ export default {
} }
}, },
methods: { methods: {
loadInitData() {
this.mapList = [];
listPublishMap().then(response => {
this.mapList = response.data;
});
},
doShow() { doShow() {
this.loading = false; this.loading = false;
this.dialogShow = true; this.dialogShow = true;
this.loadInitData();
}, },
doClose() { doClose() {
this.dialogShow = false; this.dialogShow = false;

View File

@ -21,7 +21,7 @@
import { runPlanTemplateList } from '@/api/runplan'; import { runPlanTemplateList } from '@/api/runplan';
import { getStationList } from '@/api/runplan'; import { getStationList } from '@/api/runplan';
import { getEveryDayRunPlanData, generateDayRunPlan } from '@/api/simulation'; import { getEveryDayRunPlanData, generateDayRunPlan } from '@/api/simulation';
import { listPublishMap, getPublishMapInfo } from '@/api/jmap/map'; import { getPublishMapInfo } from '@/api/jmap/map';
export default { export default {
name: 'ReloadTodayPlan', name: 'ReloadTodayPlan',
@ -29,7 +29,6 @@ export default {
return { return {
dialogShow: false, dialogShow: false,
loading: false, loading: false,
mapList: [],
pagerConfig: { pagerConfig: {
pageSize: 'pageSize', pageSize: 'pageSize',
pageIndex: 'pageNum' pageIndex: 'pageNum'
@ -52,15 +51,6 @@ export default {
{ {
title: this.$t('menu.runGraphName'), title: this.$t('menu.runGraphName'),
prop: 'name' prop: 'name'
},
{
title: this.$t('menu.mapName'),
prop: 'mapId',
type: 'tag',
columnValue: (row) => {
return this.$convertField(row.mapId, this.mapList, ['id', 'name']);
},
tagType: (row) => { return 'success'; }
} }
] ]
}, },
@ -74,16 +64,9 @@ export default {
} }
}, },
methods: { methods: {
loadInitData() {
this.mapList = [];
listPublishMap().then(response => {
this.mapList = response.data;
});
},
doShow() { doShow() {
this.loading = false; this.loading = false;
this.dialogShow = true; this.dialogShow = true;
this.loadInitData();
}, },
doClose() { doClose() {
this.dialogShow = false; this.dialogShow = false;

View File

@ -136,7 +136,7 @@ export default {
runPlanPreview(index, row) { runPlanPreview(index, row) {
previewRunPlan(row.id).then(resp => { previewRunPlan(row.id).then(resp => {
const query = { const query = {
skinCode: row.skinCode, prdType: '01', group: resp.data, mapId: row.mapId, planId: row.id, from:'' prdType: '01', group: resp.data, mapId: row.mapId, planId: row.id, from:''
}; };
this.$router.push({ path: `${UrlConfig.display}/plan`, query: query }); this.$router.push({ path: `${UrlConfig.display}/plan`, query: query });
launchFullscreen(); launchFullscreen();

View File

@ -135,9 +135,9 @@ export default {
this.$refs.applyReject.doShow(row); this.$refs.applyReject.doShow(row);
}, },
scriptPreview(index, row) { scriptPreview(index, row) {
const mapInfo = this.allMapList.find(elem=>{ return elem.id == row.mapId; }); // const mapInfo = this.allMapList.find(elem=>{ return elem.id == row.mapId; });
scriptDraftRecordNotify(row.id).then(resp => { scriptDraftRecordNotify(row.id).then(resp => {
const query = { mapId: row.mapId, group: resp.data, scriptId: row.id, skinCode:mapInfo.skinCode, try:0}; const query = { mapId: row.mapId, group: resp.data, scriptId: row.id, try:0};
this.$router.push({ path: `${UrlConfig.design.display}/demon`, query }); this.$router.push({ path: `${UrlConfig.design.display}/demon`, query });
launchFullscreen(); launchFullscreen();
}).catch(error => { }).catch(error => {

View File

@ -11,7 +11,7 @@
<el-table-column prop="startTime" :label="`${$t('permission.startTime')}`" /> <el-table-column prop="startTime" :label="`${$t('permission.startTime')}`" />
<el-table-column prop="endTime" :label="`${$t('permission.endTime')}`"> <el-table-column prop="endTime" :label="`${$t('permission.endTime')}`">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.endTime? scope.row.endTime: '永久' }}</span> <span>{{ scope.row.endTime? scope.row.endTime: $t('global.perpetual') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="amount" :label="$t('global.total')" /> <el-table-column prop="amount" :label="$t('global.total')" />

View File

@ -105,7 +105,7 @@ export default {
launchFullscreen(); launchFullscreen();
await putJointTrainingSimulationEntrance(this.group); await putJointTrainingSimulationEntrance(this.group);
const rest = await getPublishMapInfo(this.mapId); const rest = await getPublishMapInfo(this.mapId);
const query = { skinCode: rest.data.lineCode, mapId: this.mapId, group: this.group, subSystem: this.$route.query.subSystem }; const query = { lineCode: rest.data.lineCode, mapId: this.mapId, group: this.group, subSystem: this.$route.query.subSystem };
this.$router.push({ path: `/jointTraining`, query: query }); this.$router.push({ path: `/jointTraining`, query: query });
} else if (this.state == '01') { } else if (this.state == '01') {
const query = { group: this.group }; const query = { group: this.group };

View File

@ -59,7 +59,7 @@ export default {
launchFullscreen(); launchFullscreen();
await putJointTrainingSimulationEntrance(this.group); await putJointTrainingSimulationEntrance(this.group);
const rest = await getPublishMapInfo(this.mapId); const rest = await getPublishMapInfo(this.mapId);
const query = { skinCode: rest.data.lineCode, mapId: this.mapId, group: this.group }; const query = { lineCode: rest.data.lineCode, mapId: this.mapId, group: this.group };
this.$router.push({ path: `/jointTraining`, query: query }); this.$router.push({ path: `/jointTraining`, query: query });
} else if (this.state == '01') { } else if (this.state == '01') {
const query = { group: this.group }; const query = { group: this.group };

View File

@ -54,7 +54,7 @@ export default {
id: '', id: '',
name: '', name: '',
mapId: '', mapId: '',
skinCode: '', lineCode: '',
remarks: '', remarks: '',
prdType: '', prdType: '',
prdId: '', prdId: '',
@ -105,7 +105,7 @@ export default {
id: resp.data.mapPrd.id, id: resp.data.mapPrd.id,
name: resp.data.mapPrd.name, name: resp.data.mapPrd.name,
mapId: this.mapId, mapId: this.mapId,
skinCode: resp.data.mapPrd.skinCode, lineCode: resp.data.mapPrd.lineCode,
remarks: resp.data.mapPrd.remarks, remarks: resp.data.mapPrd.remarks,
prdType: resp.data.mapPrd.prdType, prdType: resp.data.mapPrd.prdType,
prdId: resp.data.mapPrd.id, prdId: resp.data.mapPrd.id,
@ -158,7 +158,7 @@ export default {
}, },
async joinRoom() { async joinRoom() {
await getjointTraining(this.jointGroup); await getjointTraining(this.jointGroup);
const query = { skinCode: this.courseModel.skinCode, group: this.jointGroup, subSystem: this.$route.params.subSystem}; const query = { lineCode: this.courseModel.lineCode, group: this.jointGroup, subSystem: this.$route.params.subSystem};
this.$router.push({ path: `/trainroom`, query: query }); this.$router.push({ path: `/trainroom`, query: query });
}, },
async createRoom() { async createRoom() {
@ -170,7 +170,7 @@ export default {
}; };
const res = await postCreateRoom(param); const res = await postCreateRoom(param);
if (res && res.code == 200) { if (res && res.code == 200) {
const query = { skinCode: this.courseModel.skinCode, group: res.data, subSystem: this.$route.params.subSystem }; const query = { lineCode: this.courseModel.lineCode, group: res.data, subSystem: this.$route.params.subSystem };
this.$router.push({ path: `/trainroom`, query: query }); this.$router.push({ path: `/trainroom`, query: query });
} }
} catch (error) { } catch (error) {
@ -214,7 +214,7 @@ export default {
this.buttonLoading = true; this.buttonLoading = true;
const data = { mapId: this.courseModel.mapId, prdId: this.currentPrdId }; const data = { mapId: this.courseModel.mapId, prdId: this.currentPrdId };
schedulingNotify(data).then(resp => { schedulingNotify(data).then(resp => {
const query = { skinCode: this.courseModel.skinCode, group: resp.data, prdType: this.courseModel.prdType, mapId: this.courseModel.mapId, code: this.currentPrdId, goodsId: this.goodsId, try: this.tryUser }; const query = { lineCode: this.courseModel.lineCode, group: resp.data, prdType: this.courseModel.prdType, mapId: this.courseModel.mapId, code: this.currentPrdId, goodsId: this.goodsId, try: this.tryUser };
this.$router.push({ path: `${UrlConfig.display}/demon`, query: query }); this.$router.push({ path: `${UrlConfig.display}/demon`, query: query });
launchFullscreen(); launchFullscreen();
}).catch(error => { }).catch(error => {
@ -226,7 +226,7 @@ export default {
const data = { mapId: this.courseModel.mapId, mapPrdId: this.currentPrdId }; const data = { mapId: this.courseModel.mapId, mapPrdId: this.currentPrdId };
this.buttonLoading = true; this.buttonLoading = true;
simulationNotify(data).then(resp => { simulationNotify(data).then(resp => {
const query = { skinCode: this.courseModel.skinCode, group: resp.data, prdType: this.courseModel.prdType, mapId: this.courseModel.mapId, code: this.currentPrdId, goodsId: this.goodsId, try: this.tryUser }; const query = { lineCode: this.courseModel.lineCode, group: resp.data, prdType: this.courseModel.prdType, mapId: this.courseModel.mapId, code: this.currentPrdId, goodsId: this.goodsId, try: this.tryUser };
this.$router.push({ path: `${UrlConfig.display}/demon`, query: query }); this.$router.push({ path: `${UrlConfig.display}/demon`, query: query });
launchFullscreen(); launchFullscreen();
}).catch(error => { }).catch(error => {

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="app-wrapper"> <div class="app-wrapper">
<map-create ref="mapCreate" :skin-code="skinCode" @refresh="refresh1" /> <map-create ref="mapCreate" :line-code="lineCode" @refresh="refresh1" />
<div v-show="listShow" class="examList" :style="{width: widthLeft+'px'}"> <div v-show="listShow" class="examList" :style="{width: widthLeft+'px'}">
<demon-list ref="demonList" :width="widthLeft" @createMap="createMap" /> <demon-list ref="demonList" :width="widthLeft" @createMap="createMap" />
</div> </div>
@ -32,7 +32,7 @@ export default {
listShow: true, listShow: true,
widthLeft: Number(localStore.get('LeftWidth')) || 450, widthLeft: Number(localStore.get('LeftWidth')) || 450,
productList: [], productList: [],
skinCode: '' lineCode: ''
}; };
}, },
computed: { computed: {

View File

@ -18,7 +18,6 @@ export default {
}, },
data() { data() {
return { return {
cityList: [],
pagerConfig: { pagerConfig: {
pageSize: 'pageSize', pageSize: 'pageSize',
pageIndex: 'pageNum' pageIndex: 'pageNum'
@ -65,13 +64,6 @@ export default {
columnValue: (row) => { return this.$convertField(row.mapId, this.mapList, ['id', 'name']); }, columnValue: (row) => { return this.$convertField(row.mapId, this.mapList, ['id', 'name']); },
tagType: (row) => { return 'success'; } tagType: (row) => { return 'success'; }
}, },
{
title: this.$t('publish.city'),
prop: 'cityCode',
type: 'tag',
columnValue: (row) => { return this.$convertField(row.cityCode, this.cityList, ['code', 'name']); },
tagType: (row) => { return 'success'; }
},
{ {
title: this.$t('publish.lessonIntroduction'), title: this.$t('publish.lessonIntroduction'),
prop: 'remarks' prop: 'remarks'
@ -123,7 +115,6 @@ export default {
}, },
methods: { methods: {
loadInitData() { loadInitData() {
this.cityList = [];
this.mapList = []; this.mapList = [];
getPublishMapListOnline().then(resp => { getPublishMapListOnline().then(resp => {
this.mapList = resp.data; this.mapList = resp.data;
@ -131,14 +122,6 @@ export default {
this.queryForm.queryObject.mapId.config.data.push({value: elem.id, label: elem.name}); this.queryForm.queryObject.mapId.config.data.push({value: elem.id, label: elem.name});
}); });
}); });
this.$Dictionary.cityType().then(list => {
this.cityList = list;
this.cityList.forEach(elem => {
this.queryForm.queryObject.cityCode.config.data.push({ value: elem.code, label: elem.name });
});
}).catch(() => {
this.$messageBox(this.$t('error.loadingCityListFailed'));
});
}, },
// //
handleEdit(index, row) { handleEdit(index, row) {