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

View File

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

View File

@ -91,10 +91,10 @@ export default {
tagType: (row) => { return 'success'; }
},
{
title: this.$t('lesson.product'),
title: this.$t('lesson.prdType'),
prop: 'prdType',
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'; }
},
{

View File

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

View File

@ -120,13 +120,13 @@ export default {
name: this.$t('global.edit'),
handleClick: this.handleEdit,
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(() => {
// this.$router.push({
// 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);
this.$messageBox(this.$t('global.buyingTips'));