@zgfe/modules-dm 1.0.57-zhongyuan.49 → 1.0.57-zhongyuan.50

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.
@@ -157,7 +157,7 @@ var AddFormulate = function AddFormulate(_ref) {
157
157
  tableParams = _useState14[0],
158
158
  setTableParams = _useState14[1];
159
159
  var typeValue = function typeValue(detailRow, tag) {
160
- var str = '';
160
+ var str = tag == 1 ? detailRow.sourceValue : detailRow.targetValue;
161
161
  //类型转换
162
162
  if (detailRow.ruleType == 3) {
163
163
  var _shuzhiArr$find;
@@ -166,13 +166,12 @@ var AddFormulate = function AddFormulate(_ref) {
166
166
  })) === null || _shuzhiArr$find === void 0 ? void 0 : _shuzhiArr$find.label;
167
167
  }
168
168
  // 替换缺失值
169
- if (detailRow.ruleType == 4) {
169
+ if (detailRow.ruleType == 4 && tag == 1) {
170
170
  var _tianchongArr$find;
171
171
  str = (_tianchongArr$find = tianchongArr.find(function (o) {
172
- return o.value == detailRow.ruleType;
172
+ return o.value == detailRow.sourceValue;
173
173
  })) === null || _tianchongArr$find === void 0 ? void 0 : _tianchongArr$find.label;
174
174
  }
175
- str = tag == 1 ? detailRow.sourceValue : detailRow.targetValue;
176
175
  return str;
177
176
  };
178
177
  var getList = function getList() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.57-zhongyuan.49",
3
+ "version": "1.0.57-zhongyuan.50",
4
4
  "license": "ISC",
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -57,7 +57,7 @@
57
57
  "umi-request": "^1.4.0",
58
58
  "yorkie": "^2.0.0"
59
59
  },
60
- "gitHead": "b22d7f9056bdabebe6d4e7735daf349d9bd6517d",
60
+ "gitHead": "e01d0f0851652d7b35f5a4745dd1fa87c68da2a3",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }