12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- function getTableParamName(obj){
-
- var arr = [];
- var columnObj = obj[0]['columns'];
- for(var i=0;i<columnObj.length;i++){
- var disObj = columnObj[i];
- if(disObj["name"]&&!disObj["hide"]){
- arr.push(disObj["name"]);
- }
- }
- return arr;
-
- }
-
- function getTableParam(obj){
- var arr = [];
- for(var i=0;i<obj.length;i++){
- if(obj[i]["columns"]){
- var columnObj = obj[i]["columns"];
- for(var j=0;j<columnObj.length;j++){
- var disObj = columnObj[j];
- if(disObj["columns"]){
- var disObj1 = disObj["columns"];
- for(var k=0;k<disObj1.length;k++){
- if(disObj1[k]["name"]&&!disObj1[k]["hide"]){
- arr.push(disObj1[k]["name"]);
- }
-
- }
-
- }
- }
-
- }
- }
- return arr;
- }
-
-
-
-
- function checkNew(arr,obj){
-
-
- for(var i=0;i<arr.length;i++){
- if(obj[arr[i]]){
- return true;
- }
- }
- return false;
-
- }
|