Index: ssts-web/src/main/webapp/dx-disinfectsystem/js/washingApplication/slickWash.js
===================================================================
diff -u -r24884 -r24891
--- ssts-web/src/main/webapp/dx-disinfectsystem/js/washingApplication/slickWash.js (.../slickWash.js) (revision 24884)
+++ ssts-web/src/main/webapp/dx-disinfectsystem/js/washingApplication/slickWash.js (.../slickWash.js) (revision 24891)
@@ -155,7 +155,12 @@
field : 'handle',
id : 'handle',
formatter: function(value,row,index,columnDef,dataContext){
- return "";
+ if(dataContext.indent==0){
+ return "";
+ }
+ else{
+ return "";
+ }
},
},
{
@@ -307,9 +312,9 @@
}
function TaskNameFormatter(row, cell, value, columnDef, dataContext){
- //console.log("dc:"+dataContext._collapsed);
+
if(value == null || value == undefined || dataContext === undefined){
- return "";
+ return "";
}
value = value.replace(/&/g, "&").replace(//g, ">");
var spacer = "";
@@ -326,11 +331,17 @@
// console.log(value);
// return spacer + " +" + value;
// }
- if(dataContext._collapsed==true){
- return spacer + " -" + value;
+ console.log("value:"+value+";"+"indent:"+dataContext.indent);
+ if(dataContext.indent==0){
+ if(dataContext._collapsed==true){
+ return spacer + " " + value;
+ }
+ else{
+ return spacer + " " + value;
+ }
}
else{
- return spacer + " +" + value;
+ return value;
}
}
@@ -521,8 +532,9 @@
k["indent"] = 1;
k["parent"] = parentId;
- k["name"]=childrens[j].tousseName;
+ k["name"]=childrens[j].name;
k["amount"]=childrens[j].amount;
+
k["recyclingTime"]=childrens[j].recyclingTime;
k["recyclingDept"]=childrens[j].recyclingDept;
tempId ++;