|
@@ -5,7 +5,7 @@
|
|
<div class="dw-dcs-main-title">
|
|
<div class="dw-dcs-main-title">
|
|
<el-row type="flex">
|
|
<el-row type="flex">
|
|
<el-col :span="18"><div style="font-size: 14px;padding: 10px;"><strong>原始数据列表</strong></div></el-col>
|
|
<el-col :span="18"><div style="font-size: 14px;padding: 10px;"><strong>原始数据列表</strong></div></el-col>
|
|
- <el-col :span="6" style="text-align: right;padding-right: 16px;" ><el-button type="primary" size="small" >导出数据</el-button></el-col>
|
|
|
|
|
|
+ <el-col :span="6" style="text-align: right;padding-right: 16px;" ><el-button type="primary" size="small" @click="handleExport" >导出数据</el-button></el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
<el-table
|
|
<el-table
|
|
@@ -66,6 +66,7 @@
|
|
|
|
|
|
import DwSurveyDcsWrapper from '@/components/common/DwSurveyDcsWrapper'
|
|
import DwSurveyDcsWrapper from '@/components/common/DwSurveyDcsWrapper'
|
|
import {dwSurveyAnswerList} from '@/api/dw-survey'
|
|
import {dwSurveyAnswerList} from '@/api/dw-survey'
|
|
|
|
+import API from '@/api/index'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'DwSurveyAnswer',
|
|
name: 'DwSurveyAnswer',
|
|
@@ -96,6 +97,10 @@ export default {
|
|
handleCurrentChange (val) {
|
|
handleCurrentChange (val) {
|
|
this.queryList(val)
|
|
this.queryList(val)
|
|
},
|
|
},
|
|
|
|
+ handleExport () {
|
|
|
|
+ const downUrl = `${process.env.DW_API_URL}${API.surveyAnswerExport}?surveyId=${this.$route.params.id}`
|
|
|
|
+ window.location.href = downUrl
|
|
|
|
+ },
|
|
queryList (pageNo) {
|
|
queryList (pageNo) {
|
|
dwSurveyAnswerList(this.pageSize, pageNo, this.$route.params.id).then((response) => {
|
|
dwSurveyAnswerList(this.pageSize, pageNo, this.$route.params.id).then((response) => {
|
|
const resultData = response.data.data
|
|
const resultData = response.data.data
|