@zgfe/modules-settings 2.0.0-zhongyuan.9 → 2.1.0-zhongyuan.1
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 +9 -0
- package/es/constants/api.js +15 -0
- package/es/modules/companySetting/application/index.d.ts +13 -0
- package/es/modules/companySetting/application/index.js +271 -98
- package/es/modules/companySetting/application/index.less +144 -126
- package/es/modules/companySetting/user/invite.js +2 -2
- package/es/modules/createDemand/constants.d.ts +15 -2
- package/es/modules/createDemand/constants.js +57 -4
- package/es/modules/createDemand/index.d.ts +0 -1
- package/es/modules/createDemand/index.js +790 -177
- package/es/modules/createDemand/styles/index.less +403 -277
- package/es/modules/demandManage/index.js +175 -178
- package/es/modules/demandManage/styles/index.less +8 -68
- package/es/modules/messageList/index.d.ts +1 -1
- package/es/modules/messageList/index.js +6 -6
- package/es/modules/personalSetting/demo/index.d.ts +3 -0
- package/es/modules/personalSetting/demo/index.js +12 -0
- package/es/modules/personalSetting/index.js +11 -1
- package/es/modules/personalSetting/info/index.js +23 -5
- package/es/modules/pointMap/createMetaDrawer.d.ts +5 -0
- package/es/modules/pointMap/createMetaDrawer.js +656 -0
- package/es/modules/pointMap/pageInfo.js +358 -172
- package/es/modules/pointMap/record.d.ts +7 -0
- package/es/modules/pointMap/record.js +521 -0
- package/es/modules/pointMap/styles/index.less +152 -38
- package/es/modules/pointMap/styles/pageInfo.less +426 -244
- package/es/modules/pointMap/tree.js +1 -0
- package/es/modules/pointMap/types.d.ts +88 -0
- package/es/modules/pointMap/types.js +1 -0
- package/es/types/personal.d.ts +1 -0
- package/package.json +74 -74
|
@@ -17,17 +17,15 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
17
17
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18
18
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
19
19
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
20
|
-
import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
20
|
+
import { BizGlobalDataContext, IconFont, BizDialog, BizSelect } from '@zgfe/business-lib';
|
|
21
21
|
import { Input, Button,
|
|
22
22
|
// Select,
|
|
23
|
-
Table, message,
|
|
24
|
-
// Modal,
|
|
25
|
-
Upload,
|
|
23
|
+
Table, message, Modal, Upload,
|
|
26
24
|
// Popover,
|
|
27
|
-
DatePicker, Empty } from 'antd';
|
|
25
|
+
DatePicker, Empty, notification } from 'antd';
|
|
28
26
|
import React, { useEffect, useState, useContext } from 'react';
|
|
29
27
|
import './styles/index.less';
|
|
30
|
-
import { columnsEvent } from './constants';
|
|
28
|
+
import { columnsEvent, demandTabList } from './constants';
|
|
31
29
|
import ProcessCanvas from './../../components/processCanvas';
|
|
32
30
|
import request from '../../utils/ajax';
|
|
33
31
|
import apis from '../../constants/api';
|
|
@@ -37,6 +35,7 @@ import BackConfirm from './backConfirm';
|
|
|
37
35
|
import constants from '../../utils/constants';
|
|
38
36
|
import { jsPDF } from 'jspdf';
|
|
39
37
|
import domtoimage from 'dom-to-image';
|
|
38
|
+
import CreateMetaDrawer from '../pointMap/createMetaDrawer';
|
|
40
39
|
var getImgUrl = function getImgUrl(src, pageId) {
|
|
41
40
|
return constants.regExp.url.test(src) ? src : "".concat(window.location.origin, "/web/img/report/").concat(pageId, "/").concat(src);
|
|
42
41
|
// return constants.regExp.url.test(src)
|
|
@@ -44,6 +43,7 @@ var getImgUrl = function getImgUrl(src, pageId) {
|
|
|
44
43
|
// : `${'https://test01.zhugeapi.com'}/web/img/report/${pageId}/${src}`;
|
|
45
44
|
};
|
|
46
45
|
var CreateDemand = function CreateDemand(props) {
|
|
46
|
+
var _props$data;
|
|
47
47
|
var classPrefix = 'system-setting-create-demand';
|
|
48
48
|
var _useContext = useContext(BizGlobalDataContext),
|
|
49
49
|
currentApp = _useContext.currentApp,
|
|
@@ -53,89 +53,130 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
53
53
|
router = _useContext.router;
|
|
54
54
|
// 属性列表加载中
|
|
55
55
|
// const [loading, setLoading] = useState(true);
|
|
56
|
-
var _useState = useState(
|
|
56
|
+
var _useState = useState([]),
|
|
57
57
|
_useState2 = _slicedToArray(_useState, 2),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var _useState3 = useState(
|
|
58
|
+
nodeData = _useState2[0],
|
|
59
|
+
setNodeData = _useState2[1];
|
|
60
|
+
var _useState3 = useState(''),
|
|
61
61
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
var _useState5 = useState(
|
|
62
|
+
demandName = _useState4[0],
|
|
63
|
+
setDemandName = _useState4[1];
|
|
64
|
+
var _useState5 = useState(moment()),
|
|
65
65
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
var _useState7 = useState(
|
|
66
|
+
completionTime = _useState6[0],
|
|
67
|
+
setCompletionTime = _useState6[1];
|
|
68
|
+
var _useState7 = useState(''),
|
|
69
69
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
demandDescribe = _useState8[0],
|
|
71
|
+
setDemandDescribe = _useState8[1];
|
|
72
72
|
var _useState9 = useState(''),
|
|
73
73
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
var _useState11 = useState(
|
|
74
|
+
eventKey = _useState10[0],
|
|
75
|
+
setEventKey = _useState10[1];
|
|
76
|
+
var _useState11 = useState(),
|
|
77
77
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
var _useState13 = useState(
|
|
78
|
+
demandFile = _useState12[0],
|
|
79
|
+
setDemandFile = _useState12[1];
|
|
80
|
+
var _useState13 = useState(),
|
|
81
81
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
var _useState15 = useState(),
|
|
82
|
+
pointEventInfo = _useState14[0],
|
|
83
|
+
setPointEventInfo = _useState14[1];
|
|
84
|
+
var _useState15 = useState(false),
|
|
85
85
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
isHandle = _useState16[0],
|
|
87
|
+
setIsHandle = _useState16[1];
|
|
88
|
+
// const [isWithdraw, setIsWithdraw] = useState(false);
|
|
89
|
+
var _useState17 = useState(void 0),
|
|
89
90
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
currentNodenumber = _useState18[0],
|
|
92
|
+
setCurrentNodenumber = _useState18[1];
|
|
92
93
|
var _useState19 = useState(false),
|
|
93
94
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
isShowBackConfirm = _useState20[0],
|
|
96
|
+
setIsShowBackConfirm = _useState20[1];
|
|
96
97
|
var _useState21 = useState(false),
|
|
97
98
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
isEdit = _useState22[0],
|
|
100
|
+
setIsEdit = _useState22[1];
|
|
101
|
+
// const [processingNode, setProcessingNode] = useState();
|
|
102
|
+
var _useState23 = useState(),
|
|
101
103
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
var _useState25 = useState(
|
|
104
|
+
demandData = _useState24[0],
|
|
105
|
+
setDemandData = _useState24[1];
|
|
106
|
+
var _useState25 = useState(0),
|
|
105
107
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
demandStatus = _useState26[0],
|
|
109
|
+
setDemandStatus = _useState26[1];
|
|
110
|
+
//需求操作类型
|
|
111
|
+
var _useState27 = useState((props === null || props === void 0 ? void 0 : (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.type) || 'edit'),
|
|
112
|
+
_useState28 = _slicedToArray(_useState27, 1),
|
|
113
|
+
demandType = _useState28[0];
|
|
114
|
+
//埋点列表选择key
|
|
115
|
+
var _useState29 = useState([]),
|
|
113
116
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
selectedRowKeys = _useState30[0],
|
|
118
|
+
setSelectedRowKeys = _useState30[1];
|
|
119
|
+
//公司用户列表
|
|
120
|
+
var _useState31 = useState([]),
|
|
117
121
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
var _useState33 = useState(
|
|
121
|
-
_useState34 = _slicedToArray(_useState33,
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
userList = _useState32[0],
|
|
123
|
+
setUserList = _useState32[1];
|
|
124
|
+
var _useState33 = useState(false),
|
|
125
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
|
126
|
+
showUser = _useState34[0],
|
|
127
|
+
setShowUser = _useState34[1];
|
|
128
|
+
var _useState35 = useState({}),
|
|
124
129
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
var _useState37 = useState(
|
|
130
|
+
userSelect = _useState36[0],
|
|
131
|
+
setUserSelect = _useState36[1];
|
|
132
|
+
var _useState37 = useState(''),
|
|
128
133
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
134
|
+
userSelectType = _useState38[0],
|
|
135
|
+
setUserSelectType = _useState38[1];
|
|
136
|
+
//评论参数列表
|
|
137
|
+
var _useState39 = useState('comment'),
|
|
132
138
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
var _useState41 = useState(),
|
|
139
|
+
tabKey = _useState40[0],
|
|
140
|
+
setTabKey = _useState40[1];
|
|
141
|
+
var _useState41 = useState([]),
|
|
136
142
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
comments = _useState42[0],
|
|
144
|
+
setComments = _useState42[1];
|
|
145
|
+
var _useState43 = useState(''),
|
|
146
|
+
_useState44 = _slicedToArray(_useState43, 2),
|
|
147
|
+
commentText = _useState44[0],
|
|
148
|
+
setCommentText = _useState44[1];
|
|
149
|
+
var _useState45 = useState([]),
|
|
150
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
151
|
+
operateList = _useState46[0],
|
|
152
|
+
setOperateList = _useState46[1];
|
|
153
|
+
var _useState47 = useState(false),
|
|
154
|
+
_useState48 = _slicedToArray(_useState47, 2),
|
|
155
|
+
showComment = _useState48[0],
|
|
156
|
+
setShowComment = _useState48[1];
|
|
157
|
+
//上线时间
|
|
158
|
+
var _useState49 = useState(false),
|
|
159
|
+
_useState50 = _slicedToArray(_useState49, 2),
|
|
160
|
+
showOnlineTime = _useState50[0],
|
|
161
|
+
setShowOnlineTime = _useState50[1];
|
|
162
|
+
var _useState51 = useState(),
|
|
163
|
+
_useState52 = _slicedToArray(_useState51, 2),
|
|
164
|
+
onlineTime = _useState52[0],
|
|
165
|
+
setOnlineTime = _useState52[1];
|
|
166
|
+
//设置时间
|
|
167
|
+
var _useState53 = useState(1),
|
|
168
|
+
_useState54 = _slicedToArray(_useState53, 2),
|
|
169
|
+
tabIndex = _useState54[0],
|
|
170
|
+
setTabIndex = _useState54[1];
|
|
171
|
+
//查看埋点内容
|
|
172
|
+
var _useState55 = useState(false),
|
|
173
|
+
_useState56 = _slicedToArray(_useState55, 2),
|
|
174
|
+
createMetaShow = _useState56[0],
|
|
175
|
+
setCreateMetaShow = _useState56[1];
|
|
176
|
+
var _useState57 = useState({}),
|
|
177
|
+
_useState58 = _slicedToArray(_useState57, 2),
|
|
178
|
+
metaData = _useState58[0],
|
|
179
|
+
setMetaData = _useState58[1];
|
|
139
180
|
useEffect(function () {
|
|
140
181
|
if (props.demandId) {
|
|
141
182
|
getDemand();
|
|
@@ -143,10 +184,10 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
143
184
|
getNode();
|
|
144
185
|
}
|
|
145
186
|
}, [props.demandId]);
|
|
146
|
-
var
|
|
147
|
-
|
|
148
|
-
isControl =
|
|
149
|
-
setIsControl =
|
|
187
|
+
var _useState59 = useState(false),
|
|
188
|
+
_useState60 = _slicedToArray(_useState59, 2),
|
|
189
|
+
isControl = _useState60[0],
|
|
190
|
+
setIsControl = _useState60[1];
|
|
150
191
|
var getAppAutoEvent = function getAppAutoEvent() {
|
|
151
192
|
request(apis.getAppAutoEvent, {
|
|
152
193
|
method: 'post',
|
|
@@ -162,27 +203,17 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
162
203
|
});
|
|
163
204
|
};
|
|
164
205
|
useEffect(function () {
|
|
165
|
-
if (props.data) {
|
|
166
|
-
setDemandName(props.data.demand.demandName);
|
|
167
|
-
setDemandDescribe(props.data.demand.demandDescribe);
|
|
168
|
-
setCompletionTime(moment(new Date(props.data.demand.completionTime)));
|
|
206
|
+
if (props.data && props.data.demand && (props === null || props === void 0 ? void 0 : props.data.demand.demandName)) {
|
|
207
|
+
setDemandName(props === null || props === void 0 ? void 0 : props.data.demand.demandName);
|
|
208
|
+
setDemandDescribe(props === null || props === void 0 ? void 0 : props.data.demand.demandDescribe);
|
|
209
|
+
setCompletionTime(moment(new Date(props === null || props === void 0 ? void 0 : props.data.demand.completionTime)));
|
|
169
210
|
setDemandFile({
|
|
170
|
-
fileName: props.data.demand.fileName,
|
|
171
|
-
filePath: props.data.demand.filePath
|
|
211
|
+
fileName: props === null || props === void 0 ? void 0 : props.data.demand.fileName,
|
|
212
|
+
filePath: props === null || props === void 0 ? void 0 : props.data.demand.filePath
|
|
172
213
|
});
|
|
173
|
-
setPointEventInfo(props.data.pointEventInfo ? props.data.pointEventInfo.map(function (item) {
|
|
174
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
175
|
-
describe: item.pointDescribe,
|
|
176
|
-
pageImgUrl: item.pageImgUrl ? getImgUrl(item.pageImgUrl, item.pageId) : '',
|
|
177
|
-
imgPath: item.imgUrl ? getImgUrl(item.imgUrl, item.pageId) : ''
|
|
178
|
-
});
|
|
179
|
-
}) : []);
|
|
180
214
|
}
|
|
181
215
|
getAppAutoEvent();
|
|
182
216
|
}, []);
|
|
183
|
-
// useEffect(() => {
|
|
184
|
-
// setIsEdit(true);
|
|
185
|
-
// }, [props.saveObj]);
|
|
186
217
|
var getDemand = function getDemand() {
|
|
187
218
|
request(apis.getDemand, {
|
|
188
219
|
method: 'POST',
|
|
@@ -191,7 +222,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
191
222
|
id: props.demandId
|
|
192
223
|
}
|
|
193
224
|
}).then(function (res) {
|
|
194
|
-
// console.log('res', res);
|
|
195
225
|
if (!res) {
|
|
196
226
|
setTimeout(function () {
|
|
197
227
|
router && (router === null || router === void 0 ? void 0 : router.replace({
|
|
@@ -212,12 +242,15 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
212
242
|
setPointEventInfo((res === null || res === void 0 ? void 0 : res.data.pointEventInfo) ? res === null || res === void 0 ? void 0 : res.data.pointEventInfo.map(function (item) {
|
|
213
243
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
214
244
|
describe: item.pointDescribe,
|
|
215
|
-
pageImgUrl: item.pageImgUrl
|
|
216
|
-
imgPath: item.
|
|
245
|
+
pageImgUrl: item.pageImgUrl || '',
|
|
246
|
+
imgPath: item.imgPath || '',
|
|
247
|
+
aliasName: item.event.aliasName,
|
|
248
|
+
eventAttrList: item.event.eventAttrList,
|
|
249
|
+
triggeringOccasion: item.event.triggeringOccasion
|
|
217
250
|
});
|
|
218
251
|
}) : []);
|
|
219
252
|
setIsHandle(res === null || res === void 0 ? void 0 : res.data.isHandle);
|
|
220
|
-
setIsWithdraw(res
|
|
253
|
+
// setIsWithdraw(res?.data.revocation);
|
|
221
254
|
setNodeData((res === null || res === void 0 ? void 0 : res.data.nodes) ? res === null || res === void 0 ? void 0 : res.data.nodes.map(function (item) {
|
|
222
255
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
223
256
|
nodeName: item.currentStepName,
|
|
@@ -226,6 +259,16 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
226
259
|
});
|
|
227
260
|
}) : []);
|
|
228
261
|
setCurrentNodenumber(res === null || res === void 0 ? void 0 : res.data.currentNodenumber);
|
|
262
|
+
setDemandStatus(res === null || res === void 0 ? void 0 : res.data.demand.demandStatus);
|
|
263
|
+
}
|
|
264
|
+
//0为无状态及创建
|
|
265
|
+
if ((res === null || res === void 0 ? void 0 : res.data.demand.demandStatus) > 0) {
|
|
266
|
+
//获取当前评论
|
|
267
|
+
getComments();
|
|
268
|
+
//获取历史记录
|
|
269
|
+
getOperateList();
|
|
270
|
+
//获取公司列表
|
|
271
|
+
getUserList();
|
|
229
272
|
}
|
|
230
273
|
});
|
|
231
274
|
};
|
|
@@ -243,7 +286,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
243
286
|
type: 'node_point'
|
|
244
287
|
});
|
|
245
288
|
}));
|
|
246
|
-
setProcessingNode(res.data.processingNode);
|
|
289
|
+
// setProcessingNode(res.data.processingNode);
|
|
247
290
|
}
|
|
248
291
|
});
|
|
249
292
|
};
|
|
@@ -256,11 +299,11 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
256
299
|
showUploadList: false,
|
|
257
300
|
beforeUpload: function beforeUpload(file) {
|
|
258
301
|
setIsEdit(true);
|
|
259
|
-
var regex = /\.(zip|rar)$/i;
|
|
302
|
+
var regex = /\.(zip|rar|doc|docx|xlsx|xls|pdf)$/i;
|
|
260
303
|
var isZip = regex.test(file.name);
|
|
261
|
-
var is10M = file.size <
|
|
304
|
+
var is10M = file.size < 50 * 1024 * 1024;
|
|
262
305
|
if (!isZip || !is10M) {
|
|
263
|
-
message.error("\u4EC5\u652F\u6301\u4E0A\u4F20\u4E00\
|
|
306
|
+
message.error("\u4EC5\u652F\u6301\u4E0A\u4F20\u4E00\u4E2A50M\u4EE5\u5185\u7684Word\u3001Excel\u3001PDF\u3001ZIP\u3001ZIP\u3001RAR\u683C\u5F0F\u538B\u7F29\u5305\u9644\u4EF6");
|
|
264
307
|
} else {
|
|
265
308
|
// setValueLoading(true);
|
|
266
309
|
var formData = new FormData();
|
|
@@ -282,7 +325,10 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
282
325
|
return false;
|
|
283
326
|
}
|
|
284
327
|
};
|
|
328
|
+
// type on单击事件 save保存 flow
|
|
285
329
|
var onCreate = function onCreate() {
|
|
330
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'save';
|
|
331
|
+
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
286
332
|
if (!demandName) {
|
|
287
333
|
message.warning('请填写需求名称');
|
|
288
334
|
return;
|
|
@@ -303,30 +349,40 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
303
349
|
id: props.data.demand.id
|
|
304
350
|
} : {}), {}, {
|
|
305
351
|
completionTime: completionTime * 1,
|
|
306
|
-
pointEventIds: pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.
|
|
352
|
+
pointEventIds: pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.filter(function (res) {
|
|
353
|
+
return res.id;
|
|
354
|
+
}).map(function (item) {
|
|
307
355
|
return item.id;
|
|
308
|
-
})
|
|
309
|
-
|
|
356
|
+
}),
|
|
357
|
+
pointEventStatus: pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
358
|
+
return item.status;
|
|
359
|
+
}),
|
|
360
|
+
eventList: pointEventInfo
|
|
361
|
+
}, data)
|
|
310
362
|
}).then(function (res) {
|
|
311
363
|
if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
|
|
312
|
-
|
|
313
|
-
|
|
364
|
+
if (type == 'on') {
|
|
365
|
+
message.success('保存成功');
|
|
366
|
+
props.onBack && props.onBack();
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
setPointEventInfo(function (val) {
|
|
370
|
+
return val === null || val === void 0 ? void 0 : val.map(function (item, index) {
|
|
371
|
+
var _res$data;
|
|
372
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
373
|
+
id: (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.pointEventInfo[index].id
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
});
|
|
377
|
+
//每次修改刷新历史记录
|
|
378
|
+
getOperateList();
|
|
314
379
|
// props.onSubmit && props.onSubmit()
|
|
315
380
|
} else {
|
|
316
381
|
message.error('保存失败');
|
|
317
382
|
}
|
|
318
383
|
});
|
|
319
384
|
};
|
|
320
|
-
var removeInfo = function removeInfo(type, info) {
|
|
321
|
-
if (isRead) return message.error('查看状态不可修改');
|
|
322
|
-
var data = _.clone(pointEventInfo);
|
|
323
|
-
setPointEventInfo(data ? data.filter(function (item) {
|
|
324
|
-
return item.id !== info.id;
|
|
325
|
-
}) : []);
|
|
326
|
-
message.success('移除成功');
|
|
327
|
-
};
|
|
328
385
|
var downloadFile = function downloadFile() {
|
|
329
|
-
if (!isRead) return;
|
|
330
386
|
request(apis.fileDownload, {
|
|
331
387
|
method: 'POST',
|
|
332
388
|
data: {
|
|
@@ -344,25 +400,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
344
400
|
a.click();
|
|
345
401
|
});
|
|
346
402
|
};
|
|
347
|
-
var submitDemand = function submitDemand(approveStatus) {
|
|
348
|
-
request(apis.submitApproval, {
|
|
349
|
-
method: 'post',
|
|
350
|
-
data: {
|
|
351
|
-
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
352
|
-
id: props.demandId,
|
|
353
|
-
approveStatus: approveStatus
|
|
354
|
-
}
|
|
355
|
-
}).then(function (res) {
|
|
356
|
-
if (res && res.code === '100000') {
|
|
357
|
-
message.success('操作成功');
|
|
358
|
-
getDemand();
|
|
359
|
-
}
|
|
360
|
-
}).catch(function (err) {
|
|
361
|
-
console.log(err);
|
|
362
|
-
});
|
|
363
|
-
};
|
|
364
403
|
var gotoPage = function gotoPage(type, data) {
|
|
365
|
-
// console.log('data', data);
|
|
366
404
|
switch (type) {
|
|
367
405
|
case 'event':
|
|
368
406
|
window.open('/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage?key=' + data, '_blank');
|
|
@@ -373,8 +411,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
373
411
|
default:
|
|
374
412
|
break;
|
|
375
413
|
}
|
|
376
|
-
// setEventAttrListShow(true);
|
|
377
|
-
// setEventProp(record.event_attrs);
|
|
378
414
|
};
|
|
379
415
|
var onBack = function onBack() {
|
|
380
416
|
if (isEdit) {
|
|
@@ -384,7 +420,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
384
420
|
}
|
|
385
421
|
};
|
|
386
422
|
var downloadData = function downloadData() {
|
|
387
|
-
if (!isRead) return;
|
|
388
423
|
request(apis.downloadEvent, {
|
|
389
424
|
method: 'POST',
|
|
390
425
|
data: {
|
|
@@ -564,6 +599,319 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
564
599
|
props.onDemand && props.onDemand(type, demandData);
|
|
565
600
|
}
|
|
566
601
|
};
|
|
602
|
+
//埋点状态样式
|
|
603
|
+
//status 0 待开始 1 完成 2 失败
|
|
604
|
+
var statusDiv = function statusDiv(status) {
|
|
605
|
+
//设计中
|
|
606
|
+
if (demandStatus == 2) {
|
|
607
|
+
if (status == 0) {
|
|
608
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
609
|
+
style: {
|
|
610
|
+
color: '#fda145'
|
|
611
|
+
}
|
|
612
|
+
}, "\u8BBE\u8BA1\u4E2D");
|
|
613
|
+
} else if (status == 1) {
|
|
614
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
615
|
+
style: {
|
|
616
|
+
color: '#2cbe54'
|
|
617
|
+
}
|
|
618
|
+
}, "\u8BBE\u8BA1\u5B8C\u6210");
|
|
619
|
+
} else {
|
|
620
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
621
|
+
style: {
|
|
622
|
+
color: '#fb5547'
|
|
623
|
+
}
|
|
624
|
+
}, "\u5BA1\u6838\u4E0D\u901A\u8FC7");
|
|
625
|
+
}
|
|
626
|
+
} else if (demandStatus == 3 || demandStatus == 4) {
|
|
627
|
+
if (status == 0) {
|
|
628
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
629
|
+
style: {
|
|
630
|
+
color: '#fda145'
|
|
631
|
+
}
|
|
632
|
+
}, "\u5F85\u5BA1\u6838");
|
|
633
|
+
} else if (status == 1) {
|
|
634
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
635
|
+
style: {
|
|
636
|
+
color: '#2cbe54'
|
|
637
|
+
}
|
|
638
|
+
}, "\u5BA1\u6838\u901A\u8FC7");
|
|
639
|
+
} else {
|
|
640
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
641
|
+
style: {
|
|
642
|
+
color: '#fb5547'
|
|
643
|
+
}
|
|
644
|
+
}, "\u5BA1\u6838\u672A\u901A\u8FC7");
|
|
645
|
+
}
|
|
646
|
+
} else if (demandStatus == 5) {
|
|
647
|
+
if (status == 0) {
|
|
648
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
649
|
+
style: {
|
|
650
|
+
color: '#fda145'
|
|
651
|
+
}
|
|
652
|
+
}, "\u5F00\u53D1\u4E2D");
|
|
653
|
+
} else {
|
|
654
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
655
|
+
style: {
|
|
656
|
+
color: '#2cbe54'
|
|
657
|
+
}
|
|
658
|
+
}, "\u5F00\u53D1\u5B8C\u6210");
|
|
659
|
+
}
|
|
660
|
+
} else if (demandStatus == 6) {
|
|
661
|
+
if (status == 0) {
|
|
662
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
663
|
+
style: {
|
|
664
|
+
color: '#fda145'
|
|
665
|
+
}
|
|
666
|
+
}, "\u6D4B\u8BD5\u4E2D");
|
|
667
|
+
} else {
|
|
668
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
669
|
+
style: {
|
|
670
|
+
color: '#2cbe54'
|
|
671
|
+
}
|
|
672
|
+
}, "\u6D4B\u8BD5\u5B8C\u6210");
|
|
673
|
+
}
|
|
674
|
+
} else if (demandStatus == 101) {
|
|
675
|
+
if (status == 0) {
|
|
676
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
677
|
+
style: {
|
|
678
|
+
color: '#fda145'
|
|
679
|
+
}
|
|
680
|
+
}, "\u672A\u4E0A\u7EBF");
|
|
681
|
+
} else {
|
|
682
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
683
|
+
style: {
|
|
684
|
+
color: '#2cbe54'
|
|
685
|
+
}
|
|
686
|
+
}, "\u5DF2\u4E0A\u7EBF");
|
|
687
|
+
}
|
|
688
|
+
} else if (demandStatus == 102) {
|
|
689
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
690
|
+
style: {
|
|
691
|
+
color: '#fb5547'
|
|
692
|
+
}
|
|
693
|
+
}, "\u9700\u6C42\u5173\u95ED");
|
|
694
|
+
}
|
|
695
|
+
};
|
|
696
|
+
// 新的埋点表格列表
|
|
697
|
+
var newColumns = function newColumns() {
|
|
698
|
+
var columns = [].concat(_toConsumableArray(columnsEvent(gotoPage, isControl, getPointMap)), [{
|
|
699
|
+
title: '状态',
|
|
700
|
+
width: 120,
|
|
701
|
+
dataIndex: 'status',
|
|
702
|
+
render: function render(status) {
|
|
703
|
+
return statusDiv(status);
|
|
704
|
+
}
|
|
705
|
+
}]);
|
|
706
|
+
//处于需求完成和埋点信息为上线状态
|
|
707
|
+
if (demandStatus == 101 && tabIndex == 1) {
|
|
708
|
+
columns.push({
|
|
709
|
+
title: '是否有数据上报',
|
|
710
|
+
width: 150,
|
|
711
|
+
dataIndex: 'hasData',
|
|
712
|
+
render: function render(hasData) {
|
|
713
|
+
return hasData == 1 ? (/*#__PURE__*/React.createElement("div", {
|
|
714
|
+
style: {
|
|
715
|
+
color: '#2cbe54'
|
|
716
|
+
}
|
|
717
|
+
}, "\u662F")) : (/*#__PURE__*/React.createElement("div", {
|
|
718
|
+
style: {
|
|
719
|
+
color: '#fb5547'
|
|
720
|
+
}
|
|
721
|
+
}, "\u5426"));
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
//埋点列表label数据
|
|
726
|
+
return columns;
|
|
727
|
+
};
|
|
728
|
+
//埋点需求列表选择
|
|
729
|
+
var onSelectChange = function onSelectChange(val) {
|
|
730
|
+
setSelectedRowKeys(val);
|
|
731
|
+
};
|
|
732
|
+
//获取评论
|
|
733
|
+
var getComments = function getComments() {
|
|
734
|
+
var _props$data2;
|
|
735
|
+
request(apis.setting.getComments, {
|
|
736
|
+
method: 'POST',
|
|
737
|
+
data: {
|
|
738
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
739
|
+
id: props.demandId || ((_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.demand.id)
|
|
740
|
+
}
|
|
741
|
+
}).then(function (res) {
|
|
742
|
+
if (res && res.code == '100000') {
|
|
743
|
+
setComments(res.data);
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
};
|
|
747
|
+
//新增评论
|
|
748
|
+
var onCreateComment = function onCreateComment() {
|
|
749
|
+
var _props$data3;
|
|
750
|
+
request(apis.setting.addComments, {
|
|
751
|
+
method: 'POST',
|
|
752
|
+
data: {
|
|
753
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
754
|
+
id: props.demandId || ((_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.demand.id),
|
|
755
|
+
comments: commentText
|
|
756
|
+
}
|
|
757
|
+
}).then(function (res) {
|
|
758
|
+
if (res && res.code == '100000') {
|
|
759
|
+
setShowComment(false);
|
|
760
|
+
getComments();
|
|
761
|
+
}
|
|
762
|
+
});
|
|
763
|
+
};
|
|
764
|
+
//获取历史记录
|
|
765
|
+
var getOperateList = function getOperateList() {
|
|
766
|
+
var _props$data4;
|
|
767
|
+
request(apis.setting.operateList, {
|
|
768
|
+
method: 'POST',
|
|
769
|
+
data: {
|
|
770
|
+
id: props.demandId || ((_props$data4 = props.data) === null || _props$data4 === void 0 ? void 0 : _props$data4.demand.id),
|
|
771
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
772
|
+
}
|
|
773
|
+
}).then(function (res) {
|
|
774
|
+
if (res && res.code == '100000') {
|
|
775
|
+
setOperateList(res.data);
|
|
776
|
+
}
|
|
777
|
+
});
|
|
778
|
+
};
|
|
779
|
+
//获取公司所有人员列表
|
|
780
|
+
var getUserList = function getUserList() {
|
|
781
|
+
request(apis.queryUserByCompanyId, {
|
|
782
|
+
method: 'get'
|
|
783
|
+
}).then(function (res) {
|
|
784
|
+
if (res === null || res === void 0 ? void 0 : res.data) {
|
|
785
|
+
setUserList(res.data.map(function (item) {
|
|
786
|
+
item.userName = item.userName || item.email;
|
|
787
|
+
return item;
|
|
788
|
+
}));
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
};
|
|
792
|
+
//修改转办人
|
|
793
|
+
var designateProcessor = function designateProcessor() {
|
|
794
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'click';
|
|
795
|
+
if (type == 'click') {
|
|
796
|
+
var _props$data5;
|
|
797
|
+
request(apis.setting.designateProcessor, {
|
|
798
|
+
method: 'POST',
|
|
799
|
+
data: {
|
|
800
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
801
|
+
id: props.demandId || ((_props$data5 = props.data) === null || _props$data5 === void 0 ? void 0 : _props$data5.demand.id),
|
|
802
|
+
processorId: userSelect.id,
|
|
803
|
+
processorName: userSelect.userName
|
|
804
|
+
}
|
|
805
|
+
}).then(function (res) {
|
|
806
|
+
if (res && res.code == '100000') {
|
|
807
|
+
setShowUser(false);
|
|
808
|
+
if (props.data && props.data.demand) {
|
|
809
|
+
setDemandData(function (val) {
|
|
810
|
+
val.demand.currentProcessorName = userSelect.userName;
|
|
811
|
+
return _objectSpread({}, val);
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
notification.success({
|
|
815
|
+
message: '修改成功'
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
} else {
|
|
820
|
+
submitApproval(1);
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
//关闭功能
|
|
824
|
+
var disableDemand = function disableDemand() {
|
|
825
|
+
var _props$data6, _props$data7;
|
|
826
|
+
request(apis.setting.disableDemand, {
|
|
827
|
+
method: 'post',
|
|
828
|
+
data: {
|
|
829
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
830
|
+
id: props.demandId || ((_props$data6 = props.data) === null || _props$data6 === void 0 ? void 0 : _props$data6.demand.id),
|
|
831
|
+
creatorId: (_props$data7 = props.data) === null || _props$data7 === void 0 ? void 0 : _props$data7.demand.creatorId
|
|
832
|
+
}
|
|
833
|
+
}).then(function (res) {
|
|
834
|
+
if (res && res.code === '100000') {
|
|
835
|
+
notification.success({
|
|
836
|
+
message: '关闭成功'
|
|
837
|
+
});
|
|
838
|
+
props.onBack && props.onBack();
|
|
839
|
+
}
|
|
840
|
+
}).catch(function (err) {
|
|
841
|
+
console.log(err);
|
|
842
|
+
});
|
|
843
|
+
};
|
|
844
|
+
//下一个流程按钮
|
|
845
|
+
var submitMethod = function submitMethod() {
|
|
846
|
+
//当流程为待设时需要选择转办人
|
|
847
|
+
if (demandStatus == 6) {
|
|
848
|
+
//选择上线时间
|
|
849
|
+
setOnlineTime(moment());
|
|
850
|
+
setShowOnlineTime(true);
|
|
851
|
+
} else {
|
|
852
|
+
setUserSelect({});
|
|
853
|
+
setUserSelectType('submit');
|
|
854
|
+
setShowUser(true);
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
//提交进入下一个流程
|
|
858
|
+
var submitApproval = function submitApproval(status) {
|
|
859
|
+
var _props$data8;
|
|
860
|
+
setIsEdit(false);
|
|
861
|
+
//提交进入下一个流程
|
|
862
|
+
request(apis.submitApproval, {
|
|
863
|
+
method: 'post',
|
|
864
|
+
data: {
|
|
865
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
866
|
+
id: props.demandId || ((_props$data8 = props.data) === null || _props$data8 === void 0 ? void 0 : _props$data8.demand.id),
|
|
867
|
+
approveStatus: status,
|
|
868
|
+
processorId: userSelect.id,
|
|
869
|
+
processorName: userSelect.userName,
|
|
870
|
+
onlineTime: onlineTime
|
|
871
|
+
}
|
|
872
|
+
}).then(function (res) {
|
|
873
|
+
if (res && res.code === '100000') {
|
|
874
|
+
notification.success({
|
|
875
|
+
message: '提交成功'
|
|
876
|
+
});
|
|
877
|
+
setShowUser(false);
|
|
878
|
+
props.onBack && props.onBack();
|
|
879
|
+
} else {
|
|
880
|
+
notification.success({
|
|
881
|
+
message: res.msg
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
}).catch(function (err) {
|
|
885
|
+
console.log(err);
|
|
886
|
+
});
|
|
887
|
+
};
|
|
888
|
+
//批量完成设计
|
|
889
|
+
var setStatusMethod = function setStatusMethod(status) {
|
|
890
|
+
setPointEventInfo(pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
891
|
+
if (selectedRowKeys.indexOf(item.id) != -1) {
|
|
892
|
+
item.status = status;
|
|
893
|
+
}
|
|
894
|
+
return item;
|
|
895
|
+
}));
|
|
896
|
+
};
|
|
897
|
+
//埋点地图列表
|
|
898
|
+
var getPointEventInfo = function getPointEventInfo() {
|
|
899
|
+
return pointEventInfo.filter(function (item) {
|
|
900
|
+
return new RegExp(_.escapeRegExp(eventKey), 'i').test((item.eventName || '') + (item.pageName || ''));
|
|
901
|
+
});
|
|
902
|
+
};
|
|
903
|
+
//查询当前节点信息数据
|
|
904
|
+
var getLableValue = function getLableValue(status, key) {
|
|
905
|
+
var data = demandTabList.filter(function (res) {
|
|
906
|
+
return res.value == status;
|
|
907
|
+
})[0];
|
|
908
|
+
return data[key];
|
|
909
|
+
};
|
|
910
|
+
//查看埋点详情
|
|
911
|
+
var getPointMap = function getPointMap(data) {
|
|
912
|
+
setMetaData(data);
|
|
913
|
+
setCreateMetaShow(true);
|
|
914
|
+
};
|
|
567
915
|
return /*#__PURE__*/React.createElement("div", {
|
|
568
916
|
className: classPrefix
|
|
569
917
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -575,14 +923,38 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
575
923
|
type: "fanhuiicon"
|
|
576
924
|
}), "\u8FD4\u56DE"), /*#__PURE__*/React.createElement("div", {
|
|
577
925
|
className: "".concat(classPrefix, "-title")
|
|
578
|
-
},
|
|
926
|
+
}, demandType == 'manage' ? '处理' : demandType == 'get' ? '查看' : props.demandId && demandType == 'edit' ? '编辑' : '新增', "\u9700\u6C42")), /*#__PURE__*/React.createElement("div", {
|
|
579
927
|
className: "".concat(classPrefix, "-row")
|
|
580
928
|
}, /*#__PURE__*/React.createElement("div", {
|
|
581
929
|
className: "".concat(classPrefix, "-info")
|
|
582
930
|
}, /*#__PURE__*/React.createElement("div", {
|
|
583
931
|
id: "system-setting-demand-info",
|
|
584
932
|
className: "".concat(classPrefix, "-info-img")
|
|
933
|
+
}, demandData && demandData.demand && demandStatus > 0 && (/*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("div", {
|
|
934
|
+
className: "".concat(classPrefix, "-info-item")
|
|
585
935
|
}, /*#__PURE__*/React.createElement("div", {
|
|
936
|
+
className: "".concat(classPrefix, "-info-item-txt")
|
|
937
|
+
}, "\u9700\u6C42ID"), /*#__PURE__*/React.createElement("div", {
|
|
938
|
+
className: "".concat(classPrefix, "-info-item-content")
|
|
939
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
940
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
941
|
+
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.id)))), /*#__PURE__*/React.createElement("div", {
|
|
942
|
+
className: "".concat(classPrefix, "-info-item")
|
|
943
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
944
|
+
className: "".concat(classPrefix, "-info-item-txt")
|
|
945
|
+
}, "\u521B\u5EFA\u4EBA"), /*#__PURE__*/React.createElement("div", {
|
|
946
|
+
className: "".concat(classPrefix, "-info-item-content")
|
|
947
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
948
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
949
|
+
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.creatorName)))), demandStatus > 1 && (/*#__PURE__*/React.createElement("div", {
|
|
950
|
+
className: "".concat(classPrefix, "-info-item")
|
|
951
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
952
|
+
className: "".concat(classPrefix, "-info-item-txt")
|
|
953
|
+
}, "\u5904\u7406\u4EBA"), /*#__PURE__*/React.createElement("div", {
|
|
954
|
+
className: "".concat(classPrefix, "-info-item-content")
|
|
955
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
956
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
957
|
+
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.currentProcessorName))))))), /*#__PURE__*/React.createElement("div", {
|
|
586
958
|
className: "".concat(classPrefix, "-info-item")
|
|
587
959
|
}, /*#__PURE__*/React.createElement("div", {
|
|
588
960
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
@@ -599,14 +971,14 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
599
971
|
setIsEdit(true);
|
|
600
972
|
setDemandName(e.currentTarget.value);
|
|
601
973
|
},
|
|
602
|
-
disabled:
|
|
974
|
+
disabled: demandStatus == 102 || demandStatus == 101 || demandType != 'edit'
|
|
603
975
|
}), /*#__PURE__*/React.createElement("div", {
|
|
604
976
|
className: "".concat(classPrefix, "-info-item-content-input-num")
|
|
605
977
|
}, /*#__PURE__*/React.createElement("span", {
|
|
606
978
|
style: {
|
|
607
979
|
color: '#021429'
|
|
608
980
|
}
|
|
609
|
-
}, demandName.length), /*#__PURE__*/React.createElement("span", null, "/20")))), /*#__PURE__*/React.createElement("div", {
|
|
981
|
+
}, demandName ? demandName.length : 0), /*#__PURE__*/React.createElement("span", null, "/20")))), /*#__PURE__*/React.createElement("div", {
|
|
610
982
|
className: "".concat(classPrefix, "-info-item")
|
|
611
983
|
}, /*#__PURE__*/React.createElement("div", {
|
|
612
984
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
@@ -621,7 +993,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
621
993
|
setCompletionTime(e);
|
|
622
994
|
},
|
|
623
995
|
showTime: true,
|
|
624
|
-
disabled:
|
|
996
|
+
disabled: demandStatus == 102 || demandStatus == 101 || demandType != 'edit'
|
|
625
997
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
626
998
|
className: "".concat(classPrefix, "-info-item")
|
|
627
999
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -640,7 +1012,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
640
1012
|
setIsEdit(true);
|
|
641
1013
|
setDemandDescribe(e.currentTarget.value);
|
|
642
1014
|
},
|
|
643
|
-
disabled:
|
|
1015
|
+
disabled: demandStatus == 102 || demandStatus == 101 || demandType != 'edit'
|
|
644
1016
|
}), /*#__PURE__*/React.createElement("div", {
|
|
645
1017
|
className: "".concat(classPrefix, "-info-item-content-input-num")
|
|
646
1018
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -662,7 +1034,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
662
1034
|
onClick: function onClick() {
|
|
663
1035
|
downloadFile();
|
|
664
1036
|
}
|
|
665
|
-
}, demandFile.fileName),
|
|
1037
|
+
}, demandFile.fileName), demandType == 'edit' && (/*#__PURE__*/React.createElement(IconFont, {
|
|
666
1038
|
type: "qingchu",
|
|
667
1039
|
style: {
|
|
668
1040
|
color: '#67727F'
|
|
@@ -673,14 +1045,22 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
673
1045
|
})))) : (/*#__PURE__*/React.createElement("div", {
|
|
674
1046
|
className: "".concat(classPrefix, "-info-item-content-row")
|
|
675
1047
|
}, /*#__PURE__*/React.createElement(Upload, _objectSpread(_objectSpread({}, uploadProps), {}, {
|
|
676
|
-
disabled:
|
|
1048
|
+
disabled: demandStatus == 102 || demandStatus == 101 || demandType != 'edit'
|
|
677
1049
|
}), /*#__PURE__*/React.createElement("div", {
|
|
678
1050
|
className: "".concat(classPrefix, "-info-item-content-btn")
|
|
679
1051
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
680
1052
|
type: "tianjia1"
|
|
681
1053
|
}), "\u6DFB\u52A0\u6587\u4EF6")), /*#__PURE__*/React.createElement("div", {
|
|
682
1054
|
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
683
|
-
}, "\uFF08\u652F\u6301
|
|
1055
|
+
}, "\uFF08\u652F\u6301 Word\u3001Excel\u3001PDF\u3001ZIP\u3001ZIP\u3001RAR \u683C\u5F0F\u300150M\u4EE5\u5185\uFF09"))))), (demandStatus == 101 || demandStatus == 102) && (/*#__PURE__*/React.createElement("div", {
|
|
1056
|
+
className: "".concat(classPrefix, "-info-item")
|
|
1057
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1058
|
+
className: "".concat(classPrefix, "-info-item-txt")
|
|
1059
|
+
}, "\u4E0A\u7EBF\u65F6\u95F4"), /*#__PURE__*/React.createElement("div", {
|
|
1060
|
+
className: "".concat(classPrefix, "-info-item-content")
|
|
1061
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1062
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
1063
|
+
}, (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", {
|
|
684
1064
|
className: "".concat(classPrefix, "-info-item"),
|
|
685
1065
|
style: {
|
|
686
1066
|
paddingLeft: 24,
|
|
@@ -692,7 +1072,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
692
1072
|
className: "".concat(classPrefix, "-info-item-content")
|
|
693
1073
|
}, /*#__PURE__*/React.createElement("div", {
|
|
694
1074
|
className: "".concat(classPrefix, "-info-item-content-filter")
|
|
695
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
1075
|
+
}, demandStatus != 101 && (/*#__PURE__*/React.createElement(Input, {
|
|
696
1076
|
style: {
|
|
697
1077
|
width: 256
|
|
698
1078
|
},
|
|
@@ -704,42 +1084,138 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
704
1084
|
onChange: function onChange(e) {
|
|
705
1085
|
return setEventKey(e.target.value);
|
|
706
1086
|
}
|
|
707
|
-
}),
|
|
708
|
-
|
|
1087
|
+
})), demandStatus == 101 && (/*#__PURE__*/React.createElement("div", {
|
|
1088
|
+
className: "".concat(classPrefix, "-info-tabList")
|
|
1089
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1090
|
+
className: "".concat(classPrefix, "-info-tabList-item ").concat(tabIndex == 1 && "".concat(classPrefix, "-info-tabList-active")),
|
|
1091
|
+
onClick: function onClick() {
|
|
1092
|
+
setTabIndex(1);
|
|
1093
|
+
}
|
|
1094
|
+
}, "\u5DF2\u4E0A\u7EBF"), /*#__PURE__*/React.createElement("div", {
|
|
1095
|
+
className: "".concat(classPrefix, "-info-tabList-item ").concat(tabIndex == 0 && "".concat(classPrefix, "-info-tabList-active")),
|
|
1096
|
+
onClick: function onClick() {
|
|
1097
|
+
setTabIndex(0);
|
|
1098
|
+
}
|
|
1099
|
+
}, "\u672A\u4E0A\u7EBF"))), demandType == 'manage' && demandStatus == 2 && (/*#__PURE__*/React.createElement(Button, {
|
|
709
1100
|
shape: "round",
|
|
710
1101
|
className: "button",
|
|
711
1102
|
onClick: function onClick() {
|
|
712
|
-
|
|
713
|
-
|
|
1103
|
+
props.setIsShowSelectList && props.setIsShowSelectList(function (val) {
|
|
1104
|
+
var eventList = val.map(function (val) {
|
|
1105
|
+
return _objectSpread(_objectSpread({}, val), {}, {
|
|
1106
|
+
status: val.status ? val.status == 2 ? 0 : val.status : 0
|
|
1107
|
+
});
|
|
1108
|
+
});
|
|
1109
|
+
setPointEventInfo(eventList);
|
|
1110
|
+
onCreate('save', {
|
|
1111
|
+
pointEventIds: eventList.filter(function (res) {
|
|
1112
|
+
return res.id;
|
|
1113
|
+
}).map(function (res) {
|
|
1114
|
+
return res.id;
|
|
1115
|
+
}),
|
|
1116
|
+
pointEventStatus: eventList.map(function (res) {
|
|
1117
|
+
return 0;
|
|
1118
|
+
}),
|
|
1119
|
+
eventList: eventList
|
|
1120
|
+
});
|
|
1121
|
+
}, pointEventInfo);
|
|
1122
|
+
}
|
|
1123
|
+
}, "\u57CB\u70B9\u8BBE\u8BA1")), /*#__PURE__*/React.createElement("div", {
|
|
1124
|
+
className: "".concat(classPrefix, "-info-right")
|
|
1125
|
+
}, demandType == 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1126
|
+
className: "button",
|
|
1127
|
+
shape: "round",
|
|
1128
|
+
onClick: function onClick() {
|
|
1129
|
+
setStatusMethod(1);
|
|
1130
|
+
onCreate('save');
|
|
1131
|
+
}
|
|
1132
|
+
}, getLableValue(demandStatus, 'buttonName'))), demandType == 'manage' && (demandStatus == 2 || demandStatus == 102) && (/*#__PURE__*/React.createElement(Button, {
|
|
1133
|
+
className: "".concat(classPrefix, "-info-right-button forbiddenColor"),
|
|
1134
|
+
onClick: function onClick() {
|
|
1135
|
+
var list = pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.filter(function (item) {
|
|
1136
|
+
return selectedRowKeys.indexOf(item.id) == -1;
|
|
1137
|
+
});
|
|
1138
|
+
setPointEventInfo(list);
|
|
1139
|
+
onCreate('save', {
|
|
1140
|
+
pointEventIds: list.filter(function (res) {
|
|
1141
|
+
return res.id;
|
|
1142
|
+
}).map(function (res) {
|
|
1143
|
+
return res.id;
|
|
1144
|
+
}),
|
|
1145
|
+
pointEventStatus: list.map(function (res) {
|
|
1146
|
+
return res.status;
|
|
1147
|
+
}),
|
|
1148
|
+
eventList: list
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
}, "\u79FB\u9664")), demandType == 'manage' && (demandStatus == 3 || demandStatus == 4) && (/*#__PURE__*/React.createElement(Button, {
|
|
1152
|
+
className: "".concat(classPrefix, "-info-right-button forbiddenColor"),
|
|
1153
|
+
onClick: function onClick() {
|
|
1154
|
+
setStatusMethod(2);
|
|
1155
|
+
onCreate('save');
|
|
714
1156
|
}
|
|
715
|
-
}, "\
|
|
1157
|
+
}, "\u9A73\u56DE")))), /*#__PURE__*/React.createElement(Table, {
|
|
716
1158
|
style: {
|
|
717
1159
|
width: '100%',
|
|
718
1160
|
borderRadius: 8,
|
|
719
1161
|
overflow: 'hidden'
|
|
720
1162
|
},
|
|
721
|
-
columns:
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
onClick: function onClick() {
|
|
728
|
-
removeInfo('event', record);
|
|
729
|
-
}
|
|
730
|
-
}, "\u79FB\u9664");
|
|
731
|
-
}
|
|
732
|
-
}]),
|
|
733
|
-
rowKey: "event_name",
|
|
1163
|
+
columns: newColumns(),
|
|
1164
|
+
rowKey: "id",
|
|
1165
|
+
rowSelection: {
|
|
1166
|
+
selectedRowKeys: selectedRowKeys,
|
|
1167
|
+
onChange: onSelectChange
|
|
1168
|
+
},
|
|
734
1169
|
scroll: {
|
|
735
1170
|
x: 755,
|
|
736
1171
|
y: window.innerHeight - 312
|
|
737
1172
|
},
|
|
738
1173
|
pagination: false,
|
|
739
|
-
dataSource: (
|
|
740
|
-
return
|
|
1174
|
+
dataSource: demandStatus != 101 ? getPointEventInfo() : getPointEventInfo().filter(function (res) {
|
|
1175
|
+
return res.status == tabIndex;
|
|
741
1176
|
})
|
|
742
|
-
}))))
|
|
1177
|
+
})))), demandStatus > 0 && (/*#__PURE__*/React.createElement("div", {
|
|
1178
|
+
className: "".concat(classPrefix, "-comment")
|
|
1179
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1180
|
+
className: "".concat(classPrefix, "-comment-tab")
|
|
1181
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1182
|
+
className: "".concat(classPrefix, "-comment-tab-btn ").concat(tabKey == 'comment' ? "".concat(classPrefix, "-comment-tab-btnActive") : ''),
|
|
1183
|
+
onClick: function onClick() {
|
|
1184
|
+
setTabKey('comment');
|
|
1185
|
+
getComments();
|
|
1186
|
+
}
|
|
1187
|
+
}, "\u8BC4\u8BBA"), /*#__PURE__*/React.createElement("div", {
|
|
1188
|
+
className: "".concat(classPrefix, "-comment-tab-btn ").concat(tabKey == 'history' ? "".concat(classPrefix, "-comment-tab-btnActive") : ''),
|
|
1189
|
+
onClick: function onClick() {
|
|
1190
|
+
setTabKey('history');
|
|
1191
|
+
getOperateList();
|
|
1192
|
+
}
|
|
1193
|
+
}, "\u64CD\u4F5C\u5386\u53F2")), /*#__PURE__*/React.createElement("div", {
|
|
1194
|
+
className: "".concat(classPrefix, "-comment-content")
|
|
1195
|
+
}, tabKey == 'comment' && comments.map(function (item) {
|
|
1196
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1197
|
+
className: "".concat(classPrefix, "-comment-list"),
|
|
1198
|
+
key: item.id
|
|
1199
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1200
|
+
className: "".concat(classPrefix, "-comment-list-name")
|
|
1201
|
+
}, item.creatorName, /*#__PURE__*/React.createElement("span", {
|
|
1202
|
+
className: "".concat(classPrefix, "-comment-list-time")
|
|
1203
|
+
}, item.createTime)), /*#__PURE__*/React.createElement("div", {
|
|
1204
|
+
className: "".concat(classPrefix, "-comment-list-text")
|
|
1205
|
+
}, item.comments));
|
|
1206
|
+
}), comments.length == 0 && tabKey == 'comment' && (/*#__PURE__*/React.createElement("div", {
|
|
1207
|
+
className: "".concat(classPrefix, "-comment-empty")
|
|
1208
|
+
}, "\u6682\u65E0\u8BC4\u8BBA")), tabKey == 'history' && operateList.map(function (item) {
|
|
1209
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1210
|
+
className: "".concat(classPrefix, "-history-list"),
|
|
1211
|
+
key: item.id,
|
|
1212
|
+
dangerouslySetInnerHTML: {
|
|
1213
|
+
__html: item.operateDesc
|
|
1214
|
+
}
|
|
1215
|
+
});
|
|
1216
|
+
}), operateList.length == 0 && tabKey == 'history' && (/*#__PURE__*/React.createElement("div", {
|
|
1217
|
+
className: "".concat(classPrefix, "-comment-empty")
|
|
1218
|
+
}, "\u6682\u65E0\u64CD\u4F5C\u5386\u53F2")))))), /*#__PURE__*/React.createElement("div", {
|
|
743
1219
|
className: "".concat(classPrefix, "-right"),
|
|
744
1220
|
id: "xsd4"
|
|
745
1221
|
}, nodeData.length ? (/*#__PURE__*/React.createElement(ProcessCanvas, {
|
|
@@ -758,36 +1234,173 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
758
1234
|
className: "".concat(classPrefix, "-right-title")
|
|
759
1235
|
}, "\u8282\u70B9\u9884\u89C8"))), /*#__PURE__*/React.createElement("div", {
|
|
760
1236
|
className: "".concat(classPrefix, "-footer")
|
|
761
|
-
}, !
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
type: 'primary',
|
|
765
|
-
onClick: onCreate
|
|
766
|
-
}, "\u786E\u5B9A")), !isDemo && isRead && isHandle && authority[17228364473] && (/*#__PURE__*/React.createElement(Button, {
|
|
767
|
-
type: 'primary',
|
|
768
|
-
onClick: function onClick() {
|
|
769
|
-
onDemand('deal');
|
|
770
|
-
}
|
|
771
|
-
}, "\u5904\u7406")), !isDemo && isRead && isWithdraw && authority[17228364473] && (/*#__PURE__*/React.createElement(Button, {
|
|
772
|
-
type: 'primary',
|
|
1237
|
+
}, !isDemo && demandType != 'get' && authority[1724922574] && [1, 2, 3, 4, 5, 6, 101].indexOf(demandStatus) != -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
1238
|
+
shape: "round",
|
|
1239
|
+
className: "forbiddenColor",
|
|
773
1240
|
onClick: function onClick() {
|
|
774
|
-
|
|
1241
|
+
Modal.confirm({
|
|
1242
|
+
wrapClassName: "".concat(classPrefix, "-confirm"),
|
|
1243
|
+
title: '提示',
|
|
1244
|
+
icon: null,
|
|
1245
|
+
closable: true,
|
|
1246
|
+
content: '您确定要关闭当前需求?',
|
|
1247
|
+
okText: '确定',
|
|
1248
|
+
cancelText: '取消',
|
|
1249
|
+
onOk: function onOk() {
|
|
1250
|
+
disableDemand();
|
|
1251
|
+
}
|
|
1252
|
+
});
|
|
775
1253
|
}
|
|
776
|
-
}, "\
|
|
1254
|
+
}, "\u5173\u95ED\u9700\u6C42")), demandType == 'edit' && /*#__PURE__*/React.createElement(Button, {
|
|
1255
|
+
onClick: onBack
|
|
1256
|
+
}, "\u53D6\u6D88"), !isDemo && authority[1724922574] && demandStatus > 0 && (/*#__PURE__*/React.createElement(Button, {
|
|
777
1257
|
shape: "round",
|
|
778
1258
|
className: "button",
|
|
779
1259
|
onClick: exportPDF
|
|
780
|
-
}, "\u5BFC\u51FA\u9700\u6C42PDF")), !isDemo &&
|
|
1260
|
+
}, "\u5BFC\u51FA\u9700\u6C42PDF")), !isDemo && authority[1724922705] && pointEventInfo && !!pointEventInfo.length && (/*#__PURE__*/React.createElement(Button, {
|
|
781
1261
|
shape: "round",
|
|
782
1262
|
className: "button",
|
|
783
1263
|
onClick: downloadData
|
|
784
|
-
}, "\u5BFC\u51FA\u57CB\u70B9\u8BBE\u8BA1"))
|
|
1264
|
+
}, "\u5BFC\u51FA\u57CB\u70B9\u8BBE\u8BA1")), /*#__PURE__*/React.createElement("div", {
|
|
1265
|
+
className: "".concat(classPrefix, "-footer-btnRight")
|
|
1266
|
+
}, !isDemo && demandType != 'get' && [2, 3, 4, 5, 6].indexOf(demandStatus) != -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
1267
|
+
type: 'default',
|
|
1268
|
+
className: "commentBtn",
|
|
1269
|
+
onClick: function onClick() {
|
|
1270
|
+
setUserSelectType('click');
|
|
1271
|
+
setUserSelect({});
|
|
1272
|
+
setShowUser(true);
|
|
1273
|
+
}
|
|
1274
|
+
}, "\u8F6C\u529E")), !isDemo && demandStatus > 0 && (/*#__PURE__*/React.createElement(Button, {
|
|
1275
|
+
type: 'default',
|
|
1276
|
+
className: "commentBtn",
|
|
1277
|
+
onClick: function onClick() {
|
|
1278
|
+
setCommentText('');
|
|
1279
|
+
setShowComment(true);
|
|
1280
|
+
}
|
|
1281
|
+
}, "\u6DFB\u52A0\u8BC4\u8BBA")), !isDemo && demandType == 'edit' && [0, 1, 2, 3, 4, 5, 6].indexOf(demandStatus) != -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
1282
|
+
type: 'primary',
|
|
1283
|
+
className: "commentBtn",
|
|
1284
|
+
onClick: function onClick() {
|
|
1285
|
+
return onCreate('on');
|
|
1286
|
+
}
|
|
1287
|
+
}, demandData ? '保存' : '提交')), !isDemo && demandStatus > 0 && demandStatus <= 6 && demandType == 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1288
|
+
type: 'primary',
|
|
1289
|
+
className: "commentBtn",
|
|
1290
|
+
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) {
|
|
1291
|
+
return [0, 2].indexOf(res.status) != -1;
|
|
1292
|
+
}).length) : false,
|
|
1293
|
+
onClick: submitMethod
|
|
1294
|
+
}, getLableValue(demandStatus, 'buttonName'))), !isDemo && demandStatus > 2 && demandStatus <= 4 && demandType == 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1295
|
+
type: 'primary',
|
|
1296
|
+
className: "commentBtn",
|
|
1297
|
+
disabled: !Boolean(pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.filter(function (res) {
|
|
1298
|
+
return res.status == 2;
|
|
1299
|
+
}).length),
|
|
1300
|
+
onClick: function onClick() {
|
|
1301
|
+
return Modal.confirm({
|
|
1302
|
+
wrapClassName: "".concat(classPrefix, "-confirm"),
|
|
1303
|
+
title: '提示',
|
|
1304
|
+
icon: null,
|
|
1305
|
+
closable: true,
|
|
1306
|
+
content: '您确定要重新设计需求?',
|
|
1307
|
+
okText: '确定',
|
|
1308
|
+
cancelText: '取消',
|
|
1309
|
+
onOk: function onOk() {
|
|
1310
|
+
submitApproval(2);
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
}, "\u91CD\u65B0\u8BBE\u8BA1")))), isShowBackConfirm ? (/*#__PURE__*/React.createElement(BackConfirm, {
|
|
785
1315
|
onOk: function onOk() {
|
|
786
1316
|
props.onBack && props.onBack();
|
|
787
1317
|
},
|
|
788
1318
|
onCancel: function onCancel() {
|
|
789
1319
|
setIsShowBackConfirm(false);
|
|
790
1320
|
}
|
|
791
|
-
})) : null
|
|
1321
|
+
})) : null, /*#__PURE__*/React.createElement(BizDialog, {
|
|
1322
|
+
title: "\u8BF7\u8F93\u5165\u8BC4\u8BBA",
|
|
1323
|
+
open: showComment,
|
|
1324
|
+
width: 520,
|
|
1325
|
+
className: "setting-bizDialog",
|
|
1326
|
+
closable: true,
|
|
1327
|
+
onOk: function onOk() {
|
|
1328
|
+
onCreateComment();
|
|
1329
|
+
},
|
|
1330
|
+
onCancel: function onCancel() {
|
|
1331
|
+
setShowComment(false);
|
|
1332
|
+
}
|
|
1333
|
+
}, /*#__PURE__*/React.createElement(Input.TextArea, {
|
|
1334
|
+
value: commentText,
|
|
1335
|
+
showCount: true,
|
|
1336
|
+
maxLength: 100,
|
|
1337
|
+
onChange: function onChange(val) {
|
|
1338
|
+
setCommentText(val.currentTarget.value);
|
|
1339
|
+
},
|
|
1340
|
+
placeholder: "\u8BC4\u8BBA\u5185\u5BB9.....",
|
|
1341
|
+
style: {
|
|
1342
|
+
height: 120,
|
|
1343
|
+
resize: 'none'
|
|
1344
|
+
}
|
|
1345
|
+
})), /*#__PURE__*/React.createElement(BizDialog, {
|
|
1346
|
+
title: "\u8BF7\u9009\u62E9\u5904\u7406\u4EBA",
|
|
1347
|
+
open: showUser,
|
|
1348
|
+
width: 520,
|
|
1349
|
+
className: "setting-bizDialog",
|
|
1350
|
+
closable: true,
|
|
1351
|
+
onOk: function onOk() {
|
|
1352
|
+
if (userSelect.id) {
|
|
1353
|
+
designateProcessor(userSelectType);
|
|
1354
|
+
setShowUser(false);
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1357
|
+
onCancel: function onCancel() {
|
|
1358
|
+
setShowUser(false);
|
|
1359
|
+
}
|
|
1360
|
+
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
1361
|
+
placeholder: "\u8BF7\u9009\u62E9\u5904\u7406\u4EBA",
|
|
1362
|
+
value: userSelect,
|
|
1363
|
+
options: userList || [],
|
|
1364
|
+
enableSearch: true,
|
|
1365
|
+
onChange: function onChange(e) {
|
|
1366
|
+
setUserSelect(e);
|
|
1367
|
+
},
|
|
1368
|
+
labelField: "userName",
|
|
1369
|
+
keyField: "id"
|
|
1370
|
+
})), /*#__PURE__*/React.createElement(BizDialog, {
|
|
1371
|
+
title: "\u8BF7\u9009\u62E9\u4E0A\u7EBF\u65F6\u95F4",
|
|
1372
|
+
open: showOnlineTime,
|
|
1373
|
+
width: 520,
|
|
1374
|
+
className: "setting-bizDialog",
|
|
1375
|
+
closable: true,
|
|
1376
|
+
onOk: function onOk() {
|
|
1377
|
+
if (onlineTime) {
|
|
1378
|
+
//走流程
|
|
1379
|
+
submitApproval(1);
|
|
1380
|
+
setShowOnlineTime(false);
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
onCancel: function onCancel() {
|
|
1384
|
+
setOnlineTime(null);
|
|
1385
|
+
setShowOnlineTime(false);
|
|
1386
|
+
}
|
|
1387
|
+
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
1388
|
+
className: "".concat(classPrefix, "-info-item-content-picker"),
|
|
1389
|
+
value: onlineTime,
|
|
1390
|
+
disabledDate: disabledDate,
|
|
1391
|
+
onChange: function onChange(e) {
|
|
1392
|
+
setIsEdit(true);
|
|
1393
|
+
setOnlineTime(e);
|
|
1394
|
+
},
|
|
1395
|
+
showTime: true
|
|
1396
|
+
})), /*#__PURE__*/React.createElement(CreateMetaDrawer, {
|
|
1397
|
+
isShow: createMetaShow,
|
|
1398
|
+
data: metaData,
|
|
1399
|
+
isEdit: false,
|
|
1400
|
+
// selectTreeName={props.selectTreeName}
|
|
1401
|
+
onClose: function onClose() {
|
|
1402
|
+
return setCreateMetaShow(false);
|
|
1403
|
+
}
|
|
1404
|
+
}));
|
|
792
1405
|
};
|
|
793
1406
|
export default CreateDemand;
|