From 1b3f4dd63fe08c6e8a48a635746aec1ea49c9c43 Mon Sep 17 00:00:00 2001
From: yang <1441163367@qq.com>
Date: 星期三, 26 十月 2022 14:19:12 +0800
Subject: [PATCH] 修改

---
 src/views/padSunmaryProcedure/word_mange/mangeBL.vue |   31 +++++++++++++++----------------
 1 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/src/views/padSunmaryProcedure/word_mange/mangeBL.vue b/src/views/padSunmaryProcedure/word_mange/mangeBL.vue
index ebf2780..48376c8 100644
--- a/src/views/padSunmaryProcedure/word_mange/mangeBL.vue
+++ b/src/views/padSunmaryProcedure/word_mange/mangeBL.vue
@@ -1,7 +1,6 @@
 <template>
   <el-main style="width: 100%;font-size: 18px;">
     <el-form ref="form" :model="form" label-width="85px" size="24">
-     <h1>{{id}}</h1>
       <el-form-item label="妗堢敱">
         <el-input v-model="form.causePoint" placeholder="璇峰~鍐欐鐢�"></el-input>
       </el-form-item>
@@ -10,7 +9,7 @@
           style="width: 100%"
           v-model="value1"
           type="datetimerange"
-          value-format="`yyyy-MM-dd HH:mm:ss`"
+          :value-format="`yyyy-MM-dd HH:mm:ss`"
           range-separator="鑷�"
           start-placeholder="寮�濮嬫棩鏈�"
           end-placeholder="缁撴潫鏃ユ湡">
@@ -132,7 +131,7 @@
     <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 type="success" @click="downloadWord(form)">涓嬭浇</el-button>
     </div>
   </el-main>
 </template>
@@ -142,9 +141,9 @@
 
 export default {
   name: "mangeBL",
-  props: ['id'],
   data() {
     return {
+        id:'',
       value1: [],
       form: {
         causePoint: "",
@@ -174,26 +173,24 @@
       },
     }
   },
-  created() {
+  mounted() {
+    this.id = this.$store.state.user.id
+    console.log(this.id,'id')
     this.getDataList()
     window.getSignUrl =this.getSignUrl;
     window.getFingerUrl =this.getFingerUrl;
 // this.getSignUrl();
   },
-    mounted() {
+    /*mounted() {
         console.log(this.id,'id=================')
-    },
+    },*/
   methods: {
     getDataList() {
-
-      this.$nextTick(()=>{
-        console.log(this.id,'this.id')
         inquiryquestion(this.id).then(res => {
-          this.form = res.data.data
-          /*this.value1.push(res.data.data.startTime)
-          this.value1.push(res.data.data.endTime)*/
+            this.form = res.data.data
+            this.value1.push(res.data.data.startTime)
+            this.value1.push(res.data.data.endTime)
         })
-      })
 
     },
     // 鐐瑰嚮娣诲姞
@@ -234,7 +231,8 @@
         path: '/WordYulan',
         query: {
           wordData: data,
-          src:'/wordes/inquiryCause.docx'
+          src:'/wordes/inquiryCause.docx',
+          name:'璋冩煡璇㈤棶绗斿綍',
         }
       })
     },
@@ -244,7 +242,8 @@
         path: '/WordYulan',
         query: {
           downWordData: data,
-          src:'/wordes/inquiryCause.docx'
+          src:'/wordes/inquiryCause.docx',
+          name:'璋冩煡璇㈤棶绗斿綍',
         }
       })
       // WordView.methods.exportDoc(wordData, "/wordes/inquiryCause.docx", "璋冩煡璇㈤棶绗斿綍.docx")

--
Gitblit v1.9.1