代码调整

This commit is contained in:
joylink_cuiweidong 2019-11-08 18:57:27 +08:00
parent 62a7cce5f1
commit fcf4f542e0
3 changed files with 6 additions and 5 deletions

View File

@ -93,7 +93,7 @@ export default {
title: this.$t('lesson.product'),
prop: 'prdId',
type: 'tag',
columnValue: (row) => { return this.$convertField(row.prdId, this.prdTypeList, ['code', 'name']); },
columnValue: (row) => { return this.$convertField(row.prdId, this.prdTypeList, ['id', 'name']); },
tagType: (row) => { return 'success'; }
},
{
@ -171,9 +171,11 @@ export default {
productList.forEach(elem => {
//
if (elem.prdType != '03') {
this.queryForm.queryObject.prdId.config.data.push({ value: elem.code, label: elem.name });
this.queryForm.queryObject.prdId.config.data.push({ value: elem.id, label: elem.name });
}
});
debugger;
this.typeChoose({type:this.queryForm.queryObject.prdId.config.data[0].id});
}
});

View File

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

View File

@ -78,7 +78,6 @@ export default {
handleClick: this.handleView,
type: ''
}
// skincode
]
}
]