@luck-design-biz/luckda 0.0.18-2 → 0.0.19
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.
|
@@ -113,13 +113,9 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
113
113
|
onQuery: _objectSpread(_objectSpread({
|
|
114
114
|
api: behaviorCall,
|
|
115
115
|
get: function get(formData) {
|
|
116
|
+
var _params2;
|
|
116
117
|
var _relationKey = isMain ? window.appConfig.constraintKeys.PRIMARY : relationKey;
|
|
117
|
-
var _params = {
|
|
118
|
-
indocno: formData[mainFormLdId] && formData[mainFormLdId][_relationKey] || ticketData[_relationKey],
|
|
119
|
-
moduleCode: moduleCode,
|
|
120
|
-
datasetCode: dataSetKey,
|
|
121
|
-
behaviorKey: 'readForm'
|
|
122
|
-
};
|
|
118
|
+
var _params = (_params2 = {}, _defineProperty(_params2, isMain ? 'indocno' : 'relationId', formData[mainFormLdId] && formData[mainFormLdId][_relationKey] || ticketData[_relationKey]), _defineProperty(_params2, "moduleCode", moduleCode), _defineProperty(_params2, "datasetCode", dataSetKey), _defineProperty(_params2, "behaviorKey", isMain ? 'readForm' : 'readUniqueForm'), _params2);
|
|
123
119
|
if (!isMain) _params.relationDs = mainDataSetKey;
|
|
124
120
|
return _params;
|
|
125
121
|
}
|
|
@@ -121,13 +121,9 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
121
121
|
onQuery: (0, _objectSpread3.default)((0, _objectSpread3.default)({
|
|
122
122
|
api: _utils.behaviorCall,
|
|
123
123
|
get: function get(formData) {
|
|
124
|
+
var _params2;
|
|
124
125
|
var _relationKey = isMain ? window.appConfig.constraintKeys.PRIMARY : relationKey;
|
|
125
|
-
var _params = {
|
|
126
|
-
indocno: formData[mainFormLdId] && formData[mainFormLdId][_relationKey] || ticketData[_relationKey],
|
|
127
|
-
moduleCode: moduleCode,
|
|
128
|
-
datasetCode: dataSetKey,
|
|
129
|
-
behaviorKey: 'readForm'
|
|
130
|
-
};
|
|
126
|
+
var _params = (_params2 = {}, (0, _defineProperty2.default)(_params2, isMain ? 'indocno' : 'relationId', formData[mainFormLdId] && formData[mainFormLdId][_relationKey] || ticketData[_relationKey]), (0, _defineProperty2.default)(_params2, "moduleCode", moduleCode), (0, _defineProperty2.default)(_params2, "datasetCode", dataSetKey), (0, _defineProperty2.default)(_params2, "behaviorKey", isMain ? 'readForm' : 'readUniqueForm'), _params2);
|
|
131
127
|
if (!isMain) _params.relationDs = mainDataSetKey;
|
|
132
128
|
return _params;
|
|
133
129
|
}
|