提交 726baa24 authored 作者: 翟畅's avatar 翟畅

zc附件添加附件大小

上级 617ad7bb
......@@ -208,9 +208,9 @@ export default {
dataForm:{
priceOption: '1',
realPrice:null,
// id: null,
annex: "",
annexName: "",
size: "",
formats:'',
author:null,
typeView:null,
......@@ -485,6 +485,8 @@ export default {
this.loading = false
this.dataForm.annex = response.fileName;
this.dataForm.annexName = response.originalFileName
let size = Number(response.size/1024/1024).toFixed(2)
this.dataForm.size = size + 'M'
let dataType = '.' + response.originalFileName.split('.')[1]
this.dataForm.formats = dataType
this.$forceUpdate()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论