From a598d935a61fea27312fc57becd80e23bf09f788 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期五, 21 十月 2022 18:04:19 +0800
Subject: [PATCH] 修改bug

---
 src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 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 90d4f1b..26fbf54 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
@@ -7,8 +7,8 @@
                     <!-- 鏂囦功绉嶇被 -->
                     <el-form-item label="鏂囦功绉嶇被:" prop="writType">
                         <el-select v-model="book.writType" placeholder="璇疯緭鍏ユ枃涔︾绫�">
-                            <el-option v-for="item in kindList" :key="item.value" :label="item.label"
-                                :value="item.value">
+                            <el-option v-for="item in kindList" :key="item.id" :label="item.name"
+                                :value="item.id">
                             </el-option>
                         </el-select>
                     </el-form-item>
@@ -78,7 +78,7 @@
                         </div>
                         <div class="upload" v-if="book.originalPic.length<4">
                             <el-upload :file-list="fileList" class="upload-demo"
-                                action="http:///sccg/file/medias" multiple :show-file-list="false"
+                                action="/sccg/file/medias" multiple :show-file-list="false"
                                 :limit="4" :on-success="handleSuccess2" :headers="getToken()">
                                 <i class="el-icon-plus"></i>
                             </el-upload>
@@ -97,7 +97,7 @@
                         </div>
                         <div class="upload" v-if="book.rectifiedPic.length<4">
                             <el-upload :file-list="fileList" class="upload-demo"
-                                action="http:///sccg/file/medias" multiple :show-file-list="false"
+                                action="/sccg/file/medias" multiple :show-file-list="false"
                                 :limit="4" :on-success="handleSuccess3" :headers="getToken()">
                                 <i class="el-icon-plus"></i>
                             </el-upload>
@@ -116,7 +116,7 @@
                         </div>
                         <div class="upload" v-if="book.otherPic.length<4">
                             <el-upload :file-list="fileList" class="upload-demo"
-                                action="http:///sccg/file/medias" multiple :show-file-list="false"
+                                action="/sccg/file/medias" multiple :show-file-list="false"
                                 :limit="4" :on-success="handleSuccess4" :headers="getToken()">
                                 <i class="el-icon-plus"></i>
                             </el-upload>
@@ -129,6 +129,7 @@
     </div>
 </template>
 <script>
+import {getCodeList} from '@/utils/helper'
 export default {
     data() {
         const checkKind = (rule, value, callback) => {
@@ -296,36 +297,31 @@
         }
     },
     created() {
-        console.log(this.book.writPic)
+        const {getBookType} = this
+        getBookType();
     },
     props: ['caseId', 'closeDialog'],
     methods: {
         handleSuccess1(res, file, filelist) {
             const baseUrl = 'http://140.143.152.226:8410/';
-            console.log(res);
-            // this.$set(this.book, 'writPic', baseUrl + res.data.url1);
-            // console.log(this.book.writPic);
             if (this.book.writPic.length < 4) {
                 this.book.writPic.push(baseUrl + res.data.url1)
             }
         },
         handleSuccess2(res, file, filelist) {
             const baseUrl = 'http://140.143.152.226:8410/';
-            console.log(res);
             if (this.book.originalPic.length < 4) {
                 this.book.originalPic.push(baseUrl + res.data.url1)
             }
         },
         handleSuccess3(res, file, filelist) {
             const baseUrl = 'http://140.143.152.226:8410/';
-            console.log(res);
             if (this.book.rectifiedPic.length < 4) {
                 this.book.rectifiedPic.push(baseUrl + res.data.url1)
             }
         },
         handleSuccess4(res, file, filelist) {
             const baseUrl = 'http://140.143.152.226:8410/';
-            console.log(res);
             if (this.book.otherPic.length < 4) {
                 this.book.otherPic.push(baseUrl + res.data.url1)
             }
@@ -349,6 +345,12 @@
                 this.book.otherPic.splice(index, 1);
             }
 
+        },
+        // 鑾峰彇鏂囦功绉嶇被
+        async getBookType(){
+            let arr 
+            arr = await getCodeList('15');
+            this.kindList = arr;
         }
     },
     watch: {
@@ -428,6 +430,7 @@
         .img {
             height: 60px;
             position: relative;
+            margin-right: 10px;
         }
 
         .myicon {

--
Gitblit v1.8.0