| | |
| | | |
| | | </el-dialog> |
| | | |
| | | <el-dialog :visible.sync="dialogVisible"> |
| | | <img w-full :src="dialogImageUrl" style="width: 100%; height: 100%" alt="Preview Image" /> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | menuNodeAll: false, |
| | | deptExpand: true, |
| | | deptNodeAll: false, |
| | | |
| | | dialogImageUrl: '', |
| | | dialogVisible: false, |
| | | // 日期范围 |
| | | dateRange: [], |
| | | // 数据范围选项 |
| | |
| | | addPet(this.formDat).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | }); |
| | | // 清空formDat对象的数据 |
| | | Object.keys(this.formDat).forEach(key => { |
| | | this.formDat[key] = ''; |
| | | }); |
| | | this.handleRemove(this.fileList[0]); |
| | | for(let i = 0; i <= this.fileList1.length; i++) |
| | | { |
| | | this.handleRemove(this.fileList1[0]); |
| | | } |
| | | for(let i = 0; i < this.fileListOther.length; i++){ |
| | | this.handleRemoveFile(this.fileListOther[0]); |
| | | } |
| | | // this.handleRemove(this.fileList[0]); |
| | | // this.handleRemoveFile(this.fileListOther[0]); |
| | | this.getList(); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | requestUpload(params) |
| | | { |
| | |
| | | let _this = this |
| | | |
| | | this.uploading = true; |
| | | alert(234) |
| | | // alert(234) |
| | | uploadPic(formData).then(response => { |
| | | _this.uploadFileList1 = [] |
| | | _this.formData.url = _this.formData.url+","+response.fileNames |
| | | alert(2346) |
| | | // alert(2346) |
| | | updatenotePet(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | |
| | | console.log(this.uploadFileList1) |
| | | let _this = this |
| | | |
| | | if(this.formData.status=='是') |
| | | this.formData.status = 1 |
| | | else |
| | | this.formData.status = 0 |
| | | |
| | | this.uploading = true; |
| | | uploadPic(formData).then(response => { |
| | | _this.uploadFileList1 = [] |
| | |
| | | updateSelfEconomy(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | // this.open = false; |
| | | if(this.formData.status=='是') |
| | | this.formData.status = 1 |
| | | else |
| | | this.formData.status = 0 |
| | | |
| | | }); |
| | | }) |
| | | |
| | | this.uploading = false; |
| | | }, |
| | | picUpload() |
| | | { |
| | |
| | | else |
| | | _this.formData.status = '否' |
| | | }); |
| | | |
| | | // } |
| | | // else{ |
| | | // _this.fileListOther.push({name:response.data.fileName, url:response.data.url}) |
| | | |
| | | // } |
| | | }); |
| | | this.uploading = false; |
| | | }, |
| | | requestUpload(params) |
| | | { |