@zgfe/modules-settings 2.1.0-zhongyuan.9 → 3.0.0-zhongyuan-set.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/constants/api.d.ts +2 -0
- package/es/constants/api.js +5 -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.js +7 -8
- 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/role/index.less +296 -296
- package/es/modules/companySetting/user/index.js +41 -27
- package/es/modules/companySetting/user/invite.js +28 -100
- package/es/modules/createDemand/demo/selectPoint.js +1 -2
- package/es/modules/createDemand/index.js +9 -8
- 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 +2 -2
- package/es/modules/demandManage/styles/index.less +155 -155
- package/es/modules/personalSetting/securityLog/index.js +1 -1
- package/es/modules/pointMap/createMetaDrawer.js +162 -71
- package/es/modules/pointMap/index.js +3 -1
- package/es/modules/pointMap/pageInfo.js +17 -10
- package/es/modules/pointMap/styles/index.less +165 -165
- package/es/modules/pointMap/styles/tree.css +164 -145
- package/es/modules/pointMap/styles/tree.less +174 -156
- package/es/modules/pointMap/tree.js +133 -82
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +4 -3
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +48 -48
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +9 -5
- package/es/modules/systemSetting/document-setting/index.js +7 -6
- package/es/modules/systemSetting/index.js +13 -15
- package/es/modules/systemSetting/index.less +175 -169
- package/package.json +3 -3
package/es/constants/api.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ declare let apis: {
|
|
|
109
109
|
operationLog: string;
|
|
110
110
|
securityLog: string;
|
|
111
111
|
getLogTime: string;
|
|
112
|
+
exportLog: string;
|
|
112
113
|
};
|
|
113
114
|
getPassword: {
|
|
114
115
|
validateCode: string;
|
|
@@ -161,6 +162,7 @@ declare let apis: {
|
|
|
161
162
|
createPage: string;
|
|
162
163
|
updatePointPageInfo: string;
|
|
163
164
|
moveNode: string;
|
|
165
|
+
getEventAttributes: string;
|
|
164
166
|
getPageConfig: string;
|
|
165
167
|
addPageConfig: string;
|
|
166
168
|
updatePageConfig: string;
|
package/es/constants/api.js
CHANGED
|
@@ -134,7 +134,9 @@ var apis = {
|
|
|
134
134
|
// 安全日志
|
|
135
135
|
securityLog: '/zg/web/v2/system/securityLog',
|
|
136
136
|
// 时间范围查询
|
|
137
|
-
getLogTime: '/zg/web/v2/system/getLogTime'
|
|
137
|
+
getLogTime: '/zg/web/v2/system/getLogTime',
|
|
138
|
+
// 导出日志
|
|
139
|
+
exportLog: '/zg/web/v2/system/exportOperationLog'
|
|
138
140
|
},
|
|
139
141
|
getPassword: {
|
|
140
142
|
validateCode: '/zg/web/v2/system/validateCode',
|
|
@@ -217,6 +219,8 @@ var apis = {
|
|
|
217
219
|
updatePointPageInfo: '/zg/web/v2/approve/point/updatePointPageInfo',
|
|
218
220
|
// 拖拽移动页面
|
|
219
221
|
moveNode: '/zg/web/v2/approve/point/move',
|
|
222
|
+
// 根据事件id查询属性
|
|
223
|
+
getEventAttributes: '/zg/web/v2/data/queryEventAttrMetas',
|
|
220
224
|
// 查询页面管理详情
|
|
221
225
|
getPageConfig: '/zg/web/v2/approve/pageConfig/getDetail',
|
|
222
226
|
// 新增页面管理
|
|
@@ -8,6 +8,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
8
8
|
import { Button, Form, Input, notification } from 'antd';
|
|
9
9
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
10
10
|
import { urlRequest } from '../../../utils/ajax';
|
|
11
|
+
import request from '../../../utils/ajax';
|
|
11
12
|
import apis from '../../../constants/api';
|
|
12
13
|
import { useContext } from 'react';
|
|
13
14
|
var TextArea = Input.TextArea;
|
|
@@ -50,7 +51,7 @@ var AppDataAccessFilter = function AppDataAccessFilter() {
|
|
|
50
51
|
var onSubmit = function onSubmit(value) {
|
|
51
52
|
var ip = value.ip,
|
|
52
53
|
ua = value.ua;
|
|
53
|
-
|
|
54
|
+
request(apis.setting.createFilter, {
|
|
54
55
|
method: 'post',
|
|
55
56
|
data: {
|
|
56
57
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
5
5
|
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; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useEffect, forwardRef, useState, useImperativeHandle } from 'react';
|
|
8
|
-
import { Form, Input, Alert, Radio } from 'antd';
|
|
8
|
+
import { Form, Input, Alert, Radio, Select } from 'antd';
|
|
9
9
|
import './index.less';
|
|
10
10
|
import { classPrefix } from './index';
|
|
11
11
|
export var AppVersion;
|
|
@@ -25,7 +25,9 @@ export var AppVersion;
|
|
|
25
25
|
})(AppVersion || (AppVersion = {}));
|
|
26
26
|
var ApplicationForm = function ApplicationForm(props, ref) {
|
|
27
27
|
var name = props.name,
|
|
28
|
-
currentUser = props.currentUser
|
|
28
|
+
currentUser = props.currentUser,
|
|
29
|
+
_props$category = props.category,
|
|
30
|
+
category = _props$category === void 0 ? '1' : _props$category;
|
|
29
31
|
var _useState = useState(true),
|
|
30
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31
33
|
showChunk = _useState2[0],
|
|
@@ -55,9 +57,13 @@ var ApplicationForm = function ApplicationForm(props, ref) {
|
|
|
55
57
|
name: 'name',
|
|
56
58
|
value: name
|
|
57
59
|
}]);
|
|
60
|
+
form.setFields([{
|
|
61
|
+
name: 'category',
|
|
62
|
+
value: category
|
|
63
|
+
}]);
|
|
58
64
|
setShowchunk(false);
|
|
59
65
|
}
|
|
60
|
-
}, [name]);
|
|
66
|
+
}, [name, category]);
|
|
61
67
|
return /*#__PURE__*/React.createElement(Form, {
|
|
62
68
|
form: form,
|
|
63
69
|
labelCol: {
|
|
@@ -65,7 +71,8 @@ var ApplicationForm = function ApplicationForm(props, ref) {
|
|
|
65
71
|
},
|
|
66
72
|
layout: "horizontal",
|
|
67
73
|
initialValues: {
|
|
68
|
-
appVersion: (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 ? AppVersion.common : currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion
|
|
74
|
+
appVersion: (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 ? AppVersion.common : currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion,
|
|
75
|
+
category: '1'
|
|
69
76
|
}
|
|
70
77
|
}, showChunk && (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Alert, {
|
|
71
78
|
className: "".concat(classPrefix, "-alert-info"),
|
|
@@ -81,6 +88,29 @@ var ApplicationForm = function ApplicationForm(props, ref) {
|
|
|
81
88
|
}, "\u901A\u7528\u7248\u672C"), /*#__PURE__*/React.createElement(Radio, {
|
|
82
89
|
value: AppVersion.bank
|
|
83
90
|
}, "\u57CE\u5546\u884C\u573A\u666F\u7248\u672C"))))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
91
|
+
name: "category",
|
|
92
|
+
className: "app-list-form-item"
|
|
93
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
94
|
+
options: [{
|
|
95
|
+
value: '1',
|
|
96
|
+
label: '零售'
|
|
97
|
+
}, {
|
|
98
|
+
value: '2',
|
|
99
|
+
label: '公司'
|
|
100
|
+
}, {
|
|
101
|
+
value: '3',
|
|
102
|
+
label: '同业'
|
|
103
|
+
}, {
|
|
104
|
+
value: '4',
|
|
105
|
+
label: '风险'
|
|
106
|
+
}, {
|
|
107
|
+
value: '5',
|
|
108
|
+
label: '内部管理'
|
|
109
|
+
}, {
|
|
110
|
+
value: '6',
|
|
111
|
+
label: '其他'
|
|
112
|
+
}]
|
|
113
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
84
114
|
name: "name",
|
|
85
115
|
required: true,
|
|
86
116
|
rules: [{
|
|
@@ -543,19 +543,18 @@ var Application = function Application(_ref) {
|
|
|
543
543
|
case 12:
|
|
544
544
|
message.success(res === null || res === void 0 ? void 0 : res.msg);
|
|
545
545
|
setShowSetting(false);
|
|
546
|
-
|
|
547
|
-
_context9.next = 21;
|
|
546
|
+
_context9.next = 20;
|
|
548
547
|
break;
|
|
549
|
-
case
|
|
550
|
-
_context9.prev =
|
|
548
|
+
case 16:
|
|
549
|
+
_context9.prev = 16;
|
|
551
550
|
_context9.t0 = _context9["catch"](0);
|
|
552
551
|
console.log(_context9.t0);
|
|
553
552
|
setShowSetting(false);
|
|
554
|
-
case
|
|
553
|
+
case 20:
|
|
555
554
|
case "end":
|
|
556
555
|
return _context9.stop();
|
|
557
556
|
}
|
|
558
|
-
}, _callee9, null, [[0,
|
|
557
|
+
}, _callee9, null, [[0, 16]]);
|
|
559
558
|
}));
|
|
560
559
|
return function handleSettingSave() {
|
|
561
560
|
return _ref7.apply(this, arguments);
|
|
@@ -569,8 +568,8 @@ var Application = function Application(_ref) {
|
|
|
569
568
|
while (1) switch (_context11.prev = _context11.next) {
|
|
570
569
|
case 0:
|
|
571
570
|
Modal.confirm(_objectSpread(_objectSpread({}, modalConfig), {}, {
|
|
572
|
-
title: props.status ? '
|
|
573
|
-
content: props.status ? '
|
|
571
|
+
title: props.status ? '是否确定关闭应用?' : '开启应用',
|
|
572
|
+
content: props.status ? '应用关闭期间,所有数据将彻底丢失,且实时数据无法被订阅!请谨慎操作!' : '开启应用后,应用将开始接收数据',
|
|
574
573
|
icon: null,
|
|
575
574
|
onCancel: function onCancel() {},
|
|
576
575
|
onOk: function () {
|
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
.application {
|
|
2
|
-
height: 100%;
|
|
3
|
-
min-height: 400px;
|
|
4
|
-
overflow-x: hidden;
|
|
5
|
-
overflow-y: auto;
|
|
6
|
-
|
|
7
|
-
&-modal {
|
|
8
|
-
.ant-modal-body {
|
|
9
|
-
padding: 24px !important;
|
|
10
|
-
}
|
|
11
|
-
.ant-modal-confirm-body .ant-modal-confirm-title {
|
|
12
|
-
color: #000;
|
|
13
|
-
font-size: 24px;
|
|
14
|
-
line-height: 24px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ant-modal-confirm-body .ant-modal-confirm-content {
|
|
18
|
-
margin-top: 0;
|
|
19
|
-
padding-top: 24px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ant-modal-close {
|
|
23
|
-
padding-top: 8px;
|
|
24
|
-
padding-right: 6px;
|
|
25
|
-
|
|
26
|
-
&-x {
|
|
27
|
-
color: #021429;
|
|
28
|
-
font-size: 24px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&-drawer {
|
|
34
|
-
.ant-drawer-header-title {
|
|
35
|
-
flex-direction: row-reverse;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.bsicon {
|
|
40
|
-
color: #9aa1a9;
|
|
41
|
-
font-size: 16px !important;
|
|
42
|
-
}
|
|
43
|
-
.bsicon:hover {
|
|
44
|
-
color: var(--io-i-, #165dff);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.bsicon.shanchu:hover {
|
|
48
|
-
color: #fb5547;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.zhuge.icon-shanchu:hover {
|
|
52
|
-
color: #fb5547;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-alert-info {
|
|
56
|
-
background-color: #e6f7ff;
|
|
57
|
-
border: 1px solid #91d5ff;
|
|
58
|
-
border-radius: 2px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&-form {
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
justify-content: space-between;
|
|
65
|
-
|
|
66
|
-
&-item {
|
|
67
|
-
display: flex;
|
|
68
|
-
gap: 8px;
|
|
69
|
-
align-items: center;
|
|
70
|
-
|
|
71
|
-
.bsicon {
|
|
72
|
-
color: #fd9f41;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.bsicon:hover {
|
|
76
|
-
color: var(--io-i-, #fd9f41);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.ant-btn-sm {
|
|
81
|
-
height: 32px;
|
|
82
|
-
padding: 4px 16px;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.ant-divider-horizontal {
|
|
87
|
-
margin: 14px 0;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.biz-loading-container.loading {
|
|
91
|
-
margin-top: 100px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&-disabled,
|
|
95
|
-
&-disabled:hover,
|
|
96
|
-
&-disabled:focus {
|
|
97
|
-
cursor: not-allowed !important;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ant-btn-primary[disabled],
|
|
101
|
-
.ant-btn-primary[disabled]:hover,
|
|
102
|
-
.ant-btn-primary[disabled]:focus,
|
|
103
|
-
.ant-btn-primary[disabled]:active {
|
|
104
|
-
color: #fff;
|
|
105
|
-
background: var(--io-i2-, #d0dfff);
|
|
106
|
-
border: 1px solid #d0dfff;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.settings-card {
|
|
110
|
-
gap: 6px;
|
|
111
|
-
height: 120px;
|
|
112
|
-
}
|
|
113
|
-
&-rowContent {
|
|
114
|
-
height: calc(100vh - 302px);
|
|
115
|
-
overflow: overlay;
|
|
116
|
-
}
|
|
117
|
-
&-contentList-label {
|
|
118
|
-
display: grid;
|
|
119
|
-
grid-template-columns: 230px repeat(4, minmax(90px, 1fr)) 135px 90px 260px;
|
|
120
|
-
align-items: center;
|
|
121
|
-
padding-right: 14px;
|
|
122
|
-
border-bottom: 1px solid #ecedf0;
|
|
123
|
-
}
|
|
124
|
-
&-contentList-item-name {
|
|
125
|
-
color: #000;
|
|
126
|
-
font-weight: bold;
|
|
127
|
-
font-size: 14px;
|
|
128
|
-
}
|
|
129
|
-
&-contentList-item-status-icon0,
|
|
130
|
-
&-contentList-item-status-icon1 {
|
|
131
|
-
display: inline-block;
|
|
132
|
-
width: 6px;
|
|
133
|
-
height: 6px;
|
|
134
|
-
margin-right: 3px;
|
|
135
|
-
border-radius: 50%;
|
|
136
|
-
transform: translateY(-1px);
|
|
137
|
-
}
|
|
138
|
-
&-contentList-item-status-icon0 {
|
|
139
|
-
background: #67727f;
|
|
140
|
-
}
|
|
141
|
-
&-contentList-item-status-icon1 {
|
|
142
|
-
background: #165dff;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
1
|
+
.application {
|
|
2
|
+
height: 100%;
|
|
3
|
+
min-height: 400px;
|
|
4
|
+
overflow-x: hidden;
|
|
5
|
+
overflow-y: auto;
|
|
6
|
+
|
|
7
|
+
&-modal {
|
|
8
|
+
.ant-modal-body {
|
|
9
|
+
padding: 24px !important;
|
|
10
|
+
}
|
|
11
|
+
.ant-modal-confirm-body .ant-modal-confirm-title {
|
|
12
|
+
color: #000;
|
|
13
|
+
font-size: 24px;
|
|
14
|
+
line-height: 24px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ant-modal-confirm-body .ant-modal-confirm-content {
|
|
18
|
+
margin-top: 0;
|
|
19
|
+
padding-top: 24px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ant-modal-close {
|
|
23
|
+
padding-top: 8px;
|
|
24
|
+
padding-right: 6px;
|
|
25
|
+
|
|
26
|
+
&-x {
|
|
27
|
+
color: #021429;
|
|
28
|
+
font-size: 24px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-drawer {
|
|
34
|
+
.ant-drawer-header-title {
|
|
35
|
+
flex-direction: row-reverse;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.bsicon {
|
|
40
|
+
color: #9aa1a9;
|
|
41
|
+
font-size: 16px !important;
|
|
42
|
+
}
|
|
43
|
+
.bsicon:hover {
|
|
44
|
+
color: var(--io-i-, #165dff);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.bsicon.shanchu:hover {
|
|
48
|
+
color: #fb5547;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.zhuge.icon-shanchu:hover {
|
|
52
|
+
color: #fb5547;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-alert-info {
|
|
56
|
+
background-color: #e6f7ff;
|
|
57
|
+
border: 1px solid #91d5ff;
|
|
58
|
+
border-radius: 2px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-form {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
|
|
66
|
+
&-item {
|
|
67
|
+
display: flex;
|
|
68
|
+
gap: 8px;
|
|
69
|
+
align-items: center;
|
|
70
|
+
|
|
71
|
+
.bsicon {
|
|
72
|
+
color: #fd9f41;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.bsicon:hover {
|
|
76
|
+
color: var(--io-i-, #fd9f41);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ant-btn-sm {
|
|
81
|
+
height: 32px;
|
|
82
|
+
padding: 4px 16px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.ant-divider-horizontal {
|
|
87
|
+
margin: 14px 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.biz-loading-container.loading {
|
|
91
|
+
margin-top: 100px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&-disabled,
|
|
95
|
+
&-disabled:hover,
|
|
96
|
+
&-disabled:focus {
|
|
97
|
+
cursor: not-allowed !important;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ant-btn-primary[disabled],
|
|
101
|
+
.ant-btn-primary[disabled]:hover,
|
|
102
|
+
.ant-btn-primary[disabled]:focus,
|
|
103
|
+
.ant-btn-primary[disabled]:active {
|
|
104
|
+
color: #fff;
|
|
105
|
+
background: var(--io-i2-, #d0dfff);
|
|
106
|
+
border: 1px solid #d0dfff;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.settings-card {
|
|
110
|
+
gap: 6px;
|
|
111
|
+
height: 120px;
|
|
112
|
+
}
|
|
113
|
+
&-rowContent {
|
|
114
|
+
height: calc(100vh - 302px);
|
|
115
|
+
overflow: overlay;
|
|
116
|
+
}
|
|
117
|
+
&-contentList-label {
|
|
118
|
+
display: grid;
|
|
119
|
+
grid-template-columns: 230px repeat(4, minmax(90px, 1fr)) 135px 90px 260px;
|
|
120
|
+
align-items: center;
|
|
121
|
+
padding-right: 14px;
|
|
122
|
+
border-bottom: 1px solid #ecedf0;
|
|
123
|
+
}
|
|
124
|
+
&-contentList-item-name {
|
|
125
|
+
color: #000;
|
|
126
|
+
font-weight: bold;
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
}
|
|
129
|
+
&-contentList-item-status-icon0,
|
|
130
|
+
&-contentList-item-status-icon1 {
|
|
131
|
+
display: inline-block;
|
|
132
|
+
width: 6px;
|
|
133
|
+
height: 6px;
|
|
134
|
+
margin-right: 3px;
|
|
135
|
+
border-radius: 50%;
|
|
136
|
+
transform: translateY(-1px);
|
|
137
|
+
}
|
|
138
|
+
&-contentList-item-status-icon0 {
|
|
139
|
+
background: #67727f;
|
|
140
|
+
}
|
|
141
|
+
&-contentList-item-status-icon1 {
|
|
142
|
+
background: #165dff;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -18,13 +18,10 @@ import React, { useContext, useEffect, useState } from 'react';
|
|
|
18
18
|
import './index.less';
|
|
19
19
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
20
20
|
import { Tabs } from 'antd';
|
|
21
|
-
import Info from './info';
|
|
22
21
|
import User from './user';
|
|
23
22
|
import VirtualApp from './virtualApp';
|
|
24
|
-
import Cost from './cost';
|
|
25
23
|
import WechatBinding from './wechatBinding';
|
|
26
24
|
import OperationLog from './operationLog';
|
|
27
|
-
import DepartmentList from './department';
|
|
28
25
|
import RoleList from './role';
|
|
29
26
|
import Business from './business';
|
|
30
27
|
import Application from './application';
|
|
@@ -59,7 +56,7 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
59
56
|
var _useState7 = useState(false),
|
|
60
57
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
61
58
|
setIsShowCreateApp = _useState8[1];
|
|
62
|
-
var _useState9 = useState(currentPath ? currentPath : '
|
|
59
|
+
var _useState9 = useState(currentPath ? currentPath : 'user'),
|
|
63
60
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
64
61
|
activeKey = _useState10[0],
|
|
65
62
|
setActiveKey = _useState10[1]; // 默认值
|
|
@@ -157,17 +154,21 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
157
154
|
}
|
|
158
155
|
}));
|
|
159
156
|
};
|
|
160
|
-
var items = [
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
157
|
+
var items = [
|
|
158
|
+
// {
|
|
159
|
+
// key: 'info',
|
|
160
|
+
// label: '公司信息',
|
|
161
|
+
// children: (
|
|
162
|
+
// <Info
|
|
163
|
+
// ENVIRONMENT={ENVIRONMENT}
|
|
164
|
+
// companyId={currentUser!.companyId as number}
|
|
165
|
+
// companyName={currentUser!.companyName}
|
|
166
|
+
// changeCompanyNameCallback={changeCompanyNameCallback}
|
|
167
|
+
// />
|
|
168
|
+
// ),
|
|
169
|
+
// hidden: !authority[10078],
|
|
170
|
+
// },
|
|
171
|
+
{
|
|
171
172
|
key: 'user',
|
|
172
173
|
label: '成员管理',
|
|
173
174
|
children: (/*#__PURE__*/React.createElement(User, {
|
|
@@ -196,15 +197,19 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
196
197
|
companyId: currentUser.companyId
|
|
197
198
|
}),
|
|
198
199
|
hidden: !authority[10080]
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
200
|
+
},
|
|
201
|
+
// {
|
|
202
|
+
// key: 'department',
|
|
203
|
+
// label: '部门管理',
|
|
204
|
+
// children: (
|
|
205
|
+
// <DepartmentList
|
|
206
|
+
// companyId={currentUser!.companyId as number}
|
|
207
|
+
// closeCreateCallback={closeCreateCallback}
|
|
208
|
+
// />
|
|
209
|
+
// ),
|
|
210
|
+
// hidden: !authority[10081],
|
|
211
|
+
// },
|
|
212
|
+
{
|
|
208
213
|
key: 'business',
|
|
209
214
|
label: '业务',
|
|
210
215
|
children: /*#__PURE__*/React.createElement(Business, {
|
|
@@ -233,15 +238,14 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
233
238
|
editVirtualAppCallback: editVirtualAppCallback
|
|
234
239
|
})),
|
|
235
240
|
hidden: !showVirtualApp
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}, {
|
|
241
|
+
},
|
|
242
|
+
// {
|
|
243
|
+
// key: 'cost',
|
|
244
|
+
// label: '套餐',
|
|
245
|
+
// children: <Cost ENVIRONMENT={ENVIRONMENT} companyId={currentUser!.companyId as number} />,
|
|
246
|
+
// hidden: !authority[10083],
|
|
247
|
+
// },
|
|
248
|
+
{
|
|
245
249
|
key: 'weChatBinding',
|
|
246
250
|
label: '微信账号绑定',
|
|
247
251
|
children: /*#__PURE__*/React.createElement(WechatBinding, null),
|
|
@@ -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,
|