上传附件排序恢复
This commit is contained in:
parent
bba471fc4e
commit
397853a68e
@ -247,7 +247,6 @@ function clearUpfileAccessory() {
|
|||||||
|
|
||||||
//业务处理
|
//业务处理
|
||||||
function loadFiles() { //加载附件,params参考引用
|
function loadFiles() { //加载附件,params参考引用
|
||||||
debugger;
|
|
||||||
var params = {};
|
var params = {};
|
||||||
params.pl_uuid = pl_uuid;
|
params.pl_uuid = pl_uuid;
|
||||||
if ("file" == type) { //文件
|
if ("file" == type) { //文件
|
||||||
@ -264,7 +263,7 @@ function loadFiles() { //加载附件,params参考引用
|
|||||||
$("#selfAccessoryTable tbody").empty();
|
$("#selfAccessoryTable tbody").empty();
|
||||||
var accessoryHtml = "";
|
var accessoryHtml = "";
|
||||||
var list = msg.data.list;
|
var list = msg.data.list;
|
||||||
list.sort(function(x,y){
|
/* list.sort(function(x,y){
|
||||||
if(x.fileName.substr(0,2)=='附件' && y.fileName.substr(0,2)=='附件') {
|
if(x.fileName.substr(0,2)=='附件' && y.fileName.substr(0,2)=='附件') {
|
||||||
return Number(x.fileName.substr(2, 1)) - Number(y.fileName.substr(2, 1));
|
return Number(x.fileName.substr(2, 1)) - Number(y.fileName.substr(2, 1));
|
||||||
}
|
}
|
||||||
@ -274,6 +273,9 @@ function loadFiles() { //加载附件,params参考引用
|
|||||||
return x.createTime -y.createTime;
|
return x.createTime -y.createTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
});*/
|
||||||
|
list.sort(function(x,y){
|
||||||
|
return x.createTime -y.createTime;
|
||||||
});
|
});
|
||||||
accessoryList = list;
|
accessoryList = list;
|
||||||
if (list.length > 0) {
|
if (list.length > 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user