| | |
| | | |
| | | <h4 class="form-header">其他附件 </h4> |
| | | <el-upload |
| | | action="" |
| | | :file-list="fileListOther" |
| | | class="upload-demo" |
| | | action="#" |
| | | multiple |
| | | list-type="picture-card" |
| | | :on-preview="handleFileCardPreview" |
| | | :on-remove="handleRemoveFile" |
| | | :file-list="fileListOther" |
| | | :http-request="requestUpload1" |
| | | :show-file-list="true" |
| | | :disabled="!btn" |
| | | :class="{ hide: !btn }" |
| | | > |
| | |
| | | ></video> |
| | | <img v-else |
| | | class="el-upload-list__item-thumbnail" |
| | | src="../../assets/401_images/401.gif" |
| | | :src="file.url" |
| | | alt="" |
| | | style="width: 100%; height: 100%" |
| | | fit="cover"> |
| | |
| | | </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.$route.meta.title = "家大事记详细信息";//列表的名称 |
| | | this.btn = false; |
| | | this.isShow=false |
| | | // 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 { |
| | |
| | | updateFamilyevent(this.formData).then(response => { |
| | | this.$modal.msgSuccess("删除成功"); |
| | | // this.open = false; |
| | | // this.btn=false |
| | | |
| | | }); |
| | | } |
| | | }, |
| | |
| | | updateFamilyevent(this.formData).then(response => { |
| | | this.$modal.msgSuccess("删除成功"); |
| | | // this.open = false; |
| | | // this.btn=false |
| | | |
| | | }); |
| | | |
| | | } |
| | |
| | | updateFamilyevent(this.formData).then(response => { |
| | | this.$modal.msgSuccess("图片上传成功"); |
| | | // this.open = false; |
| | | // this.btn=false |
| | | |
| | | }); |
| | | } |
| | | else{ |
| | |
| | | updateFamilyevent(this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | // this.btn=false |
| | | |
| | | }); |
| | | } |
| | | }) |
| | |
| | | display: block; |
| | | |
| | | } |
| | | .hide .el-upload--picture-card { |
| | | .hide /deep/ .el-upload--picture-card { |
| | | display: none; |
| | | } |
| | | .pt{ |