@utogether/udp-core 1.0.1-beta.27 → 1.0.1-beta.30
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/build/plugins.ts +37 -37
- package/dist/{403-A9aD_bZN.js → 403-DdjDWbkf.js} +1 -1
- package/dist/{404-DREd70aQ.js → 404-D9vF2gFz.js} +1 -1
- package/dist/{500-C5qVXkGt.js → 500-mVaDmUjL.js} +1 -1
- package/dist/{AuthorityInfo-CYO2IVau.js → AuthorityInfo-DOUJ_Zrj.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-V7e_KwWp.js → AuthorityInfo.vue_vue_type_style_index_0_lang-B12sAzqt.js} +1 -1
- package/dist/{Company-CaottHQO.js → Company-DY__kM9F.js} +3 -3
- package/dist/{CompanyPanel-B3hOiXqj.js → CompanyPanel-C5N8QcMA.js} +1 -1
- package/dist/{Department-CHkuRvJN.js → Department-DsuDZdy5.js} +3 -3
- package/dist/{DepartmentPanel-DieWfIxW.js → DepartmentPanel-CdwI7Rzu.js} +2 -2
- package/dist/{DesignPanel-REWXp3x4.js → DesignPanel-B50-g0TL.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Df0xc5XP.js → DesignPanel.vue_vue_type_style_index_0_lang-KV8JOZ6v.js} +2 -2
- package/dist/{DictView-DnpDHskG.js → DictView-Be2Z5Obk.js} +1 -1
- package/dist/{InvOrganization-DoIsDrAx.js → InvOrganization-Lui1q3Ou.js} +1 -1
- package/dist/{Org-C4P5Cwia.js → Org-qO5ExsPN.js} +1 -1
- package/dist/{Preview-d90pQdFJ.js → Preview-Dq4dfV2D.js} +1 -1
- package/dist/{ReportDefine-DNrp4lFP.js → ReportDefine-DH3FvbS1.js} +1 -1
- package/dist/{ReportDesign-Ch8x6_mW.js → ReportDesign-Bou01Jbr.js} +2 -2
- package/dist/{ReportQuery-C1yR0ULS.js → ReportQuery-BBkmPPSw.js} +1 -1
- package/dist/{ReportQueryFrom-BKwf61CL.js → ReportQueryFrom-BCY8lTJ7.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-D2ddteNz.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CpktcM8J.js} +1 -1
- package/dist/{ReportTemplate-HLHli4Cc.js → ReportTemplate-C_yJXxQ-.js} +1 -1
- package/dist/{Role-4GbuIhk6.js → Role-CTatYsrC.js} +3 -3
- package/dist/{RoleAssign-FGrSCg5R.js → RoleAssign-Cqt3CelK.js} +3 -3
- package/dist/{RolePanel-Ce1eKsM8.js → RolePanel-C3JMpNu8.js} +1 -1
- package/dist/{RolePanel-BcCozGfv.js → RolePanel-brKRJIhD.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BiOcU5GE.js → RolePanel.vue_vue_type_script_setup_true_lang-DD8u9pq8.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CqER1M9Y.js → RolePanel.vue_vue_type_script_setup_true_lang-i6Gq4r5B.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BbgS5f79.js → ScrollPanel.vue_vue_type_style_index_0_lang-CiWKyjm3.js} +1 -1
- package/dist/{Staff-CBt_0rqg.js → Staff-Cd3twQ6Y.js} +3 -3
- package/dist/{StaffInfo-RCdWZr1r.js → StaffInfo-DJp0a0qd.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-Dm8Yin3r.js → StaffInfo.vue_vue_type_script_setup_true_lang-Dp2AhJ4I.js} +1 -1
- package/dist/{StaffPanel-2ka-H3IV.js → StaffPanel-B93hClzs.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B0u-PqTe.js → StaffPanel.vue_vue_type_script_setup_true_lang-CXjUzq7n.js} +2 -2
- package/dist/{SysUser-Cs7uN3HU.js → SysUser-BvI6vaqI.js} +2 -2
- package/dist/{SysUserPanel-Df3qGMep.js → SysUserPanel-C9V8X-Ek.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-ClwozbZE.js → SysUserPanel.vue_vue_type_script_setup_true_lang-bMqTui07.js} +1 -1
- package/dist/{SystemMenu-BMYVQd-E.js → SystemMenu-D4WME5d0.js} +2 -2
- package/dist/{UserInfo-DDk2iOqY.js → UserInfo-D-AfdfJs.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CEccCnDi.js → UserInfo.vue_vue_type_style_index_0_lang-C-JQYIxe.js} +1 -1
- package/dist/{childView-C7u4Budn.js → childView--WMSo-wH.js} +1 -1
- package/dist/{childView-DFPGu0W-.js → childView-1MTl6Kaj.js} +1 -1
- package/dist/childView.vue_vue_type_style_index_0_lang-B8Losc4Y.js +170 -0
- package/dist/{childView.vue_vue_type_style_index_0_lang-B3fNaibG.js → childView.vue_vue_type_style_index_0_lang-BAVKNIXs.js} +1 -1
- package/dist/{code-rule-BcaRQ1zV.js → code-rule-D-RqrQB6.js} +40 -37
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-DJQLZCsO.js → cron-task-D-X-KFZm.js} +1 -1
- package/dist/{frameView-uPEaJRC7.js → frameView-MAW_-GHJ.js} +1 -1
- package/dist/{index-D7BXpJPu.js → index-Bc9vCX7z.js} +45 -45
- package/dist/{layoutView-zw1-fplL.js → layoutView-De2QIEr2.js} +3 -3
- package/dist/{login-M-rLGYIn.js → login-rdZ0GPYc.js} +1 -1
- package/dist/{lov-view-BVfIna0M.js → lov-view-Ao7LMspL.js} +2 -2
- package/dist/{menuInfo-BTqoNOuZ.js → menuInfo-DmOcK6An.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CHco0XcS.js → menuInfo.vue_vue_type_style_index_0_lang-Ln-zFWV7.js} +1 -1
- package/dist/{pda-app-BzzynCVk.js → pda-app-DY63mQ2T.js} +1 -1
- package/dist/{resource-CJQV7_75.js → resource-B21uV58T.js} +1 -1
- package/dist/{su-welcome-BxQYF4Ou.js → su-welcome-DgjzJeDF.js} +22 -19
- package/dist/{sys-config-DNFqTmvL.js → sys-config-DOtK2I32.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/index.ts +49 -49
- package/package.json +3 -3
- package/src/components/SuScrollTree/ScrollPanel.vue +170 -170
- package/src/components/udp/content/index.vue +89 -0
- package/src/components/udp/form/form.vue +109 -109
- package/src/components/udp/grid/index.vue +524 -524
- package/src/components/udp/index.ts +2 -1
- package/src/components/udp/ut-stamp-badge/index.vue +272 -0
- package/src/components/udp/utils.ts +408 -408
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +94 -94
- package/src/layout/components/lay-tag/index.vue +596 -596
- package/src/layout/hooks/useTag.ts +227 -227
- package/src/main.ts +1 -1
- package/src/plugins/i18n/module/u-workflow.ts +71 -71
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/plugins/vxe-table/render.tsx +945 -945
- package/src/router/index.ts +187 -187
- package/src/router/modules/flow.ts +35 -35
- package/src/router/utils.ts +420 -420
- package/src/store/modules/multiTags.ts +110 -110
- package/src/store/modules/permission.ts +113 -113
- package/src/style/button.scss +85 -85
- package/src/style/vxetable.scss +348 -348
- package/src/views/organization/department/DepartmentPanel.vue +269 -269
- package/src/views/system/menu/SystemMenu.vue +185 -185
- package/src/views/system/menu/menuInfo.vue +384 -384
- package/src/views/system/sysUser/SysUserPanel.vue +348 -348
- package/src/views/udev/coderule/code-rule.vue +17 -5
- package/src/views/udev/dict/DictView.vue +118 -118
- package/src/views/udev/dict/childView.vue +69 -109
- package/src/views/udev/lov/childView.vue +174 -174
- package/src/views/uhome/components/menu-favorite.vue +1 -1
- package/src/views/upms/interface/log-in.vue +100 -100
- package/src/views/upms/user/login-log.vue +54 -54
- package/src/views/utask/flow-task.vue +18 -18
- package/dist/childView.vue_vue_type_style_index_0_lang-BUMcbqzM.js +0 -187
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="first-ring"
|
|
4
|
+
v-bind="getBindValue"
|
|
5
|
+
:class="getStampBadgeClass"
|
|
6
|
+
style="position: absolute"
|
|
7
|
+
:style="{ transform: `rotate(${rotate}deg)`, top: `${top}px`, right: `${right}px` }"
|
|
8
|
+
>
|
|
9
|
+
<div class="second-ring" :class="getStampBadgeClass">
|
|
10
|
+
<div class="third-ring" :class="getStampBadgeClass">
|
|
11
|
+
<div class="forth-ring" :class="getStampBadgeClass">
|
|
12
|
+
<div class="content-rectangle ellipsis" :class="getStampBadgeClass">
|
|
13
|
+
<span class="">{{ getContent(content) }}</span>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
import { storageLocal } from '@utogether/utils';
|
|
23
|
+
export default {
|
|
24
|
+
name: 'UTStampBadge',
|
|
25
|
+
props: {
|
|
26
|
+
color: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: 'primary',
|
|
29
|
+
validator: v => ['primary', 'error', 'warning', 'success', 'info'].includes(v)
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* stamp badge size.
|
|
33
|
+
* @default: middle
|
|
34
|
+
*/
|
|
35
|
+
size: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: 'large',
|
|
38
|
+
validator: v => ['large', 'middle', 'small'].includes(v)
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* stamp badge rotate deg.
|
|
42
|
+
* @default: 0
|
|
43
|
+
*/
|
|
44
|
+
rotate: { type: Number, default: 45 },
|
|
45
|
+
top: { type: Number, default: 60 },
|
|
46
|
+
right: { type: Number, default: 40 },
|
|
47
|
+
content: { type: String, default: 'Unknown' },
|
|
48
|
+
code: { type: String, default: '' }
|
|
49
|
+
},
|
|
50
|
+
computed: {
|
|
51
|
+
getStampBadgeClass() {
|
|
52
|
+
const { color, size } = this.$props;
|
|
53
|
+
return [
|
|
54
|
+
{
|
|
55
|
+
[`stamp-badge-${color}`]: !!color,
|
|
56
|
+
[`stamp-badge-${size}`]: !!size
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
},
|
|
60
|
+
getBindValue() {
|
|
61
|
+
return { ...this.$attrs, ...this.$props };
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
methods: {
|
|
65
|
+
getContent(content) {
|
|
66
|
+
if (!content) return content;
|
|
67
|
+
if (this.code) {
|
|
68
|
+
const dict = storageLocal.getItem('kLov')[this.code];
|
|
69
|
+
const data = dict.children.find(f => f.dictCode === this.content);
|
|
70
|
+
debugger;
|
|
71
|
+
return data ? data.dictName : content;
|
|
72
|
+
}
|
|
73
|
+
return content;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
<style lang="scss" scoped>
|
|
80
|
+
.first-ring {
|
|
81
|
+
border-radius: 100px;
|
|
82
|
+
display: flex;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
align-items: center;
|
|
85
|
+
z-index: 999;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.second-ring {
|
|
89
|
+
background: #fff;
|
|
90
|
+
border-radius: 100px;
|
|
91
|
+
display: flex;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
align-items: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.third-ring {
|
|
97
|
+
border-radius: 100px;
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
align-items: center;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.forth-ring {
|
|
104
|
+
background: #fff;
|
|
105
|
+
border-radius: 100px;
|
|
106
|
+
display: flex;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
align-items: center;
|
|
109
|
+
position: relative;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.content-rectangle {
|
|
113
|
+
background: #fff;
|
|
114
|
+
font-weight: bold;
|
|
115
|
+
text-align: center;
|
|
116
|
+
position: absolute;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.ellipsis {
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
white-space: nowrap;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// primary
|
|
126
|
+
.stamp-badge-primary.first-ring {
|
|
127
|
+
background: #1890ff;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.stamp-badge-primary.third-ring {
|
|
131
|
+
background: #1890ff;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.stamp-badge-primary.content-rectangle {
|
|
135
|
+
border: 1px solid #1890ff;
|
|
136
|
+
color: #1890ff;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// success
|
|
140
|
+
.stamp-badge-success.first-ring {
|
|
141
|
+
background: #52c41a;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.stamp-badge-success.third-ring {
|
|
145
|
+
background: #52c41a;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.stamp-badge-success.content-rectangle {
|
|
149
|
+
border: 1px solid #52c41a;
|
|
150
|
+
color: #52c41a;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// error
|
|
154
|
+
.stamp-badge-error.first-ring {
|
|
155
|
+
background: #ff4d4f;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.stamp-badge-error.third-ring {
|
|
159
|
+
background: #ff4d4f;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.stamp-badge-error.content-rectangle {
|
|
163
|
+
border: 1px solid #ff4d4f;
|
|
164
|
+
color: #ff4d4f;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// warning
|
|
168
|
+
.stamp-badge-warning.first-ring {
|
|
169
|
+
background: #faad14;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.stamp-badge-warning.third-ring {
|
|
173
|
+
background: #faad14;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.stamp-badge-warning.content-rectangle {
|
|
177
|
+
border: 1px solid #faad14;
|
|
178
|
+
color: #faad14;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// info
|
|
182
|
+
.stamp-badge-info.first-ring {
|
|
183
|
+
background: #ccc;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.stamp-badge-info.third-ring {
|
|
187
|
+
background: #ccc;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.stamp-badge-info.content-rectangle {
|
|
191
|
+
border: 1px solid #ccc;
|
|
192
|
+
color: #ccc;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// large
|
|
196
|
+
.stamp-badge-large.first-ring {
|
|
197
|
+
width: 84px;
|
|
198
|
+
height: 84px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.stamp-badge-large.second-ring {
|
|
202
|
+
width: 80px;
|
|
203
|
+
height: 80px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.stamp-badge-large.third-ring {
|
|
207
|
+
width: 74px;
|
|
208
|
+
height: 74px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.stamp-badge-large.forth-ring {
|
|
212
|
+
width: 64px;
|
|
213
|
+
height: 64px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.stamp-badge-large.content-rectangle {
|
|
217
|
+
width: 90px;
|
|
218
|
+
font-size: 1.2rem;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// middle
|
|
222
|
+
.stamp-badge-middle.first-ring {
|
|
223
|
+
width: 64px;
|
|
224
|
+
height: 64px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.stamp-badge-middle.second-ring {
|
|
228
|
+
width: 60px;
|
|
229
|
+
height: 60px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.stamp-badge-middle.third-ring {
|
|
233
|
+
width: 56px;
|
|
234
|
+
height: 56px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.stamp-badge-middle.forth-ring {
|
|
238
|
+
width: 48px;
|
|
239
|
+
height: 48px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.stamp-badge-middle.content-rectangle {
|
|
243
|
+
width: 70px;
|
|
244
|
+
font-size: 1rem;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// small
|
|
248
|
+
.stamp-badge-small.first-ring {
|
|
249
|
+
width: 54px;
|
|
250
|
+
height: 54px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.stamp-badge-small.second-ring {
|
|
254
|
+
width: 50px;
|
|
255
|
+
height: 50px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.stamp-badge-small.third-ring {
|
|
259
|
+
width: 46px;
|
|
260
|
+
height: 46px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.stamp-badge-small.forth-ring {
|
|
264
|
+
width: 38px;
|
|
265
|
+
height: 38px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.stamp-badge-small.content-rectangle {
|
|
269
|
+
width: 60px;
|
|
270
|
+
font-size: 0.8rem;
|
|
271
|
+
}
|
|
272
|
+
</style>
|