@zgfe/modules-settings 2.0.0-zhongyuan.31 → 2.0.0-zhongyuan.33
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/companySetting/application/index.less +144 -144
- package/es/modules/createDemand/constants.js +1 -1
- package/es/modules/createDemand/index.js +88 -48
- package/es/modules/createDemand/styles/index.less +397 -390
- package/es/modules/demandManage/index.js +3 -3
- package/es/modules/demandManage/styles/index.less +155 -155
- package/package.json +2 -2
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
.application {
|
|
2
|
-
height: 100%;
|
|
3
|
-
min-height: 400px;
|
|
4
|
-
overflow-x: hidden;
|
|
5
|
-
overflow-y: auto;
|
|
6
|
-
|
|
7
|
-
&-modal {
|
|
8
|
-
.ant-modal-body {
|
|
9
|
-
padding: 24px !important;
|
|
10
|
-
}
|
|
11
|
-
.ant-modal-confirm-body .ant-modal-confirm-title {
|
|
12
|
-
color: #000;
|
|
13
|
-
font-size: 24px;
|
|
14
|
-
line-height: 24px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ant-modal-confirm-body .ant-modal-confirm-content {
|
|
18
|
-
margin-top: 0;
|
|
19
|
-
padding-top: 24px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ant-modal-close {
|
|
23
|
-
padding-top: 8px;
|
|
24
|
-
padding-right: 6px;
|
|
25
|
-
|
|
26
|
-
&-x {
|
|
27
|
-
color: #021429;
|
|
28
|
-
font-size: 24px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&-drawer {
|
|
34
|
-
.ant-drawer-header-title {
|
|
35
|
-
flex-direction: row-reverse;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.bsicon {
|
|
40
|
-
color: #9aa1a9;
|
|
41
|
-
font-size: 16px !important;
|
|
42
|
-
}
|
|
43
|
-
.bsicon:hover {
|
|
44
|
-
color: var(--io-i-, #165dff);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.bsicon.shanchu:hover {
|
|
48
|
-
color: #fb5547;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.zhuge.icon-shanchu:hover {
|
|
52
|
-
color: #fb5547;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-alert-info {
|
|
56
|
-
background-color: #e6f7ff;
|
|
57
|
-
border: 1px solid #91d5ff;
|
|
58
|
-
border-radius: 2px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&-form {
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
justify-content: space-between;
|
|
65
|
-
|
|
66
|
-
&-item {
|
|
67
|
-
display: flex;
|
|
68
|
-
gap: 8px;
|
|
69
|
-
align-items: center;
|
|
70
|
-
|
|
71
|
-
.bsicon {
|
|
72
|
-
color: #fd9f41;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.bsicon:hover {
|
|
76
|
-
color: var(--io-i-, #fd9f41);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.ant-btn-sm {
|
|
81
|
-
height: 32px;
|
|
82
|
-
padding: 4px 16px;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.ant-divider-horizontal {
|
|
87
|
-
margin: 14px 0;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.biz-loading-container.loading {
|
|
91
|
-
margin-top: 100px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&-disabled,
|
|
95
|
-
&-disabled:hover,
|
|
96
|
-
&-disabled:focus {
|
|
97
|
-
cursor: not-allowed !important;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ant-btn-primary[disabled],
|
|
101
|
-
.ant-btn-primary[disabled]:hover,
|
|
102
|
-
.ant-btn-primary[disabled]:focus,
|
|
103
|
-
.ant-btn-primary[disabled]:active {
|
|
104
|
-
color: #fff;
|
|
105
|
-
background: var(--io-i2-, #d0dfff);
|
|
106
|
-
border: 1px solid #d0dfff;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.settings-card {
|
|
110
|
-
gap: 6px;
|
|
111
|
-
height: 120px;
|
|
112
|
-
}
|
|
113
|
-
&-rowContent {
|
|
114
|
-
height: calc(100vh - 302px);
|
|
115
|
-
overflow: overlay;
|
|
116
|
-
}
|
|
117
|
-
&-contentList-label {
|
|
118
|
-
display: grid;
|
|
119
|
-
grid-template-columns: 230px repeat(4, minmax(90px, 1fr)) 135px 90px 260px;
|
|
120
|
-
align-items: center;
|
|
121
|
-
padding-right: 14px;
|
|
122
|
-
border-bottom: 1px solid #ecedf0;
|
|
123
|
-
}
|
|
124
|
-
&-contentList-item-name {
|
|
125
|
-
color: #000;
|
|
126
|
-
font-weight: bold;
|
|
127
|
-
font-size: 14px;
|
|
128
|
-
}
|
|
129
|
-
&-contentList-item-status-icon0,
|
|
130
|
-
&-contentList-item-status-icon1 {
|
|
131
|
-
display: inline-block;
|
|
132
|
-
width: 6px;
|
|
133
|
-
height: 6px;
|
|
134
|
-
margin-right: 3px;
|
|
135
|
-
border-radius: 50%;
|
|
136
|
-
transform: translateY(-1px);
|
|
137
|
-
}
|
|
138
|
-
&-contentList-item-status-icon0 {
|
|
139
|
-
background: #67727f;
|
|
140
|
-
}
|
|
141
|
-
&-contentList-item-status-icon1 {
|
|
142
|
-
background: #165dff;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
1
|
+
.application {
|
|
2
|
+
height: 100%;
|
|
3
|
+
min-height: 400px;
|
|
4
|
+
overflow-x: hidden;
|
|
5
|
+
overflow-y: auto;
|
|
6
|
+
|
|
7
|
+
&-modal {
|
|
8
|
+
.ant-modal-body {
|
|
9
|
+
padding: 24px !important;
|
|
10
|
+
}
|
|
11
|
+
.ant-modal-confirm-body .ant-modal-confirm-title {
|
|
12
|
+
color: #000;
|
|
13
|
+
font-size: 24px;
|
|
14
|
+
line-height: 24px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ant-modal-confirm-body .ant-modal-confirm-content {
|
|
18
|
+
margin-top: 0;
|
|
19
|
+
padding-top: 24px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ant-modal-close {
|
|
23
|
+
padding-top: 8px;
|
|
24
|
+
padding-right: 6px;
|
|
25
|
+
|
|
26
|
+
&-x {
|
|
27
|
+
color: #021429;
|
|
28
|
+
font-size: 24px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-drawer {
|
|
34
|
+
.ant-drawer-header-title {
|
|
35
|
+
flex-direction: row-reverse;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.bsicon {
|
|
40
|
+
color: #9aa1a9;
|
|
41
|
+
font-size: 16px !important;
|
|
42
|
+
}
|
|
43
|
+
.bsicon:hover {
|
|
44
|
+
color: var(--io-i-, #165dff);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.bsicon.shanchu:hover {
|
|
48
|
+
color: #fb5547;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.zhuge.icon-shanchu:hover {
|
|
52
|
+
color: #fb5547;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-alert-info {
|
|
56
|
+
background-color: #e6f7ff;
|
|
57
|
+
border: 1px solid #91d5ff;
|
|
58
|
+
border-radius: 2px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-form {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
|
|
66
|
+
&-item {
|
|
67
|
+
display: flex;
|
|
68
|
+
gap: 8px;
|
|
69
|
+
align-items: center;
|
|
70
|
+
|
|
71
|
+
.bsicon {
|
|
72
|
+
color: #fd9f41;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.bsicon:hover {
|
|
76
|
+
color: var(--io-i-, #fd9f41);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ant-btn-sm {
|
|
81
|
+
height: 32px;
|
|
82
|
+
padding: 4px 16px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.ant-divider-horizontal {
|
|
87
|
+
margin: 14px 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.biz-loading-container.loading {
|
|
91
|
+
margin-top: 100px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&-disabled,
|
|
95
|
+
&-disabled:hover,
|
|
96
|
+
&-disabled:focus {
|
|
97
|
+
cursor: not-allowed !important;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ant-btn-primary[disabled],
|
|
101
|
+
.ant-btn-primary[disabled]:hover,
|
|
102
|
+
.ant-btn-primary[disabled]:focus,
|
|
103
|
+
.ant-btn-primary[disabled]:active {
|
|
104
|
+
color: #fff;
|
|
105
|
+
background: var(--io-i2-, #d0dfff);
|
|
106
|
+
border: 1px solid #d0dfff;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.settings-card {
|
|
110
|
+
gap: 6px;
|
|
111
|
+
height: 120px;
|
|
112
|
+
}
|
|
113
|
+
&-rowContent {
|
|
114
|
+
height: calc(100vh - 302px);
|
|
115
|
+
overflow: overlay;
|
|
116
|
+
}
|
|
117
|
+
&-contentList-label {
|
|
118
|
+
display: grid;
|
|
119
|
+
grid-template-columns: 230px repeat(4, minmax(90px, 1fr)) 135px 90px 260px;
|
|
120
|
+
align-items: center;
|
|
121
|
+
padding-right: 14px;
|
|
122
|
+
border-bottom: 1px solid #ecedf0;
|
|
123
|
+
}
|
|
124
|
+
&-contentList-item-name {
|
|
125
|
+
color: #000;
|
|
126
|
+
font-weight: bold;
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
}
|
|
129
|
+
&-contentList-item-status-icon0,
|
|
130
|
+
&-contentList-item-status-icon1 {
|
|
131
|
+
display: inline-block;
|
|
132
|
+
width: 6px;
|
|
133
|
+
height: 6px;
|
|
134
|
+
margin-right: 3px;
|
|
135
|
+
border-radius: 50%;
|
|
136
|
+
transform: translateY(-1px);
|
|
137
|
+
}
|
|
138
|
+
&-contentList-item-status-icon0 {
|
|
139
|
+
background: #67727f;
|
|
140
|
+
}
|
|
141
|
+
&-contentList-item-status-icon1 {
|
|
142
|
+
background: #165dff;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -202,6 +202,15 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
202
202
|
});
|
|
203
203
|
};
|
|
204
204
|
useEffect(function () {
|
|
205
|
+
if (props.data && props.data.demand && (props === null || props === void 0 ? void 0 : props.data.demand.demandName)) {
|
|
206
|
+
setDemandName(props === null || props === void 0 ? void 0 : props.data.demand.demandName);
|
|
207
|
+
setDemandDescribe(props === null || props === void 0 ? void 0 : props.data.demand.demandDescribe);
|
|
208
|
+
setCompletionTime(moment(new Date(props === null || props === void 0 ? void 0 : props.data.demand.completionTime)));
|
|
209
|
+
setDemandFile({
|
|
210
|
+
fileName: props === null || props === void 0 ? void 0 : props.data.demand.fileName,
|
|
211
|
+
filePath: props === null || props === void 0 ? void 0 : props.data.demand.filePath
|
|
212
|
+
});
|
|
213
|
+
}
|
|
205
214
|
getAppAutoEvent();
|
|
206
215
|
}, []);
|
|
207
216
|
var getDemand = function getDemand() {
|
|
@@ -312,8 +321,10 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
312
321
|
return false;
|
|
313
322
|
}
|
|
314
323
|
};
|
|
324
|
+
// type on单击事件 save保存 flow
|
|
315
325
|
var onCreate = function onCreate() {
|
|
316
|
-
var
|
|
326
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'save';
|
|
327
|
+
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
317
328
|
if (!demandName) {
|
|
318
329
|
message.warning('请填写需求名称');
|
|
319
330
|
return;
|
|
@@ -337,13 +348,13 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
337
348
|
pointEventIds: pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
338
349
|
return item.id;
|
|
339
350
|
}),
|
|
340
|
-
pointEventStatus: pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
351
|
+
pointEventStatus: type != 'flow' ? pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
341
352
|
return item.status;
|
|
342
|
-
})
|
|
343
|
-
})
|
|
353
|
+
}) : []
|
|
354
|
+
}, data)
|
|
344
355
|
}).then(function (res) {
|
|
345
356
|
if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
|
|
346
|
-
if (
|
|
357
|
+
if (type == 'on') {
|
|
347
358
|
message.success('保存成功');
|
|
348
359
|
props.onBack && props.onBack();
|
|
349
360
|
}
|
|
@@ -353,14 +364,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
353
364
|
}
|
|
354
365
|
});
|
|
355
366
|
};
|
|
356
|
-
var removeInfo = function removeInfo(type, info) {
|
|
357
|
-
if (isRead) return message.error('查看状态不可修改');
|
|
358
|
-
var data = _.clone(pointEventInfo);
|
|
359
|
-
setPointEventInfo(data ? data.filter(function (item) {
|
|
360
|
-
return item.id !== info.id;
|
|
361
|
-
}) : []);
|
|
362
|
-
message.success('移除成功');
|
|
363
|
-
};
|
|
364
367
|
var downloadFile = function downloadFile() {
|
|
365
368
|
if (!isRead) return;
|
|
366
369
|
request(apis.fileDownload, {
|
|
@@ -381,7 +384,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
381
384
|
});
|
|
382
385
|
};
|
|
383
386
|
var gotoPage = function gotoPage(type, data) {
|
|
384
|
-
// console.log('data', data);
|
|
385
387
|
switch (type) {
|
|
386
388
|
case 'event':
|
|
387
389
|
window.open('/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage?key=' + data, '_blank');
|
|
@@ -392,8 +394,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
392
394
|
default:
|
|
393
395
|
break;
|
|
394
396
|
}
|
|
395
|
-
// setEventAttrListShow(true);
|
|
396
|
-
// setEventProp(record.event_attrs);
|
|
397
397
|
};
|
|
398
398
|
var onBack = function onBack() {
|
|
399
399
|
if (isEdit) {
|
|
@@ -673,8 +673,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
673
673
|
};
|
|
674
674
|
// 新的埋点表格列表
|
|
675
675
|
var newColumns = function newColumns() {
|
|
676
|
-
|
|
677
|
-
return [].concat(_toConsumableArray(columnsEvent(gotoPage, isControl)), [{
|
|
676
|
+
var columns = [].concat(_toConsumableArray(columnsEvent(gotoPage, isControl)), [{
|
|
678
677
|
title: '状态',
|
|
679
678
|
width: 120,
|
|
680
679
|
dataIndex: 'status',
|
|
@@ -682,6 +681,27 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
682
681
|
return statusDiv(status);
|
|
683
682
|
}
|
|
684
683
|
}]);
|
|
684
|
+
//处于需求完成和埋点信息为上线状态
|
|
685
|
+
if (demandStatus == 101 && tabIndex == 1) {
|
|
686
|
+
columns.push({
|
|
687
|
+
title: '是否有数据上报',
|
|
688
|
+
width: 150,
|
|
689
|
+
dataIndex: 'hasData',
|
|
690
|
+
render: function render(hasData) {
|
|
691
|
+
return hasData == 1 ? (/*#__PURE__*/React.createElement("div", {
|
|
692
|
+
style: {
|
|
693
|
+
color: '#2cbe54'
|
|
694
|
+
}
|
|
695
|
+
}, "\u662F")) : (/*#__PURE__*/React.createElement("div", {
|
|
696
|
+
style: {
|
|
697
|
+
color: '#fb5547'
|
|
698
|
+
}
|
|
699
|
+
}, "\u5426"));
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
//埋点列表label数据
|
|
704
|
+
return columns;
|
|
685
705
|
};
|
|
686
706
|
//埋点需求列表选择
|
|
687
707
|
var onSelectChange = function onSelectChange(val) {
|
|
@@ -755,20 +775,24 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
755
775
|
request(apis.setting.designateProcessor, {
|
|
756
776
|
method: 'POST',
|
|
757
777
|
data: {
|
|
778
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
758
779
|
id: props.demandId || ((_props$data5 = props.data) === null || _props$data5 === void 0 ? void 0 : _props$data5.demand.id),
|
|
759
780
|
processorId: userSelect.id,
|
|
760
781
|
processorName: userSelect.userName
|
|
761
782
|
}
|
|
762
783
|
}).then(function (res) {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
784
|
+
if (res && res.code == '100000') {
|
|
785
|
+
setShowUser(false);
|
|
786
|
+
if (props.data && props.data.demand) {
|
|
787
|
+
setDemandData(function (val) {
|
|
788
|
+
val.demand.currentProcessorName = userSelect.userName;
|
|
789
|
+
return _objectSpread({}, val);
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
notification.success({
|
|
793
|
+
message: '修改成功'
|
|
767
794
|
});
|
|
768
795
|
}
|
|
769
|
-
notification.success({
|
|
770
|
-
message: '修改成功'
|
|
771
|
-
});
|
|
772
796
|
});
|
|
773
797
|
} else {
|
|
774
798
|
submitApproval(1);
|
|
@@ -813,7 +837,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
813
837
|
var _props$data8;
|
|
814
838
|
setIsEdit(false);
|
|
815
839
|
//先保存当前设置
|
|
816
|
-
onCreate(
|
|
840
|
+
onCreate('flow');
|
|
817
841
|
//提交进入下一个流程
|
|
818
842
|
request(apis.submitApproval, {
|
|
819
843
|
method: 'post',
|
|
@@ -832,6 +856,10 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
832
856
|
});
|
|
833
857
|
setShowUser(false);
|
|
834
858
|
props.onBack && props.onBack();
|
|
859
|
+
} else {
|
|
860
|
+
notification.success({
|
|
861
|
+
message: res.msg
|
|
862
|
+
});
|
|
835
863
|
}
|
|
836
864
|
}).catch(function (err) {
|
|
837
865
|
console.log(err);
|
|
@@ -884,7 +912,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
884
912
|
}, "\u9700\u6C42ID"), /*#__PURE__*/React.createElement("div", {
|
|
885
913
|
className: "".concat(classPrefix, "-info-item-content")
|
|
886
914
|
}, /*#__PURE__*/React.createElement("span", {
|
|
887
|
-
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
915
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
888
916
|
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.id)))), /*#__PURE__*/React.createElement("div", {
|
|
889
917
|
className: "".concat(classPrefix, "-info-item")
|
|
890
918
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -892,7 +920,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
892
920
|
}, "\u521B\u5EFA\u4EBA"), /*#__PURE__*/React.createElement("div", {
|
|
893
921
|
className: "".concat(classPrefix, "-info-item-content")
|
|
894
922
|
}, /*#__PURE__*/React.createElement("span", {
|
|
895
|
-
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
923
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
896
924
|
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.creatorName)))), demandStatus > 1 && (/*#__PURE__*/React.createElement("div", {
|
|
897
925
|
className: "".concat(classPrefix, "-info-item")
|
|
898
926
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -900,7 +928,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
900
928
|
}, "\u5904\u7406\u4EBA"), /*#__PURE__*/React.createElement("div", {
|
|
901
929
|
className: "".concat(classPrefix, "-info-item-content")
|
|
902
930
|
}, /*#__PURE__*/React.createElement("span", {
|
|
903
|
-
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
931
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
904
932
|
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.currentProcessorName))))))), /*#__PURE__*/React.createElement("div", {
|
|
905
933
|
className: "".concat(classPrefix, "-info-item")
|
|
906
934
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -981,7 +1009,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
981
1009
|
onClick: function onClick() {
|
|
982
1010
|
downloadFile();
|
|
983
1011
|
}
|
|
984
|
-
}, demandFile.fileName), !isRead && (/*#__PURE__*/React.createElement(IconFont, {
|
|
1012
|
+
}, demandFile.fileName), !isRead && demandType != 'manage' && (/*#__PURE__*/React.createElement(IconFont, {
|
|
985
1013
|
type: "qingchu",
|
|
986
1014
|
style: {
|
|
987
1015
|
color: '#67727F'
|
|
@@ -999,19 +1027,15 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
999
1027
|
type: "tianjia1"
|
|
1000
1028
|
}), "\u6DFB\u52A0\u6587\u4EF6")), /*#__PURE__*/React.createElement("div", {
|
|
1001
1029
|
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
1002
|
-
}, "\uFF08\u652F\u6301 ZIP\u3001RAR \u683C\u5F0F\u300110M\u4EE5\u5185\uFF09"))))), demandStatus == 101 || demandStatus == 102 && (/*#__PURE__*/React.createElement("div", {
|
|
1030
|
+
}, "\uFF08\u652F\u6301 ZIP\u3001RAR \u683C\u5F0F\u300110M\u4EE5\u5185\uFF09"))))), (demandStatus == 101 || demandStatus == 102) && (/*#__PURE__*/React.createElement("div", {
|
|
1003
1031
|
className: "".concat(classPrefix, "-info-item")
|
|
1004
1032
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1005
1033
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
1006
1034
|
}, "\u4E0A\u7EBF\u65F6\u95F4"), /*#__PURE__*/React.createElement("div", {
|
|
1007
1035
|
className: "".concat(classPrefix, "-info-item-content")
|
|
1008
|
-
}, /*#__PURE__*/React.createElement(
|
|
1009
|
-
className: "".concat(classPrefix, "-info-item-content-
|
|
1010
|
-
|
|
1011
|
-
disabledDate: disabledDate,
|
|
1012
|
-
showTime: true,
|
|
1013
|
-
disabled: true
|
|
1014
|
-
}))))), (demandType != 'edit' && demandStatus > 0 || isRead) && (/*#__PURE__*/React.createElement("div", {
|
|
1036
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1037
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
1038
|
+
}, (demandData === null || demandData === void 0 ? void 0 : demandData.demand) && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.onlineTime)))))), demandType != 'edit' && demandStatus > 1 && (/*#__PURE__*/React.createElement("div", {
|
|
1015
1039
|
className: "".concat(classPrefix, "-info-item"),
|
|
1016
1040
|
style: {
|
|
1017
1041
|
paddingLeft: 24,
|
|
@@ -1052,13 +1076,13 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1052
1076
|
shape: "round",
|
|
1053
1077
|
className: "button",
|
|
1054
1078
|
onClick: function onClick() {
|
|
1055
|
-
setIsEdit(true);
|
|
1056
1079
|
props.setIsShowSelectList && props.setIsShowSelectList(function (val) {
|
|
1057
1080
|
setPointEventInfo(val.map(function (val) {
|
|
1058
1081
|
return _objectSpread(_objectSpread({}, val), {}, {
|
|
1059
1082
|
status: 0
|
|
1060
1083
|
});
|
|
1061
1084
|
}));
|
|
1085
|
+
onCreate('save');
|
|
1062
1086
|
}, pointEventInfo);
|
|
1063
1087
|
}
|
|
1064
1088
|
}, "\u57CB\u70B9\u8BBE\u8BA1")), /*#__PURE__*/React.createElement("div", {
|
|
@@ -1068,18 +1092,31 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1068
1092
|
shape: "round",
|
|
1069
1093
|
onClick: function onClick() {
|
|
1070
1094
|
setStatusMethod(1);
|
|
1095
|
+
onCreate('save');
|
|
1071
1096
|
}
|
|
1072
1097
|
}, getLableValue(demandStatus, 'buttonName'))), isRead ? null : demandStatus == 2 && (/*#__PURE__*/React.createElement(Button, {
|
|
1073
1098
|
className: "".concat(classPrefix, "-info-right-button forbiddenColor"),
|
|
1074
1099
|
onClick: function onClick() {
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1100
|
+
var list = pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
1101
|
+
if (selectedRowKeys.indexOf(item.id) == -1) {
|
|
1102
|
+
pointEventInfo.slice(selectedRowKeys.indexOf(item.id));
|
|
1103
|
+
}
|
|
1104
|
+
});
|
|
1105
|
+
setPointEventInfo(list);
|
|
1106
|
+
onCreate('save', {
|
|
1107
|
+
pointEventIds: list.map(function (res) {
|
|
1108
|
+
return res.id;
|
|
1109
|
+
}),
|
|
1110
|
+
pointEventStatus: list.map(function (res) {
|
|
1111
|
+
return res.status;
|
|
1112
|
+
})
|
|
1113
|
+
});
|
|
1078
1114
|
}
|
|
1079
1115
|
}, "\u79FB\u9664")), isRead ? null : (demandStatus == 3 || demandStatus == 4) && (/*#__PURE__*/React.createElement(Button, {
|
|
1080
1116
|
className: "".concat(classPrefix, "-info-right-button forbiddenColor"),
|
|
1081
1117
|
onClick: function onClick() {
|
|
1082
1118
|
setStatusMethod(2);
|
|
1119
|
+
onCreate('save');
|
|
1083
1120
|
}
|
|
1084
1121
|
}, "\u9A73\u56DE")))), /*#__PURE__*/React.createElement(Table, {
|
|
1085
1122
|
style: {
|
|
@@ -1087,7 +1124,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1087
1124
|
borderRadius: 8,
|
|
1088
1125
|
overflow: 'hidden'
|
|
1089
1126
|
},
|
|
1090
|
-
columns:
|
|
1127
|
+
columns: newColumns(),
|
|
1091
1128
|
rowKey: "id",
|
|
1092
1129
|
rowSelection: {
|
|
1093
1130
|
selectedRowKeys: selectedRowKeys,
|
|
@@ -1117,7 +1154,9 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1117
1154
|
setTabKey('history');
|
|
1118
1155
|
getOperateList();
|
|
1119
1156
|
}
|
|
1120
|
-
}, "\u64CD\u4F5C\u5386\u53F2")),
|
|
1157
|
+
}, "\u64CD\u4F5C\u5386\u53F2")), /*#__PURE__*/React.createElement("div", {
|
|
1158
|
+
className: "".concat(classPrefix, "-comment-content")
|
|
1159
|
+
}, tabKey == 'comment' && comments.map(function (item) {
|
|
1121
1160
|
return /*#__PURE__*/React.createElement("div", {
|
|
1122
1161
|
className: "".concat(classPrefix, "-comment-list"),
|
|
1123
1162
|
key: item.id
|
|
@@ -1140,7 +1179,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1140
1179
|
});
|
|
1141
1180
|
}), operateList.length == 0 && tabKey == 'history' && (/*#__PURE__*/React.createElement("div", {
|
|
1142
1181
|
className: "".concat(classPrefix, "-comment-empty")
|
|
1143
|
-
}, "\u6682\u65E0\u64CD\u4F5C\u5386\u53F2"))))), /*#__PURE__*/React.createElement("div", {
|
|
1182
|
+
}, "\u6682\u65E0\u64CD\u4F5C\u5386\u53F2")))))), /*#__PURE__*/React.createElement("div", {
|
|
1144
1183
|
className: "".concat(classPrefix, "-right"),
|
|
1145
1184
|
id: "xsd4"
|
|
1146
1185
|
}, nodeData.length ? (/*#__PURE__*/React.createElement(ProcessCanvas, {
|
|
@@ -1203,11 +1242,11 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1203
1242
|
setCommentText('');
|
|
1204
1243
|
setShowComment(true);
|
|
1205
1244
|
}
|
|
1206
|
-
}, "\u6DFB\u52A0\u8BC4\u8BBA")), !isDemo && !isRead &&
|
|
1245
|
+
}, "\u6DFB\u52A0\u8BC4\u8BBA")), !isDemo && !isRead && [0, 1, 2, 3, 4, 5, 6].indexOf(demandStatus) != -1 && demandType != 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1207
1246
|
type: 'primary',
|
|
1208
1247
|
className: "commentBtn",
|
|
1209
1248
|
onClick: function onClick() {
|
|
1210
|
-
return onCreate();
|
|
1249
|
+
return onCreate('on');
|
|
1211
1250
|
}
|
|
1212
1251
|
}, demandData ? '保存' : '提交')), !isDemo && !isRead && demandStatus > 0 && demandStatus <= 6 && demandType == 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1213
1252
|
type: 'primary',
|
|
@@ -1286,7 +1325,8 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1286
1325
|
closable: true,
|
|
1287
1326
|
onOk: function onOk() {
|
|
1288
1327
|
if (onlineTime) {
|
|
1289
|
-
|
|
1328
|
+
//走流程
|
|
1329
|
+
onCreate('flow');
|
|
1290
1330
|
submitApproval(1);
|
|
1291
1331
|
setShowOnlineTime(false);
|
|
1292
1332
|
}
|