| | |
| | | <el-form-item label="改正时间"> |
| | | <el-date-picker |
| | | v-model="form.correctTime" |
| | | type="date" |
| | | type="datetime" |
| | | style="width: 100%!important;" |
| | | :value-format="`yyyy-MM-dd`" |
| | | :value-format="`yyyy-MM-dd HH:mm:ss`" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <div style="text-align: center"> |
| | | <el-button v-if="form.registerState=='0'||form.registerState==null" @click="dataFormSubmit('0')">保存</el-button> |
| | | <el-button type="primary" @click="viewVord(form)">预览</el-button> |
| | | <el-button v-if="form.registerState=='1'" type="success" @click="downloadWord(form)">下载</el-button> |
| | | <el-button v-if="form.approvalState==null||form.approvalState=='2'" @click="dataFormSubmit('0')">保存</el-button> |
| | | <el-button type="primary" @click="viewVord(form.id)">预览</el-button> |
| | | <el-button v-if="form.approvalState=='1'" type="success" @click="downloadWord(form.id)">下载</el-button> |
| | | </div> |
| | | </el-main> |
| | | </template> |
| | | |
| | | <script> |
| | | import {createword, ordercorrec, ordercorrection} from '../../../api/News/pad' |
| | | import { ordercorrec, ordercorrection} from '../../../api/News/pad' |
| | | import {getLaw, getLawTiao, lawInfo} from '@/api/lawList/lawList'; |
| | | import {gzwo} from "../../../api/News/word"; |
| | | |
| | | |
| | | export default { |
| | |
| | | //点击预览 |
| | | viewVord(data) { |
| | | // let wordData = this.transforData(data); |
| | | createword(data).then(res => { |
| | | console.log(res.data.data, 'res.data.data') |
| | | gzwo(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 => { |
| | | gzwo(data).then(res => { |
| | | // console.log(this.form.id) |
| | | this.arrays = res.data.data.split(',')[0] |
| | | window.android.toDownLoadWord(this.arrays) |