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