|
|
@@ -204,7 +204,7 @@ var bootstrap = function ($, learun) { |
|
|
|
learun.clientdata.getAsync('dataItem', |
|
|
|
{ |
|
|
|
key: texts[i], |
|
|
|
code: 'SupportGrade', |
|
|
|
code: 'SupportType1', |
|
|
|
callback: function (_data) { |
|
|
|
content += _data.text + ','; |
|
|
|
|
|
|
@@ -217,7 +217,7 @@ var bootstrap = function ($, learun) { |
|
|
|
learun.clientdata.getAsync('dataItem', |
|
|
|
{ |
|
|
|
key: value, |
|
|
|
code: 'SupportGrade', |
|
|
|
code: 'SupportType1', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
@@ -228,13 +228,32 @@ var bootstrap = function ($, learun) { |
|
|
|
{ |
|
|
|
label: "资助种类(二等)", name: "SupportType1", width: 200, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getsAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'SupportType2', |
|
|
|
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: 'SupportType2', |
|
|
|
callback: function (_data) { |
|
|
|
content += _data.text + ','; |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
content = content.substring(0, content.length - 1); |
|
|
|
callback(content); |
|
|
|
} else { |
|
|
|
learun.clientdata.getAsync('dataItem', |
|
|
|
{ |
|
|
|
key: value, |
|
|
|
code: 'SupportType2', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|