|
|
@@ -426,15 +426,35 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "班级", name: "Class", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', |
|
|
|
key: value, |
|
|
|
keyId: 'classno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['classname']); |
|
|
|
label: "班级", name: "Class", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
if (value && value.indexOf(',') != -1) { |
|
|
|
var content = ''; |
|
|
|
var texts = value.split(','); |
|
|
|
for (var i = 0; i < texts.length; i++) { |
|
|
|
learun.clientdata.getAsync('custmerData', |
|
|
|
{ |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', |
|
|
|
key: texts[i], |
|
|
|
keyId: 'classno', |
|
|
|
callback: function (_data) { |
|
|
|
content += _data['classname'] + ','; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
content = content.substring(0, content.length - 1); |
|
|
|
callback(content); |
|
|
|
} else { |
|
|
|
learun.clientdata.getAsync('custmerData', |
|
|
|
{ |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', |
|
|
|
key: value, |
|
|
|
keyId: 'classno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['classname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|