doomiwork 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -6,8 +6,10 @@ class ViewHelper {
|
|
|
6
6
|
* 将结果集转换为视图需要的结果
|
|
7
7
|
*/
|
|
8
8
|
static transferName2Mapping(originalResult, fieldConfig) {
|
|
9
|
-
if (originalResult == null)
|
|
10
|
-
|
|
9
|
+
if (originalResult == null) {
|
|
10
|
+
return { successed: true, data: null };
|
|
11
|
+
}
|
|
12
|
+
if (!fieldConfig || fieldConfig.length == 0) return { successed: true, data: originalResult };//return success({successed:true,data:originalResult});
|
|
11
13
|
var retResult = [];
|
|
12
14
|
originalResult.forEach(function (row) {
|
|
13
15
|
var item = {};
|