bug16 管理运行图计划中的查询功能缺失 代码调整

This commit is contained in:
joylink_cuiweidong 2021-01-08 16:42:59 +08:00
parent 18ff2dcd22
commit fd89b426b8

View File

@ -30,7 +30,16 @@ export default {
queryForm: {
labelWidth: '140px',
// reset: true,
offsetSpan: 20
// offsetSpan: 20,
queryObject: {
templatePlanId: {
type: 'select',
label: this.$t('publish.runPlanName'),
config: {
data: []
}
}
}
},
queryList: {
query: this.queryFunction,
@ -82,6 +91,9 @@ export default {
this.templatePlanList = [];
queryRunPlanList(this.$route.query.mapId).then(resp => {
this.templatePlanList = resp.data;
this.templatePlanList.forEach(element => {
this.queryForm.queryObject.templatePlanId.config.data.push({label:element.name, value:element.id});
});
});
},
queryFunction(params) {