|
|
@ -268,7 +268,7 @@ export default { |
|
|
|
} |
|
|
|
return config |
|
|
|
}, |
|
|
|
getDetail(id, type) { |
|
|
|
getInputList(id, type) { |
|
|
|
|
|
|
|
this.$api |
|
|
|
.post('/data/aggregator/questionnaire/itemresdetail-list', { |
|
|
@ -284,11 +284,28 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
getConcatList() { |
|
|
|
|
|
|
|
this.$api |
|
|
|
.post('/data/aggregator/questionnaire/itemresdetail-concat', { |
|
|
|
projectKey: this.$route.query.key |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
this.dialogData = res.data.dataMap |
|
|
|
this.dialogHeader = res.data.tableHeaderList |
|
|
|
}) |
|
|
|
}, |
|
|
|
async handleOpen(item) { |
|
|
|
if (item.type === 'SWITCH' || item.type === 'NUMBER_INPUT') return false |
|
|
|
|
|
|
|
this.dialogTitle = item.label |
|
|
|
this.dialogHeader.push(item) |
|
|
|
await this.getDetail(item.formItemId, item.type) |
|
|
|
if (item.moduleType && item.moduleType === 'concat') { |
|
|
|
await this.getConcatList() |
|
|
|
} else { |
|
|
|
this.dialogHeader.push(item) |
|
|
|
await this.getInputList(item.formItemId, item.type) |
|
|
|
} |
|
|
|
|
|
|
|
this.dialogTableVisible = true |
|
|
|
}, |
|
|
|
handleClose() { |
|
|
|