zhanghua
2023-10-08 740f596cb7c5b5e3576ba8aab9c4cc5732b3ccf2
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>
</style>