优化后台UI,修复文件上传组件

This commit is contained in:
2020-04-09 10:36:18 +08:00
parent f42b62738d
commit 9810b08993
7 changed files with 72 additions and 44 deletions
+17
View File
@@ -225,6 +225,23 @@ define(['jquery', 'layer', 'message'], function ($, layer) {
}
},
utils: {
//比较2个对象是否相同
isObjEqual:function(o1,o2){
var props1 = Object.getOwnPropertyNames(o1);
var props2 = Object.getOwnPropertyNames(o2);
if (props1.length != props2.length) {
return false;
}
for (var i = 0,max = props1.length; i < max; i++) {
var propName = props1[i];
if (o1[propName] !== o2[propName]) {
return false;
}
}
return true;
}
},
validatenull: function (val) {
if (typeof val == 'boolean') {
return false;