@zgfe/modules-settings 2.1.0-zhongyuan.2 → 2.1.0-zhongyuan.21
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/importMetaDialog/index.d.ts +2 -0
- package/es/components/importMetaDialog/index.js +18 -3
- package/es/constants/api.d.ts +4 -0
- package/es/constants/api.js +12 -7
- package/es/modules/appSettings/dataAccessFilter/index.js +2 -1
- package/es/modules/companySetting/application/index.js +5 -6
- package/es/modules/companySetting/application/index.less +144 -144
- package/es/modules/companySetting/index.js +37 -33
- package/es/modules/companySetting/user/index.js +29 -24
- package/es/modules/companySetting/user/invite.js +3 -16
- package/es/modules/createDemand/demo/selectPoint.js +0 -1
- package/es/modules/createDemand/index.js +7 -6
- package/es/modules/createDemand/styles/index.less +403 -403
- package/es/modules/createDemand_bf/demo/index.js +0 -1
- package/es/modules/createDemand_bf/index.js +0 -1
- package/es/modules/dealDemand/demo/index.js +0 -1
- package/es/modules/dealDemand/index.js +0 -2
- package/es/modules/demandManage/styles/index.less +155 -155
- package/es/modules/pointMap/createMetaDrawer.js +78 -47
- package/es/modules/pointMap/pageInfo.js +28 -15
- package/es/modules/pointMap/styles/index.less +8 -0
- package/es/modules/pointMap/styles/tree.less +18 -0
- package/es/modules/pointMap/tree.js +191 -117
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +26 -20
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +3 -2
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +10 -8
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.d.ts +2 -2
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +7 -9
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +29 -16
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +1 -1
- package/es/modules/systemSetting/document-setting/index.js +7 -6
- package/es/modules/systemSetting/index.js +13 -15
- package/package.json +3 -3
|
@@ -6,7 +6,6 @@ import { DemoWrapper } from '@zgfe/business-lib';
|
|
|
6
6
|
// import { Button } from 'antd';
|
|
7
7
|
// const classPrefix = 'system-setting-approval-process-create-content';
|
|
8
8
|
export default (function () {
|
|
9
|
-
console.log('window.innerWidth', window.innerWidth);
|
|
10
9
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
11
10
|
defaultApp: 99825
|
|
12
11
|
}, /*#__PURE__*/React.createElement(CreateDemand, null));
|
|
@@ -209,7 +209,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
211
|
var gotoPage = function gotoPage(type, data) {
|
|
212
|
-
console.log('data', data);
|
|
213
212
|
switch (type) {
|
|
214
213
|
case 'event':
|
|
215
214
|
window.open('/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage?key=' + data, '_blank');
|
|
@@ -389,7 +388,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
389
388
|
}],
|
|
390
389
|
onClick: function onClick(_ref) {
|
|
391
390
|
var key = _ref.key;
|
|
392
|
-
console.log('key', key);
|
|
393
391
|
switch (key) {
|
|
394
392
|
case '0':
|
|
395
393
|
submitDemand(3);
|
|
@@ -1,155 +1,155 @@
|
|
|
1
|
-
// @import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
.system-setting-demand {
|
|
3
|
-
padding: 24px;
|
|
4
|
-
background-color: #fff;
|
|
5
|
-
|
|
6
|
-
&-title {
|
|
7
|
-
padding: 16px 0;
|
|
8
|
-
color: #021429;
|
|
9
|
-
font-weight: 500;
|
|
10
|
-
font-size: 20px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&-panel {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: row;
|
|
16
|
-
gap: 16px;
|
|
17
|
-
&-all {
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: row;
|
|
20
|
-
gap: 16px;
|
|
21
|
-
align-items: center;
|
|
22
|
-
width: 256px;
|
|
23
|
-
padding: 24px;
|
|
24
|
-
color: var(--io-N8-, #354354);
|
|
25
|
-
font-weight: 400;
|
|
26
|
-
font-size: 16px;
|
|
27
|
-
background: var(--io-n-02, #fafafb);
|
|
28
|
-
border-radius: 8px;
|
|
29
|
-
&-img {
|
|
30
|
-
width: 64px;
|
|
31
|
-
height: 64px;
|
|
32
|
-
background: url('./../images/title-bg.png') no-repeat;
|
|
33
|
-
background-size: contain;
|
|
34
|
-
}
|
|
35
|
-
&-num {
|
|
36
|
-
color: var(--io-N-, #021429);
|
|
37
|
-
font-weight: 700;
|
|
38
|
-
font-size: 32px;
|
|
39
|
-
line-height: 40px; /* 125% */
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
&-status {
|
|
44
|
-
display: flex;
|
|
45
|
-
flex: 1;
|
|
46
|
-
flex-direction: row;
|
|
47
|
-
color: var(--io-N8-, #354354);
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
font-size: 16px;
|
|
50
|
-
font-family: 'PingFang SC';
|
|
51
|
-
font-style: normal;
|
|
52
|
-
line-height: normal;
|
|
53
|
-
background: var(--io-n-02, #fafafb);
|
|
54
|
-
border-radius: 8px;
|
|
55
|
-
&-item {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex: 1;
|
|
58
|
-
// align-items: center;
|
|
59
|
-
flex-direction: column;
|
|
60
|
-
padding: 24px;
|
|
61
|
-
&-txt {
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: row;
|
|
64
|
-
gap: 4px;
|
|
65
|
-
align-items: center;
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
}
|
|
68
|
-
&-icon {
|
|
69
|
-
display: block;
|
|
70
|
-
width: 8px;
|
|
71
|
-
height: 8px;
|
|
72
|
-
border-radius: 4px;
|
|
73
|
-
content: '';
|
|
74
|
-
}
|
|
75
|
-
&-num {
|
|
76
|
-
margin-top: 4px;
|
|
77
|
-
margin-left: 12px;
|
|
78
|
-
color: var(--io-N-, #021429);
|
|
79
|
-
font-weight: 700;
|
|
80
|
-
font-size: 32px;
|
|
81
|
-
font-family: Arial;
|
|
82
|
-
font-style: normal;
|
|
83
|
-
line-height: 40px; /* 125% */
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
&-filter {
|
|
90
|
-
display: flex;
|
|
91
|
-
flex-direction: row;
|
|
92
|
-
align-items: center;
|
|
93
|
-
padding: 16px 0;
|
|
94
|
-
&-left {
|
|
95
|
-
display: flex;
|
|
96
|
-
flex: 1;
|
|
97
|
-
flex-direction: row;
|
|
98
|
-
gap: 16px;
|
|
99
|
-
align-items: center;
|
|
100
|
-
}
|
|
101
|
-
&-right {
|
|
102
|
-
display: flex;
|
|
103
|
-
flex-direction: row;
|
|
104
|
-
gap: 16px;
|
|
105
|
-
align-items: center;
|
|
106
|
-
.button:not(.disabled):not(.ant-btn-primary) {
|
|
107
|
-
color: #1454e5;
|
|
108
|
-
border: 1px solid #1454e5;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&-table {
|
|
114
|
-
&-status {
|
|
115
|
-
display: flex;
|
|
116
|
-
align-items: center;
|
|
117
|
-
padding: 1px 8px;
|
|
118
|
-
font-weight: 400;
|
|
119
|
-
font-size: 14px;
|
|
120
|
-
line-height: 22px; /* 157.143% */
|
|
121
|
-
border-radius: 2px;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
.system-setting-demand-pop {
|
|
126
|
-
display: flex;
|
|
127
|
-
flex-direction: column;
|
|
128
|
-
gap: 8px;
|
|
129
|
-
width: 136px;
|
|
130
|
-
&-header {
|
|
131
|
-
display: flex;
|
|
132
|
-
flex-direction: row;
|
|
133
|
-
align-items: flex-start;
|
|
134
|
-
justify-content: space-between;
|
|
135
|
-
color: var(--io-N-, #021429);
|
|
136
|
-
font-weight: 400;
|
|
137
|
-
font-size: 16px;
|
|
138
|
-
line-height: 24px; /* 150% */
|
|
139
|
-
.qingchu {
|
|
140
|
-
color: #9aa1a9;
|
|
141
|
-
cursor: pointer;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
&-footer {
|
|
145
|
-
display: flex;
|
|
146
|
-
flex-direction: row;
|
|
147
|
-
align-items: center;
|
|
148
|
-
justify-content: space-between;
|
|
149
|
-
.ant-btn-primary {
|
|
150
|
-
height: 24px;
|
|
151
|
-
padding-top: 0;
|
|
152
|
-
padding-bottom: 0;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
1
|
+
// @import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
.system-setting-demand {
|
|
3
|
+
padding: 24px;
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
|
|
6
|
+
&-title {
|
|
7
|
+
padding: 16px 0;
|
|
8
|
+
color: #021429;
|
|
9
|
+
font-weight: 500;
|
|
10
|
+
font-size: 20px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&-panel {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
gap: 16px;
|
|
17
|
+
&-all {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
gap: 16px;
|
|
21
|
+
align-items: center;
|
|
22
|
+
width: 256px;
|
|
23
|
+
padding: 24px;
|
|
24
|
+
color: var(--io-N8-, #354354);
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
font-size: 16px;
|
|
27
|
+
background: var(--io-n-02, #fafafb);
|
|
28
|
+
border-radius: 8px;
|
|
29
|
+
&-img {
|
|
30
|
+
width: 64px;
|
|
31
|
+
height: 64px;
|
|
32
|
+
background: url('./../images/title-bg.png') no-repeat;
|
|
33
|
+
background-size: contain;
|
|
34
|
+
}
|
|
35
|
+
&-num {
|
|
36
|
+
color: var(--io-N-, #021429);
|
|
37
|
+
font-weight: 700;
|
|
38
|
+
font-size: 32px;
|
|
39
|
+
line-height: 40px; /* 125% */
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
&-status {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex: 1;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
color: var(--io-N8-, #354354);
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
font-size: 16px;
|
|
50
|
+
font-family: 'PingFang SC';
|
|
51
|
+
font-style: normal;
|
|
52
|
+
line-height: normal;
|
|
53
|
+
background: var(--io-n-02, #fafafb);
|
|
54
|
+
border-radius: 8px;
|
|
55
|
+
&-item {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex: 1;
|
|
58
|
+
// align-items: center;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
padding: 24px;
|
|
61
|
+
&-txt {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: row;
|
|
64
|
+
gap: 4px;
|
|
65
|
+
align-items: center;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
&-icon {
|
|
69
|
+
display: block;
|
|
70
|
+
width: 8px;
|
|
71
|
+
height: 8px;
|
|
72
|
+
border-radius: 4px;
|
|
73
|
+
content: '';
|
|
74
|
+
}
|
|
75
|
+
&-num {
|
|
76
|
+
margin-top: 4px;
|
|
77
|
+
margin-left: 12px;
|
|
78
|
+
color: var(--io-N-, #021429);
|
|
79
|
+
font-weight: 700;
|
|
80
|
+
font-size: 32px;
|
|
81
|
+
font-family: Arial;
|
|
82
|
+
font-style: normal;
|
|
83
|
+
line-height: 40px; /* 125% */
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
&-filter {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
align-items: center;
|
|
93
|
+
padding: 16px 0;
|
|
94
|
+
&-left {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex: 1;
|
|
97
|
+
flex-direction: row;
|
|
98
|
+
gap: 16px;
|
|
99
|
+
align-items: center;
|
|
100
|
+
}
|
|
101
|
+
&-right {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: row;
|
|
104
|
+
gap: 16px;
|
|
105
|
+
align-items: center;
|
|
106
|
+
.button:not(.disabled):not(.ant-btn-primary) {
|
|
107
|
+
color: #1454e5;
|
|
108
|
+
border: 1px solid #1454e5;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&-table {
|
|
114
|
+
&-status {
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
padding: 1px 8px;
|
|
118
|
+
font-weight: 400;
|
|
119
|
+
font-size: 14px;
|
|
120
|
+
line-height: 22px; /* 157.143% */
|
|
121
|
+
border-radius: 2px;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
.system-setting-demand-pop {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
gap: 8px;
|
|
129
|
+
width: 136px;
|
|
130
|
+
&-header {
|
|
131
|
+
display: flex;
|
|
132
|
+
flex-direction: row;
|
|
133
|
+
align-items: flex-start;
|
|
134
|
+
justify-content: space-between;
|
|
135
|
+
color: var(--io-N-, #021429);
|
|
136
|
+
font-weight: 400;
|
|
137
|
+
font-size: 16px;
|
|
138
|
+
line-height: 24px; /* 150% */
|
|
139
|
+
.qingchu {
|
|
140
|
+
color: #9aa1a9;
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
&-footer {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: row;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: space-between;
|
|
149
|
+
.ant-btn-primary {
|
|
150
|
+
height: 24px;
|
|
151
|
+
padding-top: 0;
|
|
152
|
+
padding-bottom: 0;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -23,6 +23,8 @@ import React, { useContext, useEffect, useState } from 'react';
|
|
|
23
23
|
import _ from 'lodash';
|
|
24
24
|
import BizEditText from './editTxt';
|
|
25
25
|
import './styles/index.less';
|
|
26
|
+
import request from '../../utils/ajax';
|
|
27
|
+
import apis from '../../constants/api';
|
|
26
28
|
var CreateMeta = function CreateMeta(props) {
|
|
27
29
|
var classPrefix = 'setting-create-meta-drawer';
|
|
28
30
|
var _useContext = useContext(BizGlobalDataContext),
|
|
@@ -74,8 +76,10 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
74
76
|
form.setFieldsValue({
|
|
75
77
|
aliasName: data.aliasName,
|
|
76
78
|
eventName: data.eventName,
|
|
77
|
-
|
|
79
|
+
businessLabelId: data.businessLabelId
|
|
78
80
|
});
|
|
81
|
+
setTriTagInput(data.triggeringOccasion);
|
|
82
|
+
setTriTagId(data.triggerLabelId);
|
|
79
83
|
setInputText(data.eventName);
|
|
80
84
|
if (data.eventAttrList) {
|
|
81
85
|
setEventAttrList(_toConsumableArray(data.eventAttrList));
|
|
@@ -111,7 +115,7 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
111
115
|
});
|
|
112
116
|
return _context.abrupt("return");
|
|
113
117
|
case 11:
|
|
114
|
-
|
|
118
|
+
//把参数传递给主页面
|
|
115
119
|
if (props.onSubmit) {
|
|
116
120
|
if (props.data) {
|
|
117
121
|
props.onSubmit(_objectSpread(_objectSpread({}, props.data), {}, {
|
|
@@ -121,33 +125,19 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
121
125
|
props.onSubmit({
|
|
122
126
|
eventName: values.eventName,
|
|
123
127
|
aliasName: values.aliasName,
|
|
124
|
-
triggeringOccasion:
|
|
125
|
-
|
|
126
|
-
|
|
128
|
+
triggeringOccasion: triTagInput,
|
|
129
|
+
eventAttrList: eventAttrList,
|
|
130
|
+
businessLabelId: values.businessLabelId,
|
|
131
|
+
triggerLabelId: triTagId,
|
|
132
|
+
businessLabel: bizTag.filter(function (res) {
|
|
133
|
+
return res.id == values.businessLabelId;
|
|
134
|
+
})[0],
|
|
135
|
+
triggerLabel: triTag.filter(function (res) {
|
|
136
|
+
return res.id == values.businessLabelId;
|
|
137
|
+
})[0]
|
|
127
138
|
}, 'create');
|
|
128
139
|
}
|
|
129
140
|
}
|
|
130
|
-
// request<any>(apis.createEvent, {
|
|
131
|
-
// method: 'POST',
|
|
132
|
-
// data: {
|
|
133
|
-
// app_id: currentApp?.appId,
|
|
134
|
-
// eventName: values.eventName,
|
|
135
|
-
// aliasName: values.aliasName,
|
|
136
|
-
// triggeringOccasion: values.triggeringOccasion,
|
|
137
|
-
// eventAttrList,
|
|
138
|
-
// },
|
|
139
|
-
// }).then((res) => {
|
|
140
|
-
// if (res?.code === '100000') {
|
|
141
|
-
// notification.success({
|
|
142
|
-
// message: '保存成功',
|
|
143
|
-
// });
|
|
144
|
-
// props.onSubmit && props.onSubmit();
|
|
145
|
-
// } else {
|
|
146
|
-
// notification.error({
|
|
147
|
-
// message: '保存失败',
|
|
148
|
-
// });
|
|
149
|
-
// }
|
|
150
|
-
// });
|
|
151
141
|
_context.next = 17;
|
|
152
142
|
break;
|
|
153
143
|
case 14:
|
|
@@ -433,6 +423,8 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
433
423
|
useEffect(function () {
|
|
434
424
|
var _Y = getTableScroll(545, 'dataManageCreateMetaTable');
|
|
435
425
|
setScrollY(_Y);
|
|
426
|
+
getTagList(2);
|
|
427
|
+
getTagList(3);
|
|
436
428
|
}, []);
|
|
437
429
|
var onClose = function onClose() {
|
|
438
430
|
if (isChange) {
|
|
@@ -461,11 +453,58 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
461
453
|
})));
|
|
462
454
|
}
|
|
463
455
|
};
|
|
464
|
-
|
|
465
|
-
var _useState17 = useState(
|
|
456
|
+
//标签列表数据 2:业务标签 3:触发标签
|
|
457
|
+
var _useState17 = useState([]),
|
|
466
458
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
467
|
-
|
|
468
|
-
|
|
459
|
+
bizTag = _useState18[0],
|
|
460
|
+
setBizTag = _useState18[1];
|
|
461
|
+
var _useState19 = useState(),
|
|
462
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
463
|
+
triTagInput = _useState20[0],
|
|
464
|
+
setTriTagInput = _useState20[1];
|
|
465
|
+
var _useState21 = useState([]),
|
|
466
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
467
|
+
triTag = _useState22[0],
|
|
468
|
+
setTriTag = _useState22[1];
|
|
469
|
+
var _useState23 = useState(),
|
|
470
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
471
|
+
triTagId = _useState24[0],
|
|
472
|
+
setTriTagId = _useState24[1];
|
|
473
|
+
var getTagList = function getTagList(type) {
|
|
474
|
+
request(apis.dict.getTagList, {
|
|
475
|
+
method: 'post',
|
|
476
|
+
data: {
|
|
477
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
478
|
+
labelType: type
|
|
479
|
+
}
|
|
480
|
+
}).then(function (res) {
|
|
481
|
+
if (res && res.code == '100000') {
|
|
482
|
+
switch (type) {
|
|
483
|
+
case 2:
|
|
484
|
+
setBizTag(res.data.map(function (res) {
|
|
485
|
+
return {
|
|
486
|
+
label: res.labelName,
|
|
487
|
+
value: res.id
|
|
488
|
+
};
|
|
489
|
+
}));
|
|
490
|
+
break;
|
|
491
|
+
case 3:
|
|
492
|
+
setTriTag(res.data.map(function (res) {
|
|
493
|
+
return {
|
|
494
|
+
label: res.labelName,
|
|
495
|
+
value: res.id
|
|
496
|
+
};
|
|
497
|
+
}));
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
};
|
|
503
|
+
// 自定义验证规则
|
|
504
|
+
var _useState25 = useState(''),
|
|
505
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
506
|
+
inputText = _useState26[0],
|
|
507
|
+
setInputText = _useState26[1];
|
|
469
508
|
// true 验证通过
|
|
470
509
|
var validateContainsUnderscore = function validateContainsUnderscore(value) {
|
|
471
510
|
if (!isChange) {
|
|
@@ -502,7 +541,7 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
502
541
|
initialValues: {
|
|
503
542
|
eventName: '',
|
|
504
543
|
aliasName: '',
|
|
505
|
-
|
|
544
|
+
businessLabelId: undefined,
|
|
506
545
|
maidianID: []
|
|
507
546
|
}
|
|
508
547
|
}, homeType == 'create' && (/*#__PURE__*/React.createElement(Form.Item, {
|
|
@@ -567,14 +606,10 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
567
606
|
},
|
|
568
607
|
disabled: homeType == 'update' || homeType == 'get',
|
|
569
608
|
placeholder: "\u8BF7\u8F93\u5165\u89E6\u53D1\u6807\u7B7E",
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
label: '业务标签2',
|
|
575
|
-
value: 'tagJson'
|
|
576
|
-
}],
|
|
577
|
-
onChange: function onChange() {
|
|
609
|
+
defaultValue: triTagId,
|
|
610
|
+
options: triTag,
|
|
611
|
+
onChange: function onChange(value) {
|
|
612
|
+
setTriTagId(value);
|
|
578
613
|
setIsChange(true);
|
|
579
614
|
}
|
|
580
615
|
}), "\u6216", /*#__PURE__*/React.createElement(Input, {
|
|
@@ -585,25 +620,21 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
585
620
|
marginLeft: '10px'
|
|
586
621
|
},
|
|
587
622
|
placeholder: "\u8BF7\u8F93\u5165\u89E6\u53D1\u65F6\u673A\uFF0C\u4F8B\u5982\uFF1A\u7528\u6237\u70B9\u51FB\u786E\u8BA4\u6309\u94AE",
|
|
623
|
+
defaultValue: triTagInput,
|
|
588
624
|
showCount: true,
|
|
589
625
|
maxLength: 128,
|
|
590
626
|
onChange: function onChange(e) {
|
|
627
|
+
setTriTagInput(e.target.value);
|
|
591
628
|
setIsChange(true);
|
|
592
629
|
}
|
|
593
630
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
594
|
-
name: "
|
|
631
|
+
name: "businessLabelId",
|
|
595
632
|
label: "\u4E1A\u52A1\u6807\u7B7E"
|
|
596
633
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
597
634
|
allowClear: true,
|
|
598
635
|
disabled: homeType == 'update' || homeType == 'get',
|
|
599
636
|
placeholder: "\u8BF7\u8F93\u5165\u4E1A\u52A1\u6807\u7B7E",
|
|
600
|
-
options:
|
|
601
|
-
label: '业务标签1',
|
|
602
|
-
value: '111'
|
|
603
|
-
}, {
|
|
604
|
-
label: '业务标签2',
|
|
605
|
-
value: 'tagJson'
|
|
606
|
-
}],
|
|
637
|
+
options: bizTag,
|
|
607
638
|
onChange: function onChange() {
|
|
608
639
|
setIsChange(true);
|
|
609
640
|
}
|
|
@@ -168,7 +168,6 @@ var PageInfo = function PageInfo(props) {
|
|
|
168
168
|
recordShow = _useState52[0],
|
|
169
169
|
setRecordShow = _useState52[1];
|
|
170
170
|
useEffect(function () {
|
|
171
|
-
// console.log('props.pageData', props.pageData);
|
|
172
171
|
if (!props.pageData) {
|
|
173
172
|
setIsEmpty(true);
|
|
174
173
|
} else {
|
|
@@ -176,7 +175,6 @@ var PageInfo = function PageInfo(props) {
|
|
|
176
175
|
}
|
|
177
176
|
}, [props.pageData, props.refreshKey]);
|
|
178
177
|
useEffect(function () {
|
|
179
|
-
// console.log('props.pageData', props.pageData);
|
|
180
178
|
props.onChangePageStatus && props.onChangePageStatus(isEdit);
|
|
181
179
|
}, [isEdit]);
|
|
182
180
|
var getPageConfig = function getPageConfig() {
|
|
@@ -217,7 +215,10 @@ var PageInfo = function PageInfo(props) {
|
|
|
217
215
|
index: index,
|
|
218
216
|
approvalStatus: item.approvalStatus,
|
|
219
217
|
operationType: item.operationType,
|
|
220
|
-
isOnline: item.isOnline || 0
|
|
218
|
+
isOnline: item.isOnline || 0,
|
|
219
|
+
businessLabel: item.businessLabel,
|
|
220
|
+
triggerLabel: item.triggerLabel,
|
|
221
|
+
labels: item.labels
|
|
221
222
|
};
|
|
222
223
|
}) : []);
|
|
223
224
|
//计算出当前上线和下线总合数量
|
|
@@ -518,18 +519,18 @@ var PageInfo = function PageInfo(props) {
|
|
|
518
519
|
className: "".concat(classPrefix, "-content-popoverTag-item")
|
|
519
520
|
}, /*#__PURE__*/React.createElement("span", {
|
|
520
521
|
className: "".concat(classPrefix, "-content-popoverTag-label")
|
|
521
|
-
}, "\u4E1A\u52A1\u6807\u7B7E:"), /*#__PURE__*/React.createElement(Tag, {
|
|
522
|
+
}, "\u4E1A\u52A1\u6807\u7B7E:"), record.businessLabel && /*#__PURE__*/React.createElement(Tag, {
|
|
522
523
|
color: "blue"
|
|
523
|
-
},
|
|
524
|
+
}, record.businessLabel.labelName)), /*#__PURE__*/React.createElement("div", {
|
|
524
525
|
className: "".concat(classPrefix, "-content-popoverTag-item")
|
|
525
526
|
}, /*#__PURE__*/React.createElement("span", {
|
|
526
527
|
className: "".concat(classPrefix, "-content-popoverTag-label")
|
|
527
|
-
}, "\u89E6\u53D1\u6807\u7B7E:"), /*#__PURE__*/React.createElement(Tag, {
|
|
528
|
+
}, "\u89E6\u53D1\u6807\u7B7E:"), record.triggerLabel && /*#__PURE__*/React.createElement(Tag, {
|
|
528
529
|
color: "orange"
|
|
529
|
-
},
|
|
530
|
+
}, record.triggerLabel.labelName)));
|
|
530
531
|
return /*#__PURE__*/React.createElement(Popover, {
|
|
531
532
|
content: content,
|
|
532
|
-
title:
|
|
533
|
+
title: sliceName(record) || ''
|
|
533
534
|
}, /*#__PURE__*/React.createElement("a", {
|
|
534
535
|
onClick: function onClick() {
|
|
535
536
|
if (!isSelect) {
|
|
@@ -552,7 +553,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
552
553
|
setMetaDataIndex(index);
|
|
553
554
|
}
|
|
554
555
|
}
|
|
555
|
-
}, eventName ?
|
|
556
|
+
}, eventName ? sliceName(record) : '选择元事件', !eventName && /*#__PURE__*/React.createElement(IconFont, {
|
|
556
557
|
type: "zhuanfa",
|
|
557
558
|
style: {
|
|
558
559
|
marginLeft: 8
|
|
@@ -883,20 +884,16 @@ var PageInfo = function PageInfo(props) {
|
|
|
883
884
|
//设置新添加的元事件
|
|
884
885
|
var onEventSet = function onEventSet(data, type) {
|
|
885
886
|
if (type == 'create') {
|
|
886
|
-
setEventAttrList([{
|
|
887
|
-
eventName: data.eventName,
|
|
888
|
-
triggeringOccasion: data.triggeringOccasion,
|
|
889
|
-
aliasName: data.aliasName,
|
|
887
|
+
setEventAttrList([_objectSpread(_objectSpread({}, data), {}, {
|
|
890
888
|
describe: '',
|
|
891
889
|
pointSelect: undefined,
|
|
892
890
|
imgPath: '',
|
|
893
891
|
index: eventAttrList.length,
|
|
894
892
|
key: new Date() * 1,
|
|
895
|
-
eventAttrList: data.eventAttrList,
|
|
896
893
|
pageName: pageName,
|
|
897
894
|
pageId: id,
|
|
898
895
|
pageImgUrl: imgPath
|
|
899
|
-
}].concat(_toConsumableArray(eventAttrList)));
|
|
896
|
+
})].concat(_toConsumableArray(eventAttrList)));
|
|
900
897
|
setShowIndex(eventAttrList.length);
|
|
901
898
|
setTimeout(function () {
|
|
902
899
|
setShowIndex(void 0);
|
|
@@ -914,6 +911,21 @@ var PageInfo = function PageInfo(props) {
|
|
|
914
911
|
setRecordShow(true);
|
|
915
912
|
setEventData(row);
|
|
916
913
|
};
|
|
914
|
+
//拼接名称
|
|
915
|
+
var sliceName = function sliceName(record) {
|
|
916
|
+
var _record$businessLabel, _record$triggerLabel;
|
|
917
|
+
var point = props.pageData && props.pageData.labels && props.pageData.labels.filter(function (res) {
|
|
918
|
+
return res.labelType == 1;
|
|
919
|
+
}).map(function (res) {
|
|
920
|
+
return res.labelName || res.label;
|
|
921
|
+
}).join('_') || '';
|
|
922
|
+
var biz = (record === null || record === void 0 ? void 0 : record.businessLabel) && ((_record$businessLabel = record.businessLabel) === null || _record$businessLabel === void 0 ? void 0 : _record$businessLabel.labelName) || '';
|
|
923
|
+
var trig = (record === null || record === void 0 ? void 0 : record.triggerLabel) && ((_record$triggerLabel = record.triggerLabel) === null || _record$triggerLabel === void 0 ? void 0 : _record$triggerLabel.labelName) || '' || '';
|
|
924
|
+
var arr = [biz, point, trig, record.eventName].filter(function (res) {
|
|
925
|
+
return res;
|
|
926
|
+
}).join('-');
|
|
927
|
+
return arr;
|
|
928
|
+
};
|
|
917
929
|
return /*#__PURE__*/React.createElement("div", {
|
|
918
930
|
className: "".concat(classPrefix)
|
|
919
931
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1173,6 +1185,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
1173
1185
|
isEdit: true,
|
|
1174
1186
|
onSubmit: function onSubmit(event, type) {
|
|
1175
1187
|
setCreateMetaShow(false);
|
|
1188
|
+
// console.log(event, '事件内容');
|
|
1176
1189
|
onEventSet(event, type);
|
|
1177
1190
|
},
|
|
1178
1191
|
// selectTreeName={props.selectTreeName}
|
|
@@ -154,4 +154,12 @@
|
|
|
154
154
|
cursor: pointer;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
+
.ant-form-item-control-input-content {
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
}
|
|
161
|
+
.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
162
|
+
color: #021429;
|
|
163
|
+
background-color: #f2f3f4;
|
|
164
|
+
}
|
|
157
165
|
}
|