@zgfe/modules-dm 1.0.57-zhongyuan.64 → 1.0.57-zhongyuan.66
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/modules/clearRule/addRule.js +2 -2
- package/es/modules/dataManage/collectionAttributeList.js +2 -2
- package/es/modules/dataManage/collectionEventList.js +13 -7
- package/es/modules/dataManage/components/tablePlus.js +2 -2
- package/es/modules/dataMap/component/leftTree.js +6 -3
- package/package.json +2 -2
|
@@ -472,14 +472,14 @@ var AddRule = function AddRule(_ref) {
|
|
|
472
472
|
viewDisabled: ruleRowView,
|
|
473
473
|
id: o.uniqueId,
|
|
474
474
|
editStatus: currentRuleDetail ? true : false
|
|
475
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
475
|
+
}), !ruleRowView && (/*#__PURE__*/React.createElement("div", {
|
|
476
476
|
style: {
|
|
477
477
|
cursor: 'pointer'
|
|
478
478
|
},
|
|
479
479
|
onClick: function onClick() {
|
|
480
480
|
return handleRuleDel(o.uniqueId);
|
|
481
481
|
}
|
|
482
|
-
}, "X"));
|
|
482
|
+
}, "X")));
|
|
483
483
|
}))), /*#__PURE__*/React.createElement(Space, null, !ruleRowView && options.map(function (item, index) {
|
|
484
484
|
return /*#__PURE__*/React.createElement(Button, {
|
|
485
485
|
key: index,
|
|
@@ -993,8 +993,8 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
993
993
|
removeAttrData = _useState34[0],
|
|
994
994
|
setRemoveAttrData = _useState34[1];
|
|
995
995
|
var saveRemoveAttrData = function saveRemoveAttrData(record) {
|
|
996
|
-
// 新加逻辑--在数据清洗自定义规则中绑定有此原事件不可删除。canDel:false 不允许删除
|
|
997
|
-
if (!record.
|
|
996
|
+
// // 新加逻辑--在数据清洗自定义规则中绑定有此原事件不可删除。canDel:false 不允许删除
|
|
997
|
+
if (source == 'event' && !record.canUpdate) {
|
|
998
998
|
UseModal({
|
|
999
999
|
onOk: function onOk() {},
|
|
1000
1000
|
okText: '确定',
|
|
@@ -577,7 +577,8 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
577
577
|
request(apis.createExport, {
|
|
578
578
|
method: 'get',
|
|
579
579
|
params: {
|
|
580
|
-
demandId: values === null || values === void 0 ? void 0 : values.demandId
|
|
580
|
+
demandId: values === null || values === void 0 ? void 0 : values.demandId,
|
|
581
|
+
appId: getAppID(currentApp)
|
|
581
582
|
},
|
|
582
583
|
responseType: 'blob',
|
|
583
584
|
fileName: "\u6D4B\u8BD5\u62A5\u544A_".concat(moment().format('YYYYMMDD'))
|
|
@@ -624,7 +625,8 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
624
625
|
request(apis.exportData, {
|
|
625
626
|
method: 'get',
|
|
626
627
|
params: {
|
|
627
|
-
demandId: values === null || values === void 0 ? void 0 : values.demandId
|
|
628
|
+
demandId: values === null || values === void 0 ? void 0 : values.demandId,
|
|
629
|
+
appId: getAppID(currentApp)
|
|
628
630
|
},
|
|
629
631
|
responseType: 'blob',
|
|
630
632
|
fileName: "\u6570\u636E\u5305_".concat(moment().format('YYYYMMDD'))
|
|
@@ -633,17 +635,21 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
633
635
|
message: '生成数据包成功!'
|
|
634
636
|
});
|
|
635
637
|
setIsExportData(false);
|
|
636
|
-
|
|
638
|
+
// 清空需求id
|
|
639
|
+
formExport.setFieldsValue({
|
|
640
|
+
demandId: ''
|
|
641
|
+
});
|
|
642
|
+
_context2.next = 13;
|
|
637
643
|
break;
|
|
638
|
-
case
|
|
639
|
-
_context2.prev =
|
|
644
|
+
case 10:
|
|
645
|
+
_context2.prev = 10;
|
|
640
646
|
_context2.t0 = _context2["catch"](0);
|
|
641
647
|
console.log(_context2.t0, '测试数据包失败');
|
|
642
|
-
case
|
|
648
|
+
case 13:
|
|
643
649
|
case "end":
|
|
644
650
|
return _context2.stop();
|
|
645
651
|
}
|
|
646
|
-
}, _callee2, null, [[0,
|
|
652
|
+
}, _callee2, null, [[0, 10]]);
|
|
647
653
|
}));
|
|
648
654
|
return function submitExport() {
|
|
649
655
|
return _ref2.apply(this, arguments);
|
|
@@ -1025,7 +1025,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
1025
1025
|
setPanelShow(true);
|
|
1026
1026
|
setCurrentRow(record);
|
|
1027
1027
|
}
|
|
1028
|
-
},
|
|
1028
|
+
}, panelCount || 0);
|
|
1029
1029
|
}
|
|
1030
1030
|
}, {
|
|
1031
1031
|
title: '创建时间',
|
|
@@ -1051,7 +1051,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
1051
1051
|
ellipsis: {
|
|
1052
1052
|
tooltip: text
|
|
1053
1053
|
}
|
|
1054
|
-
}, text), record.groupId && (/*#__PURE__*/React.createElement(IconFont, {
|
|
1054
|
+
}, text), record.groupId === undefined && (/*#__PURE__*/React.createElement(IconFont, {
|
|
1055
1055
|
type: "bianji1",
|
|
1056
1056
|
onClick: function onClick() {
|
|
1057
1057
|
if (!authority[1000003]) {
|
|
@@ -20,6 +20,7 @@ import { mapContext } from '../../CutsModal';
|
|
|
20
20
|
import { ValuesList, BizGlobalDataContext } from '@zgfe/business-lib';
|
|
21
21
|
import apis from '../../../constants/api';
|
|
22
22
|
import request from '../../../utils/ajax';
|
|
23
|
+
var DirectoryTree = Tree.DirectoryTree;
|
|
23
24
|
var pageClassName = 'leftTreePage';
|
|
24
25
|
var LeftTree = function LeftTree(props) {
|
|
25
26
|
var _mapData$, _mapData$2;
|
|
@@ -232,16 +233,18 @@ var LeftTree = function LeftTree(props) {
|
|
|
232
233
|
}
|
|
233
234
|
}, /*#__PURE__*/React.createElement(Spin, {
|
|
234
235
|
tip: "\u67E5\u8BE2\u4E2D"
|
|
235
|
-
}))) : (/*#__PURE__*/React.createElement(
|
|
236
|
+
}))) : (/*#__PURE__*/React.createElement(DirectoryTree, {
|
|
236
237
|
blockNode: true,
|
|
237
|
-
showLine:
|
|
238
|
+
// showLine={{showLeafIcon:false}}
|
|
239
|
+
showLine: false,
|
|
240
|
+
showIcon: false,
|
|
238
241
|
switcherIcon: /*#__PURE__*/React.createElement(CaretDownOutlined, {
|
|
239
242
|
onPointerEnterCapture: undefined,
|
|
240
243
|
onPointerLeaveCapture: undefined
|
|
241
244
|
}),
|
|
242
245
|
autoExpandParent: true,
|
|
243
246
|
selectedKeys: [(currentTree === null || currentTree === void 0 ? void 0 : currentTree.key) || ''],
|
|
244
|
-
|
|
247
|
+
multiple: true,
|
|
245
248
|
onSelect: onSelect,
|
|
246
249
|
fieldNames: {
|
|
247
250
|
title: 'pageAttrName'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.57-zhongyuan.
|
|
3
|
+
"version": "1.0.57-zhongyuan.66",
|
|
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": "
|
|
60
|
+
"gitHead": "d8374986d034d8bc9129dc2b6be6598e7d3ff0f7",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|