| | |
| | | <template> |
| | | <el-main> |
| | | <el-form ref="form" :model="form" label-width="105px"> |
| | | <el-form ref="form" :model="form" label-width="115px"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="文号"> |
| | |
| | | data(){ |
| | | return{ |
| | | id:'', |
| | | arrays: "", |
| | | form:{ |
| | | unitName:"", |
| | | litigant:"", |
| | |
| | | //点击预览 |
| | | viewVord(data) { |
| | | // let wordData = this.transforData(data); |
| | | createword(data).then(res =>{ |
| | | // console.log(this.form.id) |
| | | console.log(res,'123456') |
| | | window.android.toPreviewWord(res.data.data) |
| | | }).catch(err=>{ |
| | | console.log(err,'错误'); |
| | | createword(data).then(res => { |
| | | console.log(res.data.data, 'res.data.data') |
| | | // this.form.questionsAnswers[0].wen =res.data.data |
| | | this.arrays = res.data.data.split(',')[1] |
| | | window.android.toPreviewWord(this.arrays) |
| | | }) |
| | | }, |
| | | //点击下载 |
| | | downloadWord(data){ |
| | | createword(data).then(res =>{ |
| | | createword(data).then(res => { |
| | | // console.log(this.form.id) |
| | | console.log(res,'123456') |
| | | window.android.toDownLoadWord(res.data.data) |
| | | }).catch(err=>{ |
| | | console.log(err,'错误'); |
| | | this.arrays = res.data.data.split(',')[0] |
| | | window.android.toDownLoadWord(this.arrays) |
| | | }) |
| | | // WordView.methods.exportDoc(wordData, "/wordes/inquiryCause.docx", "调查询问笔录.docx") |
| | | }, |