skinCode调整

This commit is contained in:
joylink_cuiweidong 2019-11-08 18:19:35 +08:00
parent 46effe5ca8
commit ee600f8915
8 changed files with 19 additions and 16 deletions

View File

@ -492,5 +492,6 @@ export default {
sourceTrainWindow: 'Source train window',
trainWindow: 'Train window',
targetTrainWindow: 'Target train window',
category: 'category'
category: 'category',
lineCode:'Line Type'
};

View File

@ -488,6 +488,7 @@ export default {
sourceTrainWindow: '源车次窗',
trainWindow: '车次窗',
targetTrainWindow: '目的车次窗',
category: '类别'
category: '类别',
lineCode:'线路类型'
};

View File

@ -135,7 +135,7 @@ export default {
handleConfirm(row) {
this.loadRunPlanData({
planId: row.id,
skinCode: this.$route.query.skinCode,
lineCode: this.$route.query.lineCode,
planName: row.name
});
},
@ -147,11 +147,11 @@ export default {
this.$message.info(this.$t('planMonitor.openRunPlan.pleaseSelectRunplan'));
}
},
loadRunPlanData({ refresh, planId, skinCode, planName }) {
loadRunPlanData({ refresh, planId, lineCode, planName }) {
if (refresh) {
this.$store.dispatch('runPlan/refresh');
} else {
const query = { skinCode: skinCode, mapId: this.$route.params.mapId, planId: planId, planName: planName };
const query = { lineCode: lineCode, mapId: this.$route.params.mapId, planId: planId, planName: planName };
if (/^\/design\/userlist/.test(this.$route.fullPath)) {
this.$router.push({ path: `/plan/usertool`, query: query });
} else {
@ -243,7 +243,7 @@ export default {
handlePreview(row) {
previewRunPlan(row.id).then(resp => {
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 });
launchFullscreen();

View File

@ -72,12 +72,12 @@ export default {
name: this.$t('global.delete'),
handleClick: this.handleDelete,
type: 'danger'
},
{
name: this.$t('global.preview'),
handleClick: this.handleView,
type: ''
}
// {
// name: this.$t('global.preview'),
// handleClick: this.handleView,
// type: ''
// }
// skincode
]
}
@ -117,7 +117,8 @@ export default {
},
//
handleView(index, row) {
this.$router.push({ path: `${UrlConfig.publish.runPlanView}/everyDay`, query: { skinCode: row.skinCode, planId: row.id } });
const data = this.mapList.filter(elem=>{ return elem.id == row.mapId; })[0];
this.$router.push({ path: `${UrlConfig.publish.runPlanView}/everyDay`, query: { lineCode: data.lineCode, planId: row.id, mapId: row.mapId } });
},
reloadTable() {
this.queryList.reload();

View File

@ -176,7 +176,7 @@ export default {
},
methods: {
loadChartPage(opt) {
this.PlanConvert = this.$theme.loadPlanConvert(opt.skinCode);
this.PlanConvert = this.$theme.loadPlanConvert(opt.lineCode);
this.$store.dispatch('runPlan/clear').then(resp => {
this.loadInitChart().then(() => {
if (opt.mapId && opt.planId) {

View File

@ -172,7 +172,8 @@ export default {
},
//
handleView(index, row) {
this.$router.push({ path: `${UrlConfig.publish.runPlanView}/template`, query: { skinCode: row.skinCode, planId: row.id, mapId: row.mapId } });
const data = this.mapIdList.filter(elem=>{ return elem.id == row.mapId; })[0];
this.$router.push({ path: `${UrlConfig.publish.runPlanView}/template`, query: { lineCode: data.lineCode, planId: row.id, mapId: row.mapId } });
},
reloadTable() {
this.queryList.reload();

View File

@ -256,7 +256,6 @@ export default {
previewScript(index, row) {
scriptDraftRecordNotify(row.id).then(resp => {
const query = { mapId: row.mapId, group: resp.data, scriptId: row.id, try:0};
// skinCode:this.$route.query.skinCode,
this.$router.push({ path: `${UrlConfig.design.display}/demon`, query });
launchFullscreen();
}).catch(error => {

View File

@ -146,7 +146,7 @@ export default {
this.$router.push({ path: `${UrlConfig.trainingPlatform.prodDetail}/${obj.id}`, query: { mapId: this.mapId}});
break;
case 'Plan':
this.$router.push({ path: `${UrlConfig.trainingPlatform.runPlan}/${this.mapId}`, query: {skinCode: '02'} });
this.$router.push({ path: `${UrlConfig.trainingPlatform.runPlan}/${this.mapId}`, query: {lineCode: '02'} });
break;
}
}).catch((error) => {