@cgboiler/biz-mobile 1.17.14 → 1.17.16
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/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/md-preview/index.less +101 -101
- package/es/org-picker/OrgPicker.js +3 -2
- package/es/org-picker/index.less +181 -181
- package/es/org-picker/useApi.d.ts +1 -0
- package/es/org-picker/useApi.js +21 -34
- package/es/org-picker/useSearch.d.ts +1 -1
- package/es/org-picker/useSearch.js +5 -4
- package/es/project-select/index.less +45 -45
- package/es/rich-text-editor/index.less +191 -191
- package/es/vue-sfc-shim.d.ts +8 -8
- package/es/vue-tsx-shim.d.ts +24 -24
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/md-preview/index.less +101 -101
- package/lib/org-picker/OrgPicker.js +3 -2
- package/lib/org-picker/index.less +181 -181
- package/lib/org-picker/useApi.d.ts +1 -0
- package/lib/org-picker/useApi.js +20 -27
- package/lib/org-picker/useSearch.d.ts +1 -1
- package/lib/org-picker/useSearch.js +5 -4
- package/lib/project-select/index.less +45 -45
- package/lib/rich-text-editor/index.less +191 -191
- package/lib/vue-sfc-shim.d.ts +8 -8
- package/lib/vue-tsx-shim.d.ts +24 -24
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -45,7 +45,7 @@ __reExport(stdin_exports, require("./md-preview"), module.exports);
|
|
|
45
45
|
__reExport(stdin_exports, require("./org-picker"), module.exports);
|
|
46
46
|
__reExport(stdin_exports, require("./project-select"), module.exports);
|
|
47
47
|
__reExport(stdin_exports, require("./rich-text-editor"), module.exports);
|
|
48
|
-
const version = "1.17.
|
|
48
|
+
const version = "1.17.15";
|
|
49
49
|
function install(app) {
|
|
50
50
|
const components = [
|
|
51
51
|
import_md_preview.default,
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
.katex-block {
|
|
2
|
-
display: block;
|
|
3
|
-
margin: 1em 0;
|
|
4
|
-
text-align: center;
|
|
5
|
-
overflow-x: auto;
|
|
6
|
-
overflow-y: hidden;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.cgx-markdown-preview {
|
|
10
|
-
|
|
11
|
-
/* 差异对比样式 */
|
|
12
|
-
.diff-container {
|
|
13
|
-
border: 1px solid #ebeef5;
|
|
14
|
-
border-radius: 4px;
|
|
15
|
-
overflow: auto;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.diff-equal {
|
|
19
|
-
color: #606266;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.diff-delete {
|
|
23
|
-
background-color: #ffeef0;
|
|
24
|
-
color: #f56c6c;
|
|
25
|
-
text-decoration: line-through;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.diff-insert {
|
|
29
|
-
background-color: #e6ffec;
|
|
30
|
-
color: #67c23a;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.diff-unified-view pre {
|
|
34
|
-
margin: 0;
|
|
35
|
-
padding: 8px;
|
|
36
|
-
white-space: pre-wrap;
|
|
37
|
-
word-break: break-word;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.cgx-markdown-preview {
|
|
42
|
-
line-height: 1.6;
|
|
43
|
-
font-size: var(--font-base, 16px);
|
|
44
|
-
ol {
|
|
45
|
-
list-style: auto;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
ul {
|
|
49
|
-
list-style: disc;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
ol,
|
|
53
|
-
ul {
|
|
54
|
-
padding-left: 1.5em;
|
|
55
|
-
margin: 0 0 12px 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
li::marker {
|
|
59
|
-
text-align: start !important;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
h1 {
|
|
63
|
-
font-size: 2em;
|
|
64
|
-
font-weight: bold;
|
|
65
|
-
margin: 16px 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
h2 {
|
|
69
|
-
font-size: 1.5em;
|
|
70
|
-
font-weight: bold;
|
|
71
|
-
margin: 14px 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
p {
|
|
75
|
-
margin: 12px 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
blockquote {
|
|
79
|
-
margin: 0;
|
|
80
|
-
padding-left: 1em;
|
|
81
|
-
border-left: 4px solid #ddd;
|
|
82
|
-
color: #666;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
table {
|
|
86
|
-
border-collapse: collapse;
|
|
87
|
-
width: 100%;
|
|
88
|
-
margin-bottom: 16px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
th,
|
|
92
|
-
td {
|
|
93
|
-
border: 1px solid #ddd;
|
|
94
|
-
padding: 8px;
|
|
95
|
-
text-align: left;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
th {
|
|
99
|
-
background-color: #f6f8fa;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
1
|
+
.katex-block {
|
|
2
|
+
display: block;
|
|
3
|
+
margin: 1em 0;
|
|
4
|
+
text-align: center;
|
|
5
|
+
overflow-x: auto;
|
|
6
|
+
overflow-y: hidden;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.cgx-markdown-preview {
|
|
10
|
+
|
|
11
|
+
/* 差异对比样式 */
|
|
12
|
+
.diff-container {
|
|
13
|
+
border: 1px solid #ebeef5;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
overflow: auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.diff-equal {
|
|
19
|
+
color: #606266;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.diff-delete {
|
|
23
|
+
background-color: #ffeef0;
|
|
24
|
+
color: #f56c6c;
|
|
25
|
+
text-decoration: line-through;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.diff-insert {
|
|
29
|
+
background-color: #e6ffec;
|
|
30
|
+
color: #67c23a;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.diff-unified-view pre {
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 8px;
|
|
36
|
+
white-space: pre-wrap;
|
|
37
|
+
word-break: break-word;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.cgx-markdown-preview {
|
|
42
|
+
line-height: 1.6;
|
|
43
|
+
font-size: var(--font-base, 16px);
|
|
44
|
+
ol {
|
|
45
|
+
list-style: auto;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
ul {
|
|
49
|
+
list-style: disc;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
ol,
|
|
53
|
+
ul {
|
|
54
|
+
padding-left: 1.5em;
|
|
55
|
+
margin: 0 0 12px 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
li::marker {
|
|
59
|
+
text-align: start !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
h1 {
|
|
63
|
+
font-size: 2em;
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
margin: 16px 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
h2 {
|
|
69
|
+
font-size: 1.5em;
|
|
70
|
+
font-weight: bold;
|
|
71
|
+
margin: 14px 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
p {
|
|
75
|
+
margin: 12px 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
blockquote {
|
|
79
|
+
margin: 0;
|
|
80
|
+
padding-left: 1em;
|
|
81
|
+
border-left: 4px solid #ddd;
|
|
82
|
+
color: #666;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
table {
|
|
86
|
+
border-collapse: collapse;
|
|
87
|
+
width: 100%;
|
|
88
|
+
margin-bottom: 16px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
th,
|
|
92
|
+
td {
|
|
93
|
+
border: 1px solid #ddd;
|
|
94
|
+
padding: 8px;
|
|
95
|
+
text-align: left;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
th {
|
|
99
|
+
background-color: #f6f8fa;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -51,7 +51,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
51
51
|
getOrgList,
|
|
52
52
|
orgList,
|
|
53
53
|
deptPath,
|
|
54
|
-
userList
|
|
54
|
+
userList,
|
|
55
|
+
getUserInfoById
|
|
55
56
|
} = api;
|
|
56
57
|
getOrgList();
|
|
57
58
|
const activeTab = (0, import_vue2.ref)("txl");
|
|
@@ -171,7 +172,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
171
172
|
"class": "py-8px border-b border-[#eee] flex items-center"
|
|
172
173
|
}, [(0, import_vue.createVNode)("span", {
|
|
173
174
|
"class": "flex-1"
|
|
174
|
-
}, [historyItem.selectedUsers.map((user) => highlightText(user.
|
|
175
|
+
}, [historyItem.selectedUsers.map((user) => highlightText(getUserInfoById(user.id), keyword.value)).reduce((prev, curr) => [prev, "\uFF0C", curr])]), (0, import_vue.createVNode)("span", {
|
|
175
176
|
"class": "p-4px pl-2",
|
|
176
177
|
"onClick": (e) => {
|
|
177
178
|
e.stopPropagation();
|
|
@@ -1,181 +1,181 @@
|
|
|
1
|
-
:root:root {
|
|
2
|
-
--van-action-sheet-max-height: 100%;
|
|
3
|
-
}
|
|
4
|
-
.org-list {
|
|
5
|
-
height: 85vh;
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
|
|
9
|
-
.highlight {
|
|
10
|
-
color: var(--van-primary-color);
|
|
11
|
-
font-weight: bold;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.breadcrumb-nav {
|
|
15
|
-
margin-bottom: 4px;
|
|
16
|
-
padding: 2px 16px;
|
|
17
|
-
border-radius: 4px;
|
|
18
|
-
font-size: 12px;
|
|
19
|
-
|
|
20
|
-
.dept-name {
|
|
21
|
-
&.current-dept {
|
|
22
|
-
color: #969799; /* 提示文字颜色 */
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.separator {
|
|
27
|
-
color: #969799;
|
|
28
|
-
margin: 0 4px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.search-bar {
|
|
33
|
-
position: sticky;
|
|
34
|
-
top: 0;
|
|
35
|
-
z-index: 1;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.org-selected-items {
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-wrap: nowrap;
|
|
41
|
-
padding: 12px 16px;
|
|
42
|
-
gap: 12px;
|
|
43
|
-
background-color: #fff;
|
|
44
|
-
overflow-x: auto;
|
|
45
|
-
height: 68px;
|
|
46
|
-
border-bottom: 1px solid #eee;
|
|
47
|
-
|
|
48
|
-
.selected-tag {
|
|
49
|
-
flex-shrink: 0;
|
|
50
|
-
background: none;
|
|
51
|
-
border: none;
|
|
52
|
-
padding: 0;
|
|
53
|
-
margin: 0;
|
|
54
|
-
position: relative;
|
|
55
|
-
.close-icon {
|
|
56
|
-
position: absolute;
|
|
57
|
-
top: 0;
|
|
58
|
-
right: 0;
|
|
59
|
-
z-index: 1;
|
|
60
|
-
background-color: #fff;
|
|
61
|
-
border-radius: 50%;
|
|
62
|
-
border: 1px solid #eee;
|
|
63
|
-
width: 10px;
|
|
64
|
-
height: 10px;
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
font-size: 6px;
|
|
69
|
-
color: #969799;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.tag-avatar {
|
|
73
|
-
width: 40px;
|
|
74
|
-
height: 40px;
|
|
75
|
-
img {
|
|
76
|
-
border-radius: 4px;
|
|
77
|
-
border: 1px solid #eee;
|
|
78
|
-
object-fit: contain;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.bottom-section {
|
|
85
|
-
border-top: 1px solid #eee;
|
|
86
|
-
background-color: #fff;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.van-list {
|
|
90
|
-
flex: 1;
|
|
91
|
-
overflow-y: auto;
|
|
92
|
-
padding: 0 16px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.org-content-wrap {
|
|
96
|
-
flex: 1;
|
|
97
|
-
display: flex;
|
|
98
|
-
flex-direction: column;
|
|
99
|
-
overflow: hidden;
|
|
100
|
-
position: relative;
|
|
101
|
-
padding-top: 4px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.feed-list-wrap {
|
|
105
|
-
flex: 1;
|
|
106
|
-
display: flex;
|
|
107
|
-
overflow: hidden;
|
|
108
|
-
position: relative;
|
|
109
|
-
justify-content: center;
|
|
110
|
-
}
|
|
111
|
-
.search-result-list {
|
|
112
|
-
position: absolute;
|
|
113
|
-
top: 0; /* Adjust based on search bar and breadcrumb height */
|
|
114
|
-
left: 0;
|
|
115
|
-
right: 0;
|
|
116
|
-
bottom: 0; /* Adjust based on bottom section height if multiple is true */
|
|
117
|
-
z-index: 1;
|
|
118
|
-
background-color: #fff; /* Ensure background is white */
|
|
119
|
-
overflow-y: auto;
|
|
120
|
-
padding: 0 16px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.org-item {
|
|
124
|
-
padding: 12px 0;
|
|
125
|
-
border-bottom: 1px solid #eee;
|
|
126
|
-
cursor: pointer;
|
|
127
|
-
display: flex;
|
|
128
|
-
align-items: center;
|
|
129
|
-
gap: 12px;
|
|
130
|
-
|
|
131
|
-
.org-item-select-icon {
|
|
132
|
-
display: none;
|
|
133
|
-
padding-left: 4px;
|
|
134
|
-
}
|
|
135
|
-
&.selected {
|
|
136
|
-
color: var(--van-primary-color);
|
|
137
|
-
.org-item-select-icon {
|
|
138
|
-
display: inline;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.org-avatar {
|
|
143
|
-
flex-shrink: 0;
|
|
144
|
-
width: 40px;
|
|
145
|
-
height: 40px;
|
|
146
|
-
display: flex;
|
|
147
|
-
align-items: center;
|
|
148
|
-
justify-content: center;
|
|
149
|
-
img {
|
|
150
|
-
border-radius: 4px;
|
|
151
|
-
border: 1px solid #eee;
|
|
152
|
-
object-fit: contain;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.org-name {
|
|
157
|
-
font-size: 14px;
|
|
158
|
-
flex: 1;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
&:last-child {
|
|
162
|
-
border-bottom: none;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.action-buttons {
|
|
167
|
-
padding: 16px;
|
|
168
|
-
display: flex;
|
|
169
|
-
justify-content: center;
|
|
170
|
-
|
|
171
|
-
.confirm-button {
|
|
172
|
-
background-color: var(--van-primary-color);
|
|
173
|
-
color: white;
|
|
174
|
-
padding: 10px 0;
|
|
175
|
-
border-radius: 4px;
|
|
176
|
-
text-align: center;
|
|
177
|
-
width: 100%;
|
|
178
|
-
font-size: 14px;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
1
|
+
:root:root {
|
|
2
|
+
--van-action-sheet-max-height: 100%;
|
|
3
|
+
}
|
|
4
|
+
.org-list {
|
|
5
|
+
height: 85vh;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
|
|
9
|
+
.highlight {
|
|
10
|
+
color: var(--van-primary-color);
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.breadcrumb-nav {
|
|
15
|
+
margin-bottom: 4px;
|
|
16
|
+
padding: 2px 16px;
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
font-size: 12px;
|
|
19
|
+
|
|
20
|
+
.dept-name {
|
|
21
|
+
&.current-dept {
|
|
22
|
+
color: #969799; /* 提示文字颜色 */
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.separator {
|
|
27
|
+
color: #969799;
|
|
28
|
+
margin: 0 4px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.search-bar {
|
|
33
|
+
position: sticky;
|
|
34
|
+
top: 0;
|
|
35
|
+
z-index: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.org-selected-items {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-wrap: nowrap;
|
|
41
|
+
padding: 12px 16px;
|
|
42
|
+
gap: 12px;
|
|
43
|
+
background-color: #fff;
|
|
44
|
+
overflow-x: auto;
|
|
45
|
+
height: 68px;
|
|
46
|
+
border-bottom: 1px solid #eee;
|
|
47
|
+
|
|
48
|
+
.selected-tag {
|
|
49
|
+
flex-shrink: 0;
|
|
50
|
+
background: none;
|
|
51
|
+
border: none;
|
|
52
|
+
padding: 0;
|
|
53
|
+
margin: 0;
|
|
54
|
+
position: relative;
|
|
55
|
+
.close-icon {
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: 0;
|
|
58
|
+
right: 0;
|
|
59
|
+
z-index: 1;
|
|
60
|
+
background-color: #fff;
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
border: 1px solid #eee;
|
|
63
|
+
width: 10px;
|
|
64
|
+
height: 10px;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
font-size: 6px;
|
|
69
|
+
color: #969799;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.tag-avatar {
|
|
73
|
+
width: 40px;
|
|
74
|
+
height: 40px;
|
|
75
|
+
img {
|
|
76
|
+
border-radius: 4px;
|
|
77
|
+
border: 1px solid #eee;
|
|
78
|
+
object-fit: contain;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.bottom-section {
|
|
85
|
+
border-top: 1px solid #eee;
|
|
86
|
+
background-color: #fff;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.van-list {
|
|
90
|
+
flex: 1;
|
|
91
|
+
overflow-y: auto;
|
|
92
|
+
padding: 0 16px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.org-content-wrap {
|
|
96
|
+
flex: 1;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
position: relative;
|
|
101
|
+
padding-top: 4px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.feed-list-wrap {
|
|
105
|
+
flex: 1;
|
|
106
|
+
display: flex;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
position: relative;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
}
|
|
111
|
+
.search-result-list {
|
|
112
|
+
position: absolute;
|
|
113
|
+
top: 0; /* Adjust based on search bar and breadcrumb height */
|
|
114
|
+
left: 0;
|
|
115
|
+
right: 0;
|
|
116
|
+
bottom: 0; /* Adjust based on bottom section height if multiple is true */
|
|
117
|
+
z-index: 1;
|
|
118
|
+
background-color: #fff; /* Ensure background is white */
|
|
119
|
+
overflow-y: auto;
|
|
120
|
+
padding: 0 16px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.org-item {
|
|
124
|
+
padding: 12px 0;
|
|
125
|
+
border-bottom: 1px solid #eee;
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
gap: 12px;
|
|
130
|
+
|
|
131
|
+
.org-item-select-icon {
|
|
132
|
+
display: none;
|
|
133
|
+
padding-left: 4px;
|
|
134
|
+
}
|
|
135
|
+
&.selected {
|
|
136
|
+
color: var(--van-primary-color);
|
|
137
|
+
.org-item-select-icon {
|
|
138
|
+
display: inline;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.org-avatar {
|
|
143
|
+
flex-shrink: 0;
|
|
144
|
+
width: 40px;
|
|
145
|
+
height: 40px;
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
img {
|
|
150
|
+
border-radius: 4px;
|
|
151
|
+
border: 1px solid #eee;
|
|
152
|
+
object-fit: contain;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.org-name {
|
|
157
|
+
font-size: 14px;
|
|
158
|
+
flex: 1;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:last-child {
|
|
162
|
+
border-bottom: none;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.action-buttons {
|
|
167
|
+
padding: 16px;
|
|
168
|
+
display: flex;
|
|
169
|
+
justify-content: center;
|
|
170
|
+
|
|
171
|
+
.confirm-button {
|
|
172
|
+
background-color: var(--van-primary-color);
|
|
173
|
+
color: white;
|
|
174
|
+
padding: 10px 0;
|
|
175
|
+
border-radius: 4px;
|
|
176
|
+
text-align: center;
|
|
177
|
+
width: 100%;
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -55,4 +55,5 @@ export declare const useApi: () => {
|
|
|
55
55
|
searchOrgList: import("lodash-es").DebouncedFunc<(userName: string) => Promise<void>>;
|
|
56
56
|
getRecentSelectedUsers: () => Promise<RecentSelection[]>;
|
|
57
57
|
setRecentSelectedUsers: (users: OrgItem[]) => Promise<void>;
|
|
58
|
+
getUserInfoById: (id: string | number) => string;
|
|
58
59
|
};
|
package/lib/org-picker/useApi.js
CHANGED
|
@@ -116,20 +116,9 @@ const useApi = () => {
|
|
|
116
116
|
if (res.records && res.records.length) {
|
|
117
117
|
res.records.forEach((item) => {
|
|
118
118
|
const data = JSON.parse(item.data);
|
|
119
|
-
console.log(data.field6713678545899);
|
|
120
119
|
if (data.field6713678545899 === userInfo.value.name + "_" + user.userId) {
|
|
121
120
|
dataId.value = item.id;
|
|
122
121
|
const list = data.field5375578403639 ? JSON.parse(data.field5375578403639) : [];
|
|
123
|
-
if (Array.isArray(list)) {
|
|
124
|
-
list.forEach((item2) => {
|
|
125
|
-
if (item2.selectedUsers && Array.isArray(item2.selectedUsers)) {
|
|
126
|
-
item2.selectedUsers = item2.selectedUsers.map((user2) => {
|
|
127
|
-
const fullUser = userList.value.find((u) => u.id === user2.id);
|
|
128
|
-
return fullUser || { id: user2.id };
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
122
|
recentList = list;
|
|
134
123
|
}
|
|
135
124
|
});
|
|
@@ -142,26 +131,20 @@ const useApi = () => {
|
|
|
142
131
|
let url = "";
|
|
143
132
|
let method = "";
|
|
144
133
|
data.field6713678545899 = userInfo.value.name + "_" + user.userId;
|
|
145
|
-
if (data.field5375578403639) {
|
|
146
|
-
const list = JSON.parse(data.field5375578403639);
|
|
147
|
-
if (data.field5375578403639) {
|
|
148
|
-
if (Array.isArray(list)) {
|
|
149
|
-
list.forEach((item) => {
|
|
150
|
-
if (item.selectedUsers && Array.isArray(item.selectedUsers)) {
|
|
151
|
-
item.selectedUsers = item.selectedUsers.map((user2) => ({
|
|
152
|
-
id: user2.id
|
|
153
|
-
}));
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
data.field5375578403639 = JSON.stringify(list);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
134
|
let requestData = {
|
|
161
135
|
deptId: userInfo.value.deptId,
|
|
162
136
|
formData: data,
|
|
163
137
|
processUsers: {}
|
|
164
138
|
};
|
|
139
|
+
if (data.field5375578403639) {
|
|
140
|
+
const list = JSON.parse(data.field5375578403639);
|
|
141
|
+
list.forEach((item) => {
|
|
142
|
+
if (item.selectedUsers) {
|
|
143
|
+
item.selectedUsers = item.selectedUsers.map((user2) => ({ id: user2.id }));
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
data.field5375578403639 = JSON.stringify(list);
|
|
147
|
+
}
|
|
165
148
|
if (dataId.value) {
|
|
166
149
|
url = `https://wflow.cgboiler.com/v1/wflow/process/form/wf687dda91e4b027b047d4654c/data/${dataId.value}`;
|
|
167
150
|
method = "PUT";
|
|
@@ -264,6 +247,15 @@ const useApi = () => {
|
|
|
264
247
|
console.error("Failed to delete recent selected users history to localStorage", error);
|
|
265
248
|
}
|
|
266
249
|
});
|
|
250
|
+
const getUserInfoById = (id) => {
|
|
251
|
+
let name = "";
|
|
252
|
+
userList.value.forEach((item) => {
|
|
253
|
+
if (item.id === id) {
|
|
254
|
+
name = item.name;
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
return name;
|
|
258
|
+
};
|
|
267
259
|
return {
|
|
268
260
|
userList,
|
|
269
261
|
orgList,
|
|
@@ -274,6 +266,7 @@ const useApi = () => {
|
|
|
274
266
|
deleteRecentSelectedUsers,
|
|
275
267
|
searchOrgList,
|
|
276
268
|
getRecentSelectedUsers,
|
|
277
|
-
setRecentSelectedUsers
|
|
269
|
+
setRecentSelectedUsers,
|
|
270
|
+
getUserInfoById
|
|
278
271
|
};
|
|
279
272
|
};
|
|
@@ -7,5 +7,5 @@ export declare function useSearch(props: any, api: any): {
|
|
|
7
7
|
filteredOrgList: import("vue").ComputedRef<any>;
|
|
8
8
|
recentSelectedHistory: import("vue").Ref<any[], any[]>;
|
|
9
9
|
filterRecentSelectedHistory: import("vue").Ref<any[], any[]>;
|
|
10
|
-
highlightText: (text: string, keyword: string) => string | (string | import("vue/jsx-runtime").JSX.Element)[];
|
|
10
|
+
highlightText: (text: string | number, keyword: string) => string | number | (string | import("vue/jsx-runtime").JSX.Element)[];
|
|
11
11
|
};
|