Browse Source

修复调度计划二轮bug

sy-water-data-board-ui
hejunjie 1 year ago
parent
commit
90ded574a1
  1. 6
      src/views/sluice/runManage/dispatch/plan/components/edit.vue

6
src/views/sluice/runManage/dispatch/plan/components/edit.vue

@ -85,6 +85,7 @@ export default {
handleUpload(e) {
const {file} = e;
let formData = new FormData();
console.log(file)
formData.append("file", file);
uploadFileData(formData)
.then((res) => {
@ -93,7 +94,7 @@ export default {
url: res.url,
})
if (this.ruleForm.docs.length === 1) {
this.ruleForm.planName = res.fileName
this.ruleForm.planName = file.name.split('.')[0]
}
this.fileList = this.ruleForm.docs
})
@ -207,14 +208,13 @@ export default {
:before-remove="beforeRemove"
:before-upload="beforeUpload"
:on-remove="handleOpinionRemove"
:on-success="submitOpinionUpload"
multiple
accept=".doc, .docx, .pdf, .png, .jpg"
:limit="5"
:on-exceed="handleExceed"
:file-list="fileList">
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">只能上传doc/docx/pdf/png/JPG文件且不能超过50m</div>
<div slot="tip" class="el-upload__tip">只能上传doc/docx/pdf/png/jpg且不能超过50m</div>
</el-upload>
</el-form-item>
</el-col>

Loading…
Cancel
Save