| | |
| | | </el-upload> |
| | | </el-col> |
| | | </div> |
| | | |
| | | <!-- <el-button v-if="isShow" type="primary" @click="submitForm" :disabled="dsb">修改魅宠信息</el-button> --> |
| | | </el-col> |
| | | |
| | | </div> |
| | | </el-container> |
| | | |
| | |
| | | </div> |
| | | |
| | | </el-col> |
| | | |
| | | </div> |
| | | <div class="form-header mt"> |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | <div> |
| | | <el-button v-if="isShow" type="primary" @click="submitForm" :disabled="dsb">修改魅宠信息</el-button> |
| | | </div> |
| | | |
| | | <el-dialog :visible.sync="dialogVisible"> |
| | | <img w-full :src="dialogImageUrl" alt="Preview Image" /> |
| | |
| | | // 数据范围选项 |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | |
| | | |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | |
| | | jd = this.$route.query.detail |
| | | this.btn= jd |
| | | this.dsb = !jd |
| | | this.isShow = true |
| | | |
| | | // document.title = "修改魅宠详细信息"; |
| | | this.$route.meta.title = "修改魅宠详细信息";//列表的名称 |
| | | } |
| | |
| | | // document.title = "查看魅宠详细信息"; |
| | | this.$route.meta.title = "查看魅宠详细信息";//列表的名称 |
| | | this.btn = false; |
| | | this.isShow = false; |
| | | } |
| | | |
| | | let _this = this |
| | |
| | | getPetList(id).then((response) => { |
| | | this.petList = response.data; |
| | | console.log(this.petList) |
| | | alert(this.petList.headPicture) |
| | | // alert(this.petList.headPicture) |
| | | this.loading = false; |
| | | }); |
| | | // getPetowner(id).then((response) => { |
| | |
| | | }, |
| | | submitForm() { |
| | | |
| | | let ul = this.fileList1.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | let uls = this.fileList2.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | this.petList.headPicture = ul, |
| | | this.petList.fullPicture = uls, |
| | | // let ul = this.fileList1.map(function (elem){ |
| | | // return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | // }).join(",") |
| | | // let uls = this.fileList2.map(function (elem){ |
| | | // return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | // }).join(",") |
| | | // this.petList.headPicture = ul, |
| | | // this.petList.fullPicture = uls, |
| | | this.$refs['elForm'].validate(valid => { |
| | | |
| | | |