@zgfe/modules-settings 2.0.0-zhongyuan.26 → 2.0.0-zhongyuan.28

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.
@@ -1,155 +1,155 @@
1
- // @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
- .system-setting-demand {
3
- padding: 24px;
4
- background-color: #fff;
5
-
6
- &-title {
7
- padding: 16px 0;
8
- color: #021429;
9
- font-weight: 500;
10
- font-size: 20px;
11
- }
12
-
13
- &-panel {
14
- display: flex;
15
- flex-direction: row;
16
- gap: 16px;
17
- &-all {
18
- display: flex;
19
- flex-direction: row;
20
- gap: 16px;
21
- align-items: center;
22
- width: 256px;
23
- padding: 24px;
24
- color: var(--io-N8-, #354354);
25
- font-weight: 400;
26
- font-size: 16px;
27
- background: var(--io-n-02, #fafafb);
28
- border-radius: 8px;
29
- &-img {
30
- width: 64px;
31
- height: 64px;
32
- background: url('./../images/title-bg.png') no-repeat;
33
- background-size: contain;
34
- }
35
- &-num {
36
- color: var(--io-N-, #021429);
37
- font-weight: 700;
38
- font-size: 32px;
39
- line-height: 40px; /* 125% */
40
- cursor: pointer;
41
- }
42
- }
43
- &-status {
44
- display: flex;
45
- flex: 1;
46
- flex-direction: row;
47
- color: var(--io-N8-, #354354);
48
- font-weight: 400;
49
- font-size: 16px;
50
- font-family: 'PingFang SC';
51
- font-style: normal;
52
- line-height: normal;
53
- background: var(--io-n-02, #fafafb);
54
- border-radius: 8px;
55
- &-item {
56
- display: flex;
57
- flex: 1;
58
- // align-items: center;
59
- flex-direction: column;
60
- padding: 24px;
61
- &-txt {
62
- display: flex;
63
- flex-direction: row;
64
- gap: 4px;
65
- align-items: center;
66
- cursor: pointer;
67
- }
68
- &-icon {
69
- display: block;
70
- width: 8px;
71
- height: 8px;
72
- border-radius: 4px;
73
- content: '';
74
- }
75
- &-num {
76
- margin-top: 4px;
77
- margin-left: 12px;
78
- color: var(--io-N-, #021429);
79
- font-weight: 700;
80
- font-size: 32px;
81
- font-family: Arial;
82
- font-style: normal;
83
- line-height: 40px; /* 125% */
84
- cursor: pointer;
85
- }
86
- }
87
- }
88
- }
89
- &-filter {
90
- display: flex;
91
- flex-direction: row;
92
- align-items: center;
93
- padding: 16px 0;
94
- &-left {
95
- display: flex;
96
- flex: 1;
97
- flex-direction: row;
98
- gap: 16px;
99
- align-items: center;
100
- }
101
- &-right {
102
- display: flex;
103
- flex-direction: row;
104
- gap: 16px;
105
- align-items: center;
106
- .button:not(.disabled):not(.ant-btn-primary) {
107
- color: #1454e5;
108
- border: 1px solid #1454e5;
109
- }
110
- }
111
- }
112
-
113
- &-table {
114
- &-status {
115
- display: flex;
116
- align-items: center;
117
- padding: 1px 8px;
118
- font-weight: 400;
119
- font-size: 14px;
120
- line-height: 22px; /* 157.143% */
121
- border-radius: 2px;
122
- }
123
- }
124
- }
125
- .system-setting-demand-pop {
126
- display: flex;
127
- flex-direction: column;
128
- gap: 8px;
129
- width: 136px;
130
- &-header {
131
- display: flex;
132
- flex-direction: row;
133
- align-items: flex-start;
134
- justify-content: space-between;
135
- color: var(--io-N-, #021429);
136
- font-weight: 400;
137
- font-size: 16px;
138
- line-height: 24px; /* 150% */
139
- .qingchu {
140
- color: #9aa1a9;
141
- cursor: pointer;
142
- }
143
- }
144
- &-footer {
145
- display: flex;
146
- flex-direction: row;
147
- align-items: center;
148
- justify-content: space-between;
149
- .ant-btn-primary {
150
- height: 24px;
151
- padding-top: 0;
152
- padding-bottom: 0;
153
- }
154
- }
155
- }
1
+ // @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+ .system-setting-demand {
3
+ padding: 24px;
4
+ background-color: #fff;
5
+
6
+ &-title {
7
+ padding: 16px 0;
8
+ color: #021429;
9
+ font-weight: 500;
10
+ font-size: 20px;
11
+ }
12
+
13
+ &-panel {
14
+ display: flex;
15
+ flex-direction: row;
16
+ gap: 16px;
17
+ &-all {
18
+ display: flex;
19
+ flex-direction: row;
20
+ gap: 16px;
21
+ align-items: center;
22
+ width: 256px;
23
+ padding: 24px;
24
+ color: var(--io-N8-, #354354);
25
+ font-weight: 400;
26
+ font-size: 16px;
27
+ background: var(--io-n-02, #fafafb);
28
+ border-radius: 8px;
29
+ &-img {
30
+ width: 64px;
31
+ height: 64px;
32
+ background: url('./../images/title-bg.png') no-repeat;
33
+ background-size: contain;
34
+ }
35
+ &-num {
36
+ color: var(--io-N-, #021429);
37
+ font-weight: 700;
38
+ font-size: 32px;
39
+ line-height: 40px; /* 125% */
40
+ cursor: pointer;
41
+ }
42
+ }
43
+ &-status {
44
+ display: flex;
45
+ flex: 1;
46
+ flex-direction: row;
47
+ color: var(--io-N8-, #354354);
48
+ font-weight: 400;
49
+ font-size: 16px;
50
+ font-family: 'PingFang SC';
51
+ font-style: normal;
52
+ line-height: normal;
53
+ background: var(--io-n-02, #fafafb);
54
+ border-radius: 8px;
55
+ &-item {
56
+ display: flex;
57
+ flex: 1;
58
+ // align-items: center;
59
+ flex-direction: column;
60
+ padding: 24px;
61
+ &-txt {
62
+ display: flex;
63
+ flex-direction: row;
64
+ gap: 4px;
65
+ align-items: center;
66
+ cursor: pointer;
67
+ }
68
+ &-icon {
69
+ display: block;
70
+ width: 8px;
71
+ height: 8px;
72
+ border-radius: 4px;
73
+ content: '';
74
+ }
75
+ &-num {
76
+ margin-top: 4px;
77
+ margin-left: 12px;
78
+ color: var(--io-N-, #021429);
79
+ font-weight: 700;
80
+ font-size: 32px;
81
+ font-family: Arial;
82
+ font-style: normal;
83
+ line-height: 40px; /* 125% */
84
+ cursor: pointer;
85
+ }
86
+ }
87
+ }
88
+ }
89
+ &-filter {
90
+ display: flex;
91
+ flex-direction: row;
92
+ align-items: center;
93
+ padding: 16px 0;
94
+ &-left {
95
+ display: flex;
96
+ flex: 1;
97
+ flex-direction: row;
98
+ gap: 16px;
99
+ align-items: center;
100
+ }
101
+ &-right {
102
+ display: flex;
103
+ flex-direction: row;
104
+ gap: 16px;
105
+ align-items: center;
106
+ .button:not(.disabled):not(.ant-btn-primary) {
107
+ color: #1454e5;
108
+ border: 1px solid #1454e5;
109
+ }
110
+ }
111
+ }
112
+
113
+ &-table {
114
+ &-status {
115
+ display: flex;
116
+ align-items: center;
117
+ padding: 1px 8px;
118
+ font-weight: 400;
119
+ font-size: 14px;
120
+ line-height: 22px; /* 157.143% */
121
+ border-radius: 2px;
122
+ }
123
+ }
124
+ }
125
+ .system-setting-demand-pop {
126
+ display: flex;
127
+ flex-direction: column;
128
+ gap: 8px;
129
+ width: 136px;
130
+ &-header {
131
+ display: flex;
132
+ flex-direction: row;
133
+ align-items: flex-start;
134
+ justify-content: space-between;
135
+ color: var(--io-N-, #021429);
136
+ font-weight: 400;
137
+ font-size: 16px;
138
+ line-height: 24px; /* 150% */
139
+ .qingchu {
140
+ color: #9aa1a9;
141
+ cursor: pointer;
142
+ }
143
+ }
144
+ &-footer {
145
+ display: flex;
146
+ flex-direction: row;
147
+ align-items: center;
148
+ justify-content: space-between;
149
+ .ant-btn-primary {
150
+ height: 24px;
151
+ padding-top: 0;
152
+ padding-bottom: 0;
153
+ }
154
+ }
155
+ }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
3
  declare const CreateProcess: React.FC<{
4
- onClose: Function;
4
+ onClose: Function | undefined;
5
5
  changeRead?: Function;
6
6
  }>;
7
7
  export default CreateProcess;
@@ -100,12 +100,12 @@ var CreateProcess = function CreateProcess(props) {
100
100
  className: "".concat(classPrefix)
101
101
  }, /*#__PURE__*/React.createElement("div", {
102
102
  className: "".concat(classPrefix, "-header")
103
- }, "\u6D88\u606F\u901A\u77E5\uFF08", unReadNum, "\uFF09", /*#__PURE__*/React.createElement(IconFont, {
103
+ }, "\u6D88\u606F\u901A\u77E5\uFF08", unReadNum, "\uFF09", onclose ? (/*#__PURE__*/React.createElement(IconFont, {
104
104
  type: "qingchu",
105
105
  onClick: function onClick() {
106
- return props.onClose();
106
+ return props.onClose && props.onClose();
107
107
  }
108
- })), /*#__PURE__*/React.createElement("div", {
108
+ })) : ''), /*#__PURE__*/React.createElement("div", {
109
109
  className: "".concat(classPrefix, "-content")
110
110
  }, /*#__PURE__*/React.createElement("div", {
111
111
  className: "".concat(classPrefix, "-content-filter")
@@ -167,7 +167,7 @@ var CreateProcess = function CreateProcess(props) {
167
167
  },
168
168
  onClick: function onClick() {
169
169
  gotoPage(v.businessId, v.content);
170
- props.onClose();
170
+ props.onClose && props.onClose();
171
171
  // changeAllRead(v.id);
172
172
  }
173
173
  }, v.content), /*#__PURE__*/React.createElement("div", {
@@ -190,7 +190,7 @@ var CreateProcess = function CreateProcess(props) {
190
190
  className: "".concat(classPrefix, "-content-list-item-title"),
191
191
  onClick: function onClick() {
192
192
  gotoPage(v.businessId, v.content);
193
- props.onClose();
193
+ props.onClose && props.onClose();
194
194
  changeAllRead(v.id);
195
195
  }
196
196
  }, v.content), /*#__PURE__*/React.createElement("div", {
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import PersonalSetting from '../index';
3
+ import { DemoWrapper } from '@zgfe/business-lib';
4
+ export default (function () {
5
+ return /*#__PURE__*/React.createElement(DemoWrapper, {
6
+ defaultApp: 99825
7
+ }, /*#__PURE__*/React.createElement(PersonalSetting, {
8
+ settingsCallback: function settingsCallback(type) {
9
+ throw new Error('Function not implemented.');
10
+ }
11
+ }));
12
+ });
@@ -14,12 +14,15 @@ import { useContext } from 'react';
14
14
  import { BizGlobalDataContext } from '@zgfe/business-lib';
15
15
  import util from '../../utils/util';
16
16
  import SecurityLog from './securityLog';
17
+ import CreateProcess from '../messageList';
17
18
  var PersonalSetting = function PersonalSetting(_ref) {
19
+ var _route$params;
18
20
  var settingsCallback = _ref.settingsCallback;
19
21
  var _useContext = useContext(BizGlobalDataContext),
20
22
  currentUser = _useContext.currentUser,
21
- isDemo = _useContext.isDemo;
22
- var _useState = useState('1'),
23
+ isDemo = _useContext.isDemo,
24
+ route = _useContext.route;
25
+ var _useState = useState((route === null || route === void 0 ? void 0 : (_route$params = route.params) === null || _route$params === void 0 ? void 0 : _route$params.currentKey) || '1'),
23
26
  _useState2 = _slicedToArray(_useState, 2),
24
27
  currentKey = _useState2[0],
25
28
  setCurrentKey = _useState2[1];
@@ -54,6 +57,12 @@ var PersonalSetting = function PersonalSetting(_ref) {
54
57
  key: '4',
55
58
  label: '安全日志',
56
59
  content: /*#__PURE__*/React.createElement(SecurityLog, null)
60
+ }, {
61
+ key: '5',
62
+ label: '消息通知',
63
+ content: /*#__PURE__*/React.createElement(CreateProcess, {
64
+ onClose: undefined
65
+ })
57
66
  }];
58
67
  return /*#__PURE__*/React.createElement(SettingTabs, {
59
68
  typeName: "personal",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "2.0.0-zhongyuan.26",
3
+ "version": "2.0.0-zhongyuan.28",
4
4
  "private": false,
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -67,7 +67,7 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "848555469759c362b0f069f0d8a09216c8281f7e",
70
+ "gitHead": "84a3ce232b868fce2f82c664b8df23b31e4f88b9",
71
71
  "gitHooks": {
72
72
  "pre-commit": "lint-staged"
73
73
  }