| | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="addVisibelReport">添加</el-button> |
| | | <el-button type="primary" @click="exportExcel">导出</el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-upload name="multipartFile" class="upload-demo" action="/api/cause/reporterUpload" |
| | |
| | | }, |
| | | methods: |
| | | { |
| | | expExcel(){ |
| | | |
| | | }, |
| | | addAduitAnJian(){ |
| | | let date=(new Date()).valueOf();//获取时间戳 |
| | | let txt = '1234567890';//生成的随机机器码 |
| | |
| | | //案件人员 |
| | | //导出文件 |
| | | exportExcel() { |
| | | this.$http.post('/api/report/exportReporter?id=' + this.exportReportId, {}, { responseType: 'blob' }) |
| | | this.$http.post('/api//cause/exp?causeId=' + this.exportReportId, {}, { responseType: 'blob' }) |
| | | .then(res => { |
| | | const fileName = decodeURI(res.headers['content-disposition'].split(';')[1].split('=')[1]) |
| | | const blob = new Blob([res.data], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }) |