|
@@ -349,7 +349,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog :append-to-body="true" :visible.sync="dialogVisible">
|
|
<el-dialog :append-to-body="true" :visible.sync="dialogVisible">
|
|
- <img width="100%" :src="dialogImageUrl" alt="" />
|
|
|
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt />
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog title="图片作答" :visible.sync="downloadImageDialogVisible">
|
|
<el-dialog title="图片作答" :visible.sync="downloadImageDialogVisible">
|
|
<el-form>
|
|
<el-form>
|
|
@@ -510,7 +510,6 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
handleRemove(file) {
|
|
handleRemove(file) {
|
|
- debugger;
|
|
|
|
let index = this.fileList.findIndex(p => p.uid == file.uid);
|
|
let index = this.fileList.findIndex(p => p.uid == file.uid);
|
|
this.fileList.splice(index, 1);
|
|
this.fileList.splice(index, 1);
|
|
this.calcSummary(this.fileList);
|
|
this.calcSummary(this.fileList);
|
|
@@ -977,10 +976,12 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
beforeFileUpload(file) {
|
|
beforeFileUpload(file) {
|
|
- debugger;
|
|
|
|
const isLt5M = file.size / 1024 / 1024 <= 5;
|
|
const isLt5M = file.size / 1024 / 1024 <= 5;
|
|
if (!isLt5M) {
|
|
if (!isLt5M) {
|
|
this.$message.error("上传的单个数据文件大小不能超过5MB!");
|
|
this.$message.error("上传的单个数据文件大小不能超过5MB!");
|
|
|
|
+ let index = this.fileList.findIndex(p => p.uid == file.uid);
|
|
|
|
+ this.fileList.splice(index, 1);
|
|
|
|
+ this.calcSummary(this.fileList);
|
|
}
|
|
}
|
|
return isLt5M;
|
|
return isLt5M;
|
|
},
|
|
},
|