@zgfe/modules-settings 2.0.0-zhongyuan.8 → 2.1.0-zhongyuan-set.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -33
- package/es/components/card/index.less +87 -87
- 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/components/pageLoading/index.less +7 -7
- package/es/components/picCircleSelect/bak/index copy 2.tsx.bak +92 -92
- package/es/components/picCircleSelect/bak/index copy 3.tsx.bak +58 -58
- package/es/components/picCircleSelect/bak/index copy 4.tsx.bak +66 -66
- package/es/components/picCircleSelect/bak/index copy 5.tsx.bak +116 -116
- package/es/components/picCircleSelect/bak/index copy 6.tsx.bak +116 -116
- package/es/components/picCircleSelect/bak/index copy.tsx.bak +41 -41
- package/es/components/picCircleSelect/bak/index.tsx.bak +48 -48
- package/es/components/picCircleSelect/bak/index1.tsx.bak +46 -46
- package/es/components/picCircleSelect/bak/index2.tsx.bak +104 -104
- package/es/components/picCircleSelect/index.less +37 -37
- package/es/components/processCanvas/styles/customNode.less +149 -149
- package/es/components/processCanvas/styles/index.less +34 -34
- package/es/components/settingTabs/index.less +51 -51
- package/es/constants/api.d.ts +30 -0
- package/es/constants/api.js +43 -1
- package/es/constants/icons/demo.css +539 -539
- package/es/constants/icons/demo_index.html +9871 -9871
- package/es/constants/icons/iconfont.css +1699 -1699
- package/es/constants/icons/iconfont.json +2956 -2956
- package/es/global.d.ts +4 -4
- package/es/modules/appSettings/dataAccessFilter/index.js +2 -1
- package/es/modules/appSettings/dataAccessFilter/index.less +5 -5
- package/es/modules/appSettings/virtualSource/styles/index.less +28 -28
- package/es/modules/appSettings/virtualSource/styles/table.less +51 -51
- package/es/modules/companySetting/appList/index.less +126 -126
- 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 +144 -126
- package/es/modules/companySetting/business/index.less +92 -92
- package/es/modules/companySetting/cost/index.less +38 -38
- package/es/modules/companySetting/department/index.less +157 -157
- package/es/modules/companySetting/edit/styles/authConfig.less +3 -3
- package/es/modules/companySetting/edit/styles/authGroup.less +10 -10
- package/es/modules/companySetting/edit/styles/authModule.less +82 -82
- package/es/modules/companySetting/edit/styles/user.less +54 -54
- package/es/modules/companySetting/edit/styles/userGroup.less +44 -44
- package/es/modules/companySetting/index.js +37 -33
- package/es/modules/companySetting/index.less +90 -90
- package/es/modules/companySetting/info/index.less +42 -42
- package/es/modules/companySetting/mainPart/images/img2.svg +12 -12
- package/es/modules/companySetting/mainPart/index.less +239 -239
- package/es/modules/companySetting/operationLog/index.js +22 -5
- package/es/modules/companySetting/operationLog/index.less +33 -33
- package/es/modules/companySetting/role/index.less +296 -296
- package/es/modules/companySetting/role/setDataRangeDialog/index.less +37 -37
- package/es/modules/companySetting/style/common.less +79 -79
- package/es/modules/companySetting/style/reset.less +117 -117
- package/es/modules/companySetting/user/index.js +36 -24
- package/es/modules/companySetting/user/invite.js +47 -100
- package/es/modules/companySetting/virtualApp/styles/config.less +37 -37
- package/es/modules/companySetting/virtualApp/styles/index.less +21 -21
- package/es/modules/companySetting/virtualApp/styles/list.less +28 -28
- package/es/modules/companySetting/virtualApp/styles/sourceItem.less +33 -33
- package/es/modules/companySetting/virtualApp/styles/table.less +44 -44
- package/es/modules/companySetting/wechatBinding/index.less +58 -58
- 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 +403 -277
- package/es/modules/createDemand_bf/demo/index.js +0 -1
- package/es/modules/createDemand_bf/index.js +0 -1
- package/es/modules/createDemand_bf/styles/index.less +222 -222
- package/es/modules/createProcess/components/index.less +52 -52
- package/es/modules/createProcess/index.less +114 -114
- package/es/modules/createProcess/title/index.less +53 -53
- 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/dealDemand/styles/index.less +265 -265
- package/es/modules/demandManage/index.js +174 -163
- package/es/modules/demandManage/styles/index.less +155 -210
- package/es/modules/getPassword/index.less +122 -122
- package/es/modules/messageList/index.d.ts +1 -1
- package/es/modules/messageList/index.js +6 -6
- package/es/modules/messageList/index.less +81 -81
- 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/personalSetting/securityLog/index.less +11 -11
- package/es/modules/personalSetting/styles/unbinding.less +73 -73
- package/es/modules/pointMap/ImportModal/styles/index.less +91 -91
- package/es/modules/pointMap/createMetaDrawer.d.ts +5 -0
- package/es/modules/pointMap/createMetaDrawer.js +825 -0
- package/es/modules/pointMap/editTxt/index.less +55 -55
- 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 +165 -38
- package/es/modules/pointMap/styles/pageInfo.less +439 -244
- package/es/modules/pointMap/styles/tree.css +28 -9
- package/es/modules/pointMap/styles/tree.less +33 -8
- 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/approvalmanage/approvalStrategy/index.less +14 -14
- package/es/modules/systemSetting/approvalmanage/index.less +5 -5
- package/es/modules/systemSetting/approvalmanage/processManage/index.less +39 -39
- 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/modules/systemSetting/notice/configItem/index.less +21 -21
- package/es/modules/systemSetting/notice/edit/index.less +26 -26
- package/es/types/personal.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
2
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
8
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -11,12 +15,13 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
11
15
|
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; } }
|
|
12
16
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
17
|
import { BizGlobalDataContext, BizTable, IconFont } from '@zgfe/business-lib';
|
|
14
|
-
import { Input, Button, Select, message, Tooltip } from 'antd';
|
|
18
|
+
import { Input, Button, Select, message, Tooltip, Modal, notification } from 'antd';
|
|
15
19
|
import React, { useEffect, useState, useContext } from 'react';
|
|
16
20
|
import './styles/index.less';
|
|
17
21
|
import apis from '../../constants/api';
|
|
18
22
|
import request from '../../utils/ajax';
|
|
19
23
|
import moment from 'moment';
|
|
24
|
+
import { demandTabList } from '../createDemand/constants';
|
|
20
25
|
var sorterKey = {
|
|
21
26
|
ascend: 'asc',
|
|
22
27
|
descend: 'desc'
|
|
@@ -29,7 +34,8 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
29
34
|
route = _useContext.route,
|
|
30
35
|
router = _useContext.router,
|
|
31
36
|
routes = _useContext.routes,
|
|
32
|
-
authority = _useContext.authority
|
|
37
|
+
authority = _useContext.authority,
|
|
38
|
+
currentUser = _useContext.currentUser;
|
|
33
39
|
var _useState = useState(),
|
|
34
40
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35
41
|
demandInfo = _useState2[0],
|
|
@@ -42,26 +48,46 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
42
48
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
43
49
|
pageData = _useState4[0],
|
|
44
50
|
setPageData = _useState4[1];
|
|
45
|
-
var _useState5 = useState(
|
|
46
|
-
_useState6 = _slicedToArray(_useState5,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
// 状态:1-待处理, 2-处理中,3-已驳回,4-已结束
|
|
50
|
-
var _useState7 = useState(0),
|
|
51
|
+
var _useState5 = useState(demandTabList),
|
|
52
|
+
_useState6 = _slicedToArray(_useState5, 1),
|
|
53
|
+
labelList = _useState6[0];
|
|
54
|
+
var _useState7 = useState(route && route.query && route.query.demandKey || ''),
|
|
51
55
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
demandName = _useState8[0],
|
|
57
|
+
setDemandName = _useState8[1];
|
|
58
|
+
// 状态:1-待处理, 2-处理中,3-已驳回,4-已结束,5-已超时
|
|
59
|
+
var _useState9 = useState(0),
|
|
55
60
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
var _useState11 = useState(),
|
|
61
|
+
demandStatus = _useState10[0],
|
|
62
|
+
setDemandStatus = _useState10[1];
|
|
63
|
+
var _useState11 = useState([]),
|
|
59
64
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
60
|
-
|
|
61
|
-
|
|
65
|
+
demandList = _useState12[0],
|
|
66
|
+
setDemandList = _useState12[1];
|
|
67
|
+
var _useState13 = useState(),
|
|
68
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
69
|
+
tableTotal = _useState14[0],
|
|
70
|
+
setTableTotal = _useState14[1];
|
|
62
71
|
useEffect(function () {
|
|
63
72
|
getDemandStatistics();
|
|
73
|
+
//如果有route则直接转跳从通知直接转跳
|
|
74
|
+
getLocationQuery();
|
|
64
75
|
}, []);
|
|
76
|
+
var getLocationQuery = function getLocationQuery() {
|
|
77
|
+
var urlParams = new URLSearchParams(window.location.search);
|
|
78
|
+
if (urlParams.get('id')) {
|
|
79
|
+
props.onDeal && props.onDeal('revocation', {
|
|
80
|
+
type: 'manage',
|
|
81
|
+
demand: {
|
|
82
|
+
id: urlParams.get('id')
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
//跳转后清理query数据
|
|
87
|
+
router && (router === null || router === void 0 ? void 0 : router.replace({
|
|
88
|
+
name: routes.demandManage
|
|
89
|
+
}));
|
|
90
|
+
};
|
|
65
91
|
var onChangeTable = function onChangeTable(pagination, filters, sorter) {
|
|
66
92
|
setPageData({
|
|
67
93
|
orderBy: sorter.order ? sorter.field + ',' + sorterKey[sorter.order] : void 0,
|
|
@@ -80,7 +106,11 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
80
106
|
}
|
|
81
107
|
}).then(function (res) {
|
|
82
108
|
if (res && res.code === '100000') {
|
|
83
|
-
|
|
109
|
+
var data = {};
|
|
110
|
+
res.data.map(function (res) {
|
|
111
|
+
data[res.node] = res.count;
|
|
112
|
+
});
|
|
113
|
+
setDemandInfo(data);
|
|
84
114
|
}
|
|
85
115
|
}).catch(function (err) {
|
|
86
116
|
console.log(err);
|
|
@@ -145,7 +175,15 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
145
175
|
message.error('无查看权限');
|
|
146
176
|
return;
|
|
147
177
|
}
|
|
148
|
-
|
|
178
|
+
if (currentUser && (currentUser.isAdmin || currentUser.id == data.currentProcessorId || currentUser.id == data.creatorId)) {
|
|
179
|
+
props.onDeal && props.onDeal('revocation', {
|
|
180
|
+
type: 'manage',
|
|
181
|
+
demand: data
|
|
182
|
+
});
|
|
183
|
+
} else {
|
|
184
|
+
message.error('无法处理该流程!');
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
149
187
|
// router &&
|
|
150
188
|
// router?.push({
|
|
151
189
|
// name: routes.createDemand,
|
|
@@ -181,18 +219,24 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
181
219
|
dataIndex: 'demandStatus',
|
|
182
220
|
width: 160,
|
|
183
221
|
render: function render(demandStatus) {
|
|
184
|
-
var
|
|
222
|
+
var data = labelList.filter(function (res) {
|
|
223
|
+
return res.value == demandStatus;
|
|
224
|
+
})[0] || {};
|
|
185
225
|
return /*#__PURE__*/React.createElement("div", {
|
|
186
226
|
style: {
|
|
187
227
|
display: 'flex'
|
|
188
228
|
}
|
|
189
229
|
}, /*#__PURE__*/React.createElement("div", {
|
|
190
|
-
className: "".concat(classPrefix, "-table-status")
|
|
191
|
-
|
|
230
|
+
className: "".concat(classPrefix, "-table-status"),
|
|
231
|
+
style: {
|
|
232
|
+
backgroundColor: data.color + '20',
|
|
233
|
+
color: data.color
|
|
234
|
+
}
|
|
235
|
+
}, data.label));
|
|
192
236
|
}
|
|
193
237
|
}, {
|
|
194
238
|
title: '操作',
|
|
195
|
-
width:
|
|
239
|
+
width: 270,
|
|
196
240
|
fixed: 'right',
|
|
197
241
|
render: function render(record) {
|
|
198
242
|
return /*#__PURE__*/React.createElement(DealDom, {
|
|
@@ -202,10 +246,10 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
202
246
|
}
|
|
203
247
|
}];
|
|
204
248
|
var DealDom = function DealDom(props) {
|
|
205
|
-
var
|
|
206
|
-
|
|
207
|
-
open =
|
|
208
|
-
setOpen =
|
|
249
|
+
var _useState15 = useState(false),
|
|
250
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
251
|
+
open = _useState16[0],
|
|
252
|
+
setOpen = _useState16[1];
|
|
209
253
|
var hide = function hide() {
|
|
210
254
|
setOpen(false);
|
|
211
255
|
};
|
|
@@ -218,21 +262,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
218
262
|
}
|
|
219
263
|
}).then(function (res) {
|
|
220
264
|
if (res === null || res === void 0 ? void 0 : res.data) {
|
|
221
|
-
|
|
222
|
-
request(apis.revocationDemand, {
|
|
223
|
-
method: 'POST',
|
|
224
|
-
data: {
|
|
225
|
-
app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
226
|
-
id: props.record.id
|
|
227
|
-
}
|
|
228
|
-
}).then(function (re) {
|
|
229
|
-
props.onDeal && props.onDeal(type, res.data);
|
|
230
|
-
getDemandStatistics();
|
|
231
|
-
getDemandList();
|
|
232
|
-
});
|
|
233
|
-
} else {
|
|
234
|
-
props.onDeal && props.onDeal(type, res.data);
|
|
235
|
-
}
|
|
265
|
+
props.onDeal && props.onDeal(type, res.data);
|
|
236
266
|
}
|
|
237
267
|
// getDemandStatistics();
|
|
238
268
|
// getDemandList();
|
|
@@ -241,71 +271,89 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
241
271
|
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
242
272
|
setOpen(newOpen);
|
|
243
273
|
};
|
|
244
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
},
|
|
274
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
275
|
+
color: "primary",
|
|
276
|
+
type: "link",
|
|
248
277
|
onClick: function onClick() {
|
|
249
278
|
if (!authority[17228364472]) {
|
|
250
279
|
message.error('无查看权限');
|
|
251
280
|
return;
|
|
252
281
|
}
|
|
253
|
-
props.onDeal && props.onDeal('
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
// query: {
|
|
258
|
-
// id: props.record.id,
|
|
259
|
-
// },
|
|
260
|
-
// });
|
|
282
|
+
props.onDeal && props.onDeal('revocation', {
|
|
283
|
+
type: 'get',
|
|
284
|
+
demand: props.record
|
|
285
|
+
});
|
|
261
286
|
}
|
|
262
|
-
}, "\u67E5\u770B"),
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
// content={
|
|
266
|
-
// <div className={`${classPrefix}-pop`}>
|
|
267
|
-
// <div className={`${classPrefix}-pop-header`}>
|
|
268
|
-
// 需求处理 <IconFont type="qingchu" onClick={hide} />
|
|
269
|
-
// </div>
|
|
270
|
-
// <div className={`${classPrefix}-pop-footer`}>
|
|
271
|
-
// <Button
|
|
272
|
-
// danger
|
|
273
|
-
// type={'primary'}
|
|
274
|
-
// onClick={() => {
|
|
275
|
-
// submitDemand(props.record.id, 2);
|
|
276
|
-
// }}
|
|
277
|
-
// >
|
|
278
|
-
// 驳回
|
|
279
|
-
// </Button>
|
|
280
|
-
// <Button
|
|
281
|
-
// type={'primary'}
|
|
282
|
-
// onClick={() => {
|
|
283
|
-
// submitDemand(props.record.id, 1);
|
|
284
|
-
// }}
|
|
285
|
-
// >
|
|
286
|
-
// 同意
|
|
287
|
-
// </Button>
|
|
288
|
-
// </div>
|
|
289
|
-
// </div>
|
|
290
|
-
// }
|
|
291
|
-
// trigger="click"
|
|
292
|
-
// open={open}
|
|
293
|
-
// onOpenChange={handleOpenChange}
|
|
294
|
-
// >
|
|
295
|
-
React.createElement("a", {
|
|
296
|
-
style: {
|
|
297
|
-
marginRight: 16
|
|
298
|
-
},
|
|
287
|
+
}, "\u67E5\u770B"), /*#__PURE__*/React.createElement(Button, {
|
|
288
|
+
color: "primary",
|
|
289
|
+
type: "link",
|
|
299
290
|
onClick: function onClick() {
|
|
300
|
-
|
|
291
|
+
Modal.confirm({
|
|
292
|
+
wrapClassName: "".concat(classPrefix, "-confirm"),
|
|
293
|
+
title: '提示',
|
|
294
|
+
icon: null,
|
|
295
|
+
closable: true,
|
|
296
|
+
content: '您确定要关闭当前需求?',
|
|
297
|
+
okText: '确定',
|
|
298
|
+
cancelText: '取消',
|
|
299
|
+
onOk: function onOk() {
|
|
300
|
+
disableDemand(props.record);
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
}, "\u5173\u95ED"), /*#__PURE__*/React.createElement(Button, {
|
|
305
|
+
color: "primary",
|
|
306
|
+
type: "link",
|
|
307
|
+
onClick: function onClick() {
|
|
308
|
+
props.onDeal && props.onDeal('revocation', {
|
|
309
|
+
type: 'edit',
|
|
310
|
+
demand: {
|
|
311
|
+
appId: props.record.id,
|
|
312
|
+
approvalModule: props.record.approvalModule,
|
|
313
|
+
businessType: props.record.businessType,
|
|
314
|
+
completionTime: props.record.completionTime,
|
|
315
|
+
demandDescribe: props.record.demandDescribe,
|
|
316
|
+
demandName: props.record.demandName + '复制',
|
|
317
|
+
fileName: props.record.fileName,
|
|
318
|
+
filePath: props.record.filePath
|
|
319
|
+
}
|
|
320
|
+
});
|
|
301
321
|
}
|
|
302
|
-
}, "\
|
|
303
|
-
|
|
304
|
-
|
|
322
|
+
}, "\u590D\u5236"), [101, 102].indexOf(props.record.demandStatus) == -1 && (/*#__PURE__*/React.createElement(Button, {
|
|
323
|
+
color: "primary",
|
|
324
|
+
type: "link",
|
|
305
325
|
onClick: function onClick() {
|
|
306
|
-
getDemand('revocation');
|
|
326
|
+
// getDemand('revocation');
|
|
327
|
+
if ((currentUser === null || currentUser === void 0 ? void 0 : currentUser.id) == props.record.creatorId || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.isAdmin)) {
|
|
328
|
+
props.onDeal && props.onDeal('revocation', {
|
|
329
|
+
type: 'edit',
|
|
330
|
+
demand: props.record
|
|
331
|
+
});
|
|
332
|
+
} else {
|
|
333
|
+
message.error('只有需求提起人或管理员才能修改需求!');
|
|
334
|
+
}
|
|
307
335
|
}
|
|
308
|
-
}, "\
|
|
336
|
+
}, "\u7F16\u8F91")));
|
|
337
|
+
};
|
|
338
|
+
//关闭功能
|
|
339
|
+
var disableDemand = function disableDemand(data) {
|
|
340
|
+
request(apis.setting.disableDemand, {
|
|
341
|
+
method: 'post',
|
|
342
|
+
data: {
|
|
343
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
344
|
+
id: data.id,
|
|
345
|
+
creatorId: data.creatorId
|
|
346
|
+
}
|
|
347
|
+
}).then(function (res) {
|
|
348
|
+
if (res && res.code === '100000') {
|
|
349
|
+
notification.success({
|
|
350
|
+
message: '关闭成功'
|
|
351
|
+
});
|
|
352
|
+
getDemandList();
|
|
353
|
+
}
|
|
354
|
+
}).catch(function (err) {
|
|
355
|
+
console.log(err);
|
|
356
|
+
});
|
|
309
357
|
};
|
|
310
358
|
return /*#__PURE__*/React.createElement("div", {
|
|
311
359
|
className: classPrefix
|
|
@@ -327,57 +375,29 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
327
375
|
onClick: function onClick() {
|
|
328
376
|
return setDemandStatus(0);
|
|
329
377
|
}
|
|
330
|
-
}, demandInfo ?
|
|
378
|
+
}, demandInfo ? demandInfo[100] || 0 : '-'))), /*#__PURE__*/React.createElement("div", {
|
|
331
379
|
className: "".concat(classPrefix, "-panel-status")
|
|
332
|
-
},
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
onClick: function onClick() {
|
|
354
|
-
return setDemandStatus(2);
|
|
355
|
-
}
|
|
356
|
-
}, demandInfo ? (demandInfo === null || demandInfo === void 0 ? void 0 : demandInfo.beingProcessedSum) || 0 : '-')), /*#__PURE__*/React.createElement("div", {
|
|
357
|
-
className: "".concat(classPrefix, "-panel-status-item")
|
|
358
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
359
|
-
className: "".concat(classPrefix, "-panel-status-item-txt"),
|
|
360
|
-
onClick: function onClick() {
|
|
361
|
-
return setDemandStatus(3);
|
|
362
|
-
}
|
|
363
|
-
}, "\u5DF2\u9A73\u56DE"), /*#__PURE__*/React.createElement("div", {
|
|
364
|
-
className: "".concat(classPrefix, "-panel-status-item-num"),
|
|
365
|
-
onClick: function onClick() {
|
|
366
|
-
return setDemandStatus(3);
|
|
367
|
-
}
|
|
368
|
-
}, demandInfo ? (demandInfo === null || demandInfo === void 0 ? void 0 : demandInfo.rejectedSum) || 0 : '-')), /*#__PURE__*/React.createElement("div", {
|
|
369
|
-
className: "".concat(classPrefix, "-panel-status-item")
|
|
370
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
371
|
-
className: "".concat(classPrefix, "-panel-status-item-txt"),
|
|
372
|
-
onClick: function onClick() {
|
|
373
|
-
return setDemandStatus(4);
|
|
374
|
-
}
|
|
375
|
-
}, "\u5DF2\u5B8C\u6210"), /*#__PURE__*/React.createElement("div", {
|
|
376
|
-
className: "".concat(classPrefix, "-panel-status-item-num"),
|
|
377
|
-
onClick: function onClick() {
|
|
378
|
-
return setDemandStatus(4);
|
|
379
|
-
}
|
|
380
|
-
}, demandInfo ? (demandInfo === null || demandInfo === void 0 ? void 0 : demandInfo.finishedSum) || 0 : '-')))), /*#__PURE__*/React.createElement("div", {
|
|
380
|
+
}, labelList.map(function (res) {
|
|
381
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
382
|
+
key: res.key,
|
|
383
|
+
className: "".concat(classPrefix, "-panel-status-item")
|
|
384
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
385
|
+
className: "".concat(classPrefix, "-panel-status-item-txt"),
|
|
386
|
+
onClick: function onClick() {
|
|
387
|
+
return setDemandStatus(res.value);
|
|
388
|
+
}
|
|
389
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
390
|
+
className: "".concat(classPrefix, "-panel-status-item-icon"),
|
|
391
|
+
style: {
|
|
392
|
+
backgroundColor: res.color
|
|
393
|
+
}
|
|
394
|
+
}), res.label), /*#__PURE__*/React.createElement("div", {
|
|
395
|
+
className: "".concat(classPrefix, "-panel-status-item-num"),
|
|
396
|
+
onClick: function onClick() {
|
|
397
|
+
return setDemandStatus(res.value);
|
|
398
|
+
}
|
|
399
|
+
}, demandInfo ? demandInfo[res.value] || 0 : '-'));
|
|
400
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
381
401
|
className: "".concat(classPrefix, "-filter")
|
|
382
402
|
}, /*#__PURE__*/React.createElement("div", {
|
|
383
403
|
className: "".concat(classPrefix, "-filter-left")
|
|
@@ -390,7 +410,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
390
410
|
onChange: function onChange(e) {
|
|
391
411
|
return setDemandName(e.target.value);
|
|
392
412
|
},
|
|
393
|
-
placeholder: "\u8BF7\u8F93\u5165\u9700\u6C42\u540D\u79F0
|
|
413
|
+
placeholder: "\u8BF7\u8F93\u5165\u9700\u6C42\u540D\u79F0",
|
|
394
414
|
prefix: /*#__PURE__*/React.createElement(IconFont, {
|
|
395
415
|
type: "sousuo"
|
|
396
416
|
})
|
|
@@ -411,19 +431,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
411
431
|
options: [{
|
|
412
432
|
value: 0,
|
|
413
433
|
label: '全部'
|
|
414
|
-
}
|
|
415
|
-
value: 1,
|
|
416
|
-
label: '待处理'
|
|
417
|
-
}, {
|
|
418
|
-
value: 2,
|
|
419
|
-
label: '处理中'
|
|
420
|
-
}, {
|
|
421
|
-
value: 3,
|
|
422
|
-
label: '已驳回'
|
|
423
|
-
}, {
|
|
424
|
-
value: 4,
|
|
425
|
-
label: '已结束'
|
|
426
|
-
}]
|
|
434
|
+
}].concat(_toConsumableArray(labelList))
|
|
427
435
|
}), /*#__PURE__*/React.createElement("div", {
|
|
428
436
|
className: "top-total"
|
|
429
437
|
}, "\u5171", /*#__PURE__*/React.createElement("a", null, "\xA0", tableTotal || '-', "\xA0"), "\u6761")), /*#__PURE__*/React.createElement("div", {
|
|
@@ -434,13 +442,16 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
434
442
|
disabled: !authority[17228364471],
|
|
435
443
|
className: "button ".concat(!authority[17228364471] ? 'disabled' : ''),
|
|
436
444
|
onClick: function onClick() {
|
|
437
|
-
props.onDeal && props.onDeal('
|
|
445
|
+
props.onDeal && props.onDeal('revocation', {
|
|
446
|
+
type: 'edit',
|
|
447
|
+
demand: {}
|
|
448
|
+
});
|
|
438
449
|
// router &&
|
|
439
450
|
// router?.push({
|
|
440
451
|
// name: routes.createDemand,
|
|
441
452
|
// });
|
|
442
453
|
}
|
|
443
|
-
}, "\u65B0\u589E\u9700\u6C42"), /*#__PURE__*/React.createElement(Button, {
|
|
454
|
+
}, "\u65B0\u589E\u9700\u6C42"), false && (/*#__PURE__*/React.createElement(Button, {
|
|
444
455
|
shape: "round",
|
|
445
456
|
className: "button ".concat(!authority[1722839123] ? 'disabled' : ''),
|
|
446
457
|
disabled: isDemo || !authority[1722839123],
|
|
@@ -452,7 +463,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
452
463
|
}
|
|
453
464
|
}));
|
|
454
465
|
}
|
|
455
|
-
}, "\u6D41\u7A0B\u7BA1\u7406"))), /*#__PURE__*/React.createElement(BizTable, {
|
|
466
|
+
}, "\u6D41\u7A0B\u7BA1\u7406")))), /*#__PURE__*/React.createElement(BizTable, {
|
|
456
467
|
className: "".concat(classPrefix, "-table"),
|
|
457
468
|
columns: columns,
|
|
458
469
|
rowKey: "id",
|