prdType对应接口修改

This commit is contained in:
joylink_cuiweidong 2019-12-27 18:48:56 +08:00
parent eefaf8aad9
commit 0486d0211b
6 changed files with 21 additions and 22 deletions

View File

@ -104,20 +104,21 @@ export default {
const resp = await getSubSystemDetail(this.$route.params.subSystem); const resp = await getSubSystemDetail(this.$route.params.subSystem);
this.tryUser = 0; this.tryUser = 0;
this.loading = false; this.loading = false;
const remarksList = {'01':'ATS现地工作站原理级仿真实训课程', '02':'ATS行调工作站原理级仿真实训课程', '03':'各岗位应急综合演练', '04':'桌面版模拟驾驶系统', '05':'派班工作站主要是供车辆段/停车场派班员进行派班操作,可以自动生成派班计划,极大的简化了派班计划管理的复杂性'};
if (resp.data.mapPrd) { if (resp.data.mapPrd) {
this.courseModel = { this.courseModel = {
id: resp.data.mapPrd.id, id: resp.data.id,
name: resp.data.mapPrd.name, name: resp.data.name,
mapId: this.mapId, mapId: this.mapId,
lineCode: res.data.lineCode, lineCode: res.data.lineCode,
remarks: resp.data.mapPrd.remarks, remarks: remarksList[resp.data.prdType],
prdType: resp.data.mapPrd.prdType, prdType: resp.data.prdType,
prdId: resp.data.mapPrd.id, // prdId: resp.data.mapPrd.id,
pmsList: resp.data.permissionList || [], pmsList: resp.data.permissionList || [],
PermissionType: PermissionType.SIMULATION PermissionType: PermissionType.SIMULATION
}; };
this.currentPrdId = resp.data.mapPrd.id; this.currentPrdId = resp.data.mapPrd.id;
if (resp.data.mapPrd.prdType === '03') { if (resp.data.prdType === '03') {
this.getJointTrainingList(); this.getJointTrainingList();
} }
} }
@ -125,7 +126,7 @@ export default {
this.tryUser = 1; this.tryUser = 1;
const paras = { const paras = {
mapId: this.mapId, mapId: this.mapId,
prdId: this.courseModel.prdId, prdType: this.courseModel.prdType,
permissionType: PermissionType.SIMULATION permissionType: PermissionType.SIMULATION
}; };

View File

@ -39,8 +39,6 @@ import { runDiagramIsStart, quitScript } from '@/api/simulation';
import { timeFormat } from '@/utils/date'; import { timeFormat } from '@/utils/date';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
export default { export default {
name: 'MenuDemon', name: 'MenuDemon',
components: { components: {
@ -79,7 +77,7 @@ export default {
}, },
jl3dname: this.$t('display.demon.threeDimensionalView'), jl3dname: this.$t('display.demon.threeDimensionalView'),
jl3dmodel: this.$t('display.demon.deviceView'), jl3dmodel: this.$t('display.demon.deviceView'),
isShow3dmodel :false, isShow3dmodel :false
}; };
}, },
computed: { computed: {
@ -136,7 +134,7 @@ export default {
loadInitData() { loadInitData() {
const data = { const data = {
mapId: this.$route.query.mapId, mapId: this.$route.query.mapId,
prdId: this.$route.query.code, prdType: this.$route.query.prdType,
permissionType: PermissionType.SIMULATION permissionType: PermissionType.SIMULATION
}; };
getGoodsTryUse(data).then(res => { getGoodsTryUse(data).then(res => {

View File

@ -91,10 +91,10 @@ export default {
tagType: (row) => { return 'success'; } tagType: (row) => { return 'success'; }
}, },
{ {
title: this.$t('lesson.product'), title: this.$t('lesson.prdType'),
prop: 'prdType', prop: 'prdType',
type: 'tag', type: 'tag',
columnValue: (row) => { return this.$convertField(row.prdId, this.prdTypeList, ['label', 'name']); }, columnValue: (row) => { return this.$convertField(row.prdType, this.prdTypeList, ['value', 'label']); },
tagType: (row) => { return 'success'; } tagType: (row) => { return 'success'; }
}, },
{ {

View File

@ -35,7 +35,7 @@ export default {
id: '', id: '',
name: '', name: '',
mapId: '', mapId: '',
prdId: '', prdType: '',
cityCode: '' cityCode: ''
} }
}; };
@ -68,7 +68,7 @@ export default {
id: model.id, id: model.id,
name: model.name, name: model.name,
mapId: this.$route.params.mapId, mapId: this.$route.params.mapId,
prdId: model.prdId, prdType: model.prdType,
cityCode: model.cityCode cityCode: model.cityCode
}; };
this.dialogShow = true; this.dialogShow = true;

View File

@ -120,13 +120,13 @@ export default {
name: this.$t('global.edit'), name: this.$t('global.edit'),
handleClick: this.handleEdit, handleClick: this.handleEdit,
type: '' type: ''
},
{
name: this.$t('global.details'),
handleClick: this.handleRulesDetail,
type: '',
showControl: (row) => { return row.isPackage; }
} }
// {
// name: this.$t('global.details'),
// handleClick: this.handleRulesDetail,
// type: '',
// showControl: (row) => { return row.isPackage; }
// }
] ]
} }
], ],

View File

@ -154,7 +154,7 @@ export default {
// setTimeout(() => { // setTimeout(() => {
// this.$router.push({ // this.$router.push({
// path: `${UrlConfig.trainingPlatform.pay}/${this.courseModel.id}`, query: // path: `${UrlConfig.trainingPlatform.pay}/${this.courseModel.id}`, query:
// { permissionType: PermissionType.LESSON, lessonId: this.courseModel.id, prdId: this.$route.query.prdId, mapId: this.$route.query.mapId, subSystem: this.$route.params.subSystem } // { permissionType: PermissionType.LESSON, lessonId: this.courseModel.id, prdType: this.$route.query.prdType, mapId: this.$route.query.mapId, subSystem: this.$route.params.subSystem }
// }); // });
// }, 100); // }, 100);
this.$messageBox(this.$t('global.buyingTips')); this.$messageBox(this.$t('global.buyingTips'));