代码调整
This commit is contained in:
parent
62a7cce5f1
commit
fcf4f542e0
@ -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});
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -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();
|
||||
|
@ -78,7 +78,6 @@ export default {
|
||||
handleClick: this.handleView,
|
||||
type: ''
|
||||
}
|
||||
// 无skincode
|
||||
]
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user