| | |
| | | </el-form> |
| | | |
| | | <el-dialog :visible.sync="dialogVisible"> |
| | | <img w-full :src="dialogImageUrl" style="width: 700px; height: 700px" alt="Preview Image" /> |
| | | <img w-full :src="dialogImageUrl" style="width: 100%; height: 100%" alt="Preview Image" /> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | this.btn= jd |
| | | this.dsb = !jd |
| | | this.isShow=true |
| | | document.title = "修改大事记详细信息"; |
| | | // document.title = "修改大事记详细信息"; |
| | | this.$route.meta.title = "修改大事记详细信息";//列表的名称 |
| | | } |
| | | else{ |
| | | document.title = "家大事记详细信息"; |
| | | // document.title = "家大事记详细信息"; |
| | | this.$route.meta.title = "家大事记详细信息";//列表的名称 |
| | | this.btn = false; |
| | | this.isShow=false |
| | | alert(this.btn) |
| | | // alert(this.btn) |
| | | } |
| | | |
| | | let _this = this |
| | |
| | | console.log(this.formData) |
| | | if (valid) { |
| | | if (this.formData.id != undefined) { |
| | | // alert(234) |
| | | updateFamilyevent(this.formData).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | // this.open = false; |
| | | // alert(98) |
| | | this.btn=false |
| | | }); |
| | | } else { |
| | |
| | | |
| | | uploadPic(formData).then(response => { |
| | | let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) |
| | | this.uploading1= false; |
| | | _this.uploading1= false; |
| | | console.log(_this.fot.includes(pth)) |
| | | // debugger |
| | | if(_this.fot.includes(pth) === true) |
| | | { |
| | | _this.fileList.push({name:response.data.fileName, "url":response.data.url}) |
| | | let ul = this.fileList.map(function (elem){ |
| | | let ul = _this.fileList.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | let uls = this.fileListOther.map(function (elem){ |
| | | let uls = _this.fileListOther.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | this.formData.url = ul+","+uls |
| | | console.log(this.formData.url) |
| | | updateFamilyevent(this.formData).then(response => { |
| | | this.$modal.msgSuccess("图片上传成功"); |
| | | _this.formData.url = ul+","+uls |
| | | console.log(_this.formData.url) |
| | | // alert(87) |
| | | updateFamilyevent(_this.formData).then(response => { |
| | | _this.$modal.msgSuccess("图片上传成功"); |
| | | // this.open = false; |
| | | |
| | | }); |
| | |
| | | this.uploading = true; |
| | | uploadPic(formData).then(response => { |
| | | let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) |
| | | this.uploading = false; |
| | | _this.uploading = false; |
| | | // this.$modal.msgSuccess("上传成功"); |
| | | if(_this.fot.includes(pth) === true) |
| | | { |
| | |
| | | |
| | | else{ |
| | | _this.fileListOther.push({name:response.data.fileName, url:response.data.url}) |
| | | let ul = this.fileList.map(function (elem){ |
| | | let ul = _this.fileList.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | let uls = this.fileListOther.map(function (elem){ |
| | | let uls = _this.fileListOther.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | this.formData.url = ul+","+uls |
| | | console.log(this.formData.url) |
| | | updateFamilyevent(this.formData).then(response => { |
| | | _this.formData.url = ul+","+uls |
| | | console.log(_this.formData.url) |
| | | updateFamilyevent(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | |
| | |
| | | display: block; |
| | | |
| | | } |
| | | .hide .el-upload--picture-card { |
| | | .hide /deep/ .el-upload--picture-card { |
| | | display: none; |
| | | } |
| | | .pt{ |