|
|
@ -29,6 +29,11 @@ |
|
|
|
<el-button type="primary" style="margin-left:10px" size="small" |
|
|
|
class="diy-button--white el-button--default" @click="handleExportModule">下载模板</el-button> |
|
|
|
</div> |
|
|
|
<el-radio-group v-model="formData.orgCategoryCode" @change="handelChangeCategory" style="margin: 20px 0 0;"> |
|
|
|
<el-radio-button label="province">省满意度调查</el-radio-button> |
|
|
|
<el-radio-button label="city">区满意度调查</el-radio-button> |
|
|
|
<el-radio-button label="district">市满意度调查</el-radio-button> |
|
|
|
</el-radio-group> |
|
|
|
<div class="m-table-item" :style="{ height: maxTableHeight + 'px', width: '100%' }"> |
|
|
|
<div id="myCharts"></div> |
|
|
|
</div> |
|
|
@ -38,7 +43,7 @@ |
|
|
|
:close-on-press-escape="false" title="省满意度调查列表" :modal-append-to-body="false" width="820px" top="5vh" |
|
|
|
class="dialog-h" @closed="showFormList = false"> |
|
|
|
<form-list ref="ref_form_list" @handleClose="handleClose" :satisfactionCategoryStr="satisfactionCategoryStr" |
|
|
|
:periodStart="formData.periodStart" @handelClickDetail="handelClickDetail" |
|
|
|
:formObj="formData" @handelClickDetail="handelClickDetail" |
|
|
|
@handelClickEdit="handelClickEdit"></form-list> |
|
|
|
<el-dialog width="820px" class="dialog-h" title="省满意度调查详情" :close-on-click-modal="false" |
|
|
|
v-if="showProvinceFollowUpDetail" :visible.sync="showProvinceFollowUpDetail" append-to-body> |
|
|
@ -66,6 +71,7 @@ export default { |
|
|
|
showFormList: false, |
|
|
|
formData: { |
|
|
|
periodStart: "", |
|
|
|
orgCategoryCode:"province" |
|
|
|
}, |
|
|
|
|
|
|
|
multiSelection: [], // 多选结果 |
|
|
@ -192,9 +198,6 @@ export default { |
|
|
|
this.myChart.setOption(this.option) |
|
|
|
let than = this |
|
|
|
this.myChart.on('click', function (params) { |
|
|
|
// console.log(params.name); // 柱子对应的类目名 |
|
|
|
// console.log(params.data); // 柱子的数据 |
|
|
|
// console.log(params.seriesName); // 对应的系列名称 |
|
|
|
than.handelClickChart(params.name) |
|
|
|
}); |
|
|
|
|
|
|
@ -223,6 +226,9 @@ export default { |
|
|
|
this.showProvinceFollowUpDetail = true |
|
|
|
this.detailObj = row || {} |
|
|
|
}, |
|
|
|
handelChangeCategory(){ |
|
|
|
this.getTableData() |
|
|
|
}, |
|
|
|
handleComfirm(form) { |
|
|
|
this.showProvinceFollowUpDetail = false |
|
|
|
this.save(form) |
|
|
@ -337,6 +343,7 @@ export default { |
|
|
|
}); |
|
|
|
const formData = new FormData(); //FormData对象,添加参数只能通过append('key', value)的形式添加 |
|
|
|
formData.append("file", file.file); //添加文件对象 |
|
|
|
formData.append("orgCategory",than.formData.orgCategoryCode); //添加文件对象 |
|
|
|
await this.$http |
|
|
|
.post(`/governance/provinceEvaluationRecord/importDataByExcel`, formData) |
|
|
|
.then((res) => { |
|
|
|