@zgfe/modules-settings 2.0.0-zhongyuan.29 → 2.0.0-zhongyuan.31
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.
|
@@ -42,7 +42,7 @@ var getImgUrl = function getImgUrl(src, pageId) {
|
|
|
42
42
|
// : `${'https://test01.zhugeapi.com'}/web/img/report/${pageId}/${src}`;
|
|
43
43
|
};
|
|
44
44
|
var CreateDemand = function CreateDemand(props) {
|
|
45
|
-
var _props$data
|
|
45
|
+
var _props$data;
|
|
46
46
|
var classPrefix = 'system-setting-create-demand';
|
|
47
47
|
var _useContext = useContext(BizGlobalDataContext),
|
|
48
48
|
currentApp = _useContext.currentApp,
|
|
@@ -72,125 +72,110 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
72
72
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
73
73
|
eventKey = _useState10[0],
|
|
74
74
|
setEventKey = _useState10[1];
|
|
75
|
-
var _useState11 = useState(
|
|
75
|
+
var _useState11 = useState(),
|
|
76
76
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
demandFile = _useState12[0],
|
|
78
|
+
setDemandFile = _useState12[1];
|
|
79
79
|
var _useState13 = useState(),
|
|
80
80
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
var _useState15 = useState(),
|
|
81
|
+
pointEventInfo = _useState14[0],
|
|
82
|
+
setPointEventInfo = _useState14[1];
|
|
83
|
+
var _useState15 = useState(false),
|
|
84
84
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
isHandle = _useState16[0],
|
|
86
|
+
setIsHandle = _useState16[1];
|
|
87
87
|
var _useState17 = useState(false),
|
|
88
88
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
var _useState19 = useState(
|
|
89
|
+
isWithdraw = _useState18[0],
|
|
90
|
+
setIsWithdraw = _useState18[1];
|
|
91
|
+
var _useState19 = useState(void 0),
|
|
92
92
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
var _useState21 = useState(
|
|
96
|
-
_useState22 = _slicedToArray(_useState21,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
var _useState23 = useState(void 0),
|
|
93
|
+
currentNodenumber = _useState20[0],
|
|
94
|
+
setCurrentNodenumber = _useState20[1];
|
|
95
|
+
var _useState21 = useState(props.isRead),
|
|
96
|
+
_useState22 = _slicedToArray(_useState21, 1),
|
|
97
|
+
isRead = _useState22[0];
|
|
98
|
+
var _useState23 = useState(false),
|
|
100
99
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
var _useState25 = useState(),
|
|
100
|
+
isShowBackConfirm = _useState24[0],
|
|
101
|
+
setIsShowBackConfirm = _useState24[1];
|
|
102
|
+
var _useState25 = useState(false),
|
|
104
103
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
var _useState27 = useState(
|
|
104
|
+
isEdit = _useState26[0],
|
|
105
|
+
setIsEdit = _useState26[1];
|
|
106
|
+
var _useState27 = useState(),
|
|
108
107
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
var _useState29 = useState(
|
|
108
|
+
processingNode = _useState28[0],
|
|
109
|
+
setProcessingNode = _useState28[1];
|
|
110
|
+
var _useState29 = useState(),
|
|
112
111
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
var _useState31 = useState(
|
|
116
|
-
_useState32 = _slicedToArray(_useState31,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
112
|
+
demandData = _useState30[0],
|
|
113
|
+
setDemandData = _useState30[1];
|
|
114
|
+
var _useState31 = useState(0),
|
|
115
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
116
|
+
demandStatus = _useState32[0],
|
|
117
|
+
setDemandStatus = _useState32[1];
|
|
118
|
+
//需求操作类型
|
|
119
|
+
var _useState33 = useState((props === null || props === void 0 ? void 0 : (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.type) || 'get'),
|
|
120
|
+
_useState34 = _slicedToArray(_useState33, 1),
|
|
121
|
+
demandType = _useState34[0];
|
|
122
|
+
//埋点列表选择key
|
|
123
|
+
var _useState35 = useState([]),
|
|
123
124
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
selectedRowKeys = _useState36[0],
|
|
126
|
+
setSelectedRowKeys = _useState36[1];
|
|
127
|
+
//公司用户列表
|
|
128
|
+
var _useState37 = useState([]),
|
|
127
129
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
var _useState39 = useState(),
|
|
130
|
+
userList = _useState38[0],
|
|
131
|
+
setUserList = _useState38[1];
|
|
132
|
+
var _useState39 = useState(false),
|
|
131
133
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
var _useState41 = useState(
|
|
135
|
-
_useState42 = _slicedToArray(_useState41,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
var _useState43 = useState(
|
|
134
|
+
showUser = _useState40[0],
|
|
135
|
+
setShowUser = _useState40[1];
|
|
136
|
+
var _useState41 = useState({}),
|
|
137
|
+
_useState42 = _slicedToArray(_useState41, 2),
|
|
138
|
+
userSelect = _useState42[0],
|
|
139
|
+
setUserSelect = _useState42[1];
|
|
140
|
+
var _useState43 = useState(''),
|
|
139
141
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
var _useState45 = useState(
|
|
142
|
+
userSelectType = _useState44[0],
|
|
143
|
+
setUserSelectType = _useState44[1];
|
|
144
|
+
//评论参数列表
|
|
145
|
+
var _useState45 = useState('comment'),
|
|
144
146
|
_useState46 = _slicedToArray(_useState45, 2),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
var _useState47 = useState(
|
|
147
|
+
tabKey = _useState46[0],
|
|
148
|
+
setTabKey = _useState46[1];
|
|
149
|
+
var _useState47 = useState([]),
|
|
148
150
|
_useState48 = _slicedToArray(_useState47, 2),
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
var _useState49 = useState(
|
|
151
|
+
comments = _useState48[0],
|
|
152
|
+
setComments = _useState48[1];
|
|
153
|
+
var _useState49 = useState(''),
|
|
152
154
|
_useState50 = _slicedToArray(_useState49, 2),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
var _useState51 = useState(
|
|
155
|
+
commentText = _useState50[0],
|
|
156
|
+
setCommentText = _useState50[1];
|
|
157
|
+
var _useState51 = useState([]),
|
|
156
158
|
_useState52 = _slicedToArray(_useState51, 2),
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
var _useState53 = useState('comment'),
|
|
159
|
+
operateList = _useState52[0],
|
|
160
|
+
setOperateList = _useState52[1];
|
|
161
|
+
var _useState53 = useState(false),
|
|
161
162
|
_useState54 = _slicedToArray(_useState53, 2),
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
showComment = _useState54[0],
|
|
164
|
+
setShowComment = _useState54[1];
|
|
165
|
+
//上线时间
|
|
166
|
+
var _useState55 = useState(false),
|
|
165
167
|
_useState56 = _slicedToArray(_useState55, 2),
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
var _useState57 = useState(
|
|
168
|
+
showOnlineTime = _useState56[0],
|
|
169
|
+
setShowOnlineTime = _useState56[1];
|
|
170
|
+
var _useState57 = useState(),
|
|
169
171
|
_useState58 = _slicedToArray(_useState57, 2),
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
var _useState59 = useState([]),
|
|
173
|
-
_useState60 = _slicedToArray(_useState59, 2),
|
|
174
|
-
operateList = _useState60[0],
|
|
175
|
-
setOperateList = _useState60[1];
|
|
176
|
-
var _useState61 = useState(false),
|
|
177
|
-
_useState62 = _slicedToArray(_useState61, 2),
|
|
178
|
-
showComment = _useState62[0],
|
|
179
|
-
setShowComment = _useState62[1];
|
|
180
|
-
//上线时间
|
|
181
|
-
var _useState63 = useState(false),
|
|
182
|
-
_useState64 = _slicedToArray(_useState63, 2),
|
|
183
|
-
showOnlineTime = _useState64[0],
|
|
184
|
-
setShowOnlineTime = _useState64[1];
|
|
185
|
-
var _useState65 = useState(),
|
|
186
|
-
_useState66 = _slicedToArray(_useState65, 2),
|
|
187
|
-
onlineTime = _useState66[0],
|
|
188
|
-
setOnlineTime = _useState66[1];
|
|
172
|
+
onlineTime = _useState58[0],
|
|
173
|
+
setOnlineTime = _useState58[1];
|
|
189
174
|
//设置时间
|
|
190
|
-
var
|
|
191
|
-
|
|
192
|
-
tabIndex =
|
|
193
|
-
setTabIndex =
|
|
175
|
+
var _useState59 = useState(1),
|
|
176
|
+
_useState60 = _slicedToArray(_useState59, 2),
|
|
177
|
+
tabIndex = _useState60[0],
|
|
178
|
+
setTabIndex = _useState60[1];
|
|
194
179
|
useEffect(function () {
|
|
195
180
|
if (props.demandId) {
|
|
196
181
|
getDemand();
|
|
@@ -198,10 +183,10 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
198
183
|
getNode();
|
|
199
184
|
}
|
|
200
185
|
}, [props.demandId]);
|
|
201
|
-
var
|
|
202
|
-
|
|
203
|
-
isControl =
|
|
204
|
-
setIsControl =
|
|
186
|
+
var _useState61 = useState(false),
|
|
187
|
+
_useState62 = _slicedToArray(_useState61, 2),
|
|
188
|
+
isControl = _useState62[0],
|
|
189
|
+
setIsControl = _useState62[1];
|
|
205
190
|
var getAppAutoEvent = function getAppAutoEvent() {
|
|
206
191
|
request(apis.getAppAutoEvent, {
|
|
207
192
|
method: 'post',
|
|
@@ -217,36 +202,8 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
217
202
|
});
|
|
218
203
|
};
|
|
219
204
|
useEffect(function () {
|
|
220
|
-
if (props.data) {
|
|
221
|
-
setDemandName(props.data.demand.demandName);
|
|
222
|
-
setDemandDescribe(props.data.demand.demandDescribe);
|
|
223
|
-
setCompletionTime(moment(new Date(props.data.demand.completionTime)));
|
|
224
|
-
setDemandFile({
|
|
225
|
-
fileName: props.data.demand.fileName,
|
|
226
|
-
filePath: props.data.demand.filePath
|
|
227
|
-
});
|
|
228
|
-
setPointEventInfo(props.data.pointEventInfo ? props.data.pointEventInfo.map(function (item) {
|
|
229
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
230
|
-
describe: item.pointDescribe,
|
|
231
|
-
pageImgUrl: item.pageImgUrl ? getImgUrl(item.pageImgUrl, item.pageId) : '',
|
|
232
|
-
imgPath: item.imgUrl ? getImgUrl(item.imgUrl, item.pageId) : ''
|
|
233
|
-
});
|
|
234
|
-
}) : []);
|
|
235
|
-
}
|
|
236
205
|
getAppAutoEvent();
|
|
237
|
-
//0为无状态及创建
|
|
238
|
-
if (demandStatus > 0) {
|
|
239
|
-
//获取当前评论
|
|
240
|
-
getComments();
|
|
241
|
-
//获取历史记录
|
|
242
|
-
getOperateList();
|
|
243
|
-
//获取公司列表
|
|
244
|
-
getUserList();
|
|
245
|
-
}
|
|
246
206
|
}, []);
|
|
247
|
-
// useEffect(() => {
|
|
248
|
-
// setIsEdit(true);
|
|
249
|
-
// }, [props.saveObj]);
|
|
250
207
|
var getDemand = function getDemand() {
|
|
251
208
|
request(apis.getDemand, {
|
|
252
209
|
method: 'POST',
|
|
@@ -255,7 +212,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
255
212
|
id: props.demandId
|
|
256
213
|
}
|
|
257
214
|
}).then(function (res) {
|
|
258
|
-
// console.log('res', res);
|
|
259
215
|
if (!res) {
|
|
260
216
|
setTimeout(function () {
|
|
261
217
|
router && (router === null || router === void 0 ? void 0 : router.replace({
|
|
@@ -276,8 +232,8 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
276
232
|
setPointEventInfo((res === null || res === void 0 ? void 0 : res.data.pointEventInfo) ? res === null || res === void 0 ? void 0 : res.data.pointEventInfo.map(function (item) {
|
|
277
233
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
278
234
|
describe: item.pointDescribe,
|
|
279
|
-
pageImgUrl: item.pageImgUrl
|
|
280
|
-
imgPath: item.
|
|
235
|
+
pageImgUrl: item.pageImgUrl || '',
|
|
236
|
+
imgPath: item.imgPath || ''
|
|
281
237
|
});
|
|
282
238
|
}) : []);
|
|
283
239
|
setIsHandle(res === null || res === void 0 ? void 0 : res.data.isHandle);
|
|
@@ -290,6 +246,16 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
290
246
|
});
|
|
291
247
|
}) : []);
|
|
292
248
|
setCurrentNodenumber(res === null || res === void 0 ? void 0 : res.data.currentNodenumber);
|
|
249
|
+
setDemandStatus(res === null || res === void 0 ? void 0 : res.data.demand.demandStatus);
|
|
250
|
+
}
|
|
251
|
+
//0为无状态及创建
|
|
252
|
+
if ((res === null || res === void 0 ? void 0 : res.data.demand.demandStatus) > 0) {
|
|
253
|
+
//获取当前评论
|
|
254
|
+
getComments();
|
|
255
|
+
//获取历史记录
|
|
256
|
+
getOperateList();
|
|
257
|
+
//获取公司列表
|
|
258
|
+
getUserList();
|
|
293
259
|
}
|
|
294
260
|
});
|
|
295
261
|
};
|
|
@@ -371,7 +337,9 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
371
337
|
pointEventIds: pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
372
338
|
return item.id;
|
|
373
339
|
}),
|
|
374
|
-
|
|
340
|
+
pointEventStatus: pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
341
|
+
return item.status;
|
|
342
|
+
})
|
|
375
343
|
})
|
|
376
344
|
}).then(function (res) {
|
|
377
345
|
if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
|
|
@@ -696,13 +664,11 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
696
664
|
}, "\u5DF2\u4E0A\u7EBF");
|
|
697
665
|
}
|
|
698
666
|
} else if (demandStatus == 102) {
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
}, "\u9700\u6C42\u5173\u95ED");
|
|
705
|
-
}
|
|
667
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
668
|
+
style: {
|
|
669
|
+
color: '#fb5547'
|
|
670
|
+
}
|
|
671
|
+
}, "\u9700\u6C42\u5173\u95ED");
|
|
706
672
|
}
|
|
707
673
|
};
|
|
708
674
|
// 新的埋点表格列表
|
|
@@ -723,29 +689,31 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
723
689
|
};
|
|
724
690
|
//获取评论
|
|
725
691
|
var getComments = function getComments() {
|
|
692
|
+
var _props$data2;
|
|
726
693
|
request(apis.setting.getComments, {
|
|
727
694
|
method: 'POST',
|
|
728
695
|
data: {
|
|
729
|
-
|
|
730
|
-
id: props.demandId
|
|
696
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
697
|
+
id: props.demandId || ((_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.demand.id)
|
|
731
698
|
}
|
|
732
699
|
}).then(function (res) {
|
|
733
|
-
if (res && res.code == '
|
|
700
|
+
if (res && res.code == '100000') {
|
|
734
701
|
setComments(res.data);
|
|
735
702
|
}
|
|
736
703
|
});
|
|
737
704
|
};
|
|
738
705
|
//新增评论
|
|
739
706
|
var onCreateComment = function onCreateComment() {
|
|
707
|
+
var _props$data3;
|
|
740
708
|
request(apis.setting.addComments, {
|
|
741
709
|
method: 'POST',
|
|
742
710
|
data: {
|
|
743
|
-
|
|
744
|
-
id: props.demandId,
|
|
711
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
712
|
+
id: props.demandId || ((_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.demand.id),
|
|
745
713
|
comments: commentText
|
|
746
714
|
}
|
|
747
715
|
}).then(function (res) {
|
|
748
|
-
if (res && res.code == '
|
|
716
|
+
if (res && res.code == '100000') {
|
|
749
717
|
setShowComment(false);
|
|
750
718
|
getComments();
|
|
751
719
|
}
|
|
@@ -753,13 +721,15 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
753
721
|
};
|
|
754
722
|
//获取历史记录
|
|
755
723
|
var getOperateList = function getOperateList() {
|
|
724
|
+
var _props$data4;
|
|
756
725
|
request(apis.setting.operateList, {
|
|
757
726
|
method: 'POST',
|
|
758
727
|
data: {
|
|
759
|
-
id: props.demandId
|
|
728
|
+
id: props.demandId || ((_props$data4 = props.data) === null || _props$data4 === void 0 ? void 0 : _props$data4.demand.id),
|
|
729
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
760
730
|
}
|
|
761
731
|
}).then(function (res) {
|
|
762
|
-
if (res && res.code == '
|
|
732
|
+
if (res && res.code == '100000') {
|
|
763
733
|
setOperateList(res.data);
|
|
764
734
|
}
|
|
765
735
|
});
|
|
@@ -780,43 +750,46 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
780
750
|
//修改转办人
|
|
781
751
|
var designateProcessor = function designateProcessor() {
|
|
782
752
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'click';
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
753
|
+
if (type == 'click') {
|
|
754
|
+
var _props$data5;
|
|
755
|
+
request(apis.setting.designateProcessor, {
|
|
756
|
+
method: 'POST',
|
|
757
|
+
data: {
|
|
758
|
+
id: props.demandId || ((_props$data5 = props.data) === null || _props$data5 === void 0 ? void 0 : _props$data5.demand.id),
|
|
759
|
+
processorId: userSelect.id,
|
|
760
|
+
processorName: userSelect.userName
|
|
761
|
+
}
|
|
762
|
+
}).then(function (res) {
|
|
792
763
|
setShowUser(false);
|
|
793
|
-
if (
|
|
794
|
-
|
|
795
|
-
|
|
764
|
+
if (props.data && props.data.demand) {
|
|
765
|
+
setDemandData(function (val) {
|
|
766
|
+
return val.demand.currentProcessorName = userSelect.userName;
|
|
796
767
|
});
|
|
797
|
-
onBack();
|
|
798
|
-
} else {
|
|
799
|
-
submitApproval(demandStatus + 1);
|
|
800
768
|
}
|
|
801
|
-
|
|
802
|
-
|
|
769
|
+
notification.success({
|
|
770
|
+
message: '修改成功'
|
|
771
|
+
});
|
|
772
|
+
});
|
|
773
|
+
} else {
|
|
774
|
+
submitApproval(1);
|
|
775
|
+
}
|
|
803
776
|
};
|
|
804
777
|
//关闭功能
|
|
805
778
|
var disableDemand = function disableDemand() {
|
|
806
|
-
var _props$
|
|
779
|
+
var _props$data6, _props$data7;
|
|
807
780
|
request(apis.setting.disableDemand, {
|
|
808
781
|
method: 'post',
|
|
809
782
|
data: {
|
|
810
783
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
811
|
-
id: props.demandId,
|
|
812
|
-
creatorId: (_props$
|
|
784
|
+
id: props.demandId || ((_props$data6 = props.data) === null || _props$data6 === void 0 ? void 0 : _props$data6.demand.id),
|
|
785
|
+
creatorId: (_props$data7 = props.data) === null || _props$data7 === void 0 ? void 0 : _props$data7.demand.creatorId
|
|
813
786
|
}
|
|
814
787
|
}).then(function (res) {
|
|
815
788
|
if (res && res.code === '100000') {
|
|
816
789
|
notification.success({
|
|
817
790
|
message: '关闭成功'
|
|
818
791
|
});
|
|
819
|
-
onBack();
|
|
792
|
+
props.onBack && props.onBack();
|
|
820
793
|
}
|
|
821
794
|
}).catch(function (err) {
|
|
822
795
|
console.log(err);
|
|
@@ -837,6 +810,8 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
837
810
|
};
|
|
838
811
|
//提交进入下一个流程
|
|
839
812
|
var submitApproval = function submitApproval(status) {
|
|
813
|
+
var _props$data8;
|
|
814
|
+
setIsEdit(false);
|
|
840
815
|
//先保存当前设置
|
|
841
816
|
onCreate(false);
|
|
842
817
|
//提交进入下一个流程
|
|
@@ -844,15 +819,19 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
844
819
|
method: 'post',
|
|
845
820
|
data: {
|
|
846
821
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
847
|
-
id: props.demandId,
|
|
848
|
-
approveStatus: status
|
|
822
|
+
id: props.demandId || ((_props$data8 = props.data) === null || _props$data8 === void 0 ? void 0 : _props$data8.demand.id),
|
|
823
|
+
approveStatus: status,
|
|
824
|
+
processorId: userSelect.id,
|
|
825
|
+
processorName: userSelect.userName,
|
|
826
|
+
onlineTime: onlineTime
|
|
849
827
|
}
|
|
850
828
|
}).then(function (res) {
|
|
851
829
|
if (res && res.code === '100000') {
|
|
852
830
|
notification.success({
|
|
853
831
|
message: '提交成功'
|
|
854
832
|
});
|
|
855
|
-
|
|
833
|
+
setShowUser(false);
|
|
834
|
+
props.onBack && props.onBack();
|
|
856
835
|
}
|
|
857
836
|
}).catch(function (err) {
|
|
858
837
|
console.log(err);
|
|
@@ -880,14 +859,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
880
859
|
})[0];
|
|
881
860
|
return data[key];
|
|
882
861
|
};
|
|
883
|
-
//埋点列表按钮
|
|
884
|
-
// const tabListButton = (record:any)=>{
|
|
885
|
-
// if(demandStatus == 2){
|
|
886
|
-
// return <a onClick={() => { removeInfo('event', record)}} >移除</a>
|
|
887
|
-
// }else if(demandStatus == 3 || demandStatus == 4){
|
|
888
|
-
// return <a onClick={() => { removeInfo('event', record)}} >驳回</a>
|
|
889
|
-
// }
|
|
890
|
-
// }
|
|
891
862
|
return /*#__PURE__*/React.createElement("div", {
|
|
892
863
|
className: classPrefix
|
|
893
864
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -906,7 +877,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
906
877
|
}, /*#__PURE__*/React.createElement("div", {
|
|
907
878
|
id: "system-setting-demand-info",
|
|
908
879
|
className: "".concat(classPrefix, "-info-img")
|
|
909
|
-
},
|
|
880
|
+
}, demandData && demandData.demand && demandStatus > 0 && (/*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("div", {
|
|
910
881
|
className: "".concat(classPrefix, "-info-item")
|
|
911
882
|
}, /*#__PURE__*/React.createElement("div", {
|
|
912
883
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
@@ -914,15 +885,15 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
914
885
|
className: "".concat(classPrefix, "-info-item-content")
|
|
915
886
|
}, /*#__PURE__*/React.createElement("span", {
|
|
916
887
|
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
917
|
-
},
|
|
888
|
+
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.id)))), /*#__PURE__*/React.createElement("div", {
|
|
918
889
|
className: "".concat(classPrefix, "-info-item")
|
|
919
890
|
}, /*#__PURE__*/React.createElement("div", {
|
|
920
891
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
921
892
|
}, "\u521B\u5EFA\u4EBA"), /*#__PURE__*/React.createElement("div", {
|
|
922
893
|
className: "".concat(classPrefix, "-info-item-content")
|
|
923
|
-
},
|
|
894
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
924
895
|
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
925
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
896
|
+
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.creatorName)))), demandStatus > 1 && (/*#__PURE__*/React.createElement("div", {
|
|
926
897
|
className: "".concat(classPrefix, "-info-item")
|
|
927
898
|
}, /*#__PURE__*/React.createElement("div", {
|
|
928
899
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
@@ -930,7 +901,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
930
901
|
className: "".concat(classPrefix, "-info-item-content")
|
|
931
902
|
}, /*#__PURE__*/React.createElement("span", {
|
|
932
903
|
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
933
|
-
},
|
|
904
|
+
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.currentProcessorName))))))), /*#__PURE__*/React.createElement("div", {
|
|
934
905
|
className: "".concat(classPrefix, "-info-item")
|
|
935
906
|
}, /*#__PURE__*/React.createElement("div", {
|
|
936
907
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
@@ -947,14 +918,14 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
947
918
|
setIsEdit(true);
|
|
948
919
|
setDemandName(e.currentTarget.value);
|
|
949
920
|
},
|
|
950
|
-
disabled: isRead
|
|
921
|
+
disabled: isRead || demandStatus == 102 || demandStatus == 101 || demandType == 'manage'
|
|
951
922
|
}), /*#__PURE__*/React.createElement("div", {
|
|
952
923
|
className: "".concat(classPrefix, "-info-item-content-input-num")
|
|
953
924
|
}, /*#__PURE__*/React.createElement("span", {
|
|
954
925
|
style: {
|
|
955
926
|
color: '#021429'
|
|
956
927
|
}
|
|
957
|
-
}, demandName.length), /*#__PURE__*/React.createElement("span", null, "/20")))), /*#__PURE__*/React.createElement("div", {
|
|
928
|
+
}, demandName ? demandName.length : 0), /*#__PURE__*/React.createElement("span", null, "/20")))), /*#__PURE__*/React.createElement("div", {
|
|
958
929
|
className: "".concat(classPrefix, "-info-item")
|
|
959
930
|
}, /*#__PURE__*/React.createElement("div", {
|
|
960
931
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
@@ -969,7 +940,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
969
940
|
setCompletionTime(e);
|
|
970
941
|
},
|
|
971
942
|
showTime: true,
|
|
972
|
-
disabled: isRead
|
|
943
|
+
disabled: isRead || demandStatus == 102 || demandStatus == 101 || demandType == 'manage'
|
|
973
944
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
974
945
|
className: "".concat(classPrefix, "-info-item")
|
|
975
946
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -988,7 +959,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
988
959
|
setIsEdit(true);
|
|
989
960
|
setDemandDescribe(e.currentTarget.value);
|
|
990
961
|
},
|
|
991
|
-
disabled: isRead
|
|
962
|
+
disabled: isRead || demandStatus == 102 || demandStatus == 101 || demandType == 'manage'
|
|
992
963
|
}), /*#__PURE__*/React.createElement("div", {
|
|
993
964
|
className: "".concat(classPrefix, "-info-item-content-input-num")
|
|
994
965
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1021,7 +992,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1021
992
|
})))) : (/*#__PURE__*/React.createElement("div", {
|
|
1022
993
|
className: "".concat(classPrefix, "-info-item-content-row")
|
|
1023
994
|
}, /*#__PURE__*/React.createElement(Upload, _objectSpread(_objectSpread({}, uploadProps), {}, {
|
|
1024
|
-
disabled: isRead
|
|
995
|
+
disabled: isRead || demandStatus == 102 || demandStatus == 101 || demandType == 'manage'
|
|
1025
996
|
}), /*#__PURE__*/React.createElement("div", {
|
|
1026
997
|
className: "".concat(classPrefix, "-info-item-content-btn")
|
|
1027
998
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
@@ -1036,11 +1007,11 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1036
1007
|
className: "".concat(classPrefix, "-info-item-content")
|
|
1037
1008
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
1038
1009
|
className: "".concat(classPrefix, "-info-item-content-picker"),
|
|
1039
|
-
value:
|
|
1010
|
+
value: demandData === null || demandData === void 0 ? void 0 : demandData.demand.onlineTime,
|
|
1040
1011
|
disabledDate: disabledDate,
|
|
1041
1012
|
showTime: true,
|
|
1042
1013
|
disabled: true
|
|
1043
|
-
}))))), demandStatus >
|
|
1014
|
+
}))))), (demandType != 'edit' && demandStatus > 0 || isRead) && (/*#__PURE__*/React.createElement("div", {
|
|
1044
1015
|
className: "".concat(classPrefix, "-info-item"),
|
|
1045
1016
|
style: {
|
|
1046
1017
|
paddingLeft: 24,
|
|
@@ -1138,11 +1109,13 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1138
1109
|
className: "".concat(classPrefix, "-comment-tab-btn ").concat(tabKey == 'comment' ? "".concat(classPrefix, "-comment-tab-btnActive") : ''),
|
|
1139
1110
|
onClick: function onClick() {
|
|
1140
1111
|
setTabKey('comment');
|
|
1112
|
+
getComments();
|
|
1141
1113
|
}
|
|
1142
1114
|
}, "\u8BC4\u8BBA"), /*#__PURE__*/React.createElement("div", {
|
|
1143
1115
|
className: "".concat(classPrefix, "-comment-tab-btn ").concat(tabKey == 'history' ? "".concat(classPrefix, "-comment-tab-btnActive") : ''),
|
|
1144
1116
|
onClick: function onClick() {
|
|
1145
1117
|
setTabKey('history');
|
|
1118
|
+
getOperateList();
|
|
1146
1119
|
}
|
|
1147
1120
|
}, "\u64CD\u4F5C\u5386\u53F2")), tabKey == 'comment' && comments.map(function (item) {
|
|
1148
1121
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1150,17 +1123,24 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1150
1123
|
key: item.id
|
|
1151
1124
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1152
1125
|
className: "".concat(classPrefix, "-comment-list-name")
|
|
1153
|
-
}, item.
|
|
1126
|
+
}, item.creatorName, /*#__PURE__*/React.createElement("span", {
|
|
1154
1127
|
className: "".concat(classPrefix, "-comment-list-time")
|
|
1155
|
-
}, item.
|
|
1128
|
+
}, item.createTime)), /*#__PURE__*/React.createElement("div", {
|
|
1156
1129
|
className: "".concat(classPrefix, "-comment-list-text")
|
|
1157
1130
|
}, item.comments));
|
|
1158
|
-
}), tabKey == '
|
|
1131
|
+
}), comments.length == 0 && tabKey == 'comment' && (/*#__PURE__*/React.createElement("div", {
|
|
1132
|
+
className: "".concat(classPrefix, "-comment-empty")
|
|
1133
|
+
}, "\u6682\u65E0\u8BC4\u8BBA")), tabKey == 'history' && operateList.map(function (item) {
|
|
1159
1134
|
return /*#__PURE__*/React.createElement("div", {
|
|
1160
1135
|
className: "".concat(classPrefix, "-history-list"),
|
|
1161
|
-
key: item.id
|
|
1162
|
-
|
|
1163
|
-
|
|
1136
|
+
key: item.id,
|
|
1137
|
+
dangerouslySetInnerHTML: {
|
|
1138
|
+
__html: item.operateDesc
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
}), operateList.length == 0 && tabKey == 'history' && (/*#__PURE__*/React.createElement("div", {
|
|
1142
|
+
className: "".concat(classPrefix, "-comment-empty")
|
|
1143
|
+
}, "\u6682\u65E0\u64CD\u4F5C\u5386\u53F2"))))), /*#__PURE__*/React.createElement("div", {
|
|
1164
1144
|
className: "".concat(classPrefix, "-right"),
|
|
1165
1145
|
id: "xsd4"
|
|
1166
1146
|
}, nodeData.length ? (/*#__PURE__*/React.createElement(ProcessCanvas, {
|
|
@@ -1179,7 +1159,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1179
1159
|
className: "".concat(classPrefix, "-right-title")
|
|
1180
1160
|
}, "\u8282\u70B9\u9884\u89C8"))), /*#__PURE__*/React.createElement("div", {
|
|
1181
1161
|
className: "".concat(classPrefix, "-footer")
|
|
1182
|
-
}, !isDemo && authority[1724922574] && [1, 2, 3, 4, 5, 6, 101].indexOf(demandStatus) != -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
1162
|
+
}, !isDemo && !isRead && authority[1724922574] && [1, 2, 3, 4, 5, 6, 101].indexOf(demandStatus) != -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
1183
1163
|
shape: "round",
|
|
1184
1164
|
className: "forbiddenColor",
|
|
1185
1165
|
onClick: function onClick() {
|
|
@@ -1208,7 +1188,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1208
1188
|
onClick: downloadData
|
|
1209
1189
|
}, "\u5BFC\u51FA\u57CB\u70B9\u8BBE\u8BA1")), /*#__PURE__*/React.createElement("div", {
|
|
1210
1190
|
className: "".concat(classPrefix, "-footer-btnRight")
|
|
1211
|
-
}, !isDemo && !isRead && [2, 3, 4, 5, 6].indexOf(demandStatus) != -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
1191
|
+
}, !isDemo && !isRead && demandType == 'manage' && [2, 3, 4, 5, 6].indexOf(demandStatus) != -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
1212
1192
|
type: 'default',
|
|
1213
1193
|
className: "commentBtn",
|
|
1214
1194
|
onClick: function onClick() {
|
|
@@ -1216,27 +1196,27 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1216
1196
|
setUserSelect({});
|
|
1217
1197
|
setShowUser(true);
|
|
1218
1198
|
}
|
|
1219
|
-
}, "\u8F6C\u529E")), !isDemo &&
|
|
1199
|
+
}, "\u8F6C\u529E")), !isDemo && demandStatus > 0 && (/*#__PURE__*/React.createElement(Button, {
|
|
1220
1200
|
type: 'default',
|
|
1221
1201
|
className: "commentBtn",
|
|
1222
1202
|
onClick: function onClick() {
|
|
1223
1203
|
setCommentText('');
|
|
1224
1204
|
setShowComment(true);
|
|
1225
1205
|
}
|
|
1226
|
-
}, "\u6DFB\u52A0\u8BC4\u8BBA")), !isDemo && !isRead && [0, 1, 2, 3, 4, 5, 6].indexOf(demandStatus) != -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
1206
|
+
}, "\u6DFB\u52A0\u8BC4\u8BBA")), !isDemo && !isRead && demandType == 'edit' && [0, 1, 2, 3, 4, 5, 6].indexOf(demandStatus) != -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
1227
1207
|
type: 'primary',
|
|
1228
1208
|
className: "commentBtn",
|
|
1229
1209
|
onClick: function onClick() {
|
|
1230
1210
|
return onCreate();
|
|
1231
1211
|
}
|
|
1232
|
-
},
|
|
1212
|
+
}, demandData ? '保存' : '提交')), !isDemo && !isRead && demandStatus > 0 && demandStatus <= 6 && demandType == 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1233
1213
|
type: 'primary',
|
|
1234
1214
|
className: "commentBtn",
|
|
1235
1215
|
disabled: demandStatus > 1 ? !Boolean(pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.length) || Boolean(pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.filter(function (res) {
|
|
1236
1216
|
return [0, 2].indexOf(res.status) != -1;
|
|
1237
1217
|
}).length) : false,
|
|
1238
1218
|
onClick: submitMethod
|
|
1239
|
-
}, getLableValue(demandStatus, 'buttonName'))), !isDemo && !isRead && demandStatus > 2 && demandStatus <= 4 && (/*#__PURE__*/React.createElement(Button, {
|
|
1219
|
+
}, getLableValue(demandStatus, 'buttonName'))), !isDemo && !isRead && demandStatus > 2 && demandStatus <= 4 && demandType == 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1240
1220
|
type: 'primary',
|
|
1241
1221
|
className: "commentBtn",
|
|
1242
1222
|
onClick: function onClick() {
|
|
@@ -1307,7 +1287,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1307
1287
|
onOk: function onOk() {
|
|
1308
1288
|
if (onlineTime) {
|
|
1309
1289
|
onCreate(false);
|
|
1310
|
-
submitApproval(
|
|
1290
|
+
submitApproval(1);
|
|
1311
1291
|
setShowOnlineTime(false);
|
|
1312
1292
|
}
|
|
1313
1293
|
},
|
|
@@ -338,10 +338,27 @@
|
|
|
338
338
|
content: '|';
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
+
&-empty {
|
|
342
|
+
min-height: 200px;
|
|
343
|
+
color: #9aa1a9;
|
|
344
|
+
font-size: 16px;
|
|
345
|
+
line-height: 200px;
|
|
346
|
+
text-align: center;
|
|
347
|
+
}
|
|
341
348
|
&-list {
|
|
342
349
|
margin: 0 10px 0 20px;
|
|
343
350
|
padding: 10px 0;
|
|
344
351
|
border-bottom: 1px solid #e6e7ea;
|
|
352
|
+
&-time {
|
|
353
|
+
margin-left: 10px;
|
|
354
|
+
color: #9aa1a9;
|
|
355
|
+
font-size: 12px;
|
|
356
|
+
}
|
|
357
|
+
&-text {
|
|
358
|
+
margin-top: 10px;
|
|
359
|
+
color: #9aa1a9;
|
|
360
|
+
font-size: 12px;
|
|
361
|
+
}
|
|
345
362
|
}
|
|
346
363
|
}
|
|
347
364
|
&-history {
|
|
@@ -88,7 +88,11 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
88
88
|
}
|
|
89
89
|
}).then(function (res) {
|
|
90
90
|
if (res && res.code === '100000') {
|
|
91
|
-
|
|
91
|
+
var data = {};
|
|
92
|
+
res.data.map(function (res) {
|
|
93
|
+
data[res.node] = res.count;
|
|
94
|
+
});
|
|
95
|
+
setDemandInfo(data);
|
|
92
96
|
}
|
|
93
97
|
}).catch(function (err) {
|
|
94
98
|
console.log(err);
|
|
@@ -153,7 +157,10 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
153
157
|
message.error('无查看权限');
|
|
154
158
|
return;
|
|
155
159
|
}
|
|
156
|
-
props.onDeal && props.onDeal('
|
|
160
|
+
props.onDeal && props.onDeal('revocation', {
|
|
161
|
+
type: 'manage',
|
|
162
|
+
demand: data
|
|
163
|
+
});
|
|
157
164
|
// router &&
|
|
158
165
|
// router?.push({
|
|
159
166
|
// name: routes.createDemand,
|
|
@@ -273,21 +280,28 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
273
280
|
type: "link",
|
|
274
281
|
onClick: function onClick() {
|
|
275
282
|
props.onDeal && props.onDeal('revocation', {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
283
|
+
type: 'edit',
|
|
284
|
+
demand: {
|
|
285
|
+
appId: props.record.id,
|
|
286
|
+
approvalModule: props.record.approvalModule,
|
|
287
|
+
businessType: props.record.businessType,
|
|
288
|
+
completionTime: props.record.completionTime,
|
|
289
|
+
demandDescribe: props.record.demandDescribe,
|
|
290
|
+
demandName: props.record.demandName + '复制',
|
|
291
|
+
fileName: props.record.fileName,
|
|
292
|
+
filePath: props.record.filePath
|
|
293
|
+
}
|
|
284
294
|
});
|
|
285
295
|
}
|
|
286
296
|
}, "\u590D\u5236"), /*#__PURE__*/React.createElement(Button, {
|
|
287
297
|
color: "primary",
|
|
288
298
|
type: "link",
|
|
289
299
|
onClick: function onClick() {
|
|
290
|
-
getDemand('revocation');
|
|
300
|
+
// getDemand('revocation');
|
|
301
|
+
props.onDeal && props.onDeal('revocation', {
|
|
302
|
+
type: 'edit',
|
|
303
|
+
demand: props.record
|
|
304
|
+
});
|
|
291
305
|
}
|
|
292
306
|
}, "\u7F16\u8F91"));
|
|
293
307
|
};
|
|
@@ -305,6 +319,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
305
319
|
notification.success({
|
|
306
320
|
message: '关闭成功'
|
|
307
321
|
});
|
|
322
|
+
getDemandList();
|
|
308
323
|
}
|
|
309
324
|
}).catch(function (err) {
|
|
310
325
|
console.log(err);
|
|
@@ -331,7 +346,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
331
346
|
onClick: function onClick() {
|
|
332
347
|
return setDemandStatus(0);
|
|
333
348
|
}
|
|
334
|
-
}, demandInfo ?
|
|
349
|
+
}, demandInfo ? demandInfo[100] || 0 : '-'))), /*#__PURE__*/React.createElement("div", {
|
|
335
350
|
className: "".concat(classPrefix, "-panel-status")
|
|
336
351
|
}, labelList.map(function (res) {
|
|
337
352
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -352,7 +367,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
352
367
|
onClick: function onClick() {
|
|
353
368
|
return setDemandStatus(res.value);
|
|
354
369
|
}
|
|
355
|
-
}, demandInfo ? demandInfo[res.
|
|
370
|
+
}, demandInfo ? demandInfo[res.value] || 0 : '-'));
|
|
356
371
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
357
372
|
className: "".concat(classPrefix, "-filter")
|
|
358
373
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -404,7 +419,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
404
419
|
// name: routes.createDemand,
|
|
405
420
|
// });
|
|
406
421
|
}
|
|
407
|
-
}, "\u65B0\u589E\u9700\u6C42"), /*#__PURE__*/React.createElement(Button, {
|
|
422
|
+
}, "\u65B0\u589E\u9700\u6C42"), false && (/*#__PURE__*/React.createElement(Button, {
|
|
408
423
|
shape: "round",
|
|
409
424
|
className: "button ".concat(!authority[1722839123] ? 'disabled' : ''),
|
|
410
425
|
disabled: isDemo || !authority[1722839123],
|
|
@@ -416,7 +431,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
416
431
|
}
|
|
417
432
|
}));
|
|
418
433
|
}
|
|
419
|
-
}, "\u6D41\u7A0B\u7BA1\u7406"))), /*#__PURE__*/React.createElement(BizTable, {
|
|
434
|
+
}, "\u6D41\u7A0B\u7BA1\u7406")))), /*#__PURE__*/React.createElement(BizTable, {
|
|
420
435
|
className: "".concat(classPrefix, "-table"),
|
|
421
436
|
columns: columns,
|
|
422
437
|
rowKey: "id",
|
|
@@ -16,13 +16,12 @@ import util from '../../utils/util';
|
|
|
16
16
|
import SecurityLog from './securityLog';
|
|
17
17
|
import CreateProcess from '../messageList';
|
|
18
18
|
var PersonalSetting = function PersonalSetting(_ref) {
|
|
19
|
-
var _route$query;
|
|
20
19
|
var settingsCallback = _ref.settingsCallback;
|
|
21
20
|
var _useContext = useContext(BizGlobalDataContext),
|
|
22
21
|
currentUser = _useContext.currentUser,
|
|
23
22
|
isDemo = _useContext.isDemo,
|
|
24
23
|
route = _useContext.route;
|
|
25
|
-
var _useState = useState(
|
|
24
|
+
var _useState = useState('1'),
|
|
26
25
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27
26
|
currentKey = _useState2[0],
|
|
28
27
|
setCurrentKey = _useState2[1];
|
|
@@ -32,8 +31,10 @@ var PersonalSetting = function PersonalSetting(_ref) {
|
|
|
32
31
|
className: "tab-header-title"
|
|
33
32
|
}, "\u4E2A\u4EBA\u8BBE\u7F6E"));
|
|
34
33
|
useEffect(function () {
|
|
34
|
+
var _route$query, _route$query2;
|
|
35
35
|
var query = util.getHrefData(window.location.href);
|
|
36
36
|
if (query.password) setCurrentKey('2');
|
|
37
|
+
if (route === null || route === void 0 ? void 0 : (_route$query = route.query) === null || _route$query === void 0 ? void 0 : _route$query.currentKey) setCurrentKey(route === null || route === void 0 ? void 0 : (_route$query2 = route.query) === null || _route$query2 === void 0 ? void 0 : _route$query2.currentKey);
|
|
37
38
|
}, []);
|
|
38
39
|
var items = [{
|
|
39
40
|
key: '1',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "2.0.0-zhongyuan.
|
|
3
|
+
"version": "2.0.0-zhongyuan.31",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "9fc086171b4c34dd21134eec19331049552ae59e",
|
|
71
71
|
"gitHooks": {
|
|
72
72
|
"pre-commit": "lint-staged"
|
|
73
73
|
}
|