...
|
...
|
@@ -211,11 +211,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
, done: function (res) {
|
|
|
if (res && res.data ) {
|
|
|
let arr=res.data;
|
|
|
let colsArr=[];
|
|
|
cols.map(item=>{
|
|
|
colsArr.push(item.field)
|
|
|
})
|
|
|
if(fieldExpandArr.indexOf(resType)!=-1){
|
|
|
}else{
|
|
|
fieldExpandArr.push(resType);
|
|
|
if(arr.length>0){
|
|
|
arr.map(item=>{
|
|
|
if(colsArr.indexOf(item.field)==-1){
|
|
|
let listStr='';
|
|
|
if(item.list && item.list.length>0){
|
|
|
listStr=item.list.join(',')
|
...
|
...
|
@@ -232,6 +237,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}">
|
|
|
{{d.`+item.field+` ? d.`+item.field+` : ''}}
|
|
|
</div></div>`})
|
|
|
}
|
|
|
|
|
|
})
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -839,11 +846,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
, done: function (res) {
|
|
|
if (res && res.data ) {
|
|
|
let arr=res.data;
|
|
|
let colsArr=[];
|
|
|
cols.map(item=>{
|
|
|
colsArr.push(item.field)
|
|
|
})
|
|
|
if(fieldExpandArr.indexOf(resType)!=-1){
|
|
|
}else{
|
|
|
fieldExpandArr.push(resType);
|
|
|
if(arr.length>0){
|
|
|
arr.map(item=>{
|
|
|
if(colsArr.indexOf(item.field)==-1){
|
|
|
let listStr='';
|
|
|
if(item.list && item.list.length>0){
|
|
|
listStr=item.list.join(',')
|
...
|
...
|
@@ -860,6 +872,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}">
|
|
|
{{d.`+item.field+` ? d.`+item.field+` : ''}}
|
|
|
</div></div>`})
|
|
|
}
|
|
|
|
|
|
})
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -1076,11 +1090,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
, done: function (res) {
|
|
|
if (res && res.data ) {
|
|
|
let arr=res.data;
|
|
|
let colsArr=[];
|
|
|
cols.map(item=>{
|
|
|
colsArr.push(item.field)
|
|
|
})
|
|
|
if(fieldExpandArr.indexOf(resType)!=-1){
|
|
|
}else{
|
|
|
fieldExpandArr.push(resType);
|
|
|
if(arr.length>0){
|
|
|
arr.map(item=>{
|
|
|
if(colsArr.indexOf(item.field)==-1){
|
|
|
let listStr='';
|
|
|
if(item.list && item.list.length>0){
|
|
|
listStr=item.list.join(',')
|
...
|
...
|
@@ -1097,6 +1116,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}">
|
|
|
{{d.`+item.field+` ? d.`+item.field+` : ''}}
|
|
|
</div></div>`})
|
|
|
}
|
|
|
|
|
|
})
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -1240,11 +1261,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
, done: function (res) {
|
|
|
if (res && res.data ) {
|
|
|
let arr=res.data;
|
|
|
let colsArr=[];
|
|
|
cols.map(item=>{
|
|
|
colsArr.push(item.field)
|
|
|
})
|
|
|
if(fieldExpandArr.indexOf(resType)!=-1){
|
|
|
}else{
|
|
|
fieldExpandArr.push(resType);
|
|
|
if(arr.length>0){
|
|
|
arr.map(item=>{
|
|
|
if(colsArr.indexOf(item.field)==-1){
|
|
|
let listStr='';
|
|
|
if(item.list && item.list.length>0){
|
|
|
listStr=item.list.join(',')
|
...
|
...
|
@@ -1261,6 +1287,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}">
|
|
|
{{d.`+item.field+` ? d.`+item.field+` : ''}}
|
|
|
</div></div>`})
|
|
|
}
|
|
|
|
|
|
})
|
|
|
}
|
|
|
}
|
...
|
...
|
|