|
|
@@ -157,25 +157,72 @@ var bootstrap = function ($, learun) { |
|
|
|
{ |
|
|
|
label: "享受等级", name: "SupportGrade", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'SupportGrade', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
if (value && value.indexOf(',') != -1) { |
|
|
|
var content = ''; |
|
|
|
var texts = value.split(','); |
|
|
|
for (var i = 0; i < texts.length; i++) { |
|
|
|
learun.clientdata.getAsync('dataItem', |
|
|
|
{ |
|
|
|
key: texts[i], |
|
|
|
code: 'SupportGrade', |
|
|
|
callback: function (_data) { |
|
|
|
content += _data.text + ','; |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
content = content.substring(0, content.length - 1); |
|
|
|
callback(content); |
|
|
|
} else { |
|
|
|
learun.clientdata.getAsync('dataItem', |
|
|
|
{ |
|
|
|
key: value, |
|
|
|
code: 'SupportGrade', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
//formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
// learun.clientdata.getAsync('dataItem', { |
|
|
|
// key: value, |
|
|
|
// code: 'SupportGrade', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data.text); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
//} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "资助种类(一等)", name: "SupportType", width: 200, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getsAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'SupportType1', |
|
|
|
callback: function (text) { |
|
|
|
callback(text); |
|
|
|
if (value && value.indexOf(',') != -1) { |
|
|
|
var content = ''; |
|
|
|
var texts = value.split(','); |
|
|
|
for (var i = 0; i < texts.length; i++) { |
|
|
|
learun.clientdata.getAsync('dataItem', |
|
|
|
{ |
|
|
|
key: texts[i], |
|
|
|
code: 'SupportGrade', |
|
|
|
callback: function (_data) { |
|
|
|
content += _data.text + ','; |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
content = content.substring(0, content.length - 1); |
|
|
|
callback(content); |
|
|
|
} else { |
|
|
|
learun.clientdata.getAsync('dataItem', |
|
|
|
{ |
|
|
|
key: value, |
|
|
|
code: 'SupportGrade', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|