@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
|
@@ -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;
|
|
@@ -327,9 +281,9 @@ var UserGroup = function UserGroup(props) {
|
|
|
327
281
|
}]
|
|
328
282
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
329
283
|
onBlur: function onBlur(event) {
|
|
330
|
-
var _event$target2
|
|
284
|
+
var _event$target2;
|
|
331
285
|
form.setFieldsValue({
|
|
332
|
-
telphone: event === null || event === void 0 ? void 0 : (_event$target2 = event.target) === null || _event$target2 === void 0 ? void 0 :
|
|
286
|
+
telphone: event === null || event === void 0 ? void 0 : (_event$target2 = event.target) === null || _event$target2 === void 0 ? void 0 : _event$target2.value
|
|
333
287
|
});
|
|
334
288
|
},
|
|
335
289
|
maxLength: 11,
|
|
@@ -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;
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { ColumnsType } from 'antd/es/table/interface';
|
|
2
|
-
declare const columnsEvent: (gotoPage?: Function, isControl?: boolean) => ColumnsType<{
|
|
2
|
+
declare const columnsEvent: (gotoPage?: Function, isControl?: boolean, getPointMap?: Function) => ColumnsType<{
|
|
3
3
|
pageId: number;
|
|
4
4
|
}>;
|
|
5
|
-
|
|
5
|
+
declare const demandTabList: ({
|
|
6
|
+
label: string;
|
|
7
|
+
value: number;
|
|
8
|
+
key: string;
|
|
9
|
+
color: string;
|
|
10
|
+
buttonName: string;
|
|
11
|
+
} | {
|
|
12
|
+
label: string;
|
|
13
|
+
value: number;
|
|
14
|
+
key: string;
|
|
15
|
+
color: string;
|
|
16
|
+
buttonName?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
export { columnsEvent, demandTabList };
|
|
@@ -8,7 +8,7 @@ import { IconFont } from '@zgfe/business-lib';
|
|
|
8
8
|
import { Image } from 'antd';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
var classPrefix = 'system-setting-create-demand';
|
|
11
|
-
var columnsEvent = function columnsEvent(gotoPage, isControl) {
|
|
11
|
+
var columnsEvent = function columnsEvent(gotoPage, isControl, getPointMap) {
|
|
12
12
|
return [{
|
|
13
13
|
title: '页面名称',
|
|
14
14
|
dataIndex: 'pageName',
|
|
@@ -51,10 +51,10 @@ var columnsEvent = function columnsEvent(gotoPage, isControl) {
|
|
|
51
51
|
dataIndex: 'eventName',
|
|
52
52
|
width: 153,
|
|
53
53
|
ellipsis: true,
|
|
54
|
-
render: function render(eventName) {
|
|
54
|
+
render: function render(eventName, data) {
|
|
55
55
|
return /*#__PURE__*/React.createElement("a", {
|
|
56
56
|
onClick: function onClick() {
|
|
57
|
-
return
|
|
57
|
+
return getPointMap && getPointMap(data);
|
|
58
58
|
}
|
|
59
59
|
}, eventName);
|
|
60
60
|
}
|
|
@@ -97,4 +97,57 @@ var columnsEvent = function columnsEvent(gotoPage, isControl) {
|
|
|
97
97
|
}
|
|
98
98
|
}]);
|
|
99
99
|
};
|
|
100
|
-
|
|
100
|
+
var demandTabList = [{
|
|
101
|
+
label: '待设计',
|
|
102
|
+
value: 1,
|
|
103
|
+
key: 'nodename1',
|
|
104
|
+
color: '#fda145',
|
|
105
|
+
buttonName: '开始设计'
|
|
106
|
+
}, {
|
|
107
|
+
label: '设计',
|
|
108
|
+
value: 2,
|
|
109
|
+
key: 'nodename2',
|
|
110
|
+
color: '#fda145',
|
|
111
|
+
buttonName: '设计完成'
|
|
112
|
+
}, {
|
|
113
|
+
label: '审核1',
|
|
114
|
+
value: 3,
|
|
115
|
+
key: 'nodename3',
|
|
116
|
+
color: '#fb5547',
|
|
117
|
+
buttonName: '审核通过'
|
|
118
|
+
}, {
|
|
119
|
+
label: '审核2',
|
|
120
|
+
value: 4,
|
|
121
|
+
key: 'nodename4',
|
|
122
|
+
color: '#fb5547',
|
|
123
|
+
buttonName: '审核通过'
|
|
124
|
+
}, {
|
|
125
|
+
label: '开发',
|
|
126
|
+
value: 5,
|
|
127
|
+
key: 'nodename5',
|
|
128
|
+
color: '#165dff',
|
|
129
|
+
buttonName: '开发完成'
|
|
130
|
+
}, {
|
|
131
|
+
label: '测试',
|
|
132
|
+
value: 6,
|
|
133
|
+
key: 'nodename6',
|
|
134
|
+
color: '#165dff',
|
|
135
|
+
buttonName: '测试完成'
|
|
136
|
+
}, {
|
|
137
|
+
label: '已完成',
|
|
138
|
+
value: 101,
|
|
139
|
+
key: 'finishedSum',
|
|
140
|
+
color: '#2cbe54',
|
|
141
|
+
buttonName: '批量上线'
|
|
142
|
+
}, {
|
|
143
|
+
label: '已关闭',
|
|
144
|
+
value: 102,
|
|
145
|
+
key: 'closedSum',
|
|
146
|
+
color: '#cccfd5'
|
|
147
|
+
}, {
|
|
148
|
+
label: '已超时',
|
|
149
|
+
value: 103,
|
|
150
|
+
key: 'overTimeSum',
|
|
151
|
+
color: '#fda145'
|
|
152
|
+
}];
|
|
153
|
+
export { columnsEvent, demandTabList };
|
|
@@ -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() {
|