|
|
@@ -249,6 +249,38 @@ var bootstrap = function ($, learun) { |
|
|
|
// } |
|
|
|
//}, |
|
|
|
{ label: '类型', name: 'Typename', width: 150, align: 'left' }, |
|
|
|
{ |
|
|
|
label: '队伍', name: 'Teamid', width: 200, align: 'left', |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
|
|
|
|
if (value.indexOf(',') != -1) { |
|
|
|
var content = ''; |
|
|
|
var timearr = value.split(','); |
|
|
|
for (var i = 0; i < timearr.length; i++) { |
|
|
|
learun.clientdata.getAsync('custmerData', |
|
|
|
{ |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Trainteam', |
|
|
|
key: timearr[i], |
|
|
|
keyId: 'name', |
|
|
|
callback: function (_data) { |
|
|
|
content += _data['name'] + ","; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
content = content.substring(0, content.length - 1); |
|
|
|
callback(content); |
|
|
|
} else { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Trainteam', |
|
|
|
key: value, |
|
|
|
keyId: 'name', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['name']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '教练员', name: 'Coachs', width: 200, align: 'left', |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|