@zgfe/modules-settings 2.1.0-zhongyuan.3 → 2.1.0-zhongyuan.30
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 +2 -0
- package/es/components/importMetaDialog/index.js +18 -3
- package/es/constants/api.d.ts +6 -0
- package/es/constants/api.js +17 -8
- 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.js +5 -6
- package/es/modules/companySetting/application/index.less +144 -144
- 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 +28 -100
- package/es/modules/createDemand/demo/selectPoint.js +1 -2
- package/es/modules/createDemand/index.js +7 -6
- package/es/modules/createDemand/styles/index.less +403 -403
- 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 +0 -1
- package/es/modules/demandManage/styles/index.less +155 -155
- package/es/modules/pointMap/createMetaDrawer.js +131 -69
- package/es/modules/pointMap/pageInfo.js +39 -16
- package/es/modules/pointMap/styles/index.less +8 -0
- package/es/modules/pointMap/styles/tree.css +164 -145
- package/es/modules/pointMap/styles/tree.less +174 -156
- package/es/modules/pointMap/tree.js +196 -118
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +5 -4
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +48 -48
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +3 -2
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +7 -9
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +29 -16
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +1 -1
- package/es/modules/systemSetting/document-setting/index.js +7 -6
- package/es/modules/systemSetting/index.js +13 -15
- package/package.json +3 -3
|
@@ -13,9 +13,10 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
13
13
|
import React, { useEffect, useState, useContext } from 'react';
|
|
14
14
|
import request from '../../../utils/ajax';
|
|
15
15
|
import apis from '../../../constants/api';
|
|
16
|
-
import { DatePicker, Radio, Table } from 'antd';
|
|
16
|
+
import { DatePicker, Radio, Table, Button, Space } from 'antd';
|
|
17
17
|
import locale from 'antd/es/date-picker/locale/zh_CN';
|
|
18
18
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
19
|
+
import { DownloadOutlined } from '@ant-design/icons';
|
|
19
20
|
import moment from 'moment';
|
|
20
21
|
import './index.less';
|
|
21
22
|
import { setColumnsList } from './util';
|
|
@@ -24,7 +25,8 @@ var OperationLog = function OperationLog() {
|
|
|
24
25
|
var classPrefix = 'operation-log-page';
|
|
25
26
|
var _useContext = useContext(BizGlobalDataContext),
|
|
26
27
|
authority = _useContext.authority,
|
|
27
|
-
basicConfig = _useContext.basicConfig
|
|
28
|
+
basicConfig = _useContext.basicConfig,
|
|
29
|
+
showProdDownload = _useContext.showProdDownload;
|
|
28
30
|
var _useState = useState({
|
|
29
31
|
page: 1,
|
|
30
32
|
size: 10,
|
|
@@ -139,7 +141,7 @@ var OperationLog = function OperationLog() {
|
|
|
139
141
|
}, condition)
|
|
140
142
|
}).then(function (res) {
|
|
141
143
|
if (parseInt(res === null || res === void 0 ? void 0 : res.code) == 100000) {
|
|
142
|
-
var maxDate = res.data[
|
|
144
|
+
var maxDate = res.data[0] || '';
|
|
143
145
|
setDateRange(res.data);
|
|
144
146
|
setCondition(function () {
|
|
145
147
|
return {
|
|
@@ -152,6 +154,16 @@ var OperationLog = function OperationLog() {
|
|
|
152
154
|
}
|
|
153
155
|
});
|
|
154
156
|
}
|
|
157
|
+
function exportData() {
|
|
158
|
+
request(apis.log.exportLog, {
|
|
159
|
+
method: 'post',
|
|
160
|
+
data: _objectSpread({
|
|
161
|
+
type: logType
|
|
162
|
+
}, condition),
|
|
163
|
+
responseType: 'blob',
|
|
164
|
+
fileName: "\u65E5\u5FD7\u4E0B\u8F7D_".concat(moment().format('YYYYMMDD'))
|
|
165
|
+
}).then(function (res) {});
|
|
166
|
+
}
|
|
155
167
|
function queryLog() {
|
|
156
168
|
setLoading(true);
|
|
157
169
|
if (!condition.year || !condition.month) return;
|
|
@@ -209,7 +221,7 @@ var OperationLog = function OperationLog() {
|
|
|
209
221
|
}, "\u64CD\u4F5C\u65E5\u5FD7"), /*#__PURE__*/React.createElement(Radio.Button, {
|
|
210
222
|
value: "3",
|
|
211
223
|
disabled: !authority[10104]
|
|
212
|
-
}, "\u6743\u9650\u7BA1\u7406\u65E5\u5FD7")), condition.year && (/*#__PURE__*/React.createElement(DatePicker, {
|
|
224
|
+
}, "\u6743\u9650\u7BA1\u7406\u65E5\u5FD7")), /*#__PURE__*/React.createElement(Space, null, condition.year && (/*#__PURE__*/React.createElement(DatePicker, {
|
|
213
225
|
value: moment("".concat(condition.year, "-").concat(condition.month), 'YYYY-MM'),
|
|
214
226
|
picker: "month",
|
|
215
227
|
disabledDate: disabledDate,
|
|
@@ -217,7 +229,12 @@ var OperationLog = function OperationLog() {
|
|
|
217
229
|
onChange: onChangeTime,
|
|
218
230
|
inputReadOnly: true,
|
|
219
231
|
allowClear: false
|
|
220
|
-
}))
|
|
232
|
+
})), showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
233
|
+
shape: "circle",
|
|
234
|
+
icon: /*#__PURE__*/React.createElement(DownloadOutlined, null),
|
|
235
|
+
size: "middle",
|
|
236
|
+
onClick: exportData
|
|
237
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
221
238
|
className: "".concat(classPrefix, "-table")
|
|
222
239
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
223
240
|
columns: columns,
|
|
@@ -360,30 +360,35 @@ var User = function User(props) {
|
|
|
360
360
|
title: arr === null || arr === void 0 ? void 0 : (_arr$join = arr.join(',')) === null || _arr$join === void 0 ? void 0 : _arr$join.replace(/,/g, '、')
|
|
361
361
|
}, splitString(arr === null || arr === void 0 ? void 0 : (_arr$join2 = arr.join(',')) === null || _arr$join2 === void 0 ? void 0 : _arr$join2.replace(/,/g, '、'), 8)));
|
|
362
362
|
}
|
|
363
|
-
},
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
363
|
+
},
|
|
364
|
+
// {
|
|
365
|
+
// title: '部门',
|
|
366
|
+
// with: 195,
|
|
367
|
+
// dataIndex: 'aclDeptList',
|
|
368
|
+
// render: (aclDeptList: []) => {
|
|
369
|
+
// const arr = aclDeptList?.map((item: { name: string }) => {
|
|
370
|
+
// return item?.name;
|
|
371
|
+
// });
|
|
372
|
+
// return (
|
|
373
|
+
// <div>
|
|
374
|
+
// <Tooltip
|
|
375
|
+
// overlayStyle={{ maxWidth: 396 }}
|
|
376
|
+
// overlayInnerStyle={{
|
|
377
|
+
// color: '#FFF',
|
|
378
|
+
// fontSize: 14,
|
|
379
|
+
// fontWeight: 400,
|
|
380
|
+
// letterSpacing: 0.56,
|
|
381
|
+
// }}
|
|
382
|
+
// placement="top"
|
|
383
|
+
// title={arr?.join(',')?.replace(/,/g, '、')}
|
|
384
|
+
// >
|
|
385
|
+
// {splitString(arr?.join(',')?.replace(/,/g, '、'), 8)}
|
|
386
|
+
// </Tooltip>
|
|
387
|
+
// </div>
|
|
388
|
+
// );
|
|
389
|
+
// },
|
|
390
|
+
// },
|
|
391
|
+
{
|
|
387
392
|
title: '状态',
|
|
388
393
|
render: function render(data) {
|
|
389
394
|
return /*#__PURE__*/React.createElement("div", null, !data.isAdmin && (/*#__PURE__*/React.createElement(Switch, {
|
|
@@ -12,7 +12,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
12
12
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
13
|
import React, { useEffect, useState, useContext } from 'react';
|
|
14
14
|
import './index.less';
|
|
15
|
-
import { Button, Form, Input, notification, Radio, Select
|
|
15
|
+
import { Button, Form, Input, notification, Radio, Select } from 'antd';
|
|
16
16
|
import request from './../../../utils/ajax';
|
|
17
17
|
import apis from './../../../constants/api';
|
|
18
18
|
import { BizDialog, BizSelect, BizGlobalDataContext } from '@zgfe/business-lib';
|
|
@@ -33,29 +33,18 @@ var UserGroup = function UserGroup(props) {
|
|
|
33
33
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
34
34
|
userList = _useState4[0],
|
|
35
35
|
setUserList = _useState4[1];
|
|
36
|
-
var _useState5 = useState(
|
|
36
|
+
var _useState5 = useState(false),
|
|
37
37
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
isAdmin = _useState6[0],
|
|
39
|
+
setIsAdmin = _useState6[1];
|
|
40
40
|
var _useState7 = useState(false),
|
|
41
41
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var _useState9 = useState(
|
|
45
|
-
rule: /^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9~!@#$%^&*]{8,20}$/,
|
|
46
|
-
description: '请输入8-20个字符,可包括大小写字母和数字 特殊字符(!@#$%^&*)'
|
|
47
|
-
}),
|
|
42
|
+
createAppLoading = _useState8[0],
|
|
43
|
+
setCreateAppLoading = _useState8[1];
|
|
44
|
+
var _useState9 = useState(false),
|
|
48
45
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
var _useState11 = useState(false),
|
|
52
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
53
|
-
createAppLoading = _useState12[0],
|
|
54
|
-
setCreateAppLoading = _useState12[1];
|
|
55
|
-
var _useState13 = useState(false),
|
|
56
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
57
|
-
createdAppPanel = _useState14[0],
|
|
58
|
-
setCreatedAppPanel = _useState14[1];
|
|
46
|
+
createdAppPanel = _useState10[0],
|
|
47
|
+
setCreatedAppPanel = _useState10[1];
|
|
59
48
|
useEffect(function () {
|
|
60
49
|
if (userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id) {
|
|
61
50
|
setCreatedAppPanel(true);
|
|
@@ -63,19 +52,17 @@ var UserGroup = function UserGroup(props) {
|
|
|
63
52
|
// 角色下拉数据
|
|
64
53
|
queryRoleListByUserIdList(userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id);
|
|
65
54
|
// 部门下拉数据
|
|
66
|
-
queryDeptListByUserIdList(userEditAuthData
|
|
55
|
+
// queryDeptListByUserIdList(userEditAuthData?.id);
|
|
67
56
|
}
|
|
68
57
|
}, [userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id]);
|
|
69
58
|
useEffect(function () {
|
|
70
59
|
queryPanel(_objectSpread({}, queryParams));
|
|
71
60
|
}, [queryParams]);
|
|
72
61
|
useEffect(function () {
|
|
73
|
-
// 密码正则
|
|
74
|
-
companyId !== undefined && getPasswordRuleList(companyId);
|
|
75
62
|
// 角色下拉数据
|
|
76
63
|
queryRoleListByUserIdList(null);
|
|
77
64
|
// 部门下拉数据
|
|
78
|
-
queryDeptListByUserIdList(null);
|
|
65
|
+
// queryDeptListByUserIdList(null);
|
|
79
66
|
}, [companyId]);
|
|
80
67
|
// 查看详情
|
|
81
68
|
var queryCompanyUserDetailsParamList = function queryCompanyUserDetailsParamList(id) {
|
|
@@ -86,7 +73,7 @@ var UserGroup = function UserGroup(props) {
|
|
|
86
73
|
}
|
|
87
74
|
}).then(function (res) {
|
|
88
75
|
if (res && (res === null || res === void 0 ? void 0 : res.data) && res.code === '101000') {
|
|
89
|
-
var _res$data, _res$data$
|
|
76
|
+
var _res$data, _res$data$roleIds, _res$data2;
|
|
90
77
|
var flattenArray = function flattenArray(array) {
|
|
91
78
|
var flatArray = [];
|
|
92
79
|
array.forEach(function (item) {
|
|
@@ -98,31 +85,22 @@ var UserGroup = function UserGroup(props) {
|
|
|
98
85
|
});
|
|
99
86
|
return flatArray;
|
|
100
87
|
};
|
|
101
|
-
var
|
|
102
|
-
var
|
|
103
|
-
var app = (_flattenArray = flattenArray(departmentList)) === null || _flattenArray === void 0 ? void 0 : _flattenArray.filter(function (v) {
|
|
104
|
-
return v.id === item;
|
|
105
|
-
});
|
|
106
|
-
return (_app$ = app[0]) === null || _app$ === void 0 ? void 0 : _app$.id;
|
|
107
|
-
});
|
|
108
|
-
var roleIdsList = res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : (_res$data2$roleIds = _res$data2.roleIds) === null || _res$data2$roleIds === void 0 ? void 0 : _res$data2$roleIds.map(function (item) {
|
|
109
|
-
var _app$2;
|
|
88
|
+
var roleIdsList = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$roleIds = _res$data.roleIds) === null || _res$data$roleIds === void 0 ? void 0 : _res$data$roleIds.map(function (item) {
|
|
89
|
+
var _app$;
|
|
110
90
|
var app = userList === null || userList === void 0 ? void 0 : userList.filter(function (v) {
|
|
111
91
|
return v.id === item;
|
|
112
92
|
});
|
|
113
93
|
return {
|
|
114
|
-
id: (_app$
|
|
94
|
+
id: (_app$ = app[0]) === null || _app$ === void 0 ? void 0 : _app$.id
|
|
115
95
|
};
|
|
116
96
|
});
|
|
117
97
|
form.setFieldsValue(_objectSpread(_objectSpread({}, res.data), {}, {
|
|
118
|
-
deptIds: deptIdsList.filter(
|
|
119
|
-
return v !== undefined;
|
|
120
|
-
}),
|
|
98
|
+
// deptIds: deptIdsList.filter((v: undefined) => v !== undefined),
|
|
121
99
|
roleIds: roleIdsList.filter(function (v) {
|
|
122
100
|
return v.id !== undefined;
|
|
123
101
|
})
|
|
124
102
|
}));
|
|
125
|
-
setIsAdmin(res === null || res === void 0 ? void 0 : (_res$
|
|
103
|
+
setIsAdmin(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.isAdmin);
|
|
126
104
|
}
|
|
127
105
|
}).catch(function (error) {
|
|
128
106
|
console.log(error);
|
|
@@ -144,40 +122,15 @@ var UserGroup = function UserGroup(props) {
|
|
|
144
122
|
console.log(error);
|
|
145
123
|
});
|
|
146
124
|
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
} else {
|
|
157
|
-
setDepartmentList([]);
|
|
158
|
-
}
|
|
159
|
-
}).catch(function (error) {
|
|
160
|
-
console.log(error);
|
|
161
|
-
});
|
|
162
|
-
};
|
|
163
|
-
var getPasswordRuleList = function getPasswordRuleList(id) {
|
|
164
|
-
request(apis.setting.getPasswordRule, {
|
|
165
|
-
method: 'get',
|
|
166
|
-
params: {
|
|
167
|
-
companyId: id
|
|
168
|
-
}
|
|
169
|
-
}).then(function (res) {
|
|
170
|
-
if (res && (res === null || res === void 0 ? void 0 : res.data) && res.code === '101000') {
|
|
171
|
-
setPasswordRule(res === null || res === void 0 ? void 0 : res.data);
|
|
172
|
-
} else {
|
|
173
|
-
setPasswordRule({
|
|
174
|
-
rule: /^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9~!@#$%^&*]{8,20}$/,
|
|
175
|
-
description: '请输入8-20个字符,可包括大小写字母和数字 特殊字符(!@#$%^&*)'
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
}).catch(function (error) {
|
|
179
|
-
console.log(error);
|
|
180
|
-
});
|
|
125
|
+
//获取当前年月日
|
|
126
|
+
var getDate = function getDate() {
|
|
127
|
+
// 创建当前日期对象
|
|
128
|
+
var now = new Date();
|
|
129
|
+
// 获取年月日
|
|
130
|
+
var year = now.getFullYear();
|
|
131
|
+
var month = now.getMonth() + 1; // 月份从0开始,所以要+1
|
|
132
|
+
var date = now.getDate();
|
|
133
|
+
return "".concat(year).concat(month).concat(date);
|
|
181
134
|
};
|
|
182
135
|
// 编辑||创建
|
|
183
136
|
var onFinish = function onFinish(value) {
|
|
@@ -185,6 +138,7 @@ var UserGroup = function UserGroup(props) {
|
|
|
185
138
|
setCreateAppLoading(true);
|
|
186
139
|
var msg = '';
|
|
187
140
|
var params = _objectSpread(_objectSpread({}, value), {}, {
|
|
141
|
+
password: "Aa111111",
|
|
188
142
|
id: userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id,
|
|
189
143
|
roleIds: value === null || value === void 0 ? void 0 : (_value$roleIds = value.roleIds) === null || _value$roleIds === void 0 ? void 0 : _value$roleIds.map(function (item) {
|
|
190
144
|
return item.id;
|
|
@@ -348,19 +302,6 @@ var UserGroup = function UserGroup(props) {
|
|
|
348
302
|
placeholder: '请选择角色',
|
|
349
303
|
labelField: "roleName",
|
|
350
304
|
keyField: "id"
|
|
351
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
352
|
-
name: 'deptIds',
|
|
353
|
-
label: "\u90E8\u95E8",
|
|
354
|
-
className: "no-rules-label"
|
|
355
|
-
}, /*#__PURE__*/React.createElement(TreeSelect, {
|
|
356
|
-
treeDefaultExpandAll: true,
|
|
357
|
-
multiple: true,
|
|
358
|
-
fieldNames: {
|
|
359
|
-
label: 'name',
|
|
360
|
-
value: 'id'
|
|
361
|
-
},
|
|
362
|
-
placeholder: "\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8",
|
|
363
|
-
treeData: departmentList
|
|
364
305
|
})), !isAdmin && (/*#__PURE__*/React.createElement(Form.Item, {
|
|
365
306
|
name: 'accountStatus',
|
|
366
307
|
label: "\u72B6\u6001",
|
|
@@ -375,19 +316,6 @@ var UserGroup = function UserGroup(props) {
|
|
|
375
316
|
value: 1
|
|
376
317
|
}, "\u6B63\u5E38"), /*#__PURE__*/React.createElement(Radio, {
|
|
377
318
|
value: 2
|
|
378
|
-
}, "\u505C\u7528"))))
|
|
379
|
-
name: 'password',
|
|
380
|
-
label: "\u5BC6\u7801",
|
|
381
|
-
rules: [{
|
|
382
|
-
required: true,
|
|
383
|
-
message: '请输入密码'
|
|
384
|
-
}, {
|
|
385
|
-
pattern: new RegExp(passwordRule === null || passwordRule === void 0 ? void 0 : passwordRule.rule, 'g'),
|
|
386
|
-
message: passwordRule === null || passwordRule === void 0 ? void 0 : passwordRule.description
|
|
387
|
-
}]
|
|
388
|
-
}, /*#__PURE__*/React.createElement(Input.Password, {
|
|
389
|
-
maxLength: 50,
|
|
390
|
-
placeholder: '请输入密码'
|
|
391
|
-
})))))));
|
|
319
|
+
}, "\u505C\u7528"))))))));
|
|
392
320
|
};
|
|
393
321
|
export default UserGroup;
|
|
@@ -32,7 +32,6 @@ export default (function (props) {
|
|
|
32
32
|
};
|
|
33
33
|
var initFun = function initFun(callbackFun, data) {
|
|
34
34
|
pointMapCallbackFun = callbackFun;
|
|
35
|
-
console.log('initFun', data);
|
|
36
35
|
setSelectObj(data && data.eventId ? {
|
|
37
36
|
selectEventList: [{
|
|
38
37
|
event_id: data.eventId,
|
|
@@ -73,7 +72,7 @@ export default (function (props) {
|
|
|
73
72
|
className: "".concat(classPrefix, "-header-back")
|
|
74
73
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
75
74
|
type: "fanhuiicon"
|
|
76
|
-
}), "\u8FD4\u56DE"), "\u57CB\u70B9\u5730\u56FE"), /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
}), "\u8FD4\u56DE"), "\u81EA\u5B9A\u4E49\u57CB\u70B9\u5730\u56FE"), /*#__PURE__*/React.createElement("div", {
|
|
77
76
|
className: "".concat(classPrefix, "-header-right")
|
|
78
77
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
79
78
|
onClick: function onClick() {
|
|
@@ -50,7 +50,8 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
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
57
|
var _useState = useState([]),
|
|
@@ -303,7 +304,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
303
304
|
var isZip = regex.test(file.name);
|
|
304
305
|
var is10M = file.size < 50 * 1024 * 1024;
|
|
305
306
|
if (!isZip || !is10M) {
|
|
306
|
-
message.error("\u4EC5\u652F\u6301\u4E0A\u4F20\u4E00\u4E2A50M\u4EE5\u5185\u7684Word\u3001Excel\u3001PDF\u3001ZIP\
|
|
307
|
+
message.error("\u4EC5\u652F\u6301\u4E0A\u4F20\u4E00\u4E2A50M\u4EE5\u5185\u7684Word\u3001Excel\u3001PDF\u3001ZIP\u3001RAR\u683C\u5F0F\u538B\u7F29\u5305\u9644\u4EF6");
|
|
307
308
|
} else {
|
|
308
309
|
// setValueLoading(true);
|
|
309
310
|
var formData = new FormData();
|
|
@@ -1019,7 +1020,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1019
1020
|
style: {
|
|
1020
1021
|
color: '#021429'
|
|
1021
1022
|
}
|
|
1022
|
-
}, 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", {
|
|
1023
1024
|
className: "".concat(classPrefix, "-info-item")
|
|
1024
1025
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1025
1026
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
@@ -1052,7 +1053,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1052
1053
|
type: "tianjia1"
|
|
1053
1054
|
}), "\u6DFB\u52A0\u6587\u4EF6")), /*#__PURE__*/React.createElement("div", {
|
|
1054
1055
|
className: "".concat(classPrefix, "-info-item-content-tip")
|
|
1055
|
-
}, "\uFF08\u652F\u6301 Word\u3001Excel\u3001PDF\u3001ZIP\
|
|
1056
|
+
}, "\uFF08\u652F\u6301 Word\u3001Excel\u3001PDF\u3001ZIP\u3001RAR \u683C\u5F0F\u300150M\u4EE5\u5185\uFF09")))))), (demandStatus == 101 || demandStatus == 102) && (/*#__PURE__*/React.createElement("div", {
|
|
1056
1057
|
className: "".concat(classPrefix, "-info-item")
|
|
1057
1058
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1058
1059
|
className: "".concat(classPrefix, "-info-item-txt")
|
|
@@ -1253,11 +1254,11 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1253
1254
|
}
|
|
1254
1255
|
}, "\u5173\u95ED\u9700\u6C42")), demandType == 'edit' && /*#__PURE__*/React.createElement(Button, {
|
|
1255
1256
|
onClick: onBack
|
|
1256
|
-
}, "\u53D6\u6D88"), !isDemo && authority[1724922574] && demandStatus > 0 && (/*#__PURE__*/React.createElement(Button, {
|
|
1257
|
+
}, "\u53D6\u6D88"), !isDemo && authority[1724922574] && demandStatus > 0 && showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
1257
1258
|
shape: "round",
|
|
1258
1259
|
className: "button",
|
|
1259
1260
|
onClick: exportPDF
|
|
1260
|
-
}, "\u5BFC\u51FA\u9700\u6C42PDF")), !isDemo && authority[1724922705] && pointEventInfo && !!pointEventInfo.length && (/*#__PURE__*/React.createElement(Button, {
|
|
1261
|
+
}, "\u5BFC\u51FA\u9700\u6C42PDF")), !isDemo && authority[1724922705] && pointEventInfo && !!pointEventInfo.length && showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
1261
1262
|
shape: "round",
|
|
1262
1263
|
className: "button",
|
|
1263
1264
|
onClick: downloadData
|