| | |
| | | <div class="app-container"> |
| | | <div class="form-header mt"> |
| | | <h4 class="dt h4">个人财产详细信息 </h4> |
| | | |
| | | |
| | | </div> |
| | | <div style="padding-left:15px"> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-position="left" label-width="120px"> |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-cow> |
| | | |
| | | |
| | | <el-cow > |
| | | <el-form-item label="收支名称" prop="incomeName" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-form-item label="获得方式" prop="incomeName" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-input v-model="formData.incomeName" placeholder="请输入收支名称" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | |
| | | <i class="el-icon-delete"></i> |
| | | </span> |
| | | </span> |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | </el-upload> |
| | | |
| | | |
| | | <!--<h4 class="form-header">其他附件 </h4> |
| | | <el-upload |
| | | action="" |
| | |
| | | class="upload-demo" |
| | | multiple |
| | | :on-preview="handlePreview" |
| | | |
| | | |
| | | :on-remove="handleRemove" |
| | | :http-request="requestUpload" |
| | | :show-file-list="true" |
| | |
| | | <div class="el-upload__tip"> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | |
| | | |
| | | </el-upload>--> |
| | | <h4 class="form-header">其他附件 </h4> |
| | | <el-upload |
| | |
| | | :http-request="requestUpload" |
| | | :show-file-list="true" |
| | | > |
| | | |
| | | |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | <div slot="file" slot-scope="{file}"> |
| | | <img |
| | |
| | | v-if="isShow" |
| | | @click="handleRemove(file)" |
| | | class="el-upload-list__item-delete" |
| | | |
| | | |
| | | > |
| | | <i class="el-icon-download"></i> |
| | | </span> |
| | |
| | | <i class="el-icon-delete"></i> |
| | | </span> |
| | | </span> |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | </el-upload> |
| | | |
| | | |
| | | <el-form-item size="large"> |
| | | <el-button v-if="isShow" type="primary" @click="submitForm" :disabled="dsb" >修改</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | |
| | | |
| | | <el-dialog :visible.sync="dialogVisible"> |
| | | <img w-full :src="dialogImageUrl" style="width: 700px; height: 700px" alt="Preview Image" /> |
| | | </el-dialog> |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | |
| | | |
| | | import {blobValidate} from "@/utils/ruoyi"; |
| | | import errorCode from "@/utils/errorCode"; |
| | | import {Message} from "element-ui"; |
| | | import {getSelfEconomyInfo, updateSelfEconomy,download,uploadPic} from "@/api/selfeconomy/index"; |
| | | |
| | | |
| | | export default { |
| | | components: {}, |
| | | props: [], |
| | |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | |
| | | ], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | | |
| | | |
| | | selfeconomyList: [], |
| | | |
| | | |
| | | formData: { |
| | | id:undefined, |
| | | happenTime:undefined, |
| | |
| | | message: '请输入实现难度', |
| | | trigger: 'blur' |
| | | }], |
| | | |
| | | |
| | | remark: [{ |
| | | // required: true, |
| | | message: '请输入备注', |
| | |
| | | this.$route.meta.title = "个人财产详细信息";//列表的名称 |
| | | this.isShow=true |
| | | } |
| | | |
| | | |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | |
| | | for(let i = 0; i < paths.length; i++) |
| | | { |
| | | if(paths[i]!="") { |
| | | |
| | | |
| | | let pth = paths[i].substr(paths[i].length - 4, paths[i].length) |
| | | |
| | | |
| | | if (_this.fot.includes(pth) === true) |
| | | _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]}) |
| | | else { |
| | |
| | | this.loading = false; |
| | | }); |
| | | // this.getCateInfor() |
| | | |
| | | |
| | | } |
| | | }, |
| | | mounted() {}, |
| | |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | this.formData.url = ul+","+uls |
| | | |
| | | |
| | | this.$refs['elForm'].validate(valid => { |
| | | |
| | | |
| | | |
| | | |
| | | if (valid) { |
| | | if (this.formData.id != undefined) { |
| | | updateSelfEconomy(this.formData).then(response => { |
| | |
| | | }); |
| | | } else { |
| | | this.$modal.msgSuccess("修改失败"); |
| | | |
| | | |
| | | } |
| | | } |
| | | }) |
| | |
| | | }, |
| | | handleDownload(url) { |
| | | var formData = {'path':"/"+url.replace(process.env.VUE_APP_BASE_TRUE_API,"")}; |
| | | |
| | | |
| | | let lens = formData.path.split(".") |
| | | let suffix = lens[lens.length-1] |
| | | download(formData).then(async (response) => { |
| | |
| | | var formData = new FormData(); |
| | | formData.append('uploadFile', file); |
| | | let _this = this |
| | | |
| | | |
| | | uploadPic(formData).then(response => { |
| | | let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) |
| | | |
| | | |
| | | if(_this.fot.includes(pth) === true) |
| | | { |
| | | _this.fileList.push({name:response.data.fileName, "url":response.data.url}) |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | else{ |
| | | _this.fileListOther.push({name:response.data.fileName, url:response.data.url}) |
| | | |
| | | |
| | | } |
| | | }) |
| | | |
| | | |
| | | }, |
| | | |
| | | |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download('/zIdea/export', { |
| | | ...this.queryParams |
| | | }, `zIdea_${new Date().getTime()}.xlsx`) |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | </script> |
| | | |
| | | |
| | | <style scoped> |
| | | .app-container{ |
| | | background-color: #FEF7FC; |
| | |
| | | } |
| | | .dt{ |
| | | display: block; |
| | | |
| | | |
| | | } |
| | | .pt{ |
| | | right: 10px; |
| | |
| | | color: #000000; |
| | | } |
| | | </style> |
| | | |