From 6f3cbab6a74ea6dbf419eca60d45715a0090263e Mon Sep 17 00:00:00 2001 From: yang <1441163367@qq.com> Date: 星期五, 28 十月 2022 14:56:05 +0800 Subject: [PATCH] 修改问题 --- src/views/padSunmaryProcedure/word_mange/mangeJD.vue | 45 ++++++++++++++++++++++++--------------------- 1 files changed, 24 insertions(+), 21 deletions(-) diff --git a/src/views/padSunmaryProcedure/word_mange/mangeJD.vue b/src/views/padSunmaryProcedure/word_mange/mangeJD.vue index 6e26e11..42a5033 100644 --- a/src/views/padSunmaryProcedure/word_mange/mangeJD.vue +++ b/src/views/padSunmaryProcedure/word_mange/mangeJD.vue @@ -119,14 +119,14 @@ </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: "", @@ -138,20 +138,23 @@ } } }, - 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("淇濆瓨鎴愬姛"); @@ -161,22 +164,22 @@ //鐐瑰嚮棰勮 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") }, -- Gitblit v1.9.1