@zgfe/modules-settings 2.0.0-zhongyuan.25 → 2.0.0-zhongyuan.27
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 +4 -1
- package/es/constants/api.js +7 -2
- package/es/modules/companySetting/application/index.less +144 -144
- package/es/modules/createDemand/constants.d.ts +14 -1
- package/es/modules/createDemand/constants.js +54 -1
- package/es/modules/createDemand/index.js +663 -126
- package/es/modules/createDemand/styles/index.less +97 -1
- package/es/modules/demandManage/index.js +13 -74
- package/es/modules/demandManage/styles/index.less +155 -155
- package/es/modules/messageList/index.d.ts +1 -1
- package/es/modules/messageList/index.js +5 -5
- package/es/modules/personalSetting/demo/index.d.ts +3 -0
- package/es/modules/personalSetting/demo/index.js +13 -0
- package/es/modules/personalSetting/index.d.ts +1 -0
- package/es/modules/personalSetting/index.js +15 -6
- package/package.json +2 -2
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
height: 100%;
|
|
5
5
|
padding: 0 16px 16px;
|
|
6
6
|
background: #fafafb;
|
|
7
|
+
.forbiddenColor {
|
|
8
|
+
background-color: #f2f3f4;
|
|
9
|
+
}
|
|
7
10
|
.setting-point-map-page-content-img-select {
|
|
8
11
|
position: relative;
|
|
9
12
|
}
|
|
@@ -81,6 +84,15 @@
|
|
|
81
84
|
color: #1454e5;
|
|
82
85
|
border: 1px solid #1454e5;
|
|
83
86
|
}
|
|
87
|
+
&-btnRight {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
margin-right: 310px;
|
|
91
|
+
margin-left: auto;
|
|
92
|
+
.commentBtn {
|
|
93
|
+
margin-left: 10px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
84
96
|
}
|
|
85
97
|
&-info {
|
|
86
98
|
display: flex;
|
|
@@ -236,6 +248,44 @@
|
|
|
236
248
|
}
|
|
237
249
|
}
|
|
238
250
|
}
|
|
251
|
+
&-right {
|
|
252
|
+
margin-left: auto;
|
|
253
|
+
&-button {
|
|
254
|
+
margin-left: 10px;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
&-tabList {
|
|
258
|
+
display: flex;
|
|
259
|
+
align-items: center;
|
|
260
|
+
color: #9aa1a9;
|
|
261
|
+
border-radius: 5px;
|
|
262
|
+
// outline: 1px solid #9aa1a9;
|
|
263
|
+
&-item {
|
|
264
|
+
box-sizing: border-box;
|
|
265
|
+
width: 90px;
|
|
266
|
+
height: 32px;
|
|
267
|
+
line-height: 32px;
|
|
268
|
+
text-align: center;
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
}
|
|
271
|
+
&-item:nth-child(1) {
|
|
272
|
+
border-top: 1px solid #9aa1a9;
|
|
273
|
+
border-bottom: 1px solid #9aa1a9;
|
|
274
|
+
border-left: 1px solid #9aa1a9;
|
|
275
|
+
border-radius: 2px 0 0 2px;
|
|
276
|
+
}
|
|
277
|
+
&-item:nth-child(2) {
|
|
278
|
+
border-top: 1px solid #9aa1a9;
|
|
279
|
+
border-right: 1px solid #9aa1a9;
|
|
280
|
+
border-bottom: 1px solid #9aa1a9;
|
|
281
|
+
border-radius: 0 2px 2px 0;
|
|
282
|
+
}
|
|
283
|
+
&-active {
|
|
284
|
+
color: #fff;
|
|
285
|
+
background-color: #165dff;
|
|
286
|
+
border: none !important;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
239
289
|
}
|
|
240
290
|
&-drawer {
|
|
241
291
|
.ant-drawer-header-title .ant-drawer-close {
|
|
@@ -243,7 +293,6 @@
|
|
|
243
293
|
right: 6px;
|
|
244
294
|
}
|
|
245
295
|
}
|
|
246
|
-
|
|
247
296
|
&-content-img-select {
|
|
248
297
|
position: relative;
|
|
249
298
|
display: flex;
|
|
@@ -260,7 +309,54 @@
|
|
|
260
309
|
max-height: 78px;
|
|
261
310
|
}
|
|
262
311
|
}
|
|
312
|
+
&-comment {
|
|
313
|
+
width: 100%;
|
|
314
|
+
margin-top: 20px;
|
|
315
|
+
&-tab {
|
|
316
|
+
display: flex;
|
|
317
|
+
align-items: center;
|
|
318
|
+
margin: 0 10px 0 20px;
|
|
319
|
+
padding-bottom: 10px;
|
|
320
|
+
font-size: 16px;
|
|
321
|
+
border-bottom: 1px solid #e6e7ea;
|
|
322
|
+
|
|
323
|
+
&-btn {
|
|
324
|
+
color: #9aa1a9;
|
|
325
|
+
font-size: 16px;
|
|
326
|
+
cursor: pointer;
|
|
327
|
+
}
|
|
328
|
+
&-btnActive {
|
|
329
|
+
color: #116acc;
|
|
330
|
+
font-weight: bold;
|
|
331
|
+
}
|
|
332
|
+
&-btn + &-btn::before {
|
|
333
|
+
display: inline-block;
|
|
334
|
+
margin: 0 10px;
|
|
335
|
+
color: #9aa1a9;
|
|
336
|
+
font-weight: bold;
|
|
337
|
+
transform: translateY(-2px);
|
|
338
|
+
content: '|';
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
&-list {
|
|
342
|
+
margin: 0 10px 0 20px;
|
|
343
|
+
padding: 10px 0;
|
|
344
|
+
border-bottom: 1px solid #e6e7ea;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
&-history {
|
|
348
|
+
&-list {
|
|
349
|
+
margin: 0 10px 0 20px;
|
|
350
|
+
padding: 10px 0;
|
|
351
|
+
border-bottom: 1px solid #e6e7ea;
|
|
352
|
+
span {
|
|
353
|
+
margin: 0 5px;
|
|
354
|
+
color: #116acc;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
263
358
|
}
|
|
359
|
+
|
|
264
360
|
#system-setting-demand {
|
|
265
361
|
position: fixed;
|
|
266
362
|
z-index: -1000;
|
|
@@ -21,6 +21,7 @@ import './styles/index.less';
|
|
|
21
21
|
import apis from '../../constants/api';
|
|
22
22
|
import request from '../../utils/ajax';
|
|
23
23
|
import moment from 'moment';
|
|
24
|
+
import { demandTabList } from '../createDemand/constants';
|
|
24
25
|
var sorterKey = {
|
|
25
26
|
ascend: 'asc',
|
|
26
27
|
descend: 'desc'
|
|
@@ -46,47 +47,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
46
47
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
47
48
|
pageData = _useState4[0],
|
|
48
49
|
setPageData = _useState4[1];
|
|
49
|
-
var _useState5 = useState(
|
|
50
|
-
label: '设计',
|
|
51
|
-
value: 1,
|
|
52
|
-
key: 'nodename1',
|
|
53
|
-
color: '#fda145'
|
|
54
|
-
}, {
|
|
55
|
-
label: '审核1',
|
|
56
|
-
value: 2,
|
|
57
|
-
key: 'nodename2',
|
|
58
|
-
color: '#fb5547'
|
|
59
|
-
}, {
|
|
60
|
-
label: '审核2',
|
|
61
|
-
value: 3,
|
|
62
|
-
key: 'nodename3',
|
|
63
|
-
color: '#fb5547'
|
|
64
|
-
}, {
|
|
65
|
-
label: '开发',
|
|
66
|
-
value: 4,
|
|
67
|
-
key: 'nodename4',
|
|
68
|
-
color: '#165dff'
|
|
69
|
-
}, {
|
|
70
|
-
label: '测试',
|
|
71
|
-
value: 5,
|
|
72
|
-
key: 'nodename5',
|
|
73
|
-
color: '#165dff'
|
|
74
|
-
}, {
|
|
75
|
-
label: '已完成',
|
|
76
|
-
value: 6,
|
|
77
|
-
key: 'finishedSum',
|
|
78
|
-
color: '#2cbe54'
|
|
79
|
-
}, {
|
|
80
|
-
label: '已关闭',
|
|
81
|
-
value: 7,
|
|
82
|
-
key: 'closedSum',
|
|
83
|
-
color: '#cccfd5'
|
|
84
|
-
}, {
|
|
85
|
-
label: '已超时',
|
|
86
|
-
value: 8,
|
|
87
|
-
key: 'overTimeSum',
|
|
88
|
-
color: '#fda145'
|
|
89
|
-
}]),
|
|
50
|
+
var _useState5 = useState(demandTabList),
|
|
90
51
|
_useState6 = _slicedToArray(_useState5, 1),
|
|
91
52
|
labelList = _useState6[0];
|
|
92
53
|
var _useState7 = useState(route && route.query && route.query.demandKey || ''),
|
|
@@ -271,21 +232,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
271
232
|
}
|
|
272
233
|
}).then(function (res) {
|
|
273
234
|
if (res === null || res === void 0 ? void 0 : res.data) {
|
|
274
|
-
|
|
275
|
-
request(apis.revocationDemand, {
|
|
276
|
-
method: 'POST',
|
|
277
|
-
data: {
|
|
278
|
-
app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
279
|
-
id: props.record.id
|
|
280
|
-
}
|
|
281
|
-
}).then(function (re) {
|
|
282
|
-
props.onDeal && props.onDeal(type, res.data);
|
|
283
|
-
getDemandStatistics();
|
|
284
|
-
getDemandList();
|
|
285
|
-
});
|
|
286
|
-
} else {
|
|
287
|
-
props.onDeal && props.onDeal(type, res.data);
|
|
288
|
-
}
|
|
235
|
+
props.onDeal && props.onDeal(type, res.data);
|
|
289
236
|
}
|
|
290
237
|
// getDemandStatistics();
|
|
291
238
|
// getDemandList();
|
|
@@ -325,32 +272,24 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
325
272
|
color: "primary",
|
|
326
273
|
type: "link",
|
|
327
274
|
onClick: function onClick() {
|
|
328
|
-
props.onDeal && props.onDeal('
|
|
329
|
-
|
|
275
|
+
props.onDeal && props.onDeal('revocation', {
|
|
276
|
+
appId: props.record.id,
|
|
277
|
+
approvalModule: props.record.approvalModule,
|
|
278
|
+
businessType: props.record.businessType,
|
|
279
|
+
completionTime: props.record.completionTime,
|
|
280
|
+
demandDescribe: props.record.demandDescrib,
|
|
281
|
+
demandName: props.record.demandName + '复制',
|
|
282
|
+
fileName: props.record.fileName,
|
|
283
|
+
filePath: props.record.filePath
|
|
330
284
|
});
|
|
331
285
|
}
|
|
332
286
|
}, "\u590D\u5236"), /*#__PURE__*/React.createElement(Button, {
|
|
333
287
|
color: "primary",
|
|
334
288
|
type: "link",
|
|
335
|
-
onClick: function onClick() {
|
|
336
|
-
props.onDeal && props.onDeal('view', {
|
|
337
|
-
data: props.record
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
}, "\u7F16\u8F91"), !isDemo && props.record.isHandle && authority[17228364473] && (/*#__PURE__*/React.createElement("a", {
|
|
341
|
-
style: {
|
|
342
|
-
marginRight: 16
|
|
343
|
-
},
|
|
344
|
-
onClick: function onClick() {
|
|
345
|
-
getDemand('deal');
|
|
346
|
-
}
|
|
347
|
-
}, "\u5904\u7406")
|
|
348
|
-
// </Popover>
|
|
349
|
-
), !isDemo && props.record.revocation && (/*#__PURE__*/React.createElement("a", {
|
|
350
289
|
onClick: function onClick() {
|
|
351
290
|
getDemand('revocation');
|
|
352
291
|
}
|
|
353
|
-
}, "\
|
|
292
|
+
}, "\u7F16\u8F91"));
|
|
354
293
|
};
|
|
355
294
|
//关闭功能
|
|
356
295
|
var disableDemand = function disableDemand(data) {
|
|
@@ -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
|
+
}
|
|
@@ -100,12 +100,12 @@ var CreateProcess = function CreateProcess(props) {
|
|
|
100
100
|
className: "".concat(classPrefix)
|
|
101
101
|
}, /*#__PURE__*/React.createElement("div", {
|
|
102
102
|
className: "".concat(classPrefix, "-header")
|
|
103
|
-
}, "\u6D88\u606F\u901A\u77E5\uFF08", unReadNum, "\uFF09", /*#__PURE__*/React.createElement(IconFont, {
|
|
103
|
+
}, "\u6D88\u606F\u901A\u77E5\uFF08", unReadNum, "\uFF09", onclose ? (/*#__PURE__*/React.createElement(IconFont, {
|
|
104
104
|
type: "qingchu",
|
|
105
105
|
onClick: function onClick() {
|
|
106
|
-
return props.onClose();
|
|
106
|
+
return props.onClose && props.onClose();
|
|
107
107
|
}
|
|
108
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
108
|
+
})) : ''), /*#__PURE__*/React.createElement("div", {
|
|
109
109
|
className: "".concat(classPrefix, "-content")
|
|
110
110
|
}, /*#__PURE__*/React.createElement("div", {
|
|
111
111
|
className: "".concat(classPrefix, "-content-filter")
|
|
@@ -167,7 +167,7 @@ var CreateProcess = function CreateProcess(props) {
|
|
|
167
167
|
},
|
|
168
168
|
onClick: function onClick() {
|
|
169
169
|
gotoPage(v.businessId, v.content);
|
|
170
|
-
props.onClose();
|
|
170
|
+
props.onClose && props.onClose();
|
|
171
171
|
// changeAllRead(v.id);
|
|
172
172
|
}
|
|
173
173
|
}, v.content), /*#__PURE__*/React.createElement("div", {
|
|
@@ -190,7 +190,7 @@ var CreateProcess = function CreateProcess(props) {
|
|
|
190
190
|
className: "".concat(classPrefix, "-content-list-item-title"),
|
|
191
191
|
onClick: function onClick() {
|
|
192
192
|
gotoPage(v.businessId, v.content);
|
|
193
|
-
props.onClose();
|
|
193
|
+
props.onClose && props.onClose();
|
|
194
194
|
changeAllRead(v.id);
|
|
195
195
|
}
|
|
196
196
|
}, v.content), /*#__PURE__*/React.createElement("div", {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PersonalSetting from '../index';
|
|
3
|
+
import { DemoWrapper } from '@zgfe/business-lib';
|
|
4
|
+
export default (function () {
|
|
5
|
+
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
6
|
+
defaultApp: 99825
|
|
7
|
+
}, /*#__PURE__*/React.createElement(PersonalSetting, {
|
|
8
|
+
settingsCallback: function settingsCallback(type) {
|
|
9
|
+
throw new Error('Function not implemented.');
|
|
10
|
+
},
|
|
11
|
+
currentKey: "5"
|
|
12
|
+
}));
|
|
13
|
+
});
|
|
@@ -14,15 +14,18 @@ import { useContext } from 'react';
|
|
|
14
14
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
15
15
|
import util from '../../utils/util';
|
|
16
16
|
import SecurityLog from './securityLog';
|
|
17
|
+
import CreateProcess from '../messageList';
|
|
17
18
|
var PersonalSetting = function PersonalSetting(_ref) {
|
|
18
|
-
var settingsCallback = _ref.settingsCallback
|
|
19
|
+
var settingsCallback = _ref.settingsCallback,
|
|
20
|
+
_ref$currentKey = _ref.currentKey,
|
|
21
|
+
currentKey = _ref$currentKey === void 0 ? '1' : _ref$currentKey;
|
|
19
22
|
var _useContext = useContext(BizGlobalDataContext),
|
|
20
23
|
currentUser = _useContext.currentUser,
|
|
21
24
|
isDemo = _useContext.isDemo;
|
|
22
|
-
var _useState = useState(
|
|
25
|
+
var _useState = useState(currentKey),
|
|
23
26
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
currentKeyTab = _useState2[0],
|
|
28
|
+
setCurrentKeyTab = _useState2[1];
|
|
26
29
|
var title = /*#__PURE__*/React.createElement("div", {
|
|
27
30
|
className: "tab-header"
|
|
28
31
|
}, /*#__PURE__*/React.createElement(UserOutlined, null), /*#__PURE__*/React.createElement("span", {
|
|
@@ -30,7 +33,7 @@ var PersonalSetting = function PersonalSetting(_ref) {
|
|
|
30
33
|
}, "\u4E2A\u4EBA\u8BBE\u7F6E"));
|
|
31
34
|
useEffect(function () {
|
|
32
35
|
var query = util.getHrefData(window.location.href);
|
|
33
|
-
if (query.password)
|
|
36
|
+
if (query.password) setCurrentKeyTab('2');
|
|
34
37
|
}, []);
|
|
35
38
|
var items = [{
|
|
36
39
|
key: '1',
|
|
@@ -54,12 +57,18 @@ var PersonalSetting = function PersonalSetting(_ref) {
|
|
|
54
57
|
key: '4',
|
|
55
58
|
label: '安全日志',
|
|
56
59
|
content: /*#__PURE__*/React.createElement(SecurityLog, null)
|
|
60
|
+
}, {
|
|
61
|
+
key: '5',
|
|
62
|
+
label: '消息通知',
|
|
63
|
+
content: /*#__PURE__*/React.createElement(CreateProcess, {
|
|
64
|
+
onClose: undefined
|
|
65
|
+
})
|
|
57
66
|
}];
|
|
58
67
|
return /*#__PURE__*/React.createElement(SettingTabs, {
|
|
59
68
|
typeName: "personal",
|
|
60
69
|
title: title,
|
|
61
70
|
items: items,
|
|
62
|
-
currentKey:
|
|
71
|
+
currentKey: currentKeyTab
|
|
63
72
|
});
|
|
64
73
|
};
|
|
65
74
|
export default PersonalSetting;
|