@zgfe/modules-settings 2.0.0-zhongyuan.2 → 2.0.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/constants/api.d.ts +2 -0
- package/es/constants/api.js +2 -0
- package/es/modules/companySetting/application/index.d.ts +13 -0
- package/es/modules/companySetting/application/index.js +271 -98
- package/es/modules/companySetting/application/index.less +144 -126
- package/es/modules/companySetting/user/index.js +10 -3
- package/es/modules/companySetting/user/index.less +363 -363
- package/es/modules/companySetting/user/invite.js +19 -0
- package/es/modules/demandManage/index.js +17 -2
- package/es/modules/demandManage/styles/index.less +226 -210
- package/es/modules/messageList/index.js +4 -4
- package/es/modules/personalSetting/info/index.js +23 -5
- package/es/modules/pointMap/styles/tree.css +145 -145
- package/es/modules/pointMap/styles/tree.less +149 -149
- package/es/modules/systemSetting/document-setting/index.js +44 -15
- package/es/modules/systemSetting/index.css +161 -161
- package/es/modules/systemSetting/index.less +169 -169
- package/es/types/personal.d.ts +1 -0
- package/package.json +2 -2
|
@@ -315,6 +315,25 @@ var UserGroup = function UserGroup(props) {
|
|
|
315
315
|
},
|
|
316
316
|
maxLength: 10,
|
|
317
317
|
placeholder: '请输入姓名'
|
|
318
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
319
|
+
name: 'telphone',
|
|
320
|
+
label: "\u624B\u673A\u53F7",
|
|
321
|
+
rules: [{
|
|
322
|
+
required: true,
|
|
323
|
+
message: '请输入手机号'
|
|
324
|
+
}, {
|
|
325
|
+
pattern: /^[0-9]{11}$/,
|
|
326
|
+
message: '请输入正确的手机号'
|
|
327
|
+
}]
|
|
328
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
329
|
+
onBlur: function onBlur(event) {
|
|
330
|
+
var _event$target2;
|
|
331
|
+
form.setFieldsValue({
|
|
332
|
+
telphone: event === null || event === void 0 ? void 0 : (_event$target2 = event.target) === null || _event$target2 === void 0 ? void 0 : _event$target2.value
|
|
333
|
+
});
|
|
334
|
+
},
|
|
335
|
+
maxLength: 11,
|
|
336
|
+
placeholder: '请输入手机号'
|
|
318
337
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
319
338
|
name: 'roleIds',
|
|
320
339
|
label: "\u89D2\u8272",
|
|
@@ -46,7 +46,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
46
46
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
47
47
|
demandName = _useState6[0],
|
|
48
48
|
setDemandName = _useState6[1];
|
|
49
|
-
// 状态:1-待处理, 2-处理中,3-已驳回,4
|
|
49
|
+
// 状态:1-待处理, 2-处理中,3-已驳回,4-已结束,5-已超时
|
|
50
50
|
var _useState7 = useState(0),
|
|
51
51
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
52
52
|
demandStatus = _useState8[0],
|
|
@@ -181,7 +181,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
181
181
|
dataIndex: 'demandStatus',
|
|
182
182
|
width: 160,
|
|
183
183
|
render: function render(demandStatus) {
|
|
184
|
-
var status = ['', '待处理', '处理中', '已驳回', '已结束'];
|
|
184
|
+
var status = ['', '待处理', '处理中', '已驳回', '已结束', '已超时'];
|
|
185
185
|
return /*#__PURE__*/React.createElement("div", {
|
|
186
186
|
style: {
|
|
187
187
|
display: 'flex'
|
|
@@ -367,6 +367,18 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
367
367
|
}
|
|
368
368
|
}, demandInfo ? (demandInfo === null || demandInfo === void 0 ? void 0 : demandInfo.rejectedSum) || 0 : '-')), /*#__PURE__*/React.createElement("div", {
|
|
369
369
|
className: "".concat(classPrefix, "-panel-status-item")
|
|
370
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
371
|
+
className: "".concat(classPrefix, "-panel-status-item-txt"),
|
|
372
|
+
onClick: function onClick() {
|
|
373
|
+
return setDemandStatus(5);
|
|
374
|
+
}
|
|
375
|
+
}, "\u5DF2\u8D85\u65F6"), /*#__PURE__*/React.createElement("div", {
|
|
376
|
+
className: "".concat(classPrefix, "-panel-status-item-num"),
|
|
377
|
+
onClick: function onClick() {
|
|
378
|
+
return setDemandStatus(5);
|
|
379
|
+
}
|
|
380
|
+
}, demandInfo ? (demandInfo === null || demandInfo === void 0 ? void 0 : demandInfo.overTimeSum) || 0 : '-')), /*#__PURE__*/React.createElement("div", {
|
|
381
|
+
className: "".concat(classPrefix, "-panel-status-item")
|
|
370
382
|
}, /*#__PURE__*/React.createElement("div", {
|
|
371
383
|
className: "".concat(classPrefix, "-panel-status-item-txt"),
|
|
372
384
|
onClick: function onClick() {
|
|
@@ -423,6 +435,9 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
423
435
|
}, {
|
|
424
436
|
value: 4,
|
|
425
437
|
label: '已结束'
|
|
438
|
+
}, {
|
|
439
|
+
value: 5,
|
|
440
|
+
label: '已超时'
|
|
426
441
|
}]
|
|
427
442
|
}), /*#__PURE__*/React.createElement("div", {
|
|
428
443
|
className: "top-total"
|
|
@@ -1,210 +1,226 @@
|
|
|
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
|
-
&::before {
|
|
68
|
-
display: block;
|
|
69
|
-
width: 8px;
|
|
70
|
-
height: 8px;
|
|
71
|
-
border-radius: 4px;
|
|
72
|
-
content: '';
|
|
73
|
-
}
|
|
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
|
-
&-item:nth-child(1) {
|
|
88
|
-
.system-setting-demand-panel-status-item-txt::before {
|
|
89
|
-
background-color: #fd9f41;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
&-item:nth-child(2) {
|
|
93
|
-
.system-setting-demand-panel-status-item-txt::before {
|
|
94
|
-
background-color: #165dff;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
&-item:nth-child(3) {
|
|
98
|
-
.system-setting-demand-panel-status-item-txt::before {
|
|
99
|
-
background-color: #fb5547;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
&-item:nth-child(4) {
|
|
103
|
-
.system-setting-demand-panel-status-item-txt::before {
|
|
104
|
-
background-color: #
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
+
&::before {
|
|
68
|
+
display: block;
|
|
69
|
+
width: 8px;
|
|
70
|
+
height: 8px;
|
|
71
|
+
border-radius: 4px;
|
|
72
|
+
content: '';
|
|
73
|
+
}
|
|
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
|
+
&-item:nth-child(1) {
|
|
88
|
+
.system-setting-demand-panel-status-item-txt::before {
|
|
89
|
+
background-color: #fd9f41;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
&-item:nth-child(2) {
|
|
93
|
+
.system-setting-demand-panel-status-item-txt::before {
|
|
94
|
+
background-color: #165dff;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
&-item:nth-child(3) {
|
|
98
|
+
.system-setting-demand-panel-status-item-txt::before {
|
|
99
|
+
background-color: #fb5547;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
&-item:nth-child(4) {
|
|
103
|
+
.system-setting-demand-panel-status-item-txt::before {
|
|
104
|
+
background-color: #e1f703;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
&-item:nth-child(5) {
|
|
108
|
+
.system-setting-demand-panel-status-item-txt::before {
|
|
109
|
+
background-color: #ccd0d4;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
&-filter {
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: row;
|
|
117
|
+
align-items: center;
|
|
118
|
+
padding: 16px 0;
|
|
119
|
+
&-left {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex: 1;
|
|
122
|
+
flex-direction: row;
|
|
123
|
+
gap: 16px;
|
|
124
|
+
align-items: center;
|
|
125
|
+
}
|
|
126
|
+
&-right {
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: row;
|
|
129
|
+
gap: 16px;
|
|
130
|
+
align-items: center;
|
|
131
|
+
.button:not(.disabled):not(.ant-btn-primary) {
|
|
132
|
+
color: #1454e5;
|
|
133
|
+
border: 1px solid #1454e5;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&-table {
|
|
139
|
+
&-status2 {
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
padding: 1px 8px;
|
|
143
|
+
color: var(--io-i-, #165dff);
|
|
144
|
+
font-weight: 400;
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
line-height: 22px; /* 157.143% */
|
|
147
|
+
background: var(--io-i1-, #e8efff);
|
|
148
|
+
border-radius: 2px;
|
|
149
|
+
}
|
|
150
|
+
&-status1 {
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
padding: 1px 8px;
|
|
154
|
+
color: var(--io-i-, #fd9f41);
|
|
155
|
+
font-weight: 400;
|
|
156
|
+
font-size: 14px;
|
|
157
|
+
line-height: 22px; /* 157.143% */
|
|
158
|
+
background: var(--io-i1-, #ffecd9);
|
|
159
|
+
border-radius: 2px;
|
|
160
|
+
}
|
|
161
|
+
&-status3 {
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
padding: 1px 8px;
|
|
165
|
+
color: var(--io-i-, #fb5547);
|
|
166
|
+
font-weight: 400;
|
|
167
|
+
font-size: 14px;
|
|
168
|
+
line-height: 22px; /* 157.143% */
|
|
169
|
+
background: var(--io-i1-, #ffece8);
|
|
170
|
+
border-radius: 2px;
|
|
171
|
+
}
|
|
172
|
+
&-status4 {
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
padding: 1px 8px;
|
|
176
|
+
color: var(--io-i-, #5f6085);
|
|
177
|
+
font-weight: 400;
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
line-height: 22px; /* 157.143% */
|
|
180
|
+
background: var(--io-i1-, #f2f3f4);
|
|
181
|
+
border-radius: 2px;
|
|
182
|
+
}
|
|
183
|
+
&-status5 {
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
padding: 1px 8px;
|
|
187
|
+
color: var(--io-i-, #faad14);
|
|
188
|
+
font-weight: 400;
|
|
189
|
+
font-size: 14px;
|
|
190
|
+
line-height: 22px; /* 157.143% */
|
|
191
|
+
background: var(--io-i1-, #ffe58f);
|
|
192
|
+
border-radius: 2px;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
.system-setting-demand-pop {
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
gap: 8px;
|
|
200
|
+
width: 136px;
|
|
201
|
+
&-header {
|
|
202
|
+
display: flex;
|
|
203
|
+
flex-direction: row;
|
|
204
|
+
align-items: flex-start;
|
|
205
|
+
justify-content: space-between;
|
|
206
|
+
color: var(--io-N-, #021429);
|
|
207
|
+
font-weight: 400;
|
|
208
|
+
font-size: 16px;
|
|
209
|
+
line-height: 24px; /* 150% */
|
|
210
|
+
.qingchu {
|
|
211
|
+
color: #9aa1a9;
|
|
212
|
+
cursor: pointer;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
&-footer {
|
|
216
|
+
display: flex;
|
|
217
|
+
flex-direction: row;
|
|
218
|
+
align-items: center;
|
|
219
|
+
justify-content: space-between;
|
|
220
|
+
.ant-btn-primary {
|
|
221
|
+
height: 24px;
|
|
222
|
+
padding-top: 0;
|
|
223
|
+
padding-bottom: 0;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -73,8 +73,8 @@ var CreateProcess = function CreateProcess(props) {
|
|
|
73
73
|
console.log(err);
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
var gotoPage = function gotoPage(businessId) {
|
|
77
|
-
var pageNmae = businessId === -1 ? '/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage' : '/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/setting/systemSetting/createDemand?id=' + businessId;
|
|
76
|
+
var gotoPage = function gotoPage(businessId, content) {
|
|
77
|
+
var pageNmae = businessId === -1 ? '/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage' : content.includes('埋点待测试') ? '/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage' : '/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/setting/systemSetting/createDemand?id=' + businessId;
|
|
78
78
|
window.open(pageNmae, '_blank');
|
|
79
79
|
// const pageNmae = businessId === -1 ? routes.dataAccess.manage : routes.createDemand;
|
|
80
80
|
// const currentPage =
|
|
@@ -166,7 +166,7 @@ var CreateProcess = function CreateProcess(props) {
|
|
|
166
166
|
color: '#67727F'
|
|
167
167
|
},
|
|
168
168
|
onClick: function onClick() {
|
|
169
|
-
gotoPage(v.businessId);
|
|
169
|
+
gotoPage(v.businessId, v.content);
|
|
170
170
|
props.onClose();
|
|
171
171
|
// changeAllRead(v.id);
|
|
172
172
|
}
|
|
@@ -189,7 +189,7 @@ var CreateProcess = function CreateProcess(props) {
|
|
|
189
189
|
}, /*#__PURE__*/React.createElement("div", {
|
|
190
190
|
className: "".concat(classPrefix, "-content-list-item-title"),
|
|
191
191
|
onClick: function onClick() {
|
|
192
|
-
gotoPage(v.businessId);
|
|
192
|
+
gotoPage(v.businessId, v.content);
|
|
193
193
|
props.onClose();
|
|
194
194
|
changeAllRead(v.id);
|
|
195
195
|
}
|
|
@@ -18,7 +18,8 @@ var PersonalInfo = function PersonalInfo(_ref) {
|
|
|
18
18
|
isDemo = _useContext.isDemo;
|
|
19
19
|
var _useState = useState({
|
|
20
20
|
username: currentUser === null || currentUser === void 0 ? void 0 : currentUser.username,
|
|
21
|
-
emailNote: currentUser === null || currentUser === void 0 ? void 0 : currentUser.emailNote
|
|
21
|
+
emailNote: currentUser === null || currentUser === void 0 ? void 0 : currentUser.emailNote,
|
|
22
|
+
telphone: currentUser === null || currentUser === void 0 ? void 0 : currentUser.telphone
|
|
22
23
|
}),
|
|
23
24
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24
25
|
initialValues = _useState2[0],
|
|
@@ -34,14 +35,15 @@ var PersonalInfo = function PersonalInfo(_ref) {
|
|
|
34
35
|
var onSubmit = function onSubmit(value) {
|
|
35
36
|
setLoading(true);
|
|
36
37
|
var username = value.username,
|
|
37
|
-
emailNote = value.emailNote
|
|
38
|
+
emailNote = value.emailNote,
|
|
39
|
+
telphone = value.telphone;
|
|
38
40
|
urlRequest(apis.setting.updateUserInfo, {
|
|
39
41
|
method: 'post',
|
|
40
42
|
data: {
|
|
41
43
|
data: JSON.stringify({
|
|
42
44
|
name: username,
|
|
43
45
|
email: emailNote,
|
|
44
|
-
mobile:
|
|
46
|
+
mobile: telphone
|
|
45
47
|
})
|
|
46
48
|
}
|
|
47
49
|
}).then(function (res) {
|
|
@@ -52,11 +54,13 @@ var PersonalInfo = function PersonalInfo(_ref) {
|
|
|
52
54
|
// 表单重置
|
|
53
55
|
setInitialValues({
|
|
54
56
|
username: username,
|
|
55
|
-
emailNote: emailNote
|
|
57
|
+
emailNote: emailNote,
|
|
58
|
+
telphone: telphone
|
|
56
59
|
});
|
|
57
60
|
form.resetFields();
|
|
58
61
|
currentUser.username = username;
|
|
59
62
|
currentUser.emailNote = emailNote;
|
|
63
|
+
currentUser.telphone = telphone;
|
|
60
64
|
// 主应用更新currentUser,同公司设置-更新应用名称回调
|
|
61
65
|
settingsCallback('settingChangeCompanyNameCallback');
|
|
62
66
|
} else {
|
|
@@ -96,6 +100,20 @@ var PersonalInfo = function PersonalInfo(_ref) {
|
|
|
96
100
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
97
101
|
placeholder: "\u59D3\u540D",
|
|
98
102
|
disabled: isDemo
|
|
103
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
104
|
+
label: "\u624B\u673A\u53F7",
|
|
105
|
+
name: "telphone",
|
|
106
|
+
rules: [{
|
|
107
|
+
required: true,
|
|
108
|
+
message: '请输入手机号'
|
|
109
|
+
}, {
|
|
110
|
+
pattern: /^[0-9]{11}$/,
|
|
111
|
+
message: '请输入正确的手机号'
|
|
112
|
+
}]
|
|
113
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
114
|
+
maxLength: 11,
|
|
115
|
+
placeholder: "\u624B\u673A\u53F7",
|
|
116
|
+
disabled: isDemo
|
|
99
117
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
100
118
|
label: "\u90AE\u7BB1",
|
|
101
119
|
name: "emailNote",
|
|
@@ -116,7 +134,7 @@ var PersonalInfo = function PersonalInfo(_ref) {
|
|
|
116
134
|
type: "primary",
|
|
117
135
|
htmlType: "submit",
|
|
118
136
|
loading: loading,
|
|
119
|
-
disabled: isDemo || !(form.isFieldTouched('username') || form.isFieldTouched('emailNote')) || !!form.getFieldsError().filter(function (_ref2) {
|
|
137
|
+
disabled: isDemo || !(form.isFieldTouched('username') || form.isFieldTouched('emailNote') || form.isFieldTouched('telphone')) || !!form.getFieldsError().filter(function (_ref2) {
|
|
120
138
|
var errors = _ref2.errors;
|
|
121
139
|
return errors.length;
|
|
122
140
|
}).length || JSON.stringify(initialValues) === JSON.stringify(form.getFieldsValue())
|