提交 1fe219ac 编写于 作者: 蔡祥熠

Merge branch 'fix/Attachment.1204' into 'develop'

Merge of fix/[流程管理]修复附件大小显示不正确的问题 to develop

See merge request o2oa/o2oa!1324
......@@ -1261,7 +1261,7 @@ o2.widget.AttachmentController.Attachment = new Class({
},
createInforNode: function(callback){
var size = "";
var k = this.data.length/1204;
var k = this.data.length/1024;
if (k>1024){
var m = k/1024;
m = Math.round(m*100)/100;
......@@ -1303,7 +1303,7 @@ o2.widget.AttachmentController.Attachment = new Class({
this.textTitleNode.set("text", this.data.name);
var size = "";
var k = this.data.length/1204;
var k = this.data.length/1024;
if (k>1024){
var m = k/1024;
m = Math.round(m*100)/100;
......@@ -1343,7 +1343,7 @@ o2.widget.AttachmentController.Attachment = new Class({
this.textTitleNode.set("text", this.data.name);
var size = "";
var k = this.data.length/1204;
var k = this.data.length/1024;
if (k>1024){
var m = k/1024;
m = Math.round(m*100)/100;
......@@ -1755,7 +1755,7 @@ o2.widget.AttachmentController.AttachmentMin = new Class({
this.textNode.set("text", this.data.name);
var size = "";
var k = this.data.length/1204;
var k = this.data.length/1024;
if (k>1024){
var m = k/1024;
m = Math.round(m*100)/100;
......@@ -1810,7 +1810,7 @@ o2.widget.AttachmentController.AttachmentMin = new Class({
this.textNode = new Element("div", {"styles": this.css.minAttachmentTextNode_list}).inject(this.node);
this.textNode.set("text", this.data.name);
var size = "";
var k = this.data.length/1204;
var k = this.data.length/1024;
if (k>1024){
var m = k/1024;
m = Math.round(m*100)/100;
......
......@@ -152,7 +152,7 @@ MWF.xApplication.File.AttachmentController.Attachment = new Class({
this.textTitleNode.set("text", this.data.name);
var size = "";
var k = this.data.length/1204;
var k = this.data.length/1024;
if (k>1024){
var m = k/1024;
m = Math.round(m*100)/100;
......@@ -196,7 +196,7 @@ MWF.xApplication.File.AttachmentController.Attachment = new Class({
this.textTitleNode.set("text", this.data.name);
var size = "";
var k = this.data.length/1204;
var k = this.data.length/1024;
if (k>1024){
var m = k/1024;
m = Math.round(m*100)/100;
......@@ -224,7 +224,7 @@ MWF.xApplication.File.AttachmentController.Attachment = new Class({
},
createInforNode: function(callback){
var size = "";
var k = this.data.length/1204;
var k = this.data.length/1024;
if (k>1024){
var m = k/1024;
m = Math.round(m*100)/100;
......@@ -314,7 +314,7 @@ MWF.xApplication.File.AttachmentController.Folder = new Class({
},
createInforNode: function(callback){
var size = "";
var k = this.data.size/1204;
var k = this.data.size/1024;
if (k>1024){
var m = k/1024;
m = Math.round(m*100)/100;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册