| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {inquiry, nowpenaltydecision} from "../../../api/News/pad"; |
| | | import {createword, inquiry, nowpenaltydecision} from "../../../api/News/pad"; |
| | | |
| | | |
| | | export default { |
| | |
| | | //点击预览 |
| | | viewVord(data) { |
| | | // let wordData = this.transforData(data); |
| | | this.$router.push({ |
| | | path: '/WordYulan', |
| | | query: { |
| | | wordData: data, |
| | | src: '/wordes/penaltyDecision.docx', |
| | | name: '处罚决定书', |
| | | } |
| | | createword(data).then(res =>{ |
| | | // console.log(this.form.id) |
| | | console.log(res,'123456') |
| | | window.android.toPreviewWord(res.data.data) |
| | | }).catch(err=>{ |
| | | console.log(err,'错误'); |
| | | }) |
| | | }, |
| | | //点击下载 |
| | | downloadWord(data) { |
| | | this.$router.push({ |
| | | path: '/WordYulan', |
| | | query: { |
| | | id: this.id, |
| | | downWordData: data, |
| | | src: '/wordes/penaltyDecision.docx', |
| | | name: '处罚决定书', |
| | | } |
| | | createword(data).then(res =>{ |
| | | // console.log(this.form.id) |
| | | console.log(res,'123456') |
| | | window.android.toPreviewWord(res.data.data) |
| | | }).catch(err=>{ |
| | | console.log(err,'错误'); |
| | | }) |
| | | // WordView.methods.exportDoc(wordData, "/wordes/inquiryCause.docx", "调查询问笔录.docx") |
| | | }, |