@zgfe/modules-dm 1.0.42-alpha.9 → 1.0.56-zhongyuan.5
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/components/demo.js +1 -1
- package/es/constants/api.d.ts +37 -0
- package/es/constants/api.js +62 -1
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -1
- package/es/modules/CutsModal.d.ts +66 -0
- package/es/modules/CutsModal.js +52 -0
- package/es/modules/dataManage/collectionAttributeList.d.ts +3 -0
- package/es/modules/dataManage/collectionAttributeList.js +524 -80
- package/es/modules/dataManage/collectionEventList.d.ts +6 -0
- package/es/modules/dataManage/collectionEventList.js +482 -62
- package/es/modules/dataManage/components/createAttrDrawer.d.ts +4 -0
- package/es/modules/dataManage/components/createAttrDrawer.js +264 -0
- package/es/modules/dataManage/components/createMetaDrawer.d.ts +4 -0
- package/es/modules/dataManage/components/createMetaDrawer.js +618 -0
- package/es/modules/dataManage/components/createVirtualDrawer.js +19 -19
- package/es/modules/dataManage/components/creditPop/imgs/link.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png01.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png02.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png03.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png04.png +0 -0
- package/es/modules/dataManage/components/creditPop/index.d.ts +6 -0
- package/es/modules/dataManage/components/creditPop/index.js +89 -0
- package/es/modules/dataManage/components/creditPop/index.less +121 -0
- package/es/modules/dataManage/components/deleteConfirm.d.ts +9 -0
- package/es/modules/dataManage/components/deleteConfirm.js +36 -0
- package/es/modules/dataManage/components/deleteUserAttrConfirm.d.ts +9 -0
- package/es/modules/dataManage/components/deleteUserAttrConfirm.js +57 -0
- package/es/modules/dataManage/components/depositPop/imgs/link.png +0 -0
- package/es/modules/dataManage/components/depositPop/imgs/png01.png +0 -0
- package/es/modules/dataManage/components/depositPop/imgs/png02.png +0 -0
- package/es/modules/dataManage/components/depositPop/index.d.ts +6 -0
- package/es/modules/dataManage/components/depositPop/index.js +89 -0
- package/es/modules/dataManage/components/depositPop/index.less +115 -0
- package/es/modules/dataManage/components/developModal/index.css +36 -0
- package/es/modules/dataManage/components/developModal/index.d.ts +6 -0
- package/es/modules/dataManage/components/developModal/index.js +224 -0
- package/es/modules/dataManage/components/developModal/index.less +36 -0
- package/es/modules/dataManage/components/editTxt/index.d.ts +3 -0
- package/es/modules/dataManage/components/editTxt/index.js +123 -0
- package/es/modules/dataManage/components/editTxt/index.less +44 -0
- package/es/modules/dataManage/components/editTxt/types.d.ts +48 -0
- package/es/modules/dataManage/components/editTxt/types.js +1 -0
- package/es/modules/dataManage/components/eventFilter/index.js +13 -13
- package/es/modules/dataManage/components/eventFilter/styles/index.less +72 -72
- package/es/modules/dataManage/components/eventGroupingDrawer.js +41 -44
- package/es/modules/dataManage/components/importAttrDialog/demo/index.d.ts +3 -0
- package/es/modules/dataManage/components/importAttrDialog/demo/index.js +28 -0
- package/es/modules/dataManage/components/importAttrDialog/index.d.ts +7 -0
- package/es/modules/dataManage/components/importAttrDialog/index.js +159 -0
- package/es/modules/dataManage/components/importAttrDialog/styles/index.less +90 -0
- package/es/modules/dataManage/components/importMetaDialog/demo/index.d.ts +3 -0
- package/es/modules/dataManage/components/importMetaDialog/demo/index.js +28 -0
- package/es/modules/dataManage/components/importMetaDialog/index.d.ts +7 -0
- package/es/modules/dataManage/components/importMetaDialog/index.js +159 -0
- package/es/modules/dataManage/components/importMetaDialog/styles/index.less +91 -0
- package/es/modules/dataManage/components/selectAttributes.js +10 -10
- package/es/modules/dataManage/components/tablePlus.d.ts +4 -0
- package/es/modules/dataManage/components/tablePlus.js +625 -94
- package/es/modules/dataManage/components/virtualTablePlus.js +7 -7
- package/es/modules/dataManage/demo/index.d.ts +2 -1
- package/es/modules/dataManage/demo/index.js +79 -16
- package/es/modules/dataManage/detailedData/DetailedDataForm.d.ts +5 -0
- package/es/modules/dataManage/detailedData/DetailedDataForm.js +216 -0
- package/es/modules/dataManage/detailedData/index.d.ts +24 -0
- package/es/modules/dataManage/detailedData/index.js +403 -0
- package/es/modules/dataManage/detailedData/useColumns.d.ts +34 -0
- package/es/modules/dataManage/detailedData/useColumns.js +135 -0
- package/es/modules/dataManage/index.d.ts +9 -4
- package/es/modules/dataManage/index.js +142 -50
- package/es/modules/dataManage/styles/detailed.less +74 -0
- package/es/modules/dataManage/styles/index.less +1195 -841
- package/es/modules/dataManage/types.d.ts +8 -0
- package/es/modules/dataManage/virtualEventList.js +13 -13
- package/es/modules/dataMap/component/data.d.ts +7 -0
- package/es/modules/dataMap/component/data.js +257 -0
- package/es/modules/dataMap/component/drawerAdd.d.ts +6 -0
- package/es/modules/dataMap/component/drawerAdd.js +379 -0
- package/es/modules/dataMap/component/leftTree.d.ts +6 -0
- package/es/modules/dataMap/component/leftTree.js +232 -0
- package/es/modules/dataMap/component/rightDetail.d.ts +7 -0
- package/es/modules/dataMap/component/rightDetail.js +694 -0
- package/es/modules/dataMap/component/selectAttr.d.ts +7 -0
- package/es/modules/dataMap/component/selectAttr.js +92 -0
- package/es/modules/dataMap/css/index.css +163 -0
- package/es/modules/dataMap/css/index.less +177 -0
- package/es/modules/dataMap/demo/index.d.ts +3 -0
- package/es/modules/dataMap/demo/index.js +6 -0
- package/es/modules/dataMap/img/empty-data.png +0 -0
- package/es/modules/dataMap/index.d.ts +3 -0
- package/es/modules/dataMap/index.js +80 -0
- package/es/modules/dataMap/mapDetail.d.ts +3 -0
- package/es/modules/dataMap/mapDetail.js +44 -0
- package/es/modules/dataMap/mapSetting.d.ts +6 -0
- package/es/modules/dataMap/mapSetting.js +156 -0
- package/es/modules/dataPlan/addEventOrUser.js +31 -30
- package/es/modules/dataPlan/addPlan.js +29 -27
- package/es/modules/dataPlan/eventList.js +2 -2
- package/es/modules/dataPlan/index.js +10 -10
- package/es/modules/dataPlan/search.js +6 -5
- package/es/modules/dataPlan/styles/index.less +316 -316
- package/es/modules/dataPlan/tablePlus.js +3 -3
- package/es/modules/dataPlan/userAttributeList.js +5 -5
- package/es/modules/dataReal/css/index.css +48 -0
- package/es/modules/dataReal/css/index.less +51 -0
- package/es/modules/dataReal/demo/index.d.ts +3 -0
- package/es/modules/dataReal/demo/index.js +6 -0
- package/es/modules/dataReal/index1.d.ts +28 -0
- package/es/modules/dataReal/index1.js +247 -0
- package/es/modules/dataReal/table.d.ts +5 -0
- package/es/modules/dataReal/table.js +260 -0
- package/es/store/index.js +11 -11
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +9 -1
- package/package.json +64 -58
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
+
import { BizDialog, BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
8
|
+
import { Input, Drawer, Select, Button, notification, message } from 'antd';
|
|
9
|
+
import React, { Fragment, useContext, useEffect, useState } from 'react';
|
|
10
|
+
import request from '../../../utils/ajax';
|
|
11
|
+
import apis from '../../../constants/api';
|
|
12
|
+
var CreateMeta = function CreateMeta(props) {
|
|
13
|
+
var classPrefix = 'create-attr-drawer';
|
|
14
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
15
|
+
currentApp = _useContext.currentApp,
|
|
16
|
+
isDemo = _useContext.isDemo;
|
|
17
|
+
var _useState = useState(''),
|
|
18
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19
|
+
name = _useState2[0],
|
|
20
|
+
setName = _useState2[1];
|
|
21
|
+
var _useState3 = useState(''),
|
|
22
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
23
|
+
aliasName = _useState4[0],
|
|
24
|
+
setAliasName = _useState4[1];
|
|
25
|
+
var _useState5 = useState(1),
|
|
26
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
27
|
+
propertyType = _useState6[0],
|
|
28
|
+
setPropertyType = _useState6[1];
|
|
29
|
+
var _useState7 = useState(0),
|
|
30
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
31
|
+
encryptionType = _useState8[0],
|
|
32
|
+
setEncryptionType = _useState8[1];
|
|
33
|
+
var _useState9 = useState(false),
|
|
34
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
35
|
+
isShowBack = _useState10[0],
|
|
36
|
+
setIsShowBack = _useState10[1];
|
|
37
|
+
var _useState11 = useState(false),
|
|
38
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
39
|
+
isChange = _useState12[0],
|
|
40
|
+
setIsChange = _useState12[1];
|
|
41
|
+
useEffect(function () {
|
|
42
|
+
if (props.isShow) {
|
|
43
|
+
setName('');
|
|
44
|
+
setAliasName('');
|
|
45
|
+
setPropertyType(1);
|
|
46
|
+
setEncryptionType(0);
|
|
47
|
+
setIsChange(false);
|
|
48
|
+
}
|
|
49
|
+
}, [props.isShow]);
|
|
50
|
+
var submit = function submit() {
|
|
51
|
+
if (isDemo) {
|
|
52
|
+
message.error('demo环境,无法创建');
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (!name) {
|
|
56
|
+
notification.warning({
|
|
57
|
+
message: '请输入属性名称'
|
|
58
|
+
});
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
request(apis.saveUserPropMeta, {
|
|
62
|
+
method: 'POST',
|
|
63
|
+
data: {
|
|
64
|
+
app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
65
|
+
name: name,
|
|
66
|
+
aliasName: aliasName,
|
|
67
|
+
propertyType: propertyType,
|
|
68
|
+
encryptionType: encryptionType
|
|
69
|
+
}
|
|
70
|
+
}).then(function (res) {
|
|
71
|
+
if ((res === null || res === void 0 ? void 0 : res.code) === '108000') {
|
|
72
|
+
notification.success({
|
|
73
|
+
message: '保存成功'
|
|
74
|
+
});
|
|
75
|
+
props.onSubmit && props.onSubmit();
|
|
76
|
+
} else {
|
|
77
|
+
notification.error({
|
|
78
|
+
message: '保存失败'
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
var onClose = function onClose() {
|
|
84
|
+
if (isChange) {
|
|
85
|
+
setIsShowBack(true);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
props.onClose();
|
|
89
|
+
};
|
|
90
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
|
|
91
|
+
className: classPrefix,
|
|
92
|
+
width: 472,
|
|
93
|
+
title: /*#__PURE__*/React.createElement("div", null, "\u521B\u5EFA\u5C5E\u6027"),
|
|
94
|
+
placement: "right",
|
|
95
|
+
onClose: onClose,
|
|
96
|
+
destroyOnClose: true,
|
|
97
|
+
open: props.isShow,
|
|
98
|
+
extra: /*#__PURE__*/React.createElement(IconFont, {
|
|
99
|
+
type: "qingchu",
|
|
100
|
+
onClick: onClose
|
|
101
|
+
})
|
|
102
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
103
|
+
className: "".concat(classPrefix, "-content")
|
|
104
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
105
|
+
className: "".concat(classPrefix, "-info")
|
|
106
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
107
|
+
className: "".concat(classPrefix, "-info-title")
|
|
108
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
109
|
+
style: {
|
|
110
|
+
color: '#FB5547'
|
|
111
|
+
}
|
|
112
|
+
}, "*"), "\u5C5E\u6027\u540D\u79F0"), /*#__PURE__*/React.createElement("div", {
|
|
113
|
+
className: "".concat(classPrefix, "-info-input")
|
|
114
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
115
|
+
style: {
|
|
116
|
+
border: 0
|
|
117
|
+
},
|
|
118
|
+
placeholder: "\u8BF7\u8F93\u5165\u5C5E\u6027\u540D\u79F0",
|
|
119
|
+
value: name,
|
|
120
|
+
maxLength: 45,
|
|
121
|
+
onChange: function onChange(e) {
|
|
122
|
+
setIsChange(true);
|
|
123
|
+
setName(e.target.value);
|
|
124
|
+
}
|
|
125
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
className: "".concat(classPrefix, "-info-input-num")
|
|
127
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
128
|
+
style: {
|
|
129
|
+
color: '#021429'
|
|
130
|
+
}
|
|
131
|
+
}, name ? name.length : 0), /*#__PURE__*/React.createElement("span", null, "/45")))), /*#__PURE__*/React.createElement("div", {
|
|
132
|
+
className: "".concat(classPrefix, "-info")
|
|
133
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
134
|
+
className: "".concat(classPrefix, "-info-title")
|
|
135
|
+
}, "\u5C5E\u6027\u522B\u540D"), /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: "".concat(classPrefix, "-info-input")
|
|
137
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
138
|
+
style: {
|
|
139
|
+
border: 0
|
|
140
|
+
},
|
|
141
|
+
placeholder: "\u8BF7\u8F93\u5165\u5C5E\u6027\u522B\u540D",
|
|
142
|
+
value: aliasName,
|
|
143
|
+
maxLength: 45,
|
|
144
|
+
onChange: function onChange(e) {
|
|
145
|
+
setIsChange(true);
|
|
146
|
+
setAliasName(e.target.value);
|
|
147
|
+
}
|
|
148
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
149
|
+
className: "".concat(classPrefix, "-info-input-num")
|
|
150
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
151
|
+
style: {
|
|
152
|
+
color: '#021429'
|
|
153
|
+
}
|
|
154
|
+
}, aliasName.length), /*#__PURE__*/React.createElement("span", null, "/45")))), /*#__PURE__*/React.createElement("div", {
|
|
155
|
+
className: "".concat(classPrefix, "-info")
|
|
156
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
157
|
+
className: "".concat(classPrefix, "-info-title")
|
|
158
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
159
|
+
style: {
|
|
160
|
+
color: '#FB5547'
|
|
161
|
+
}
|
|
162
|
+
}, "*"), "\u5C5E\u6027\u7C7B\u578B"), /*#__PURE__*/React.createElement("div", {
|
|
163
|
+
className: "".concat(classPrefix, "-info-input")
|
|
164
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
165
|
+
value: propertyType,
|
|
166
|
+
style: {
|
|
167
|
+
width: '100%'
|
|
168
|
+
},
|
|
169
|
+
suffixIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
170
|
+
type: "xiangxia",
|
|
171
|
+
style: {
|
|
172
|
+
color: '#5f6085'
|
|
173
|
+
}
|
|
174
|
+
}),
|
|
175
|
+
options: [{
|
|
176
|
+
value: 1,
|
|
177
|
+
label: '字符串'
|
|
178
|
+
}, {
|
|
179
|
+
value: 2,
|
|
180
|
+
label: '数值'
|
|
181
|
+
}, {
|
|
182
|
+
value: 3,
|
|
183
|
+
label: '日期'
|
|
184
|
+
}],
|
|
185
|
+
onChange: function onChange(e) {
|
|
186
|
+
setIsChange(true);
|
|
187
|
+
setPropertyType(e);
|
|
188
|
+
}
|
|
189
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
190
|
+
className: "".concat(classPrefix, "-info")
|
|
191
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
192
|
+
className: "".concat(classPrefix, "-info-title")
|
|
193
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
194
|
+
style: {
|
|
195
|
+
color: '#FB5547'
|
|
196
|
+
}
|
|
197
|
+
}, "*"), "\u52A0\u5BC6\u65B9\u5F0F"), /*#__PURE__*/React.createElement("div", {
|
|
198
|
+
className: "".concat(classPrefix, "-info-input")
|
|
199
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
200
|
+
value: encryptionType,
|
|
201
|
+
style: {
|
|
202
|
+
width: '100%'
|
|
203
|
+
},
|
|
204
|
+
suffixIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
205
|
+
type: "xiangxia",
|
|
206
|
+
style: {
|
|
207
|
+
color: '#5f6085'
|
|
208
|
+
}
|
|
209
|
+
}),
|
|
210
|
+
options: [{
|
|
211
|
+
value: 0,
|
|
212
|
+
label: '不加密'
|
|
213
|
+
}, {
|
|
214
|
+
value: 1,
|
|
215
|
+
label: '半加密'
|
|
216
|
+
}, {
|
|
217
|
+
value: 2,
|
|
218
|
+
label: '全加密'
|
|
219
|
+
}],
|
|
220
|
+
onChange: function onChange(e) {
|
|
221
|
+
setIsChange(true);
|
|
222
|
+
setEncryptionType(e);
|
|
223
|
+
}
|
|
224
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
225
|
+
className: "".concat(classPrefix, "-footer")
|
|
226
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
227
|
+
onClick: onClose
|
|
228
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
229
|
+
type: 'primary',
|
|
230
|
+
onClick: submit
|
|
231
|
+
}, "\u786E\u5B9A")), /*#__PURE__*/React.createElement(BizDialog, {
|
|
232
|
+
closable: true,
|
|
233
|
+
title: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconFont, {
|
|
234
|
+
style: {
|
|
235
|
+
color: '#FD9F41',
|
|
236
|
+
marginRight: '8px',
|
|
237
|
+
verticalAlign: 'top',
|
|
238
|
+
fontSize: '24px'
|
|
239
|
+
},
|
|
240
|
+
type: "tishi1"
|
|
241
|
+
}), "\u63D0\u793A"),
|
|
242
|
+
open: isShowBack,
|
|
243
|
+
onOk: function onOk() {
|
|
244
|
+
setIsShowBack(false);
|
|
245
|
+
props.onClose();
|
|
246
|
+
},
|
|
247
|
+
okButtonProps: {
|
|
248
|
+
size: 'middle'
|
|
249
|
+
},
|
|
250
|
+
onCancel: function onCancel() {
|
|
251
|
+
setIsShowBack(false);
|
|
252
|
+
}
|
|
253
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
254
|
+
style: {
|
|
255
|
+
margin: '-16px 0px 0px 30px'
|
|
256
|
+
}
|
|
257
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
258
|
+
style: {
|
|
259
|
+
color: '#021429',
|
|
260
|
+
fontSize: 14
|
|
261
|
+
}
|
|
262
|
+
}, "\u5F53\u524D\u4FE1\u606F\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u9000\u51FA\u9875\u9762\uFF1F")))));
|
|
263
|
+
};
|
|
264
|
+
export default CreateMeta;
|