lw-cdp-ui 1.0.19 → 1.0.21
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 +5 -5
- package/dist/components/lwForm/index.vue +312 -312
- package/dist/components/lwIconSelect/iconSelect.js +288 -288
- package/dist/components/lwIconSelect/index.vue +142 -142
- package/dist/components/lwLayout/components/NavMenu.vue +36 -36
- package/dist/components/lwLayout/components/aside.vue +291 -295
- package/dist/components/lwLayout/components/bu.vue +72 -70
- package/dist/components/lwLayout/components/iframeView.vue +57 -57
- package/dist/components/lwLayout/components/lang.vue +76 -76
- package/dist/components/lwLayout/components/setting.vue +80 -80
- package/dist/components/lwLayout/components/sideM.vue +137 -136
- package/dist/components/lwLayout/components/tags.vue +329 -329
- package/dist/components/lwLayout/components/topbar.vue +70 -70
- package/dist/components/lwLayout/components/userbar.vue +210 -209
- package/dist/components/lwLayout/index.vue +399 -398
- package/dist/components/lwLogin/index.vue +446 -383
- package/dist/components/lwSearch/date/date.vue +110 -110
- package/dist/components/lwSearch/dateRange/dateRange.vue +110 -110
- package/dist/components/lwSearch/dates/dates.vue +366 -366
- package/dist/components/lwSearch/index.vue +636 -636
- package/dist/components/lwSearch/input/input.vue +54 -54
- package/dist/components/lwSearch/locale/en-us.js +10 -10
- package/dist/components/lwSearch/locale/zh-cn.js +10 -10
- package/dist/components/lwSearch/select/select.vue +57 -57
- package/dist/components/lwSvgIcon/index.vue +28 -28
- package/dist/components/lwTable/index.js +425 -425
- package/dist/components/lwTable/index.scss +229 -229
- package/dist/components/lwTable/index.vue +225 -226
- package/dist/components/lwTable/locale/en-US.js +26 -26
- package/dist/components/lwTable/locale/zh-CN.js +26 -26
- package/dist/components/lwTable/useFullscreen.js +73 -73
- package/dist/components/lwTableSelect/index.vue +254 -254
- package/dist/components/lwTableSelect/tableSelect.js +23 -23
- package/dist/components/lwUpload/index.vue +365 -365
- package/dist/en-US-YCjgxjEt.js.map +1 -1
- package/dist/en-us-CziFtIQi.js.map +1 -1
- package/dist/lw-cdp-ui.esm.js +1484 -1459
- package/dist/lw-cdp-ui.esm.js.map +1 -1
- package/dist/lw-cdp-ui.umd.js +9 -9
- package/dist/lw-cdp-ui.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/zh-CN-BdDNsX4e.js.map +1 -1
- package/dist/zh-cn-DJpQp_O7.js.map +1 -1
- package/package.json +45 -45
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="adminui-topbar">
|
|
3
|
-
<div class="left-panel">
|
|
4
|
-
<el-breadcrumb separator-icon="el-icon-arrow-right"
|
|
5
|
-
class="hidden-sm-and-down">
|
|
6
|
-
<transition-group name="breadcrumb">
|
|
7
|
-
<template v-for="item in breadList"
|
|
8
|
-
:key="item.title">
|
|
9
|
-
<el-breadcrumb-item v-if="item.path!='/' && !item.meta.hiddenBreadcrumb"
|
|
10
|
-
:key="item.meta.title"><el-icon class="icon"
|
|
11
|
-
v-if="item.meta.icon">
|
|
12
|
-
<component :is="item.meta.icon" />
|
|
13
|
-
</el-icon>{{item.meta.title}}</el-breadcrumb-item>
|
|
14
|
-
</template>
|
|
15
|
-
</transition-group>
|
|
16
|
-
</el-breadcrumb>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="center-panel"></div>
|
|
19
|
-
<div class="right-panel">
|
|
20
|
-
<slot></slot>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script>
|
|
26
|
-
export default {
|
|
27
|
-
data() {
|
|
28
|
-
return {
|
|
29
|
-
breadList: []
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
created() {
|
|
33
|
-
this.getBreadcrumb();
|
|
34
|
-
},
|
|
35
|
-
watch: {
|
|
36
|
-
$route() {
|
|
37
|
-
this.getBreadcrumb();
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
methods: {
|
|
41
|
-
getBreadcrumb() {
|
|
42
|
-
let matched = this.$route.meta.breadcrumb;
|
|
43
|
-
this.breadList = matched;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
</script>
|
|
48
|
-
|
|
49
|
-
<style scoped>
|
|
50
|
-
.el-breadcrumb {
|
|
51
|
-
margin-left: 15px;
|
|
52
|
-
}
|
|
53
|
-
.el-breadcrumb .el-breadcrumb__inner .icon {
|
|
54
|
-
font-size: 14px;
|
|
55
|
-
margin-right: 5px;
|
|
56
|
-
float: left;
|
|
57
|
-
}
|
|
58
|
-
.breadcrumb-enter-active,
|
|
59
|
-
.breadcrumb-leave-active {
|
|
60
|
-
transition: all 0.3s;
|
|
61
|
-
}
|
|
62
|
-
.breadcrumb-enter-from,
|
|
63
|
-
.breadcrumb-leave-active {
|
|
64
|
-
opacity: 0;
|
|
65
|
-
transform: translateX(20px);
|
|
66
|
-
}
|
|
67
|
-
.breadcrumb-leave-active {
|
|
68
|
-
position: absolute;
|
|
69
|
-
}
|
|
70
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="adminui-topbar">
|
|
3
|
+
<div class="left-panel">
|
|
4
|
+
<el-breadcrumb separator-icon="el-icon-arrow-right"
|
|
5
|
+
class="hidden-sm-and-down">
|
|
6
|
+
<transition-group name="breadcrumb">
|
|
7
|
+
<template v-for="item in breadList"
|
|
8
|
+
:key="item.title">
|
|
9
|
+
<el-breadcrumb-item v-if="item.path!='/' && !item.meta.hiddenBreadcrumb"
|
|
10
|
+
:key="item.meta.title"><el-icon class="icon"
|
|
11
|
+
v-if="item.meta.icon">
|
|
12
|
+
<component :is="item.meta.icon" />
|
|
13
|
+
</el-icon>{{item.meta.title}}</el-breadcrumb-item>
|
|
14
|
+
</template>
|
|
15
|
+
</transition-group>
|
|
16
|
+
</el-breadcrumb>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="center-panel"></div>
|
|
19
|
+
<div class="right-panel">
|
|
20
|
+
<slot></slot>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
export default {
|
|
27
|
+
data() {
|
|
28
|
+
return {
|
|
29
|
+
breadList: []
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
created() {
|
|
33
|
+
this.getBreadcrumb();
|
|
34
|
+
},
|
|
35
|
+
watch: {
|
|
36
|
+
$route() {
|
|
37
|
+
this.getBreadcrumb();
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
methods: {
|
|
41
|
+
getBreadcrumb() {
|
|
42
|
+
let matched = this.$route.meta.breadcrumb;
|
|
43
|
+
this.breadList = matched;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<style scoped>
|
|
50
|
+
.el-breadcrumb {
|
|
51
|
+
margin-left: 15px;
|
|
52
|
+
}
|
|
53
|
+
.el-breadcrumb .el-breadcrumb__inner .icon {
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
margin-right: 5px;
|
|
56
|
+
float: left;
|
|
57
|
+
}
|
|
58
|
+
.breadcrumb-enter-active,
|
|
59
|
+
.breadcrumb-leave-active {
|
|
60
|
+
transition: all 0.3s;
|
|
61
|
+
}
|
|
62
|
+
.breadcrumb-enter-from,
|
|
63
|
+
.breadcrumb-leave-active {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
transform: translateX(20px);
|
|
66
|
+
}
|
|
67
|
+
.breadcrumb-leave-active {
|
|
68
|
+
position: absolute;
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
@@ -1,209 +1,210 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="user-bar">
|
|
3
|
-
<bu v-if="isShowBu"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<label>{{ $store.state.user.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
this.$
|
|
82
|
-
this.$
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
font-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="user-bar">
|
|
3
|
+
<bu v-if="isShowBu"
|
|
4
|
+
:isInitialized="isInitialized" />
|
|
5
|
+
|
|
6
|
+
<el-dropdown class="user panel-item"
|
|
7
|
+
trigger="click"
|
|
8
|
+
@command="handleUser">
|
|
9
|
+
<div class="user-avatar">
|
|
10
|
+
<el-avatar :size="30"
|
|
11
|
+
:src="$store.state.user.username"></el-avatar>
|
|
12
|
+
</div>
|
|
13
|
+
<template #dropdown>
|
|
14
|
+
<el-dropdown-menu>
|
|
15
|
+
<el-dropdown-item command="uc">
|
|
16
|
+
<div class="user-body">
|
|
17
|
+
<el-avatar :size="30"
|
|
18
|
+
:src="$store.state.user.username"></el-avatar>
|
|
19
|
+
<div class="user-name">
|
|
20
|
+
<label>{{ $store.state.user.realName }}</label>
|
|
21
|
+
<label>{{ $store.state.user.username }}</label>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</el-dropdown-item>
|
|
25
|
+
<el-dropdown-item command="uc"
|
|
26
|
+
divided>{{$t('layout.userData')}}</el-dropdown-item>
|
|
27
|
+
<el-dropdown-item
|
|
28
|
+
command="clearCache">{{$t('layout.clearCache')}}</el-dropdown-item>
|
|
29
|
+
<el-dropdown-item divided
|
|
30
|
+
command="outLogin">{{$t('layout.outLogin')}}</el-dropdown-item>
|
|
31
|
+
</el-dropdown-menu>
|
|
32
|
+
</template>
|
|
33
|
+
</el-dropdown>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script>
|
|
39
|
+
import bu from './bu.vue'
|
|
40
|
+
|
|
41
|
+
export default {
|
|
42
|
+
props: {
|
|
43
|
+
isShowBu: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: true
|
|
46
|
+
},
|
|
47
|
+
isInitialized: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: true
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
components: {
|
|
53
|
+
bu
|
|
54
|
+
},
|
|
55
|
+
data() {
|
|
56
|
+
return {
|
|
57
|
+
userName: "",
|
|
58
|
+
userNameF: "",
|
|
59
|
+
searchVisible: false,
|
|
60
|
+
tasksVisible: false,
|
|
61
|
+
msg: false,
|
|
62
|
+
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
created() {
|
|
66
|
+
this.$store.state.user = this.$tool.data.get('userAuthInfo')
|
|
67
|
+
},
|
|
68
|
+
methods: {
|
|
69
|
+
//个人信息
|
|
70
|
+
handleUser(command) {
|
|
71
|
+
if (command == "uc") {
|
|
72
|
+
this.$router.push({ path: '/user' });
|
|
73
|
+
}
|
|
74
|
+
if (command == "cmd") {
|
|
75
|
+
this.$router.push({ path: '/cmd' });
|
|
76
|
+
}
|
|
77
|
+
if (command == "clearCache") {
|
|
78
|
+
this.$confirm('清除缓存会将系统初始化,包括登录状态、主题、语言设置等,是否继续?', '提示', {
|
|
79
|
+
type: 'info',
|
|
80
|
+
}).then(() => {
|
|
81
|
+
const loading = this.$loading()
|
|
82
|
+
this.$tool.data.clear()
|
|
83
|
+
this.$router.replace({ path: '/login' })
|
|
84
|
+
setTimeout(() => {
|
|
85
|
+
loading.close()
|
|
86
|
+
location.reload()
|
|
87
|
+
}, 1000)
|
|
88
|
+
}).catch(() => {
|
|
89
|
+
//取消
|
|
90
|
+
})
|
|
91
|
+
}
|
|
92
|
+
if (command == "outLogin") {
|
|
93
|
+
this.$confirm('确认是否退出当前用户?', '提示', {
|
|
94
|
+
type: 'warning',
|
|
95
|
+
confirmButtonText: '退出',
|
|
96
|
+
confirmButtonClass: 'el-button--danger'
|
|
97
|
+
}).then(() => {
|
|
98
|
+
this.$router.replace({ path: '/login' });
|
|
99
|
+
}).catch(() => {
|
|
100
|
+
//取消退出
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
//全屏
|
|
105
|
+
screen() {
|
|
106
|
+
var element = document.documentElement;
|
|
107
|
+
this.$tool.screen(element)
|
|
108
|
+
},
|
|
109
|
+
//显示短消息
|
|
110
|
+
showMsg() {
|
|
111
|
+
this.msg = true
|
|
112
|
+
},
|
|
113
|
+
//搜索
|
|
114
|
+
search() {
|
|
115
|
+
this.searchVisible = true
|
|
116
|
+
},
|
|
117
|
+
//任务
|
|
118
|
+
tasks() {
|
|
119
|
+
this.tasksVisible = true
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
</script>
|
|
124
|
+
|
|
125
|
+
<style scoped lang="scss">
|
|
126
|
+
.user-bar {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
height: 100%;
|
|
130
|
+
}
|
|
131
|
+
.user-bar .panel-item {
|
|
132
|
+
padding: 0 10px;
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
height: 100%;
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: center;
|
|
137
|
+
}
|
|
138
|
+
.user-bar .panel-item i {
|
|
139
|
+
font-size: 16px;
|
|
140
|
+
}
|
|
141
|
+
.user-bar .panel-item:hover {
|
|
142
|
+
background: rgba(0, 0, 0, 0.1);
|
|
143
|
+
}
|
|
144
|
+
.user-bar .user-avatar {
|
|
145
|
+
height: 49px;
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
}
|
|
149
|
+
.user-bar .user-avatar label {
|
|
150
|
+
display: inline-block;
|
|
151
|
+
margin-left: 5px;
|
|
152
|
+
font-size: 12px;
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.msg-list li {
|
|
157
|
+
border-top: 1px solid #eee;
|
|
158
|
+
}
|
|
159
|
+
.msg-list li a {
|
|
160
|
+
display: flex;
|
|
161
|
+
padding: 20px;
|
|
162
|
+
}
|
|
163
|
+
.msg-list li a:hover {
|
|
164
|
+
background: #ecf5ff;
|
|
165
|
+
}
|
|
166
|
+
.msg-list__icon {
|
|
167
|
+
width: 40px;
|
|
168
|
+
margin-right: 15px;
|
|
169
|
+
}
|
|
170
|
+
.msg-list__main {
|
|
171
|
+
flex: 1;
|
|
172
|
+
}
|
|
173
|
+
.msg-list__main h2 {
|
|
174
|
+
font-size: 15px;
|
|
175
|
+
font-weight: normal;
|
|
176
|
+
color: #333;
|
|
177
|
+
}
|
|
178
|
+
.msg-list__main p {
|
|
179
|
+
font-size: 12px;
|
|
180
|
+
color: #999;
|
|
181
|
+
line-height: 1.8;
|
|
182
|
+
margin-top: 5px;
|
|
183
|
+
}
|
|
184
|
+
.msg-list__time {
|
|
185
|
+
width: 100px;
|
|
186
|
+
text-align: right;
|
|
187
|
+
color: #999;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.dark .msg-list__main h2 {
|
|
191
|
+
color: #d0d0d0;
|
|
192
|
+
}
|
|
193
|
+
.dark .msg-list li {
|
|
194
|
+
border-top: 1px solid #363636;
|
|
195
|
+
}
|
|
196
|
+
.dark .msg-list li a:hover {
|
|
197
|
+
background: #383838;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.user-body {
|
|
201
|
+
display: flex;
|
|
202
|
+
align-items: center;
|
|
203
|
+
gap: 20px;
|
|
204
|
+
width: 150px;
|
|
205
|
+
.user-name {
|
|
206
|
+
display: flex;
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
</style>
|