Browse Source

显示详情列表

old
13176889840 4 years ago
parent
commit
9333c94440
  1. 21
      src/views/form/statistics/analysis.vue

21
src/views/form/statistics/analysis.vue

@ -268,7 +268,7 @@ export default {
} }
return config return config
}, },
getDetail(id, type) { getInputList(id, type) {
this.$api this.$api
.post('/data/aggregator/questionnaire/itemresdetail-list', { .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) { async handleOpen(item) {
if (item.type === 'SWITCH' || item.type === 'NUMBER_INPUT') return false if (item.type === 'SWITCH' || item.type === 'NUMBER_INPUT') return false
this.dialogTitle = item.label this.dialogTitle = item.label
if (item.moduleType && item.moduleType === 'concat') {
await this.getConcatList()
} else {
this.dialogHeader.push(item) this.dialogHeader.push(item)
await this.getDetail(item.formItemId, item.type) await this.getInputList(item.formItemId, item.type)
}
this.dialogTableVisible = true this.dialogTableVisible = true
}, },
handleClose() { handleClose() {

Loading…
Cancel
Save