@zgfe/modules-dm 1.0.34-heyh.2 → 1.0.34-heyh.8
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/dataCollection/components/createVirtualDrawer.js +8 -4
- package/es/modules/dataCollection/components/eventGroupingDrawer.js +1 -1
- package/es/modules/dataCollection/components/selectAttributes.js +5 -2
- package/es/modules/dataCollection/components/sortableComponnet.js +13 -5
- package/es/modules/dataCollection/index.js +1 -1
- package/es/modules/dataCollection/styles/index.less +20 -4
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11
11
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
14
|
-
import { Input, Button, Select, Drawer, Form } from 'antd';
|
|
14
|
+
import { Input, Button, Select, Drawer, Form, message } from 'antd';
|
|
15
15
|
import { Fragment } from 'react';
|
|
16
16
|
var TextArea = Input.TextArea;
|
|
17
17
|
import request from '../../../utils/ajax';
|
|
@@ -76,9 +76,11 @@ var CreateVirtualDrawer = function CreateVirtualDrawer(props) {
|
|
|
76
76
|
platform: currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform
|
|
77
77
|
}, data)
|
|
78
78
|
}).then(function (res) {
|
|
79
|
-
if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
|
|
79
|
+
if ((res === null || res === void 0 ? void 0 : res.code) === '100000' && res.data === 1) {
|
|
80
80
|
refresh();
|
|
81
81
|
setCreateVirtualShow(false);
|
|
82
|
+
} else {
|
|
83
|
+
message.error(res === null || res === void 0 ? void 0 : res.msg);
|
|
82
84
|
}
|
|
83
85
|
});
|
|
84
86
|
} else {
|
|
@@ -89,9 +91,11 @@ var CreateVirtualDrawer = function CreateVirtualDrawer(props) {
|
|
|
89
91
|
platform: currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform
|
|
90
92
|
}, data)
|
|
91
93
|
}).then(function (res) {
|
|
92
|
-
if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
|
|
94
|
+
if ((res === null || res === void 0 ? void 0 : res.code) === '100000' && res.data === 1) {
|
|
93
95
|
refresh();
|
|
94
96
|
setCreateVirtualShow(false);
|
|
97
|
+
} else {
|
|
98
|
+
message.error(res === null || res === void 0 ? void 0 : res.msg);
|
|
95
99
|
}
|
|
96
100
|
});
|
|
97
101
|
}
|
|
@@ -107,7 +111,7 @@ var CreateVirtualDrawer = function CreateVirtualDrawer(props) {
|
|
|
107
111
|
};
|
|
108
112
|
return /*#__PURE__*/React.createElement(Drawer, {
|
|
109
113
|
className: classPrefix,
|
|
110
|
-
width:
|
|
114
|
+
width: 700,
|
|
111
115
|
title: "".concat(virtualDrawerType === 'edit' ? '编辑' : virtualDrawerType === 'see' ? '查看' : '创建', "\u865A\u62DF\u4E8B\u4EF6"),
|
|
112
116
|
placement: "right",
|
|
113
117
|
destroyOnClose: true,
|
|
@@ -240,7 +240,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
240
240
|
};
|
|
241
241
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
|
|
242
242
|
className: classPrefix,
|
|
243
|
-
width:
|
|
243
|
+
width: 700,
|
|
244
244
|
title: /*#__PURE__*/React.createElement("div", null, "\u4E8B\u4EF6\u5206\u7EC4\u7BA1\u7406", /*#__PURE__*/React.createElement("span", null, "\u7EDF\u4E00\u7BA1\u7406\u57CB\u70B9\u4E8B\u4EF6\u548C\u865A\u62DF\u4E8B\u4EF6\u4E1A\u52A1\u5206\u7EC4\uFF0C\u652F\u6301\u5BF9\u4E8B\u4EF6\u8C03\u6574\u6392\u5E8F\u548C\u9690\u85CF")),
|
|
245
245
|
placement: "right",
|
|
246
246
|
onClose: function onClose() {
|
|
@@ -125,7 +125,7 @@ var SelectAttributes = function SelectAttributes(props) {
|
|
|
125
125
|
}, [searchValue]);
|
|
126
126
|
// 渲染属性列表
|
|
127
127
|
var selectAttributesRender = function selectAttributesRender() {
|
|
128
|
-
return selectAttributesData.map(function (item
|
|
128
|
+
return selectAttributesData.map(function (item) {
|
|
129
129
|
if (item.id === selectEventId) {
|
|
130
130
|
return item.attrList.map(function (_item) {
|
|
131
131
|
return attrShowList.indexOf(_item.label) !== -1 ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -145,8 +145,11 @@ var SelectAttributes = function SelectAttributes(props) {
|
|
|
145
145
|
title: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(IconFont, {
|
|
146
146
|
type: "tishi1"
|
|
147
147
|
}), "\u63D0\u793A", /*#__PURE__*/React.createElement(IconFont, {
|
|
148
|
-
type: "qingchu"
|
|
148
|
+
type: "qingchu",
|
|
149
|
+
onClick: handleCancel
|
|
149
150
|
})),
|
|
151
|
+
wrapClassName: "".concat(classPrefix, "-modal-box"),
|
|
152
|
+
closeIcon: null,
|
|
150
153
|
open: selectAttributesShow,
|
|
151
154
|
onOk: handleOk,
|
|
152
155
|
onCancel: handleCancel
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
2
|
-
import { Checkbox } from 'antd';
|
|
2
|
+
import { Checkbox, Tooltip } from 'antd';
|
|
3
3
|
import request from '../../../utils/ajax';
|
|
4
4
|
import apis from '../../../constants/api';
|
|
5
5
|
import React, { useContext } from 'react';
|
|
@@ -21,27 +21,35 @@ var SortableComponnet = function SortableComponnet(props) {
|
|
|
21
21
|
var _data$value = data.value,
|
|
22
22
|
item = _data$value.item,
|
|
23
23
|
index = _data$value.index;
|
|
24
|
-
|
|
24
|
+
var name = item.alias_name ? item.alias_name : item.event_name;
|
|
25
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
26
|
+
title: "".concat(item.owner === 'zg_vtl' ? '虚拟事件' : '元事件', " | ").concat(name),
|
|
27
|
+
key: index
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
25
29
|
className: "checkbox-item ".concat(item.event_hidden ? 'event-hidden' : '', " column-").concat(groupId),
|
|
26
30
|
checked: item.checked,
|
|
27
31
|
key: index,
|
|
28
32
|
onChange: function onChange() {
|
|
29
33
|
return onChangeItem(groupId, item.event_id);
|
|
30
34
|
}
|
|
31
|
-
},
|
|
35
|
+
}, name));
|
|
32
36
|
});
|
|
33
37
|
// 不可拖动的元素(未分组数据)
|
|
34
38
|
var SortableItemNotDrag = function SortableItemNotDrag(data) {
|
|
35
39
|
var item = data.item,
|
|
36
40
|
index = data.index;
|
|
37
|
-
|
|
41
|
+
var name = item.alias_name ? item.alias_name : item.event_name;
|
|
42
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
43
|
+
title: "".concat(item.owner === 'zg_vtl' ? '虚拟事件' : '元事件', " | ").concat(name),
|
|
44
|
+
key: index
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
38
46
|
className: "checkbox-item ".concat(item.event_hidden ? 'event-hidden' : '', " column-").concat(groupId),
|
|
39
47
|
checked: item.checked,
|
|
40
48
|
key: index,
|
|
41
49
|
onChange: function onChange() {
|
|
42
50
|
return onChangeItem(groupId, item.event_id);
|
|
43
51
|
}
|
|
44
|
-
},
|
|
52
|
+
}, name));
|
|
45
53
|
};
|
|
46
54
|
// 整个元素排序的容器
|
|
47
55
|
var SortableList = SortableContainer(function () {
|
|
@@ -72,7 +72,7 @@ var DataCollection = function DataCollection(props) {
|
|
|
72
72
|
}
|
|
73
73
|
}, authority[100020] && /*#__PURE__*/React.createElement(Radio.Button, {
|
|
74
74
|
value: 1
|
|
75
|
-
}, "\
|
|
75
|
+
}, "\u5143\u4E8B\u4EF6"), /*#__PURE__*/React.createElement(Radio.Button, {
|
|
76
76
|
value: 3
|
|
77
77
|
}, "\u865A\u62DF\u4E8B\u4EF6"), authority[100021] && /*#__PURE__*/React.createElement(Radio.Button, {
|
|
78
78
|
value: 2
|
|
@@ -486,11 +486,10 @@
|
|
|
486
486
|
width: 100%;
|
|
487
487
|
.checkbox-item {
|
|
488
488
|
width: 25%;
|
|
489
|
+
.ant-checkbox + span {
|
|
490
|
+
user-select: none;
|
|
491
|
+
}
|
|
489
492
|
}
|
|
490
|
-
// width: 25%;
|
|
491
|
-
// .ant-checkbox {
|
|
492
|
-
// top: 0em;
|
|
493
|
-
// }
|
|
494
493
|
}
|
|
495
494
|
.checkbox-item {
|
|
496
495
|
display: flex;
|
|
@@ -584,6 +583,23 @@
|
|
|
584
583
|
display: none !important;
|
|
585
584
|
}
|
|
586
585
|
}
|
|
586
|
+
&-modal-box {
|
|
587
|
+
.ant-modal-close-x {
|
|
588
|
+
display: none;
|
|
589
|
+
}
|
|
590
|
+
.ant-modal-title {
|
|
591
|
+
position: relative;
|
|
592
|
+
.tishi1 {
|
|
593
|
+
margin-right: 8px;
|
|
594
|
+
color: #fd9f41;
|
|
595
|
+
}
|
|
596
|
+
.qingchu {
|
|
597
|
+
position: absolute;
|
|
598
|
+
top: 0;
|
|
599
|
+
right: 0;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
587
603
|
}
|
|
588
604
|
|
|
589
605
|
.select-attributes-box {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.34-heyh.
|
|
3
|
+
"version": "1.0.34-heyh.8",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/lodash": "^4.14.182",
|
|
41
41
|
"@umijs/fabric": "^2.8.1",
|
|
42
42
|
"@umijs/test": "^3.0.5",
|
|
43
|
-
"@zgfe/business-lib": "1.1
|
|
43
|
+
"@zgfe/business-lib": "1.2.3-heyh.1",
|
|
44
44
|
"antd": "4.24.10",
|
|
45
45
|
"dumi": "^1.1.0",
|
|
46
46
|
"father-build": "^1.17.2",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"umi-request": "^1.4.0",
|
|
53
53
|
"yorkie": "^2.0.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "4ca76aeae40292e76792d097506126970af21364",
|
|
56
56
|
"gitHooks": {
|
|
57
57
|
"pre-commit": "lint-staged"
|
|
58
58
|
}
|