From 9333c944401847fc00df2ce03a210f48520bf680 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 23 Sep 2021 17:25:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E8=AF=A6=E6=83=85=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/form/statistics/analysis.vue | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/views/form/statistics/analysis.vue b/src/views/form/statistics/analysis.vue index 1e5de56..e8d164e 100644 --- a/src/views/form/statistics/analysis.vue +++ b/src/views/form/statistics/analysis.vue @@ -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() {