From 4641a877cd6a94e4d35dca7f7f14bc1443e2d2ad Mon Sep 17 00:00:00 2001
From: luobisheng <727299681@qq.com>
Date: 星期二, 29 十一月 2022 17:59:55 +0800
Subject: [PATCH] 上传处置类型修改

---
 src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue |   35 +++++++++++++----------------------
 1 files changed, 13 insertions(+), 22 deletions(-)

diff --git a/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue b/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue
index 391627a..5f92844 100644
--- a/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue
+++ b/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue
@@ -51,28 +51,28 @@
                 <!-- 鏂囦功鐓х墖涓婁紶 -->
                 <el-form-item label="鏂囦功鐓х墖涓婁紶:" prop="writPic">
                     <div class="upImg">
-                        <MyUpload  @setPictureUrl="writPic" @delPictureUrl="delWritPic"></MyUpload>
+                        <MyUpload  @setPictureUrl="writPic" @delPictureUrl="delWritPic" :picture-list="book.writPic"></MyUpload>
                         <div class="tip">{{book.writPic.length}} / 4</div>
                     </div>
                 </el-form-item>
                 <!-- 鏁存敼鍓嶇収鐗� -->
                 <el-form-item label="鏁存敼鍓嶇収鐗�:" prop="originalPic">
                      <div class="upImg">
-                        <MyUpload  @setPictureUrl="originalPic" @delPictureUrl="delOriginalPic"></MyUpload>
+                        <MyUpload  @setPictureUrl="originalPic" @delPictureUrl="delOriginalPic" :picture-list="book.originalPic"></MyUpload>
                         <div class="tip">{{book.originalPic.length}} / 4</div>
                     </div>
                 </el-form-item>
                 <!-- 鏁存敼鍚庣収鐗� -->
                 <el-form-item label="鏁存敼鍚庣収鐗�:" prop="rectifiedPic">
                     <div class="upImg">
-                        <MyUpload  @setPictureUrl="rectifiedPic" @delPictureUrl="delRectifiedPic"></MyUpload>
+                        <MyUpload  @setPictureUrl="rectifiedPic" @delPictureUrl="delRectifiedPic" :picture-list="book.rectifiedPic"></MyUpload>
                         <div class="tip">{{book.rectifiedPic.length}} / 4</div>
                     </div>
                 </el-form-item>
                 <!-- 鍏朵粬鐓х墖 -->
                 <el-form-item label="鍏朵粬:" prop="otherPic">
                     <div class="upImg">
-                        <MyUpload  @setPictureUrl="otherPic" @delPictureUrl="delOtherPic"></MyUpload>
+                        <MyUpload  @setPictureUrl="otherPic" @delPictureUrl="delOtherPic" :picture-list="book.otherPic"></MyUpload>
                         <div class="tip">{{book.otherPic.length}} / 4</div>
                     </div>
                 </el-form-item>
@@ -81,7 +81,7 @@
     </div>
 </template>
 <script>
-import {getCodeList} from '@/utils/helper'
+import {deepClone, getCodeList} from '@/utils/helper'
 import MyUpload from "@/components/myUpload"
 export default {
     components: {
@@ -249,25 +249,16 @@
         }
     },
     created() {
-        const {getBookType} = this
-        getBookType();
-        const {mycode}=this;
-        this.getEventInfo(mycode);
+      this.getBookType();
+      if (this.writ) {
+        this.book = deepClone(this.writ);
+        this.book.originalPic = this.writ.originalPic.split(',');
+        this.book.writPic = this.writ.writPic.split(',');
+        this.book.otherPic = this.writ.otherPic.split(',');
+      }
     },
-    props: ['caseId', 'closeDialog','mycode'],
+    props: ['caseId', 'closeDialog','mycode', 'writ'],
     methods: {
-        // 鑾峰彇妗堜欢淇℃伅
-        async getEventInfo(mycode) {
-            await this.$axios({
-                method: 'get',
-                url: `sccg/base_case/baseCaseDetail/${mycode}`
-            })
-                .then(res => {
-                    this.basecase = res.data.baseCase.illegalBuilding.categoryText;
-                    this.book.illegalType=res.data.baseCase.illegalBuilding.categoryId;
-                })
-        },
-
         handleSuccess1(res, file, filelist) {
             const baseUrl = 'http://140.143.152.226:8410/';
             if (this.book.writPic.length < 4) {

--
Gitblit v1.8.0