@zgfe/modules-settings 2.0.0-zhongyuan.30 → 2.0.0-zhongyuan.32
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.
|
@@ -202,6 +202,15 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
202
202
|
});
|
|
203
203
|
};
|
|
204
204
|
useEffect(function () {
|
|
205
|
+
if (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,9 @@ 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';
|
|
317
327
|
if (!demandName) {
|
|
318
328
|
message.warning('请填写需求名称');
|
|
319
329
|
return;
|
|
@@ -337,13 +347,13 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
337
347
|
pointEventIds: pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
338
348
|
return item.id;
|
|
339
349
|
}),
|
|
340
|
-
pointEventStatus: pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
350
|
+
pointEventStatus: type != 'flow' ? pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
341
351
|
return item.status;
|
|
342
|
-
})
|
|
352
|
+
}) : [] //走流程不用传状态 状态会自动修改成0
|
|
343
353
|
})
|
|
344
354
|
}).then(function (res) {
|
|
345
355
|
if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
|
|
346
|
-
if (
|
|
356
|
+
if (type == 'on') {
|
|
347
357
|
message.success('保存成功');
|
|
348
358
|
props.onBack && props.onBack();
|
|
349
359
|
}
|
|
@@ -353,14 +363,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
353
363
|
}
|
|
354
364
|
});
|
|
355
365
|
};
|
|
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
366
|
var downloadFile = function downloadFile() {
|
|
365
367
|
if (!isRead) return;
|
|
366
368
|
request(apis.fileDownload, {
|
|
@@ -381,7 +383,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
381
383
|
});
|
|
382
384
|
};
|
|
383
385
|
var gotoPage = function gotoPage(type, data) {
|
|
384
|
-
// console.log('data', data);
|
|
385
386
|
switch (type) {
|
|
386
387
|
case 'event':
|
|
387
388
|
window.open('/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage?key=' + data, '_blank');
|
|
@@ -392,8 +393,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
392
393
|
default:
|
|
393
394
|
break;
|
|
394
395
|
}
|
|
395
|
-
// setEventAttrListShow(true);
|
|
396
|
-
// setEventProp(record.event_attrs);
|
|
397
396
|
};
|
|
398
397
|
var onBack = function onBack() {
|
|
399
398
|
if (isEdit) {
|
|
@@ -673,8 +672,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
673
672
|
};
|
|
674
673
|
// 新的埋点表格列表
|
|
675
674
|
var newColumns = function newColumns() {
|
|
676
|
-
|
|
677
|
-
return [].concat(_toConsumableArray(columnsEvent(gotoPage, isControl)), [{
|
|
675
|
+
var columns = [].concat(_toConsumableArray(columnsEvent(gotoPage, isControl)), [{
|
|
678
676
|
title: '状态',
|
|
679
677
|
width: 120,
|
|
680
678
|
dataIndex: 'status',
|
|
@@ -682,6 +680,27 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
682
680
|
return statusDiv(status);
|
|
683
681
|
}
|
|
684
682
|
}]);
|
|
683
|
+
//处于需求完成和埋点信息为上线状态
|
|
684
|
+
if (demandStatus == 101 && tabIndex == 1) {
|
|
685
|
+
columns.push({
|
|
686
|
+
title: '是否有数据上报',
|
|
687
|
+
width: 150,
|
|
688
|
+
dataIndex: 'hasData',
|
|
689
|
+
render: function render(hasData) {
|
|
690
|
+
return hasData == 1 ? (/*#__PURE__*/React.createElement("div", {
|
|
691
|
+
style: {
|
|
692
|
+
color: '#2cbe54'
|
|
693
|
+
}
|
|
694
|
+
}, "\u662F")) : (/*#__PURE__*/React.createElement("div", {
|
|
695
|
+
style: {
|
|
696
|
+
color: '#fb5547'
|
|
697
|
+
}
|
|
698
|
+
}, "\u5426"));
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
//埋点列表label数据
|
|
703
|
+
return columns;
|
|
685
704
|
};
|
|
686
705
|
//埋点需求列表选择
|
|
687
706
|
var onSelectChange = function onSelectChange(val) {
|
|
@@ -755,20 +774,24 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
755
774
|
request(apis.setting.designateProcessor, {
|
|
756
775
|
method: 'POST',
|
|
757
776
|
data: {
|
|
777
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
758
778
|
id: props.demandId || ((_props$data5 = props.data) === null || _props$data5 === void 0 ? void 0 : _props$data5.demand.id),
|
|
759
779
|
processorId: userSelect.id,
|
|
760
780
|
processorName: userSelect.userName
|
|
761
781
|
}
|
|
762
782
|
}).then(function (res) {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
783
|
+
if (res && res.code == '100000') {
|
|
784
|
+
setShowUser(false);
|
|
785
|
+
if (props.data && props.data.demand) {
|
|
786
|
+
setDemandData(function (val) {
|
|
787
|
+
val.demand.currentProcessorName = userSelect.userName;
|
|
788
|
+
return _objectSpread({}, val);
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
notification.success({
|
|
792
|
+
message: '修改成功'
|
|
767
793
|
});
|
|
768
794
|
}
|
|
769
|
-
notification.success({
|
|
770
|
-
message: '修改成功'
|
|
771
|
-
});
|
|
772
795
|
});
|
|
773
796
|
} else {
|
|
774
797
|
submitApproval(1);
|
|
@@ -813,7 +836,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
813
836
|
var _props$data8;
|
|
814
837
|
setIsEdit(false);
|
|
815
838
|
//先保存当前设置
|
|
816
|
-
onCreate(
|
|
839
|
+
onCreate('flow');
|
|
817
840
|
//提交进入下一个流程
|
|
818
841
|
request(apis.submitApproval, {
|
|
819
842
|
method: 'post',
|
|
@@ -832,6 +855,10 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
832
855
|
});
|
|
833
856
|
setShowUser(false);
|
|
834
857
|
props.onBack && props.onBack();
|
|
858
|
+
} else {
|
|
859
|
+
notification.success({
|
|
860
|
+
message: res.msg
|
|
861
|
+
});
|
|
835
862
|
}
|
|
836
863
|
}).catch(function (err) {
|
|
837
864
|
console.log(err);
|
|
@@ -884,7 +911,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
884
911
|
}, "\u9700\u6C42ID"), /*#__PURE__*/React.createElement("div", {
|
|
885
912
|
className: "".concat(classPrefix, "-info-item-content")
|
|
886
913
|
}, /*#__PURE__*/React.createElement("span", {
|
|
887
|
-
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
914
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
888
915
|
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.id)))), /*#__PURE__*/React.createElement("div", {
|
|
889
916
|
className: "".concat(classPrefix, "-info-item")
|
|
890
917
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -892,7 +919,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
892
919
|
}, "\u521B\u5EFA\u4EBA"), /*#__PURE__*/React.createElement("div", {
|
|
893
920
|
className: "".concat(classPrefix, "-info-item-content")
|
|
894
921
|
}, /*#__PURE__*/React.createElement("span", {
|
|
895
|
-
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
922
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
896
923
|
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.creatorName)))), demandStatus > 1 && (/*#__PURE__*/React.createElement("div", {
|
|
897
924
|
className: "".concat(classPrefix, "-info-item")
|
|
898
925
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -900,7 +927,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
900
927
|
}, "\u5904\u7406\u4EBA"), /*#__PURE__*/React.createElement("div", {
|
|
901
928
|
className: "".concat(classPrefix, "-info-item-content")
|
|
902
929
|
}, /*#__PURE__*/React.createElement("span", {
|
|
903
|
-
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
930
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
904
931
|
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.currentProcessorName))))))), /*#__PURE__*/React.createElement("div", {
|
|
905
932
|
className: "".concat(classPrefix, "-info-item")
|
|
906
933
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -981,7 +1008,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
981
1008
|
onClick: function onClick() {
|
|
982
1009
|
downloadFile();
|
|
983
1010
|
}
|
|
984
|
-
}, demandFile.fileName), !isRead && (/*#__PURE__*/React.createElement(IconFont, {
|
|
1011
|
+
}, demandFile.fileName), !isRead && demandType != 'manage' && (/*#__PURE__*/React.createElement(IconFont, {
|
|
985
1012
|
type: "qingchu",
|
|
986
1013
|
style: {
|
|
987
1014
|
color: '#67727F'
|
|
@@ -999,19 +1026,15 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
999
1026
|
type: "tianjia1"
|
|
1000
1027
|
}), "\u6DFB\u52A0\u6587\u4EF6")), /*#__PURE__*/React.createElement("div", {
|
|
1001
1028
|
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", {
|
|
1029
|
+
}, "\uFF08\u652F\u6301 ZIP\u3001RAR \u683C\u5F0F\u300110M\u4EE5\u5185\uFF09"))))), (demandStatus == 101 || demandStatus == 102) && (/*#__PURE__*/React.createElement("div", {
|
|
1003
1030
|
className: "".concat(classPrefix, "-info-item")
|
|
1004
1031
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1005
1032
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
1006
1033
|
}, "\u4E0A\u7EBF\u65F6\u95F4"), /*#__PURE__*/React.createElement("div", {
|
|
1007
1034
|
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", {
|
|
1035
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1036
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
1037
|
+
}, (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
1038
|
className: "".concat(classPrefix, "-info-item"),
|
|
1016
1039
|
style: {
|
|
1017
1040
|
paddingLeft: 24,
|
|
@@ -1059,6 +1082,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
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,6 +1092,7 @@ 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"),
|
|
@@ -1075,11 +1100,13 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1075
1100
|
setPointEventInfo(pointEventInfo ? pointEventInfo.filter(function (item) {
|
|
1076
1101
|
return selectedRowKeys.indexOf(item.id) == -1;
|
|
1077
1102
|
}) : []);
|
|
1103
|
+
onCreate('save');
|
|
1078
1104
|
}
|
|
1079
1105
|
}, "\u79FB\u9664")), isRead ? null : (demandStatus == 3 || demandStatus == 4) && (/*#__PURE__*/React.createElement(Button, {
|
|
1080
1106
|
className: "".concat(classPrefix, "-info-right-button forbiddenColor"),
|
|
1081
1107
|
onClick: function onClick() {
|
|
1082
1108
|
setStatusMethod(2);
|
|
1109
|
+
onCreate('save');
|
|
1083
1110
|
}
|
|
1084
1111
|
}, "\u9A73\u56DE")))), /*#__PURE__*/React.createElement(Table, {
|
|
1085
1112
|
style: {
|
|
@@ -1087,7 +1114,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1087
1114
|
borderRadius: 8,
|
|
1088
1115
|
overflow: 'hidden'
|
|
1089
1116
|
},
|
|
1090
|
-
columns:
|
|
1117
|
+
columns: newColumns(),
|
|
1091
1118
|
rowKey: "id",
|
|
1092
1119
|
rowSelection: {
|
|
1093
1120
|
selectedRowKeys: selectedRowKeys,
|
|
@@ -1117,7 +1144,9 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1117
1144
|
setTabKey('history');
|
|
1118
1145
|
getOperateList();
|
|
1119
1146
|
}
|
|
1120
|
-
}, "\u64CD\u4F5C\u5386\u53F2")),
|
|
1147
|
+
}, "\u64CD\u4F5C\u5386\u53F2")), /*#__PURE__*/React.createElement("div", {
|
|
1148
|
+
className: "".concat(classPrefix, "-comment-content")
|
|
1149
|
+
}, tabKey == 'comment' && comments.map(function (item) {
|
|
1121
1150
|
return /*#__PURE__*/React.createElement("div", {
|
|
1122
1151
|
className: "".concat(classPrefix, "-comment-list"),
|
|
1123
1152
|
key: item.id
|
|
@@ -1140,7 +1169,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1140
1169
|
});
|
|
1141
1170
|
}), operateList.length == 0 && tabKey == 'history' && (/*#__PURE__*/React.createElement("div", {
|
|
1142
1171
|
className: "".concat(classPrefix, "-comment-empty")
|
|
1143
|
-
}, "\u6682\u65E0\u64CD\u4F5C\u5386\u53F2"))))), /*#__PURE__*/React.createElement("div", {
|
|
1172
|
+
}, "\u6682\u65E0\u64CD\u4F5C\u5386\u53F2")))))), /*#__PURE__*/React.createElement("div", {
|
|
1144
1173
|
className: "".concat(classPrefix, "-right"),
|
|
1145
1174
|
id: "xsd4"
|
|
1146
1175
|
}, nodeData.length ? (/*#__PURE__*/React.createElement(ProcessCanvas, {
|
|
@@ -1203,11 +1232,11 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1203
1232
|
setCommentText('');
|
|
1204
1233
|
setShowComment(true);
|
|
1205
1234
|
}
|
|
1206
|
-
}, "\u6DFB\u52A0\u8BC4\u8BBA")), !isDemo && !isRead &&
|
|
1235
|
+
}, "\u6DFB\u52A0\u8BC4\u8BBA")), !isDemo && !isRead && [0, 1, 2, 3, 4, 5, 6].indexOf(demandStatus) != -1 && demandType != 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1207
1236
|
type: 'primary',
|
|
1208
1237
|
className: "commentBtn",
|
|
1209
1238
|
onClick: function onClick() {
|
|
1210
|
-
return onCreate();
|
|
1239
|
+
return onCreate('on');
|
|
1211
1240
|
}
|
|
1212
1241
|
}, demandData ? '保存' : '提交')), !isDemo && !isRead && demandStatus > 0 && demandStatus <= 6 && demandType == 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1213
1242
|
type: 'primary',
|
|
@@ -1286,7 +1315,8 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1286
1315
|
closable: true,
|
|
1287
1316
|
onOk: function onOk() {
|
|
1288
1317
|
if (onlineTime) {
|
|
1289
|
-
|
|
1318
|
+
//走流程
|
|
1319
|
+
onCreate('flow');
|
|
1290
1320
|
submitApproval(1);
|
|
1291
1321
|
setShowOnlineTime(false);
|
|
1292
1322
|
}
|
|
@@ -191,6 +191,10 @@
|
|
|
191
191
|
font-style: normal;
|
|
192
192
|
line-height: normal;
|
|
193
193
|
}
|
|
194
|
+
&-ptxt {
|
|
195
|
+
display: block;
|
|
196
|
+
transform: translateY(6px);
|
|
197
|
+
}
|
|
194
198
|
&-row {
|
|
195
199
|
display: flex;
|
|
196
200
|
flex-direction: row;
|
|
@@ -246,6 +250,9 @@
|
|
|
246
250
|
border: 1px solid #1454e5;
|
|
247
251
|
}
|
|
248
252
|
}
|
|
253
|
+
&-content {
|
|
254
|
+
min-height: 300px;
|
|
255
|
+
}
|
|
249
256
|
}
|
|
250
257
|
}
|
|
251
258
|
&-right {
|
|
@@ -355,7 +362,7 @@
|
|
|
355
362
|
font-size: 12px;
|
|
356
363
|
}
|
|
357
364
|
&-text {
|
|
358
|
-
margin-top:
|
|
365
|
+
margin-top: 5px;
|
|
359
366
|
color: #9aa1a9;
|
|
360
367
|
font-size: 12px;
|
|
361
368
|
}
|
|
@@ -213,7 +213,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
213
213
|
}
|
|
214
214
|
}, {
|
|
215
215
|
title: '操作',
|
|
216
|
-
width:
|
|
216
|
+
width: 260,
|
|
217
217
|
fixed: 'right',
|
|
218
218
|
render: function render(record) {
|
|
219
219
|
return /*#__PURE__*/React.createElement(DealDom, {
|
|
@@ -293,7 +293,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
}, "\u590D\u5236"), /*#__PURE__*/React.createElement(Button, {
|
|
296
|
+
}, "\u590D\u5236"), [101, 102].indexOf(props.record.demandStatus) == -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
297
297
|
color: "primary",
|
|
298
298
|
type: "link",
|
|
299
299
|
onClick: function onClick() {
|
|
@@ -303,7 +303,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
303
303
|
demand: props.record
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
}, "\u7F16\u8F91"));
|
|
306
|
+
}, "\u7F16\u8F91")));
|
|
307
307
|
};
|
|
308
308
|
//关闭功能
|
|
309
309
|
var disableDemand = function disableDemand(data) {
|
|
@@ -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.32",
|
|
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": "b4f7a3ec17a8918fbbefcf4719bacd097747c90d",
|
|
71
71
|
"gitHooks": {
|
|
72
72
|
"pre-commit": "lint-staged"
|
|
73
73
|
}
|