@luck-design-biz/luckda 0.0.16-6 → 0.0.16-7
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/es/helper/action.js +1 -1
- package/es/utils/grid.js +1 -1
- package/lib/helper/action.js +1 -1
- package/lib/utils/grid.js +1 -1
- package/package.json +1 -1
package/es/helper/action.js
CHANGED
|
@@ -158,7 +158,7 @@ export var onBatchSubmitAction = function onBatchSubmitAction(_ref3, callback) {
|
|
|
158
158
|
} else {
|
|
159
159
|
result[formInfo.dataSetKey] = transform(value, function (_result, _value, _key) {
|
|
160
160
|
_result[_key] = _value.map(function (_val) {
|
|
161
|
-
return _objectSpread(_objectSpread({}, dataFormat(gridColumns, _val)), {}, _defineProperty({}, window.appConfig.constraintKeys.PRIMARY, _key === 'addList' ? null :
|
|
161
|
+
return _objectSpread(_objectSpread({}, dataFormat(gridColumns, _val)), {}, _defineProperty({}, window.appConfig.constraintKeys.PRIMARY, _key === 'addList' ? null : _val[window.appConfig.constraintKeys.PRIMARY]));
|
|
162
162
|
});
|
|
163
163
|
}, {});
|
|
164
164
|
}
|
package/es/utils/grid.js
CHANGED
package/lib/helper/action.js
CHANGED
|
@@ -166,7 +166,7 @@ var onBatchSubmitAction = function onBatchSubmitAction(_ref3, callback) {
|
|
|
166
166
|
} else {
|
|
167
167
|
result[formInfo.dataSetKey] = (0, _lodash.transform)(value, function (_result, _value, _key) {
|
|
168
168
|
_result[_key] = _value.map(function (_val) {
|
|
169
|
-
return (0, _objectSpread4.default)((0, _objectSpread4.default)({}, (0, _utils2.dataFormat)(gridColumns, _val)), {}, (0, _defineProperty2.default)({}, window.appConfig.constraintKeys.PRIMARY, _key === 'addList' ? null :
|
|
169
|
+
return (0, _objectSpread4.default)((0, _objectSpread4.default)({}, (0, _utils2.dataFormat)(gridColumns, _val)), {}, (0, _defineProperty2.default)({}, window.appConfig.constraintKeys.PRIMARY, _key === 'addList' ? null : _val[window.appConfig.constraintKeys.PRIMARY]));
|
|
170
170
|
});
|
|
171
171
|
}, {});
|
|
172
172
|
}
|
package/lib/utils/grid.js
CHANGED
|
@@ -88,7 +88,7 @@ function getColumnRender(name, type) {
|
|
|
88
88
|
name: file.origFileName,
|
|
89
89
|
previewUrl: "".concat(_ApiConfig.default.LUCKDA_HOST).concat(file.previewUrl)
|
|
90
90
|
};
|
|
91
|
-
});
|
|
91
|
+
}); // 过滤删除文件
|
|
92
92
|
return /*#__PURE__*/_react.default.createElement(_GridCell.default, {
|
|
93
93
|
fileList: fileList
|
|
94
94
|
});
|