From 6f4d30454c52df980eef0607611ec66a57ec0e5c Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期五, 15 十二月 2023 20:59:51 +0800
Subject: [PATCH] 案件池优化

---
 src/views/operate/images/updateUser/index.vue |   30 +++++++++++++++++++-----------
 1 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/src/views/operate/images/updateUser/index.vue b/src/views/operate/images/updateUser/index.vue
index a4af929..0bfbeb2 100644
--- a/src/views/operate/images/updateUser/index.vue
+++ b/src/views/operate/images/updateUser/index.vue
@@ -24,7 +24,7 @@
               v-model="getCategory(imagedata.category).label"
             ></el-input>
           </el-form-item>
-          
+
           <el-form-item prop="regionName" label="绀惧尯鍚嶇О">
             <el-input v-model="imagedata.regionName"></el-input>
           </el-form-item>
@@ -41,7 +41,7 @@
               />
             </el-select>
           </el-form-item> -->
-          <el-form-item prop="url" label="鍥剧墖:" min-width="8"> 
+          <el-form-item prop="url" label="鍥剧墖:" min-width="8">
             <my-upload
               :picture-list="imageList"
               :is-show-upload="dialogType !== 'view'"
@@ -126,7 +126,15 @@
       this.imagedata = deepClone(this.originalData);
     }
     if (this.dialogType !== "create") {
-      this.imageList = this.imagedata.url.split(",");
+      let _imageList = [];
+      let imageData = this.imagedata.url.split(",");
+      imageData.forEach((url) => {
+        console.log(
+          "鍥剧墖锛�" + `${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`
+        );
+        _imageList.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`);
+      });
+      this.imageList = _imageList;
     }
     this.isDisabled = this.dialogType === "view";
   },
@@ -134,7 +142,7 @@
     onSubmit() {
       this.$refs.user.validate((valid) => {
         if (valid) {
-          this.imagedata.type="03";
+          this.imagedata.type = "03";
           const params = Object.assign({}, this.imagedata);
           delete params.regionName;
           delete params.category;
@@ -164,7 +172,7 @@
       });
     },
     setPictureUrl({ url }) {
-      this.imageList.push(`${FILE_ORIGINAL_URL}${url}`);
+      this.imageList.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`);
       this.imagedata.url = this.imageList.join(",");
     },
     delPictureUrl({ url }) {
@@ -199,13 +207,13 @@
 <style lang="scss" scoped>
 .updateUser {
   border-radius: 1px;
-  background-color: #09152f;
+  // background-color: #09152f;
 
   main {
     // border: 1px solid #fff;
     text-align: left;
     padding: 0 55px;
-    background-color: #09152f;
+    // background-color: #09152f;
     padding-bottom: 50px;
 
     .mainContent {
@@ -252,7 +260,7 @@
 }
 
 .updateUser::v-deep .el-input__inner {
-  background-color: #09152f;
+  // background-color: #09152f;
   border: 1px solid #17324c;
 }
 
@@ -295,7 +303,7 @@
     min-height: 240px;
     max-height: 260px;
     overflow: hidden;
-    background-color: #09152f;
+    // background-color: #09152f;
     position: relative;
     max-width: 220px;
 
@@ -329,7 +337,7 @@
       right: 20px;
       width: 20px;
       height: 180px;
-      background-color: #09152f;
+      // background-color: #09152f;
     }
 
     .item {
@@ -346,4 +354,4 @@
 .el-select {
   width: 280px !important;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0