@zgfe/modules-settings 2.0.0-zhongyuan.4 → 2.0.0-zhongyuan.41
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/index.js +7 -0
- package/es/modules/companySetting/user/index.less +363 -363
- package/es/modules/companySetting/user/invite.js +19 -0
- package/es/modules/createDemand/constants.d.ts +15 -2
- package/es/modules/createDemand/constants.js +57 -4
- package/es/modules/createDemand/index.js +769 -170
- package/es/modules/createDemand/styles/index.less +397 -277
- package/es/modules/demandManage/index.js +139 -160
- package/es/modules/demandManage/styles/index.less +155 -210
- package/es/modules/messageList/index.d.ts +1 -1
- package/es/modules/messageList/index.js +5 -5
- package/es/modules/personalSetting/demo/index.d.ts +3 -0
- package/es/modules/personalSetting/demo/index.js +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 +4 -0
- package/es/modules/pointMap/createMetaDrawer.js +651 -0
- package/es/modules/pointMap/pageInfo.js +323 -130
- package/es/modules/pointMap/record.d.ts +7 -0
- package/es/modules/pointMap/record.js +521 -0
- package/es/modules/pointMap/styles/pageInfo.less +420 -244
- package/es/modules/pointMap/styles/tree.css +145 -145
- package/es/modules/pointMap/styles/tree.less +149 -149
- 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/modules/systemSetting/document-setting/index.js +44 -15
- package/es/modules/systemSetting/index.css +161 -161
- package/es/modules/systemSetting/index.less +169 -169
- package/es/types/personal.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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,133 @@ 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
|
-
|
|
92
|
-
var _useState19 = useState(
|
|
93
|
-
_useState20 = _slicedToArray(_useState19,
|
|
94
|
-
|
|
95
|
-
setIsHandle = _useState20[1];
|
|
91
|
+
currentNodenumber = _useState18[0],
|
|
92
|
+
setCurrentNodenumber = _useState18[1];
|
|
93
|
+
var _useState19 = useState(props.isRead),
|
|
94
|
+
_useState20 = _slicedToArray(_useState19, 1),
|
|
95
|
+
isRead = _useState20[0];
|
|
96
96
|
var _useState21 = useState(false),
|
|
97
97
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
isShowBackConfirm = _useState22[0],
|
|
99
|
+
setIsShowBackConfirm = _useState22[1];
|
|
100
100
|
var _useState23 = useState(false),
|
|
101
101
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
isEdit = _useState24[0],
|
|
103
|
+
setIsEdit = _useState24[1];
|
|
104
|
+
// const [processingNode, setProcessingNode] = useState();
|
|
105
|
+
var _useState25 = useState(),
|
|
105
106
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
var _useState27 = useState(),
|
|
107
|
+
demandData = _useState26[0],
|
|
108
|
+
setDemandData = _useState26[1];
|
|
109
|
+
var _useState27 = useState(0),
|
|
109
110
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
demandStatus = _useState28[0],
|
|
112
|
+
setDemandStatus = _useState28[1];
|
|
113
|
+
//需求操作类型
|
|
114
|
+
var _useState29 = useState((props === null || props === void 0 ? void 0 : (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.type) || 'get'),
|
|
115
|
+
_useState30 = _slicedToArray(_useState29, 1),
|
|
116
|
+
demandType = _useState30[0];
|
|
117
|
+
//埋点列表选择key
|
|
118
|
+
var _useState31 = useState([]),
|
|
117
119
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
selectedRowKeys = _useState32[0],
|
|
121
|
+
setSelectedRowKeys = _useState32[1];
|
|
122
|
+
//公司用户列表
|
|
123
|
+
var _useState33 = useState([]),
|
|
124
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
|
125
|
+
userList = _useState34[0],
|
|
126
|
+
setUserList = _useState34[1];
|
|
123
127
|
var _useState35 = useState(false),
|
|
124
128
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
var _useState37 = useState(
|
|
129
|
+
showUser = _useState36[0],
|
|
130
|
+
setShowUser = _useState36[1];
|
|
131
|
+
var _useState37 = useState({}),
|
|
128
132
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
var _useState39 = useState(),
|
|
133
|
+
userSelect = _useState38[0],
|
|
134
|
+
setUserSelect = _useState38[1];
|
|
135
|
+
var _useState39 = useState(''),
|
|
132
136
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
137
|
+
userSelectType = _useState40[0],
|
|
138
|
+
setUserSelectType = _useState40[1];
|
|
139
|
+
//评论参数列表
|
|
140
|
+
var _useState41 = useState('comment'),
|
|
136
141
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
137
|
-
|
|
138
|
-
|
|
142
|
+
tabKey = _useState42[0],
|
|
143
|
+
setTabKey = _useState42[1];
|
|
144
|
+
var _useState43 = useState([]),
|
|
145
|
+
_useState44 = _slicedToArray(_useState43, 2),
|
|
146
|
+
comments = _useState44[0],
|
|
147
|
+
setComments = _useState44[1];
|
|
148
|
+
var _useState45 = useState(''),
|
|
149
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
150
|
+
commentText = _useState46[0],
|
|
151
|
+
setCommentText = _useState46[1];
|
|
152
|
+
var _useState47 = useState([]),
|
|
153
|
+
_useState48 = _slicedToArray(_useState47, 2),
|
|
154
|
+
operateList = _useState48[0],
|
|
155
|
+
setOperateList = _useState48[1];
|
|
156
|
+
var _useState49 = useState(false),
|
|
157
|
+
_useState50 = _slicedToArray(_useState49, 2),
|
|
158
|
+
showComment = _useState50[0],
|
|
159
|
+
setShowComment = _useState50[1];
|
|
160
|
+
//上线时间
|
|
161
|
+
var _useState51 = useState(false),
|
|
162
|
+
_useState52 = _slicedToArray(_useState51, 2),
|
|
163
|
+
showOnlineTime = _useState52[0],
|
|
164
|
+
setShowOnlineTime = _useState52[1];
|
|
165
|
+
var _useState53 = useState(),
|
|
166
|
+
_useState54 = _slicedToArray(_useState53, 2),
|
|
167
|
+
onlineTime = _useState54[0],
|
|
168
|
+
setOnlineTime = _useState54[1];
|
|
169
|
+
//设置时间
|
|
170
|
+
var _useState55 = useState(1),
|
|
171
|
+
_useState56 = _slicedToArray(_useState55, 2),
|
|
172
|
+
tabIndex = _useState56[0],
|
|
173
|
+
setTabIndex = _useState56[1];
|
|
174
|
+
//查看埋点内容
|
|
175
|
+
var _useState57 = useState(false),
|
|
176
|
+
_useState58 = _slicedToArray(_useState57, 2),
|
|
177
|
+
createMetaShow = _useState58[0],
|
|
178
|
+
setCreateMetaShow = _useState58[1];
|
|
179
|
+
var _useState59 = useState({}),
|
|
180
|
+
_useState60 = _slicedToArray(_useState59, 2),
|
|
181
|
+
metaData = _useState60[0],
|
|
182
|
+
setMetaData = _useState60[1];
|
|
139
183
|
useEffect(function () {
|
|
140
184
|
if (props.demandId) {
|
|
141
185
|
getDemand();
|
|
@@ -143,10 +187,10 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
143
187
|
getNode();
|
|
144
188
|
}
|
|
145
189
|
}, [props.demandId]);
|
|
146
|
-
var
|
|
147
|
-
|
|
148
|
-
isControl =
|
|
149
|
-
setIsControl =
|
|
190
|
+
var _useState61 = useState(false),
|
|
191
|
+
_useState62 = _slicedToArray(_useState61, 2),
|
|
192
|
+
isControl = _useState62[0],
|
|
193
|
+
setIsControl = _useState62[1];
|
|
150
194
|
var getAppAutoEvent = function getAppAutoEvent() {
|
|
151
195
|
request(apis.getAppAutoEvent, {
|
|
152
196
|
method: 'post',
|
|
@@ -162,27 +206,17 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
162
206
|
});
|
|
163
207
|
};
|
|
164
208
|
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)));
|
|
209
|
+
if (props.data && props.data.demand && (props === null || props === void 0 ? void 0 : props.data.demand.demandName)) {
|
|
210
|
+
setDemandName(props === null || props === void 0 ? void 0 : props.data.demand.demandName);
|
|
211
|
+
setDemandDescribe(props === null || props === void 0 ? void 0 : props.data.demand.demandDescribe);
|
|
212
|
+
setCompletionTime(moment(new Date(props === null || props === void 0 ? void 0 : props.data.demand.completionTime)));
|
|
169
213
|
setDemandFile({
|
|
170
|
-
fileName: props.data.demand.fileName,
|
|
171
|
-
filePath: props.data.demand.filePath
|
|
214
|
+
fileName: props === null || props === void 0 ? void 0 : props.data.demand.fileName,
|
|
215
|
+
filePath: props === null || props === void 0 ? void 0 : props.data.demand.filePath
|
|
172
216
|
});
|
|
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
217
|
}
|
|
181
218
|
getAppAutoEvent();
|
|
182
219
|
}, []);
|
|
183
|
-
// useEffect(() => {
|
|
184
|
-
// setIsEdit(true);
|
|
185
|
-
// }, [props.saveObj]);
|
|
186
220
|
var getDemand = function getDemand() {
|
|
187
221
|
request(apis.getDemand, {
|
|
188
222
|
method: 'POST',
|
|
@@ -191,7 +225,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
191
225
|
id: props.demandId
|
|
192
226
|
}
|
|
193
227
|
}).then(function (res) {
|
|
194
|
-
// console.log('res', res);
|
|
195
228
|
if (!res) {
|
|
196
229
|
setTimeout(function () {
|
|
197
230
|
router && (router === null || router === void 0 ? void 0 : router.replace({
|
|
@@ -212,12 +245,12 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
212
245
|
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
246
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
214
247
|
describe: item.pointDescribe,
|
|
215
|
-
pageImgUrl: item.pageImgUrl
|
|
216
|
-
imgPath: item.
|
|
248
|
+
pageImgUrl: item.pageImgUrl || '',
|
|
249
|
+
imgPath: item.imgPath || ''
|
|
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
|
};
|
|
@@ -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,28 +349,28 @@ 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: type != 'flow' ? 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
|
+
}
|
|
314
368
|
// props.onSubmit && props.onSubmit()
|
|
315
369
|
} else {
|
|
316
370
|
message.error('保存失败');
|
|
317
371
|
}
|
|
318
372
|
});
|
|
319
373
|
};
|
|
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
374
|
var downloadFile = function downloadFile() {
|
|
329
375
|
if (!isRead) return;
|
|
330
376
|
request(apis.fileDownload, {
|
|
@@ -344,25 +390,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
344
390
|
a.click();
|
|
345
391
|
});
|
|
346
392
|
};
|
|
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
393
|
var gotoPage = function gotoPage(type, data) {
|
|
365
|
-
// console.log('data', data);
|
|
366
394
|
switch (type) {
|
|
367
395
|
case 'event':
|
|
368
396
|
window.open('/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage?key=' + data, '_blank');
|
|
@@ -373,8 +401,6 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
373
401
|
default:
|
|
374
402
|
break;
|
|
375
403
|
}
|
|
376
|
-
// setEventAttrListShow(true);
|
|
377
|
-
// setEventProp(record.event_attrs);
|
|
378
404
|
};
|
|
379
405
|
var onBack = function onBack() {
|
|
380
406
|
if (isEdit) {
|
|
@@ -564,6 +590,315 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
564
590
|
props.onDemand && props.onDemand(type, demandData);
|
|
565
591
|
}
|
|
566
592
|
};
|
|
593
|
+
//埋点状态样式
|
|
594
|
+
//status 0 待开始 1 完成 2 失败
|
|
595
|
+
var statusDiv = function statusDiv(status) {
|
|
596
|
+
//设计中
|
|
597
|
+
if (demandStatus == 2) {
|
|
598
|
+
if (status == 0) {
|
|
599
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
600
|
+
style: {
|
|
601
|
+
color: '#fda145'
|
|
602
|
+
}
|
|
603
|
+
}, "\u8BBE\u8BA1\u4E2D");
|
|
604
|
+
} else {
|
|
605
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
606
|
+
style: {
|
|
607
|
+
color: '#2cbe54'
|
|
608
|
+
}
|
|
609
|
+
}, "\u8BBE\u8BA1\u5B8C\u6210");
|
|
610
|
+
}
|
|
611
|
+
} else if (demandStatus == 3 || demandStatus == 4) {
|
|
612
|
+
if (status == 0) {
|
|
613
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
614
|
+
style: {
|
|
615
|
+
color: '#fda145'
|
|
616
|
+
}
|
|
617
|
+
}, "\u5F85\u5BA1\u6838");
|
|
618
|
+
} else if (status == 1) {
|
|
619
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
620
|
+
style: {
|
|
621
|
+
color: '#2cbe54'
|
|
622
|
+
}
|
|
623
|
+
}, "\u5BA1\u6838\u901A\u8FC7");
|
|
624
|
+
} else {
|
|
625
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
626
|
+
style: {
|
|
627
|
+
color: '#fb5547'
|
|
628
|
+
}
|
|
629
|
+
}, "\u5BA1\u6838\u672A\u901A\u8FC7");
|
|
630
|
+
}
|
|
631
|
+
} else if (demandStatus == 5) {
|
|
632
|
+
if (status == 0) {
|
|
633
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
634
|
+
style: {
|
|
635
|
+
color: '#fda145'
|
|
636
|
+
}
|
|
637
|
+
}, "\u5F00\u53D1\u4E2D");
|
|
638
|
+
} else {
|
|
639
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
640
|
+
style: {
|
|
641
|
+
color: '#2cbe54'
|
|
642
|
+
}
|
|
643
|
+
}, "\u5F00\u53D1\u5B8C\u6210");
|
|
644
|
+
}
|
|
645
|
+
} else if (demandStatus == 6) {
|
|
646
|
+
if (status == 0) {
|
|
647
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
648
|
+
style: {
|
|
649
|
+
color: '#fda145'
|
|
650
|
+
}
|
|
651
|
+
}, "\u6D4B\u8BD5\u4E2D");
|
|
652
|
+
} else {
|
|
653
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
654
|
+
style: {
|
|
655
|
+
color: '#2cbe54'
|
|
656
|
+
}
|
|
657
|
+
}, "\u6D4B\u8BD5\u5B8C\u6210");
|
|
658
|
+
}
|
|
659
|
+
} else if (demandStatus == 101) {
|
|
660
|
+
if (status == 0) {
|
|
661
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
662
|
+
style: {
|
|
663
|
+
color: '#fda145'
|
|
664
|
+
}
|
|
665
|
+
}, "\u672A\u4E0A\u7EBF");
|
|
666
|
+
} else {
|
|
667
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
668
|
+
style: {
|
|
669
|
+
color: '#2cbe54'
|
|
670
|
+
}
|
|
671
|
+
}, "\u5DF2\u4E0A\u7EBF");
|
|
672
|
+
}
|
|
673
|
+
} else if (demandStatus == 102) {
|
|
674
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
675
|
+
style: {
|
|
676
|
+
color: '#fb5547'
|
|
677
|
+
}
|
|
678
|
+
}, "\u9700\u6C42\u5173\u95ED");
|
|
679
|
+
}
|
|
680
|
+
};
|
|
681
|
+
// 新的埋点表格列表
|
|
682
|
+
var newColumns = function newColumns() {
|
|
683
|
+
var columns = [].concat(_toConsumableArray(columnsEvent(gotoPage, isControl, getPointMap)), [{
|
|
684
|
+
title: '状态',
|
|
685
|
+
width: 120,
|
|
686
|
+
dataIndex: 'status',
|
|
687
|
+
render: function render(status) {
|
|
688
|
+
return statusDiv(status);
|
|
689
|
+
}
|
|
690
|
+
}]);
|
|
691
|
+
//处于需求完成和埋点信息为上线状态
|
|
692
|
+
if (demandStatus == 101 && tabIndex == 1) {
|
|
693
|
+
columns.push({
|
|
694
|
+
title: '是否有数据上报',
|
|
695
|
+
width: 150,
|
|
696
|
+
dataIndex: 'hasData',
|
|
697
|
+
render: function render(hasData) {
|
|
698
|
+
return hasData == 1 ? (/*#__PURE__*/React.createElement("div", {
|
|
699
|
+
style: {
|
|
700
|
+
color: '#2cbe54'
|
|
701
|
+
}
|
|
702
|
+
}, "\u662F")) : (/*#__PURE__*/React.createElement("div", {
|
|
703
|
+
style: {
|
|
704
|
+
color: '#fb5547'
|
|
705
|
+
}
|
|
706
|
+
}, "\u5426"));
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
//埋点列表label数据
|
|
711
|
+
return columns;
|
|
712
|
+
};
|
|
713
|
+
//埋点需求列表选择
|
|
714
|
+
var onSelectChange = function onSelectChange(val) {
|
|
715
|
+
setSelectedRowKeys(val);
|
|
716
|
+
};
|
|
717
|
+
//获取评论
|
|
718
|
+
var getComments = function getComments() {
|
|
719
|
+
var _props$data2;
|
|
720
|
+
request(apis.setting.getComments, {
|
|
721
|
+
method: 'POST',
|
|
722
|
+
data: {
|
|
723
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
724
|
+
id: props.demandId || ((_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.demand.id)
|
|
725
|
+
}
|
|
726
|
+
}).then(function (res) {
|
|
727
|
+
if (res && res.code == '100000') {
|
|
728
|
+
setComments(res.data);
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
};
|
|
732
|
+
//新增评论
|
|
733
|
+
var onCreateComment = function onCreateComment() {
|
|
734
|
+
var _props$data3;
|
|
735
|
+
request(apis.setting.addComments, {
|
|
736
|
+
method: 'POST',
|
|
737
|
+
data: {
|
|
738
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
739
|
+
id: props.demandId || ((_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.demand.id),
|
|
740
|
+
comments: commentText
|
|
741
|
+
}
|
|
742
|
+
}).then(function (res) {
|
|
743
|
+
if (res && res.code == '100000') {
|
|
744
|
+
setShowComment(false);
|
|
745
|
+
getComments();
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
};
|
|
749
|
+
//获取历史记录
|
|
750
|
+
var getOperateList = function getOperateList() {
|
|
751
|
+
var _props$data4;
|
|
752
|
+
request(apis.setting.operateList, {
|
|
753
|
+
method: 'POST',
|
|
754
|
+
data: {
|
|
755
|
+
id: props.demandId || ((_props$data4 = props.data) === null || _props$data4 === void 0 ? void 0 : _props$data4.demand.id),
|
|
756
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
757
|
+
}
|
|
758
|
+
}).then(function (res) {
|
|
759
|
+
if (res && res.code == '100000') {
|
|
760
|
+
setOperateList(res.data);
|
|
761
|
+
}
|
|
762
|
+
});
|
|
763
|
+
};
|
|
764
|
+
//获取公司所有人员列表
|
|
765
|
+
var getUserList = function getUserList() {
|
|
766
|
+
request(apis.queryUserByCompanyId, {
|
|
767
|
+
method: 'get'
|
|
768
|
+
}).then(function (res) {
|
|
769
|
+
if (res === null || res === void 0 ? void 0 : res.data) {
|
|
770
|
+
setUserList(res.data.map(function (item) {
|
|
771
|
+
item.userName = item.userName || item.email;
|
|
772
|
+
return item;
|
|
773
|
+
}));
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
};
|
|
777
|
+
//修改转办人
|
|
778
|
+
var designateProcessor = function designateProcessor() {
|
|
779
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'click';
|
|
780
|
+
if (type == 'click') {
|
|
781
|
+
var _props$data5;
|
|
782
|
+
request(apis.setting.designateProcessor, {
|
|
783
|
+
method: 'POST',
|
|
784
|
+
data: {
|
|
785
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
786
|
+
id: props.demandId || ((_props$data5 = props.data) === null || _props$data5 === void 0 ? void 0 : _props$data5.demand.id),
|
|
787
|
+
processorId: userSelect.id,
|
|
788
|
+
processorName: userSelect.userName
|
|
789
|
+
}
|
|
790
|
+
}).then(function (res) {
|
|
791
|
+
if (res && res.code == '100000') {
|
|
792
|
+
setShowUser(false);
|
|
793
|
+
if (props.data && props.data.demand) {
|
|
794
|
+
setDemandData(function (val) {
|
|
795
|
+
val.demand.currentProcessorName = userSelect.userName;
|
|
796
|
+
return _objectSpread({}, val);
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
notification.success({
|
|
800
|
+
message: '修改成功'
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
});
|
|
804
|
+
} else {
|
|
805
|
+
submitApproval(1);
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
//关闭功能
|
|
809
|
+
var disableDemand = function disableDemand() {
|
|
810
|
+
var _props$data6, _props$data7;
|
|
811
|
+
request(apis.setting.disableDemand, {
|
|
812
|
+
method: 'post',
|
|
813
|
+
data: {
|
|
814
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
815
|
+
id: props.demandId || ((_props$data6 = props.data) === null || _props$data6 === void 0 ? void 0 : _props$data6.demand.id),
|
|
816
|
+
creatorId: (_props$data7 = props.data) === null || _props$data7 === void 0 ? void 0 : _props$data7.demand.creatorId
|
|
817
|
+
}
|
|
818
|
+
}).then(function (res) {
|
|
819
|
+
if (res && res.code === '100000') {
|
|
820
|
+
notification.success({
|
|
821
|
+
message: '关闭成功'
|
|
822
|
+
});
|
|
823
|
+
props.onBack && props.onBack();
|
|
824
|
+
}
|
|
825
|
+
}).catch(function (err) {
|
|
826
|
+
console.log(err);
|
|
827
|
+
});
|
|
828
|
+
};
|
|
829
|
+
//下一个流程按钮
|
|
830
|
+
var submitMethod = function submitMethod() {
|
|
831
|
+
//当流程为待设时需要选择转办人
|
|
832
|
+
if (demandStatus == 6) {
|
|
833
|
+
//选择上线时间
|
|
834
|
+
setOnlineTime(moment());
|
|
835
|
+
setShowOnlineTime(true);
|
|
836
|
+
} else {
|
|
837
|
+
setUserSelect({});
|
|
838
|
+
setUserSelectType('submit');
|
|
839
|
+
setShowUser(true);
|
|
840
|
+
}
|
|
841
|
+
};
|
|
842
|
+
//提交进入下一个流程
|
|
843
|
+
var submitApproval = function submitApproval(status) {
|
|
844
|
+
var _props$data8;
|
|
845
|
+
setIsEdit(false);
|
|
846
|
+
//先保存当前设置
|
|
847
|
+
onCreate('flow');
|
|
848
|
+
//提交进入下一个流程
|
|
849
|
+
request(apis.submitApproval, {
|
|
850
|
+
method: 'post',
|
|
851
|
+
data: {
|
|
852
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
853
|
+
id: props.demandId || ((_props$data8 = props.data) === null || _props$data8 === void 0 ? void 0 : _props$data8.demand.id),
|
|
854
|
+
approveStatus: status,
|
|
855
|
+
processorId: userSelect.id,
|
|
856
|
+
processorName: userSelect.userName,
|
|
857
|
+
onlineTime: onlineTime
|
|
858
|
+
}
|
|
859
|
+
}).then(function (res) {
|
|
860
|
+
if (res && res.code === '100000') {
|
|
861
|
+
notification.success({
|
|
862
|
+
message: '提交成功'
|
|
863
|
+
});
|
|
864
|
+
setShowUser(false);
|
|
865
|
+
props.onBack && props.onBack();
|
|
866
|
+
} else {
|
|
867
|
+
notification.success({
|
|
868
|
+
message: res.msg
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
}).catch(function (err) {
|
|
872
|
+
console.log(err);
|
|
873
|
+
});
|
|
874
|
+
};
|
|
875
|
+
//批量完成设计
|
|
876
|
+
var setStatusMethod = function setStatusMethod(status) {
|
|
877
|
+
setPointEventInfo(pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
878
|
+
if (selectedRowKeys.indexOf(item.id) != -1) {
|
|
879
|
+
item.status = status;
|
|
880
|
+
}
|
|
881
|
+
return item;
|
|
882
|
+
}));
|
|
883
|
+
};
|
|
884
|
+
//埋点地图列表
|
|
885
|
+
var getPointEventInfo = function getPointEventInfo() {
|
|
886
|
+
return pointEventInfo.filter(function (item) {
|
|
887
|
+
return new RegExp(_.escapeRegExp(eventKey), 'i').test((item.eventName || '') + (item.pageName || ''));
|
|
888
|
+
});
|
|
889
|
+
};
|
|
890
|
+
//查询当前节点信息数据
|
|
891
|
+
var getLableValue = function getLableValue(status, key) {
|
|
892
|
+
var data = demandTabList.filter(function (res) {
|
|
893
|
+
return res.value == status;
|
|
894
|
+
})[0];
|
|
895
|
+
return data[key];
|
|
896
|
+
};
|
|
897
|
+
//查看埋点详情
|
|
898
|
+
var getPointMap = function getPointMap(data) {
|
|
899
|
+
setMetaData(data);
|
|
900
|
+
setCreateMetaShow(true);
|
|
901
|
+
};
|
|
567
902
|
return /*#__PURE__*/React.createElement("div", {
|
|
568
903
|
className: classPrefix
|
|
569
904
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -582,7 +917,31 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
582
917
|
}, /*#__PURE__*/React.createElement("div", {
|
|
583
918
|
id: "system-setting-demand-info",
|
|
584
919
|
className: "".concat(classPrefix, "-info-img")
|
|
920
|
+
}, demandData && demandData.demand && demandStatus > 0 && (/*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("div", {
|
|
921
|
+
className: "".concat(classPrefix, "-info-item")
|
|
922
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
923
|
+
className: "".concat(classPrefix, "-info-item-txt")
|
|
924
|
+
}, "\u9700\u6C42ID"), /*#__PURE__*/React.createElement("div", {
|
|
925
|
+
className: "".concat(classPrefix, "-info-item-content")
|
|
926
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
927
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
928
|
+
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.id)))), /*#__PURE__*/React.createElement("div", {
|
|
929
|
+
className: "".concat(classPrefix, "-info-item")
|
|
585
930
|
}, /*#__PURE__*/React.createElement("div", {
|
|
931
|
+
className: "".concat(classPrefix, "-info-item-txt")
|
|
932
|
+
}, "\u521B\u5EFA\u4EBA"), /*#__PURE__*/React.createElement("div", {
|
|
933
|
+
className: "".concat(classPrefix, "-info-item-content")
|
|
934
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
935
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
936
|
+
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.creatorName)))), demandStatus > 1 && (/*#__PURE__*/React.createElement("div", {
|
|
937
|
+
className: "".concat(classPrefix, "-info-item")
|
|
938
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
939
|
+
className: "".concat(classPrefix, "-info-item-txt")
|
|
940
|
+
}, "\u5904\u7406\u4EBA"), /*#__PURE__*/React.createElement("div", {
|
|
941
|
+
className: "".concat(classPrefix, "-info-item-content")
|
|
942
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
943
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
944
|
+
}, demandData && (demandData === null || demandData === void 0 ? void 0 : demandData.demand.currentProcessorName))))))), /*#__PURE__*/React.createElement("div", {
|
|
586
945
|
className: "".concat(classPrefix, "-info-item")
|
|
587
946
|
}, /*#__PURE__*/React.createElement("div", {
|
|
588
947
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
@@ -599,14 +958,14 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
599
958
|
setIsEdit(true);
|
|
600
959
|
setDemandName(e.currentTarget.value);
|
|
601
960
|
},
|
|
602
|
-
disabled: isRead
|
|
961
|
+
disabled: isRead || demandStatus == 102 || demandStatus == 101 || demandType == 'manage'
|
|
603
962
|
}), /*#__PURE__*/React.createElement("div", {
|
|
604
963
|
className: "".concat(classPrefix, "-info-item-content-input-num")
|
|
605
964
|
}, /*#__PURE__*/React.createElement("span", {
|
|
606
965
|
style: {
|
|
607
966
|
color: '#021429'
|
|
608
967
|
}
|
|
609
|
-
}, demandName.length), /*#__PURE__*/React.createElement("span", null, "/20")))), /*#__PURE__*/React.createElement("div", {
|
|
968
|
+
}, demandName ? demandName.length : 0), /*#__PURE__*/React.createElement("span", null, "/20")))), /*#__PURE__*/React.createElement("div", {
|
|
610
969
|
className: "".concat(classPrefix, "-info-item")
|
|
611
970
|
}, /*#__PURE__*/React.createElement("div", {
|
|
612
971
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
@@ -621,7 +980,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
621
980
|
setCompletionTime(e);
|
|
622
981
|
},
|
|
623
982
|
showTime: true,
|
|
624
|
-
disabled: isRead
|
|
983
|
+
disabled: isRead || demandStatus == 102 || demandStatus == 101 || demandType == 'manage'
|
|
625
984
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
626
985
|
className: "".concat(classPrefix, "-info-item")
|
|
627
986
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -640,7 +999,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
640
999
|
setIsEdit(true);
|
|
641
1000
|
setDemandDescribe(e.currentTarget.value);
|
|
642
1001
|
},
|
|
643
|
-
disabled: isRead
|
|
1002
|
+
disabled: isRead || demandStatus == 102 || demandStatus == 101 || demandType == 'manage'
|
|
644
1003
|
}), /*#__PURE__*/React.createElement("div", {
|
|
645
1004
|
className: "".concat(classPrefix, "-info-item-content-input-num")
|
|
646
1005
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -662,7 +1021,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
662
1021
|
onClick: function onClick() {
|
|
663
1022
|
downloadFile();
|
|
664
1023
|
}
|
|
665
|
-
}, demandFile.fileName), !isRead && (/*#__PURE__*/React.createElement(IconFont, {
|
|
1024
|
+
}, demandFile.fileName), !isRead && demandType != 'manage' && (/*#__PURE__*/React.createElement(IconFont, {
|
|
666
1025
|
type: "qingchu",
|
|
667
1026
|
style: {
|
|
668
1027
|
color: '#67727F'
|
|
@@ -673,14 +1032,22 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
673
1032
|
})))) : (/*#__PURE__*/React.createElement("div", {
|
|
674
1033
|
className: "".concat(classPrefix, "-info-item-content-row")
|
|
675
1034
|
}, /*#__PURE__*/React.createElement(Upload, _objectSpread(_objectSpread({}, uploadProps), {}, {
|
|
676
|
-
disabled: isRead
|
|
1035
|
+
disabled: isRead || demandStatus == 102 || demandStatus == 101 || demandType == 'manage'
|
|
677
1036
|
}), /*#__PURE__*/React.createElement("div", {
|
|
678
1037
|
className: "".concat(classPrefix, "-info-item-content-btn")
|
|
679
1038
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
680
1039
|
type: "tianjia1"
|
|
681
1040
|
}), "\u6DFB\u52A0\u6587\u4EF6")), /*#__PURE__*/React.createElement("div", {
|
|
682
1041
|
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
683
|
-
}, "\uFF08\u652F\u6301 ZIP\u3001RAR \u683C\u5F0F\u300110M\u4EE5\u5185\uFF09")))))
|
|
1042
|
+
}, "\uFF08\u652F\u6301 ZIP\u3001RAR \u683C\u5F0F\u300110M\u4EE5\u5185\uFF09"))))), (demandStatus == 101 || demandStatus == 102) && (/*#__PURE__*/React.createElement("div", {
|
|
1043
|
+
className: "".concat(classPrefix, "-info-item")
|
|
1044
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1045
|
+
className: "".concat(classPrefix, "-info-item-txt")
|
|
1046
|
+
}, "\u4E0A\u7EBF\u65F6\u95F4"), /*#__PURE__*/React.createElement("div", {
|
|
1047
|
+
className: "".concat(classPrefix, "-info-item-content")
|
|
1048
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1049
|
+
className: "".concat(classPrefix, "-info-item-content-tip ").concat(classPrefix, "-info-item-content-ptxt")
|
|
1050
|
+
}, (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
1051
|
className: "".concat(classPrefix, "-info-item"),
|
|
685
1052
|
style: {
|
|
686
1053
|
paddingLeft: 24,
|
|
@@ -692,7 +1059,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
692
1059
|
className: "".concat(classPrefix, "-info-item-content")
|
|
693
1060
|
}, /*#__PURE__*/React.createElement("div", {
|
|
694
1061
|
className: "".concat(classPrefix, "-info-item-content-filter")
|
|
695
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
1062
|
+
}, demandStatus != 101 && (/*#__PURE__*/React.createElement(Input, {
|
|
696
1063
|
style: {
|
|
697
1064
|
width: 256
|
|
698
1065
|
},
|
|
@@ -704,42 +1071,138 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
704
1071
|
onChange: function onChange(e) {
|
|
705
1072
|
return setEventKey(e.target.value);
|
|
706
1073
|
}
|
|
707
|
-
}),
|
|
1074
|
+
})), demandStatus == 101 && (/*#__PURE__*/React.createElement("div", {
|
|
1075
|
+
className: "".concat(classPrefix, "-info-tabList")
|
|
1076
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1077
|
+
className: "".concat(classPrefix, "-info-tabList-item ").concat(tabIndex == 1 && "".concat(classPrefix, "-info-tabList-active")),
|
|
1078
|
+
onClick: function onClick() {
|
|
1079
|
+
setTabIndex(1);
|
|
1080
|
+
}
|
|
1081
|
+
}, "\u5DF2\u4E0A\u7EBF"), /*#__PURE__*/React.createElement("div", {
|
|
1082
|
+
className: "".concat(classPrefix, "-info-tabList-item ").concat(tabIndex == 0 && "".concat(classPrefix, "-info-tabList-active")),
|
|
1083
|
+
onClick: function onClick() {
|
|
1084
|
+
setTabIndex(0);
|
|
1085
|
+
}
|
|
1086
|
+
}, "\u672A\u4E0A\u7EBF"))), isRead ? null : demandStatus == 2 && (/*#__PURE__*/React.createElement(Button, {
|
|
708
1087
|
disabled: isRead,
|
|
709
1088
|
shape: "round",
|
|
710
1089
|
className: "button",
|
|
711
1090
|
onClick: function onClick() {
|
|
712
|
-
|
|
713
|
-
|
|
1091
|
+
props.setIsShowSelectList && props.setIsShowSelectList(function (val) {
|
|
1092
|
+
setPointEventInfo([].concat(_toConsumableArray(pointEventInfo || []), _toConsumableArray(val.map(function (val) {
|
|
1093
|
+
return _objectSpread(_objectSpread({}, val), {}, {
|
|
1094
|
+
status: 0
|
|
1095
|
+
});
|
|
1096
|
+
}))));
|
|
1097
|
+
onCreate('save', {
|
|
1098
|
+
pointEventIds: val.filter(function (res) {
|
|
1099
|
+
return res.id;
|
|
1100
|
+
}).map(function (res) {
|
|
1101
|
+
return res.id;
|
|
1102
|
+
}),
|
|
1103
|
+
pointEventStatus: val.map(function (res) {
|
|
1104
|
+
return 0;
|
|
1105
|
+
}),
|
|
1106
|
+
eventList: val
|
|
1107
|
+
});
|
|
1108
|
+
}, pointEventInfo);
|
|
714
1109
|
}
|
|
715
|
-
}, "\u57CB\u70B9\
|
|
1110
|
+
}, "\u57CB\u70B9\u8BBE\u8BA1")), /*#__PURE__*/React.createElement("div", {
|
|
1111
|
+
className: "".concat(classPrefix, "-info-right")
|
|
1112
|
+
}, isRead ? null : (/*#__PURE__*/React.createElement(Button, {
|
|
1113
|
+
className: "button",
|
|
1114
|
+
shape: "round",
|
|
1115
|
+
onClick: function onClick() {
|
|
1116
|
+
setStatusMethod(1);
|
|
1117
|
+
onCreate('save');
|
|
1118
|
+
}
|
|
1119
|
+
}, getLableValue(demandStatus, 'buttonName'))), isRead ? null : demandStatus == 2 && (/*#__PURE__*/React.createElement(Button, {
|
|
1120
|
+
className: "".concat(classPrefix, "-info-right-button forbiddenColor"),
|
|
1121
|
+
onClick: function onClick() {
|
|
1122
|
+
var list = pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.filter(function (item) {
|
|
1123
|
+
return selectedRowKeys.indexOf(item.id) == -1;
|
|
1124
|
+
});
|
|
1125
|
+
setPointEventInfo(list);
|
|
1126
|
+
onCreate('save', {
|
|
1127
|
+
pointEventIds: list.filter(function (res) {
|
|
1128
|
+
return res.id;
|
|
1129
|
+
}).map(function (res) {
|
|
1130
|
+
return res.id;
|
|
1131
|
+
}),
|
|
1132
|
+
pointEventStatus: list.map(function (res) {
|
|
1133
|
+
return res.status;
|
|
1134
|
+
}),
|
|
1135
|
+
eventList: list
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
}, "\u79FB\u9664")), isRead ? null : (demandStatus == 3 || demandStatus == 4) && (/*#__PURE__*/React.createElement(Button, {
|
|
1139
|
+
className: "".concat(classPrefix, "-info-right-button forbiddenColor"),
|
|
1140
|
+
onClick: function onClick() {
|
|
1141
|
+
setStatusMethod(2);
|
|
1142
|
+
onCreate('save');
|
|
1143
|
+
}
|
|
1144
|
+
}, "\u9A73\u56DE")))), /*#__PURE__*/React.createElement(Table, {
|
|
716
1145
|
style: {
|
|
717
1146
|
width: '100%',
|
|
718
1147
|
borderRadius: 8,
|
|
719
1148
|
overflow: 'hidden'
|
|
720
1149
|
},
|
|
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",
|
|
1150
|
+
columns: newColumns(),
|
|
1151
|
+
rowKey: "id",
|
|
1152
|
+
rowSelection: {
|
|
1153
|
+
selectedRowKeys: selectedRowKeys,
|
|
1154
|
+
onChange: onSelectChange
|
|
1155
|
+
},
|
|
734
1156
|
scroll: {
|
|
735
1157
|
x: 755,
|
|
736
1158
|
y: window.innerHeight - 312
|
|
737
1159
|
},
|
|
738
1160
|
pagination: false,
|
|
739
|
-
dataSource: (
|
|
740
|
-
return
|
|
1161
|
+
dataSource: demandStatus != 101 ? getPointEventInfo() : getPointEventInfo().filter(function (res) {
|
|
1162
|
+
return res.status == tabIndex;
|
|
741
1163
|
})
|
|
742
|
-
}))))
|
|
1164
|
+
})))), demandStatus > 0 && (/*#__PURE__*/React.createElement("div", {
|
|
1165
|
+
className: "".concat(classPrefix, "-comment")
|
|
1166
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1167
|
+
className: "".concat(classPrefix, "-comment-tab")
|
|
1168
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1169
|
+
className: "".concat(classPrefix, "-comment-tab-btn ").concat(tabKey == 'comment' ? "".concat(classPrefix, "-comment-tab-btnActive") : ''),
|
|
1170
|
+
onClick: function onClick() {
|
|
1171
|
+
setTabKey('comment');
|
|
1172
|
+
getComments();
|
|
1173
|
+
}
|
|
1174
|
+
}, "\u8BC4\u8BBA"), /*#__PURE__*/React.createElement("div", {
|
|
1175
|
+
className: "".concat(classPrefix, "-comment-tab-btn ").concat(tabKey == 'history' ? "".concat(classPrefix, "-comment-tab-btnActive") : ''),
|
|
1176
|
+
onClick: function onClick() {
|
|
1177
|
+
setTabKey('history');
|
|
1178
|
+
getOperateList();
|
|
1179
|
+
}
|
|
1180
|
+
}, "\u64CD\u4F5C\u5386\u53F2")), /*#__PURE__*/React.createElement("div", {
|
|
1181
|
+
className: "".concat(classPrefix, "-comment-content")
|
|
1182
|
+
}, tabKey == 'comment' && comments.map(function (item) {
|
|
1183
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1184
|
+
className: "".concat(classPrefix, "-comment-list"),
|
|
1185
|
+
key: item.id
|
|
1186
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1187
|
+
className: "".concat(classPrefix, "-comment-list-name")
|
|
1188
|
+
}, item.creatorName, /*#__PURE__*/React.createElement("span", {
|
|
1189
|
+
className: "".concat(classPrefix, "-comment-list-time")
|
|
1190
|
+
}, item.createTime)), /*#__PURE__*/React.createElement("div", {
|
|
1191
|
+
className: "".concat(classPrefix, "-comment-list-text")
|
|
1192
|
+
}, item.comments));
|
|
1193
|
+
}), comments.length == 0 && tabKey == 'comment' && (/*#__PURE__*/React.createElement("div", {
|
|
1194
|
+
className: "".concat(classPrefix, "-comment-empty")
|
|
1195
|
+
}, "\u6682\u65E0\u8BC4\u8BBA")), tabKey == 'history' && operateList.map(function (item) {
|
|
1196
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1197
|
+
className: "".concat(classPrefix, "-history-list"),
|
|
1198
|
+
key: item.id,
|
|
1199
|
+
dangerouslySetInnerHTML: {
|
|
1200
|
+
__html: item.operateDesc
|
|
1201
|
+
}
|
|
1202
|
+
});
|
|
1203
|
+
}), operateList.length == 0 && tabKey == 'history' && (/*#__PURE__*/React.createElement("div", {
|
|
1204
|
+
className: "".concat(classPrefix, "-comment-empty")
|
|
1205
|
+
}, "\u6682\u65E0\u64CD\u4F5C\u5386\u53F2")))))), /*#__PURE__*/React.createElement("div", {
|
|
743
1206
|
className: "".concat(classPrefix, "-right"),
|
|
744
1207
|
id: "xsd4"
|
|
745
1208
|
}, nodeData.length ? (/*#__PURE__*/React.createElement(ProcessCanvas, {
|
|
@@ -758,36 +1221,172 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
758
1221
|
className: "".concat(classPrefix, "-right-title")
|
|
759
1222
|
}, "\u8282\u70B9\u9884\u89C8"))), /*#__PURE__*/React.createElement("div", {
|
|
760
1223
|
className: "".concat(classPrefix, "-footer")
|
|
761
|
-
}, !isRead && /*#__PURE__*/React.createElement(Button, {
|
|
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',
|
|
1224
|
+
}, !isDemo && !isRead && authority[1724922574] && [1, 2, 3, 4, 5, 6, 101].indexOf(demandStatus) != -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
1225
|
+
shape: "round",
|
|
1226
|
+
className: "forbiddenColor",
|
|
773
1227
|
onClick: function onClick() {
|
|
774
|
-
|
|
1228
|
+
Modal.confirm({
|
|
1229
|
+
wrapClassName: "".concat(classPrefix, "-confirm"),
|
|
1230
|
+
title: '提示',
|
|
1231
|
+
icon: null,
|
|
1232
|
+
closable: true,
|
|
1233
|
+
content: '您确定要关闭当前需求?',
|
|
1234
|
+
okText: '确定',
|
|
1235
|
+
cancelText: '取消',
|
|
1236
|
+
onOk: function onOk() {
|
|
1237
|
+
disableDemand();
|
|
1238
|
+
}
|
|
1239
|
+
});
|
|
775
1240
|
}
|
|
776
|
-
}, "\
|
|
1241
|
+
}, "\u5173\u95ED\u9700\u6C42")), !isRead && demandStatus == 0 && /*#__PURE__*/React.createElement(Button, {
|
|
1242
|
+
onClick: onBack
|
|
1243
|
+
}, "\u53D6\u6D88"), !isDemo && authority[1724922574] && demandStatus > 0 && (/*#__PURE__*/React.createElement(Button, {
|
|
777
1244
|
shape: "round",
|
|
778
1245
|
className: "button",
|
|
779
1246
|
onClick: exportPDF
|
|
780
|
-
}, "\u5BFC\u51FA\u9700\u6C42PDF")), !isDemo &&
|
|
1247
|
+
}, "\u5BFC\u51FA\u9700\u6C42PDF")), !isDemo && authority[1724922705] && pointEventInfo && !!pointEventInfo.length && (/*#__PURE__*/React.createElement(Button, {
|
|
781
1248
|
shape: "round",
|
|
782
1249
|
className: "button",
|
|
783
1250
|
onClick: downloadData
|
|
784
|
-
}, "\u5BFC\u51FA\u57CB\u70B9\u8BBE\u8BA1"))
|
|
1251
|
+
}, "\u5BFC\u51FA\u57CB\u70B9\u8BBE\u8BA1")), /*#__PURE__*/React.createElement("div", {
|
|
1252
|
+
className: "".concat(classPrefix, "-footer-btnRight")
|
|
1253
|
+
}, !isDemo && !isRead && demandType == 'manage' && [2, 3, 4, 5, 6].indexOf(demandStatus) != -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
1254
|
+
type: 'default',
|
|
1255
|
+
className: "commentBtn",
|
|
1256
|
+
onClick: function onClick() {
|
|
1257
|
+
setUserSelectType('click');
|
|
1258
|
+
setUserSelect({});
|
|
1259
|
+
setShowUser(true);
|
|
1260
|
+
}
|
|
1261
|
+
}, "\u8F6C\u529E")), !isDemo && demandStatus > 0 && (/*#__PURE__*/React.createElement(Button, {
|
|
1262
|
+
type: 'default',
|
|
1263
|
+
className: "commentBtn",
|
|
1264
|
+
onClick: function onClick() {
|
|
1265
|
+
setCommentText('');
|
|
1266
|
+
setShowComment(true);
|
|
1267
|
+
}
|
|
1268
|
+
}, "\u6DFB\u52A0\u8BC4\u8BBA")), !isDemo && !isRead && [0, 1, 2, 3, 4, 5, 6].indexOf(demandStatus) != -1 && demandType != 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1269
|
+
type: 'primary',
|
|
1270
|
+
className: "commentBtn",
|
|
1271
|
+
onClick: function onClick() {
|
|
1272
|
+
return onCreate('on');
|
|
1273
|
+
}
|
|
1274
|
+
}, demandData ? '保存' : '提交')), !isDemo && !isRead && demandStatus > 0 && demandStatus <= 6 && demandType == 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1275
|
+
type: 'primary',
|
|
1276
|
+
className: "commentBtn",
|
|
1277
|
+
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) {
|
|
1278
|
+
return [0, 2].indexOf(res.status) != -1;
|
|
1279
|
+
}).length) : false,
|
|
1280
|
+
onClick: submitMethod
|
|
1281
|
+
}, getLableValue(demandStatus, 'buttonName'))), !isDemo && !isRead && demandStatus > 2 && demandStatus <= 4 && demandType == 'manage' && (/*#__PURE__*/React.createElement(Button, {
|
|
1282
|
+
type: 'primary',
|
|
1283
|
+
className: "commentBtn",
|
|
1284
|
+
onClick: function onClick() {
|
|
1285
|
+
return Modal.confirm({
|
|
1286
|
+
wrapClassName: "".concat(classPrefix, "-confirm"),
|
|
1287
|
+
title: '提示',
|
|
1288
|
+
icon: null,
|
|
1289
|
+
closable: true,
|
|
1290
|
+
content: '您确定要重新设计需求?',
|
|
1291
|
+
okText: '确定',
|
|
1292
|
+
cancelText: '取消',
|
|
1293
|
+
onOk: function onOk() {
|
|
1294
|
+
submitApproval(2);
|
|
1295
|
+
}
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1298
|
+
}, "\u91CD\u65B0\u8BBE\u8BA1")))), isShowBackConfirm ? (/*#__PURE__*/React.createElement(BackConfirm, {
|
|
785
1299
|
onOk: function onOk() {
|
|
786
1300
|
props.onBack && props.onBack();
|
|
787
1301
|
},
|
|
788
1302
|
onCancel: function onCancel() {
|
|
789
1303
|
setIsShowBackConfirm(false);
|
|
790
1304
|
}
|
|
791
|
-
})) : null
|
|
1305
|
+
})) : null, /*#__PURE__*/React.createElement(BizDialog, {
|
|
1306
|
+
title: "\u8BF7\u8F93\u5165\u8BC4\u8BBA",
|
|
1307
|
+
open: showComment,
|
|
1308
|
+
width: 520,
|
|
1309
|
+
className: "setting-bizDialog",
|
|
1310
|
+
closable: true,
|
|
1311
|
+
onOk: function onOk() {
|
|
1312
|
+
onCreateComment();
|
|
1313
|
+
},
|
|
1314
|
+
onCancel: function onCancel() {
|
|
1315
|
+
setShowComment(false);
|
|
1316
|
+
}
|
|
1317
|
+
}, /*#__PURE__*/React.createElement(Input.TextArea, {
|
|
1318
|
+
value: commentText,
|
|
1319
|
+
showCount: true,
|
|
1320
|
+
maxLength: 100,
|
|
1321
|
+
onChange: function onChange(val) {
|
|
1322
|
+
setCommentText(val.currentTarget.value);
|
|
1323
|
+
},
|
|
1324
|
+
placeholder: "\u8BC4\u8BBA\u5185\u5BB9.....",
|
|
1325
|
+
style: {
|
|
1326
|
+
height: 120,
|
|
1327
|
+
resize: 'none'
|
|
1328
|
+
}
|
|
1329
|
+
})), /*#__PURE__*/React.createElement(BizDialog, {
|
|
1330
|
+
title: "\u8BF7\u9009\u62E9\u5904\u7406\u4EBA",
|
|
1331
|
+
open: showUser,
|
|
1332
|
+
width: 520,
|
|
1333
|
+
className: "setting-bizDialog",
|
|
1334
|
+
closable: true,
|
|
1335
|
+
onOk: function onOk() {
|
|
1336
|
+
if (userSelect.id) {
|
|
1337
|
+
designateProcessor(userSelectType);
|
|
1338
|
+
setShowUser(false);
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
onCancel: function onCancel() {
|
|
1342
|
+
setShowUser(false);
|
|
1343
|
+
}
|
|
1344
|
+
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
1345
|
+
placeholder: "\u8BF7\u9009\u62E9\u5904\u7406\u4EBA",
|
|
1346
|
+
value: userSelect,
|
|
1347
|
+
options: userList || [],
|
|
1348
|
+
enableSearch: true,
|
|
1349
|
+
onChange: function onChange(e) {
|
|
1350
|
+
setUserSelect(e);
|
|
1351
|
+
},
|
|
1352
|
+
labelField: "userName",
|
|
1353
|
+
keyField: "id"
|
|
1354
|
+
})), /*#__PURE__*/React.createElement(BizDialog, {
|
|
1355
|
+
title: "\u8BF7\u9009\u62E9\u4E0A\u7EBF\u65F6\u95F4",
|
|
1356
|
+
open: showOnlineTime,
|
|
1357
|
+
width: 520,
|
|
1358
|
+
className: "setting-bizDialog",
|
|
1359
|
+
closable: true,
|
|
1360
|
+
onOk: function onOk() {
|
|
1361
|
+
if (onlineTime) {
|
|
1362
|
+
//走流程
|
|
1363
|
+
onCreate('flow');
|
|
1364
|
+
submitApproval(1);
|
|
1365
|
+
setShowOnlineTime(false);
|
|
1366
|
+
}
|
|
1367
|
+
},
|
|
1368
|
+
onCancel: function onCancel() {
|
|
1369
|
+
setOnlineTime(null);
|
|
1370
|
+
setShowOnlineTime(false);
|
|
1371
|
+
}
|
|
1372
|
+
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
1373
|
+
className: "".concat(classPrefix, "-info-item-content-picker"),
|
|
1374
|
+
value: onlineTime,
|
|
1375
|
+
disabledDate: disabledDate,
|
|
1376
|
+
onChange: function onChange(e) {
|
|
1377
|
+
setIsEdit(true);
|
|
1378
|
+
setOnlineTime(e);
|
|
1379
|
+
},
|
|
1380
|
+
showTime: true,
|
|
1381
|
+
disabled: isRead
|
|
1382
|
+
})), /*#__PURE__*/React.createElement(CreateMetaDrawer, {
|
|
1383
|
+
isShow: createMetaShow,
|
|
1384
|
+
data: metaData,
|
|
1385
|
+
isEdit: false,
|
|
1386
|
+
// selectTreeName={props.selectTreeName}
|
|
1387
|
+
onClose: function onClose() {
|
|
1388
|
+
return setCreateMetaShow(false);
|
|
1389
|
+
}
|
|
1390
|
+
}));
|
|
792
1391
|
};
|
|
793
1392
|
export default CreateDemand;
|