| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {inquiry, nowpenaltydecision} from "../../../api/News/pad"; |
| | | import {createword, inquiry, nowpenaltydecision} from "../../../api/News/pad"; |
| | | |
| | | |
| | | export default { |
| | | name: "mangeJD", |
| | | props: ['id'], |
| | | data() { |
| | | return { |
| | | id:'', |
| | | form: { |
| | | unitName: "", |
| | | litigant: "", |
| | |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | mounted() { |
| | | this.id = this.$store.state.user.id |
| | | this.init(); |
| | | }, |
| | | methods: { |
| | | init() { |
| | | nowpenaltydecision(this.id).then(res => { |
| | | this.form = res.data.data |
| | | this.$nextTick(() => { |
| | | nowpenaltydecision(this.id).then(res => { |
| | | this.form = res.data.data |
| | | }) |
| | | }) |
| | | }, |
| | | //点击保存数据 |
| | | dataFormSubmit() { |
| | | this.form.startTime = this.value1[0] |
| | | this.form.endTime = this.value1[1] |
| | | this.form.registerId = this.id |
| | | /*this.form.startTime = this.value1[0] |
| | | this.form.endTime = this.value1[1]*/ |
| | | //this.form.registerId = this.id |
| | | inquiry(this.form).then(res => { |
| | | if (res.data.code == 0) { |
| | | this.$message.success("保存成功"); |
| | |
| | | //点击预览 |
| | | viewVord(data) { |
| | | // let wordData = this.transforData(data); |
| | | this.$router.push({ |
| | | path: '/WordYulan', |
| | | query: { |
| | | wordData: data, |
| | | src:'/wordes/penaltyDecision.docx' |
| | | } |
| | | 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: { |
| | | downWordData: data, |
| | | src:'/wordes/penaltyDecision.docx' |
| | | } |
| | | downloadWord(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,'错误'); |
| | | }) |
| | | // WordView.methods.exportDoc(wordData, "/wordes/inquiryCause.docx", "调查询问笔录.docx") |
| | | }, |