@zgfe/modules-settings 1.2.51-zhongyuan.1 → 1.2.51-zhongyuan.7
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/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 +13 -0
- package/es/constants/api.js +18 -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.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/index.less +126 -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.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.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 +173 -4
- package/es/modules/companySetting/user/index.less +11 -0
- 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/styles/index.less +277 -277
- 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/styles/index.less +265 -265
- package/es/modules/demandManage/styles/index.less +210 -210
- package/es/modules/getPassword/index.less +122 -122
- package/es/modules/messageList/index.less +81 -81
- 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/editTxt/index.less +55 -55
- package/es/modules/pointMap/styles/index.less +38 -38
- package/es/modules/pointMap/styles/pageInfo.less +244 -244
- package/es/modules/pointMap/styles/tree.css +142 -0
- package/es/modules/pointMap/styles/tree.less +29 -0
- package/es/modules/pointMap/tree.js +53 -4
- package/es/modules/systemSetting/Dictionary.d.ts +3 -0
- package/es/modules/systemSetting/Dictionary.js +383 -0
- package/es/modules/systemSetting/DictionaryType.d.ts +14 -0
- package/es/modules/systemSetting/DictionaryType.js +203 -0
- 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/authUrl.js +2 -2
- package/es/modules/systemSetting/document-setting/index.d.ts +3 -0
- package/es/modules/systemSetting/document-setting/index.js +467 -0
- package/es/modules/systemSetting/img/empty-data.png +0 -0
- package/es/modules/systemSetting/index.css +130 -0
- package/es/modules/systemSetting/index.js +13 -1
- package/es/modules/systemSetting/index.less +136 -0
- package/es/modules/systemSetting/notice/configItem/index.less +21 -21
- package/es/modules/systemSetting/notice/edit/index.less +26 -26
- package/es/types/companySetting.d.ts +1 -0
- package/package.json +6 -2
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
@import './reset.less';
|
|
2
|
-
|
|
3
|
-
.setting {
|
|
4
|
-
height: 100%;
|
|
5
|
-
overflow-y: auto;
|
|
6
|
-
font-size: 14px;
|
|
7
|
-
background: #fafafb;
|
|
8
|
-
|
|
9
|
-
.disabled {
|
|
10
|
-
background: #ccc !important;
|
|
11
|
-
border-color: #ccc !important;
|
|
12
|
-
cursor: not-allowed;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.setting-content {
|
|
17
|
-
padding: 16px;
|
|
18
|
-
|
|
19
|
-
.setting-title {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
margin-bottom: 0px;
|
|
23
|
-
|
|
24
|
-
.icon-set,
|
|
25
|
-
.icon-company {
|
|
26
|
-
margin-right: 10px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.app-name {
|
|
30
|
-
margin-left: 3px;
|
|
31
|
-
font-size: 14px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.setting-body {
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: flex-start;
|
|
38
|
-
|
|
39
|
-
.setting-tab {
|
|
40
|
-
border-top: 1px solid #dadada;
|
|
41
|
-
|
|
42
|
-
li > a {
|
|
43
|
-
z-index: 1;
|
|
44
|
-
display: inline-block;
|
|
45
|
-
width: 200px;
|
|
46
|
-
min-height: 50px;
|
|
47
|
-
color: #858585;
|
|
48
|
-
font-size: 14px;
|
|
49
|
-
line-height: 50px;
|
|
50
|
-
text-align: left;
|
|
51
|
-
text-decoration: none;
|
|
52
|
-
text-indent: 40px;
|
|
53
|
-
background: #ffffff;
|
|
54
|
-
border: 1px solid #dadada;
|
|
55
|
-
border-top: none;
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
|
|
58
|
-
&:hover {
|
|
59
|
-
color: #000;
|
|
60
|
-
font-weight: bold;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.router-link-active {
|
|
65
|
-
color: #000;
|
|
66
|
-
font-weight: bold;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.setting-component {
|
|
72
|
-
width: 914px;
|
|
73
|
-
height: calc(100vh - 130px);
|
|
74
|
-
min-height: 465px;
|
|
75
|
-
margin-left: 20px;
|
|
76
|
-
background: #fff;
|
|
77
|
-
border: 1px solid #dadada;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
1
|
+
@import './reset.less';
|
|
2
|
+
|
|
3
|
+
.setting {
|
|
4
|
+
height: 100%;
|
|
5
|
+
overflow-y: auto;
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
background: #fafafb;
|
|
8
|
+
|
|
9
|
+
.disabled {
|
|
10
|
+
background: #ccc !important;
|
|
11
|
+
border-color: #ccc !important;
|
|
12
|
+
cursor: not-allowed;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.setting-content {
|
|
17
|
+
padding: 16px;
|
|
18
|
+
|
|
19
|
+
.setting-title {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
margin-bottom: 0px;
|
|
23
|
+
|
|
24
|
+
.icon-set,
|
|
25
|
+
.icon-company {
|
|
26
|
+
margin-right: 10px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.app-name {
|
|
30
|
+
margin-left: 3px;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.setting-body {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
|
|
39
|
+
.setting-tab {
|
|
40
|
+
border-top: 1px solid #dadada;
|
|
41
|
+
|
|
42
|
+
li > a {
|
|
43
|
+
z-index: 1;
|
|
44
|
+
display: inline-block;
|
|
45
|
+
width: 200px;
|
|
46
|
+
min-height: 50px;
|
|
47
|
+
color: #858585;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
line-height: 50px;
|
|
50
|
+
text-align: left;
|
|
51
|
+
text-decoration: none;
|
|
52
|
+
text-indent: 40px;
|
|
53
|
+
background: #ffffff;
|
|
54
|
+
border: 1px solid #dadada;
|
|
55
|
+
border-top: none;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
|
|
58
|
+
&:hover {
|
|
59
|
+
color: #000;
|
|
60
|
+
font-weight: bold;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.router-link-active {
|
|
65
|
+
color: #000;
|
|
66
|
+
font-weight: bold;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.setting-component {
|
|
72
|
+
width: 914px;
|
|
73
|
+
height: calc(100vh - 130px);
|
|
74
|
+
min-height: 465px;
|
|
75
|
+
margin-left: 20px;
|
|
76
|
+
background: #fff;
|
|
77
|
+
border: 1px solid #dadada;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
// @import constants
|
|
2
|
-
|
|
3
|
-
* {
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
font-family: 'PingFang SC', Arial, 'Microsoft YaHei', sans-serif;
|
|
6
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
*:before,
|
|
10
|
-
*:after {
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// HTML & Body reset
|
|
15
|
-
html,
|
|
16
|
-
body {
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: 100%;
|
|
19
|
-
margin: 0;
|
|
20
|
-
padding: 0;
|
|
21
|
-
overflow-x: hidden;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// unify the setting of elements's margin and padding for browsers
|
|
25
|
-
body,
|
|
26
|
-
div,
|
|
27
|
-
dl,
|
|
28
|
-
dt,
|
|
29
|
-
dd,
|
|
30
|
-
ul,
|
|
31
|
-
ol,
|
|
32
|
-
li,
|
|
33
|
-
h1,
|
|
34
|
-
h2,
|
|
35
|
-
h3,
|
|
36
|
-
h4,
|
|
37
|
-
h5,
|
|
38
|
-
h6,
|
|
39
|
-
pre,
|
|
40
|
-
code,
|
|
41
|
-
form,
|
|
42
|
-
fieldset,
|
|
43
|
-
legend,
|
|
44
|
-
input,
|
|
45
|
-
textarea,
|
|
46
|
-
p,
|
|
47
|
-
blockquote,
|
|
48
|
-
th,
|
|
49
|
-
td,
|
|
50
|
-
hr,
|
|
51
|
-
button,
|
|
52
|
-
article,
|
|
53
|
-
aside,
|
|
54
|
-
details,
|
|
55
|
-
figcaption,
|
|
56
|
-
figure,
|
|
57
|
-
footer,
|
|
58
|
-
header,
|
|
59
|
-
hgroup,
|
|
60
|
-
menu,
|
|
61
|
-
nav,
|
|
62
|
-
section {
|
|
63
|
-
box-sizing: border-box;
|
|
64
|
-
margin: 0;
|
|
65
|
-
padding: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Reset fonts for relevant elements
|
|
69
|
-
button,
|
|
70
|
-
input,
|
|
71
|
-
select,
|
|
72
|
-
textarea {
|
|
73
|
-
color: inherit;
|
|
74
|
-
font-size: inherit;
|
|
75
|
-
line-height: inherit;
|
|
76
|
-
outline: none;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
ul,
|
|
80
|
-
li,
|
|
81
|
-
ol {
|
|
82
|
-
list-style: none;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// Remove the clear button of a text input control in IE10+
|
|
86
|
-
input::-ms-clear,
|
|
87
|
-
input::-ms-reveal {
|
|
88
|
-
display: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// Links
|
|
92
|
-
a {
|
|
93
|
-
text-decoration: none;
|
|
94
|
-
background: transparent;
|
|
95
|
-
outline: none;
|
|
96
|
-
cursor: pointer;
|
|
97
|
-
transition: color 0.3s ease;
|
|
98
|
-
|
|
99
|
-
&:focus {
|
|
100
|
-
text-decoration: underline;
|
|
101
|
-
text-decoration-skip-ink: auto;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.company-setting [class^='icon-'],
|
|
106
|
-
.company-setting [class*=' icon-'] {
|
|
107
|
-
font-family: 'zhuge' !important;
|
|
108
|
-
font-style: normal;
|
|
109
|
-
-webkit-font-smoothing: antialiased;
|
|
110
|
-
-moz-osx-font-smoothing: grayscale;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.ant-dropdown-hidden,
|
|
114
|
-
.ant-picker-dropdown-hidden,
|
|
115
|
-
ant-dropdown-menu-submenu-hidden {
|
|
116
|
-
display: none;
|
|
117
|
-
}
|
|
1
|
+
// @import constants
|
|
2
|
+
|
|
3
|
+
* {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
font-family: 'PingFang SC', Arial, 'Microsoft YaHei', sans-serif;
|
|
6
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
*:before,
|
|
10
|
+
*:after {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// HTML & Body reset
|
|
15
|
+
html,
|
|
16
|
+
body {
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding: 0;
|
|
21
|
+
overflow-x: hidden;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// unify the setting of elements's margin and padding for browsers
|
|
25
|
+
body,
|
|
26
|
+
div,
|
|
27
|
+
dl,
|
|
28
|
+
dt,
|
|
29
|
+
dd,
|
|
30
|
+
ul,
|
|
31
|
+
ol,
|
|
32
|
+
li,
|
|
33
|
+
h1,
|
|
34
|
+
h2,
|
|
35
|
+
h3,
|
|
36
|
+
h4,
|
|
37
|
+
h5,
|
|
38
|
+
h6,
|
|
39
|
+
pre,
|
|
40
|
+
code,
|
|
41
|
+
form,
|
|
42
|
+
fieldset,
|
|
43
|
+
legend,
|
|
44
|
+
input,
|
|
45
|
+
textarea,
|
|
46
|
+
p,
|
|
47
|
+
blockquote,
|
|
48
|
+
th,
|
|
49
|
+
td,
|
|
50
|
+
hr,
|
|
51
|
+
button,
|
|
52
|
+
article,
|
|
53
|
+
aside,
|
|
54
|
+
details,
|
|
55
|
+
figcaption,
|
|
56
|
+
figure,
|
|
57
|
+
footer,
|
|
58
|
+
header,
|
|
59
|
+
hgroup,
|
|
60
|
+
menu,
|
|
61
|
+
nav,
|
|
62
|
+
section {
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
margin: 0;
|
|
65
|
+
padding: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Reset fonts for relevant elements
|
|
69
|
+
button,
|
|
70
|
+
input,
|
|
71
|
+
select,
|
|
72
|
+
textarea {
|
|
73
|
+
color: inherit;
|
|
74
|
+
font-size: inherit;
|
|
75
|
+
line-height: inherit;
|
|
76
|
+
outline: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
ul,
|
|
80
|
+
li,
|
|
81
|
+
ol {
|
|
82
|
+
list-style: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Remove the clear button of a text input control in IE10+
|
|
86
|
+
input::-ms-clear,
|
|
87
|
+
input::-ms-reveal {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Links
|
|
92
|
+
a {
|
|
93
|
+
text-decoration: none;
|
|
94
|
+
background: transparent;
|
|
95
|
+
outline: none;
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
transition: color 0.3s ease;
|
|
98
|
+
|
|
99
|
+
&:focus {
|
|
100
|
+
text-decoration: underline;
|
|
101
|
+
text-decoration-skip-ink: auto;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.company-setting [class^='icon-'],
|
|
106
|
+
.company-setting [class*=' icon-'] {
|
|
107
|
+
font-family: 'zhuge' !important;
|
|
108
|
+
font-style: normal;
|
|
109
|
+
-webkit-font-smoothing: antialiased;
|
|
110
|
+
-moz-osx-font-smoothing: grayscale;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ant-dropdown-hidden,
|
|
114
|
+
.ant-picker-dropdown-hidden,
|
|
115
|
+
ant-dropdown-menu-submenu-hidden {
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
2
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -12,7 +15,8 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
12
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
16
|
import React, { useEffect, useState, useContext } from 'react';
|
|
14
17
|
import './index.less';
|
|
15
|
-
import { Button, notification, Switch, Tooltip } from 'antd';
|
|
18
|
+
import { Button, notification, Switch, Tooltip, Form, Input, message } from 'antd';
|
|
19
|
+
import { InfoCircleOutlined } from '@ant-design/icons';
|
|
16
20
|
import request from './../../../utils/ajax';
|
|
17
21
|
import api from './../../../constants/api';
|
|
18
22
|
import Invite from './invite';
|
|
@@ -305,6 +309,10 @@ var User = function User(props) {
|
|
|
305
309
|
console.log(error);
|
|
306
310
|
});
|
|
307
311
|
};
|
|
312
|
+
var _useState33 = useState(),
|
|
313
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
|
314
|
+
currentRowData = _useState34[0],
|
|
315
|
+
setCurrentRowData = _useState34[1];
|
|
308
316
|
var columns = [{
|
|
309
317
|
with: 334,
|
|
310
318
|
title: '账号',
|
|
@@ -388,12 +396,17 @@ var User = function User(props) {
|
|
|
388
396
|
}
|
|
389
397
|
}, {
|
|
390
398
|
title: '操作',
|
|
391
|
-
|
|
399
|
+
width: 280,
|
|
392
400
|
fixed: 'right',
|
|
393
401
|
render: function render(data) {
|
|
394
402
|
return /*#__PURE__*/React.createElement("div", {
|
|
395
403
|
className: "operate"
|
|
396
|
-
},
|
|
404
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
405
|
+
onClick: function onClick() {
|
|
406
|
+
setMoveWorkModal(true);
|
|
407
|
+
setCurrentRowData(data);
|
|
408
|
+
}
|
|
409
|
+
}, "\u8F6C\u4EA4\u5DE5\u4F5C"), authority[10090] && /*#__PURE__*/React.createElement("a", {
|
|
397
410
|
onClick: function onClick() {
|
|
398
411
|
return showUserEditAuthEvent(data);
|
|
399
412
|
}
|
|
@@ -422,6 +435,113 @@ var User = function User(props) {
|
|
|
422
435
|
pageNo: pagination === null || pagination === void 0 ? void 0 : pagination.current
|
|
423
436
|
});
|
|
424
437
|
};
|
|
438
|
+
// 转交工作
|
|
439
|
+
var _useState35 = useState(false),
|
|
440
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
|
441
|
+
moveWorkModal = _useState36[0],
|
|
442
|
+
setMoveWorkModal = _useState36[1];
|
|
443
|
+
var _Form$useForm = Form.useForm(),
|
|
444
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
445
|
+
form = _Form$useForm2[0];
|
|
446
|
+
var _useState37 = useState(false),
|
|
447
|
+
_useState38 = _slicedToArray(_useState37, 2),
|
|
448
|
+
btnLoading = _useState38[0],
|
|
449
|
+
setBtnLoading = _useState38[1];
|
|
450
|
+
var havePhone = function havePhone(phoneNumber) {
|
|
451
|
+
return request(api.setting.queryUserPage, {
|
|
452
|
+
method: 'post',
|
|
453
|
+
data: {
|
|
454
|
+
accurateEmail: phoneNumber,
|
|
455
|
+
pageNo: pageData.pageNo,
|
|
456
|
+
pageSize: 99999
|
|
457
|
+
}
|
|
458
|
+
}).then(function (res) {
|
|
459
|
+
return res.code === '101000' && res.data && res.data.list.length > 0 ? res.data.list : false;
|
|
460
|
+
}).catch(function (err) {
|
|
461
|
+
return false;
|
|
462
|
+
});
|
|
463
|
+
};
|
|
464
|
+
var handleEndMove = /*#__PURE__*/function () {
|
|
465
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
466
|
+
var value, havePhoneFlg;
|
|
467
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
468
|
+
while (1) switch (_context.prev = _context.next) {
|
|
469
|
+
case 0:
|
|
470
|
+
setBtnLoading(true);
|
|
471
|
+
_context.next = 3;
|
|
472
|
+
return form.validateFields();
|
|
473
|
+
case 3:
|
|
474
|
+
value = _context.sent;
|
|
475
|
+
if (value.toUser) {
|
|
476
|
+
_context.next = 8;
|
|
477
|
+
break;
|
|
478
|
+
}
|
|
479
|
+
setNumber(_objectSpread(_objectSpread({}, validatePrimeNumber('error', '请输入账号')), {}, {
|
|
480
|
+
value: value.toUser
|
|
481
|
+
}));
|
|
482
|
+
setBtnLoading(false);
|
|
483
|
+
return _context.abrupt("return");
|
|
484
|
+
case 8:
|
|
485
|
+
_context.next = 10;
|
|
486
|
+
return havePhone(value.toUser);
|
|
487
|
+
case 10:
|
|
488
|
+
havePhoneFlg = _context.sent;
|
|
489
|
+
if (havePhoneFlg) {
|
|
490
|
+
_context.next = 15;
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
setNumber(_objectSpread(_objectSpread({}, validatePrimeNumber('error', '当前账号不存在')), {}, {
|
|
494
|
+
value: value.toUser
|
|
495
|
+
}));
|
|
496
|
+
setBtnLoading(false);
|
|
497
|
+
return _context.abrupt("return");
|
|
498
|
+
case 15:
|
|
499
|
+
setNumber(_objectSpread(_objectSpread({}, validatePrimeNumber('success', '')), {}, {
|
|
500
|
+
value: value.toUser
|
|
501
|
+
}));
|
|
502
|
+
request(api.setting.moveWorkApi, {
|
|
503
|
+
method: 'post',
|
|
504
|
+
data: {
|
|
505
|
+
userId: currentRowData === null || currentRowData === void 0 ? void 0 : currentRowData.id,
|
|
506
|
+
transferorId: havePhoneFlg[0].id
|
|
507
|
+
}
|
|
508
|
+
}).then(function (res) {
|
|
509
|
+
setBtnLoading(false);
|
|
510
|
+
if (res.code == '100000') {
|
|
511
|
+
message.success('交接成功!');
|
|
512
|
+
}
|
|
513
|
+
}).catch(function (err) {
|
|
514
|
+
setBtnLoading(false);
|
|
515
|
+
message.success('交接失败!,请联系管理员');
|
|
516
|
+
return false;
|
|
517
|
+
});
|
|
518
|
+
case 17:
|
|
519
|
+
case "end":
|
|
520
|
+
return _context.stop();
|
|
521
|
+
}
|
|
522
|
+
}, _callee);
|
|
523
|
+
}));
|
|
524
|
+
return function handleEndMove() {
|
|
525
|
+
return _ref.apply(this, arguments);
|
|
526
|
+
};
|
|
527
|
+
}();
|
|
528
|
+
var phoneNumb = function phoneNumb(phoneNumber) {
|
|
529
|
+
var reg = /(\d{3})\d{4}(\d{4})/;
|
|
530
|
+
var result = phoneNumber.replace(reg, '$1****$2');
|
|
531
|
+
return result;
|
|
532
|
+
};
|
|
533
|
+
var _useState39 = useState({
|
|
534
|
+
value: '11'
|
|
535
|
+
}),
|
|
536
|
+
_useState40 = _slicedToArray(_useState39, 2),
|
|
537
|
+
number = _useState40[0],
|
|
538
|
+
setNumber = _useState40[1];
|
|
539
|
+
var validatePrimeNumber = function validatePrimeNumber(validateStatus, errorMsg) {
|
|
540
|
+
return {
|
|
541
|
+
validateStatus: validateStatus,
|
|
542
|
+
errorMsg: errorMsg
|
|
543
|
+
};
|
|
544
|
+
};
|
|
425
545
|
return /*#__PURE__*/React.createElement("div", {
|
|
426
546
|
className: "company-user"
|
|
427
547
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Invite, {
|
|
@@ -492,6 +612,55 @@ var User = function User(props) {
|
|
|
492
612
|
marginRight: '8px'
|
|
493
613
|
},
|
|
494
614
|
className: "bsicon tishi"
|
|
495
|
-
}), "\u8BF7\u5C06\u4FE1\u606F\u590D\u5236\u53D1\u9001\u7ED9\u76F8\u5E94\u6210\u5458")))
|
|
615
|
+
}), "\u8BF7\u5C06\u4FE1\u606F\u590D\u5236\u53D1\u9001\u7ED9\u76F8\u5E94\u6210\u5458"))), /*#__PURE__*/React.createElement(BizDialog, {
|
|
616
|
+
title: "\u8F6C\u4EA4\u5DE5\u4F5C",
|
|
617
|
+
open: moveWorkModal,
|
|
618
|
+
closable: true,
|
|
619
|
+
className: "moveUser-bizDialog",
|
|
620
|
+
onCancel: function onCancel() {
|
|
621
|
+
return setMoveWorkModal(false);
|
|
622
|
+
},
|
|
623
|
+
footer: [/*#__PURE__*/React.createElement(Button, {
|
|
624
|
+
onClick: function onClick() {
|
|
625
|
+
setMoveWorkModal(false);
|
|
626
|
+
form.setFieldsValue({
|
|
627
|
+
toType: [],
|
|
628
|
+
toUser: ''
|
|
629
|
+
});
|
|
630
|
+
setNumber({
|
|
631
|
+
value: '',
|
|
632
|
+
errorMsg: ''
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
}, "\u653E\u5F03"), /*#__PURE__*/React.createElement(Button, {
|
|
636
|
+
type: "primary",
|
|
637
|
+
loading: btnLoading,
|
|
638
|
+
onClick: handleEndMove
|
|
639
|
+
}, "\u786E\u5B9A\u8F6C\u4EA4")]
|
|
640
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
641
|
+
className: "moveUserTip"
|
|
642
|
+
}, /*#__PURE__*/React.createElement(InfoCircleOutlined, {
|
|
643
|
+
style: {
|
|
644
|
+
color: '#1890ff',
|
|
645
|
+
marginRight: '6px'
|
|
646
|
+
}
|
|
647
|
+
}), "\u6539\u529F\u80FD\u53EA\u4F1A\u8F6C\u4EA4\u8D44\u6E90\u7684\u6240\u5C5E\u5173\u7CFB\uFF0C\u4E0D\u4F1A\u8F6C\u4EA4\u8D26\u53F7\u7684\u6743\u9650"), /*#__PURE__*/React.createElement(Form, {
|
|
648
|
+
form: form,
|
|
649
|
+
labelCol: {
|
|
650
|
+
span: 6
|
|
651
|
+
},
|
|
652
|
+
wrapperCol: {
|
|
653
|
+
span: 18
|
|
654
|
+
}
|
|
655
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
656
|
+
label: "\u88AB\u8F6C\u4EA4\u7684\u8D26\u53F7"
|
|
657
|
+
}, /*#__PURE__*/React.createElement("span", null, (currentRowData === null || currentRowData === void 0 ? void 0 : currentRowData.telphone) && phoneNumb(currentRowData === null || currentRowData === void 0 ? void 0 : currentRowData.telphone), "\uFF08\u59D3\u540D\uFF1A", currentRowData === null || currentRowData === void 0 ? void 0 : currentRowData.username, "\uFF09")), /*#__PURE__*/React.createElement(Form.Item, {
|
|
658
|
+
label: "\u8F6C\u4EA4\u5230\u7684\u8D26\u53F7",
|
|
659
|
+
name: "toUser",
|
|
660
|
+
validateStatus: number.validateStatus,
|
|
661
|
+
help: number.errorMsg || ''
|
|
662
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
663
|
+
placeholder: "\u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u5E73\u53F0\u8D26\u53F7"
|
|
664
|
+
}))))));
|
|
496
665
|
};
|
|
497
666
|
export default User;
|