| | |
| | | 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> |
| | |
| | | /> |
| | | </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'" |
| | |
| | | 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"; |
| | | }, |
| | |
| | | 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; |
| | |
| | | }); |
| | | }, |
| | | 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 }) { |
| | |
| | | .el-select { |
| | | width: 280px !important; |
| | | } |
| | | </style> |
| | | </style> |