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 |   35 +++++++++++++++++------------------
 1 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/src/views/padSunmaryProcedure/word_mange/mangeJD.vue b/src/views/padSunmaryProcedure/word_mange/mangeJD.vue
index 9cd0ffd..42a5033 100644
--- a/src/views/padSunmaryProcedure/word_mange/mangeJD.vue
+++ b/src/views/padSunmaryProcedure/word_mange/mangeJD.vue
@@ -119,7 +119,7 @@
 </template>
 
 <script>
-import {inquiry, nowpenaltydecision} from "../../../api/News/pad";
+import {createword, inquiry, nowpenaltydecision} from "../../../api/News/pad";
 
 
 export default {
@@ -144,8 +144,10 @@
   },
   methods: {
     init() {
-      nowpenaltydecision(this.id).then(res => {
-        this.form = res.data.data
+      this.$nextTick(() => {
+        nowpenaltydecision(this.id).then(res => {
+          this.form = res.data.data
+        })
       })
     },
     //鐐瑰嚮淇濆瓨鏁版嵁
@@ -162,25 +164,22 @@
     //鐐瑰嚮棰勮
     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")
     },

--
Gitblit v1.9.1