From 740f596cb7c5b5e3576ba8aab9c4cc5732b3ccf2 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期日, 08 十月 2023 08:39:24 +0800
Subject: [PATCH] 油烟-报警

---
 src/views/operate/images/updateUser/index.vue |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/src/views/operate/images/updateUser/index.vue b/src/views/operate/images/updateUser/index.vue
index a72651b..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 }) {
@@ -346,4 +354,4 @@
 .el-select {
   width: 280px !important;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0