lw-cdp-ui 1.2.47 → 1.2.49
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/package.json +1 -1
- package/dist/assets/images/empty.jpg +0 -0
- package/dist/assets/images/login.svg +0 -558
- package/dist/assets/images/logo.jpg +0 -0
- package/dist/assets/images/logo.svg +0 -78
- package/dist/assets/images/logo1.svg +0 -86
- package/dist/assets/images/register.svg +0 -351
- package/dist/components/lwCronSelect/index.vue +0 -218
- package/dist/components/lwFlow/components/lfControl.vue +0 -126
- package/dist/components/lwFlow/components/lfNodePanel.vue +0 -98
- package/dist/components/lwFlow/config/dagre.js +0 -279
- package/dist/components/lwFlow/config/nodesList.js +0 -243
- package/dist/components/lwFlow/index.vue +0 -781
- package/dist/components/lwFlow/nodeEdit/audienceReceive.vue +0 -262
- package/dist/components/lwFlow/nodeEdit/basicSettings.vue +0 -88
- package/dist/components/lwFlow/nodeEdit/eventReceive.vue +0 -145
- package/dist/components/lwFlow/nodeEdit/index.vue +0 -306
- package/dist/components/lwFlow/nodeEdit/sms.vue +0 -107
- package/dist/components/lwFlow/nodeEdit/styleSettings.vue +0 -236
- package/dist/components/lwFlow/nodes/basisEnd.js +0 -56
- package/dist/components/lwFlow/nodes/basisStart.js +0 -56
- package/dist/components/lwFlow/nodes/custom.js +0 -129
- package/dist/components/lwFlow/nodes/et2lTable.js +0 -132
- package/dist/components/lwFlow/nodesData/datas/audienceReceive.js +0 -137
- package/dist/components/lwFlow/nodesData/datas/base.js +0 -190
- package/dist/components/lwFlow/nodesData/datas/collap.js +0 -95
- package/dist/components/lwFlow/nodesData/datas/eventReceive.js +0 -106
- package/dist/components/lwFlow/nodesData/datas/expand.js +0 -85
- package/dist/components/lwFlow/nodesData/datas/filter.js +0 -85
- package/dist/components/lwFlow/nodesData/datas/joiner.js +0 -96
- package/dist/components/lwFlow/nodesData/datas/mapper.js +0 -111
- package/dist/components/lwFlow/nodesData/datas/reduce.js +0 -69
- package/dist/components/lwFlow/nodesData/datas/sms.js +0 -69
- package/dist/components/lwFlow/nodesData/datas/source.js +0 -142
- package/dist/components/lwFlow/nodesData/datas/target.js +0 -95
- package/dist/components/lwFlow/nodesData/datas/timer.js +0 -180
- package/dist/components/lwFlow/nodesData/index.js +0 -41
- package/dist/components/lwForm/index.vue +0 -631
- package/dist/components/lwFormJson/JsonItem.vue +0 -302
- package/dist/components/lwFormJson/StatsConfig.vue +0 -544
- package/dist/components/lwFormJson/TreeItem.vue +0 -149
- package/dist/components/lwFormJson/index.vue +0 -362
- package/dist/components/lwFormJson/menuList.js +0 -324
- package/dist/components/lwFormMini/FormItem.vue +0 -466
- package/dist/components/lwFormMini/ViewItem.vue +0 -391
- package/dist/components/lwFormMini/index.vue +0 -421
- package/dist/components/lwFormMini/textToPassword.vue +0 -61
- package/dist/components/lwFormView/index.vue +0 -390
- package/dist/components/lwFormView/textToPassword.vue +0 -59
- package/dist/components/lwIconSelect/iconSelect.js +0 -289
- package/dist/components/lwIconSelect/index.vue +0 -142
- package/dist/components/lwLayout/components/NavMenu.vue +0 -36
- package/dist/components/lwLayout/components/aside.vue +0 -295
- package/dist/components/lwLayout/components/bu.vue +0 -88
- package/dist/components/lwLayout/components/iframeView.vue +0 -57
- package/dist/components/lwLayout/components/lang.vue +0 -77
- package/dist/components/lwLayout/components/setting.vue +0 -102
- package/dist/components/lwLayout/components/sideM.vue +0 -135
- package/dist/components/lwLayout/components/tags.vue +0 -388
- package/dist/components/lwLayout/components/topbar.vue +0 -69
- package/dist/components/lwLayout/components/userbar.vue +0 -214
- package/dist/components/lwLayout/index.vue +0 -460
- package/dist/components/lwLogin/index.vue +0 -506
- package/dist/components/lwLogin/locale/en-us.js +0 -37
- package/dist/components/lwLogin/locale/zh-cn.js +0 -37
- package/dist/components/lwSearch/date/date.vue +0 -113
- package/dist/components/lwSearch/dateRange/dateRange.vue +0 -118
- package/dist/components/lwSearch/dates/dates.vue +0 -366
- package/dist/components/lwSearch/index.vue +0 -628
- package/dist/components/lwSearch/input/input.vue +0 -55
- package/dist/components/lwSearch/locale/en-us.js +0 -15
- package/dist/components/lwSearch/locale/zh-cn.js +0 -15
- package/dist/components/lwSearch/select/select.vue +0 -58
- package/dist/components/lwSvgIcon/index.vue +0 -29
- package/dist/components/lwTable/index.js +0 -286
- package/dist/components/lwTable/index.scss +0 -238
- package/dist/components/lwTable/index.vue +0 -344
- package/dist/components/lwTable/locale/en-US.js +0 -26
- package/dist/components/lwTable/locale/zh-CN.js +0 -26
- package/dist/components/lwTable/useFullscreen.js +0 -73
- package/dist/components/lwTableForm/index.vue +0 -662
- package/dist/components/lwTableSelect/index.vue +0 -266
- package/dist/components/lwTableSelect/tableSelect.js +0 -23
- package/dist/components/lwUpload/index.vue +0 -564
- package/dist/lw-cdp-ui.esm.js +0 -19893
- package/dist/lw-cdp-ui.umd.js +0 -22
- package/dist/style.css +0 -1
- package/dist/vite.svg +0 -1
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="layout-aside">
|
|
3
|
-
|
|
4
|
-
<img class="logo"
|
|
5
|
-
src="../../../assets/images/logo.svg"
|
|
6
|
-
alt="">
|
|
7
|
-
|
|
8
|
-
<el-popover placement="right"
|
|
9
|
-
:width="180"
|
|
10
|
-
trigger="click"
|
|
11
|
-
:show-arrow="false"
|
|
12
|
-
:offset="3"
|
|
13
|
-
popper-class="app-popper"
|
|
14
|
-
ref="popoverRef">
|
|
15
|
-
<template #reference>
|
|
16
|
-
<p>
|
|
17
|
-
<el-icon class="menu-btn">
|
|
18
|
-
<component is="el-icon-grid" />
|
|
19
|
-
</el-icon>
|
|
20
|
-
</p>
|
|
21
|
-
</template>
|
|
22
|
-
<div class="app-content">
|
|
23
|
-
<div class="app-title">
|
|
24
|
-
<span class="open" @click="openMneu">应用中心</span>
|
|
25
|
-
<el-icon class="iconClose"
|
|
26
|
-
@click="closePopover">
|
|
27
|
-
<el-icon-close />
|
|
28
|
-
</el-icon>
|
|
29
|
-
</div>
|
|
30
|
-
<el-divider style="margin: 5px 0;" />
|
|
31
|
-
<template v-if="grantedApplications.length > 0">
|
|
32
|
-
<div class="menu-item"
|
|
33
|
-
@click="switchMenu(item)"
|
|
34
|
-
v-for="item in grantedApplications"
|
|
35
|
-
:key="item.resourceId">
|
|
36
|
-
<i class="iconfont"
|
|
37
|
-
:class="item.icon"
|
|
38
|
-
style="margin-right: 5px;"></i>
|
|
39
|
-
{{ item.name}}
|
|
40
|
-
</div>
|
|
41
|
-
</template>
|
|
42
|
-
|
|
43
|
-
</div>
|
|
44
|
-
</el-popover>
|
|
45
|
-
</div>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<script>
|
|
49
|
-
export default {
|
|
50
|
-
name: 'layoutAside',
|
|
51
|
-
props: {
|
|
52
|
-
},
|
|
53
|
-
data() {
|
|
54
|
-
return {
|
|
55
|
-
popVisible: false,
|
|
56
|
-
grantedApplications: [],
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
mounted() {
|
|
60
|
-
let { grantedApplications } = this.$tool.data.get('userAuthInfo');
|
|
61
|
-
this.grantedApplications = grantedApplications
|
|
62
|
-
document.addEventListener('click', this.handleDocumentClick);
|
|
63
|
-
},
|
|
64
|
-
beforeDestroy() {
|
|
65
|
-
document.removeEventListener('click', this.handleDocumentClick);
|
|
66
|
-
},
|
|
67
|
-
methods: {
|
|
68
|
-
handleDocumentClick(ev) {
|
|
69
|
-
let popover = document.getElementById('popover');
|
|
70
|
-
if (this.popVisible && (ev.target !== popover) && !popover.contains(ev.target)) {
|
|
71
|
-
this.popVisible = false;
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
openMneu() {
|
|
75
|
-
window.location.href = '/#/passport-application'
|
|
76
|
-
},
|
|
77
|
-
switchMenu(menuItem) {
|
|
78
|
-
window.location.href = menuItem.url;
|
|
79
|
-
},
|
|
80
|
-
closePopover() {
|
|
81
|
-
this.$refs.popoverRef.hide(); // 关闭 popover
|
|
82
|
-
},
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
</script>
|
|
86
|
-
<style lang="scss">
|
|
87
|
-
.layout-aside {
|
|
88
|
-
width: 100%;
|
|
89
|
-
height: 100%;
|
|
90
|
-
border-bottom: 1px solid var(--el-mask-color-extra-light);
|
|
91
|
-
.logo {
|
|
92
|
-
width: 100%;
|
|
93
|
-
height: auto;
|
|
94
|
-
display: block;
|
|
95
|
-
background-color: var(--el-color-primary);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.menu-btn {
|
|
99
|
-
font-size: 24px;
|
|
100
|
-
color: #95989d;
|
|
101
|
-
}
|
|
102
|
-
.el-tooltip__trigger {
|
|
103
|
-
text-align: center;
|
|
104
|
-
padding: 10px;
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
&:hover {
|
|
107
|
-
background-color: var(--el-menu-hover-bg-color);
|
|
108
|
-
.menu-btn {
|
|
109
|
-
color: var(--el-menu-active-color);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.menu-container {
|
|
115
|
-
display: flex;
|
|
116
|
-
flex: 1;
|
|
117
|
-
flex-direction: column;
|
|
118
|
-
align-items: center;
|
|
119
|
-
width: inherit;
|
|
120
|
-
|
|
121
|
-
.logo {
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
justify-content: center;
|
|
125
|
-
width: inherit;
|
|
126
|
-
height: 50px;
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
margin: 0;
|
|
129
|
-
padding: 0;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.fixed-menu-list {
|
|
133
|
-
flex: 1;
|
|
134
|
-
width: inherit;
|
|
135
|
-
height: 100%;
|
|
136
|
-
}
|
|
137
|
-
.app-box {
|
|
138
|
-
width: 50px;
|
|
139
|
-
height: 50px;
|
|
140
|
-
color: #95989d;
|
|
141
|
-
}
|
|
142
|
-
.app-box:hover {
|
|
143
|
-
background: var(--el-menu-hover-bg-color);
|
|
144
|
-
color: var(--el-color-primary);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.menu-container,
|
|
149
|
-
.footer {
|
|
150
|
-
p {
|
|
151
|
-
width: 50px;
|
|
152
|
-
height: 50px;
|
|
153
|
-
margin: auto;
|
|
154
|
-
line-height: 50px;
|
|
155
|
-
text-align: center;
|
|
156
|
-
cursor: pointer;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.iconfont {
|
|
160
|
-
color: inherit;
|
|
161
|
-
font-size: 18px;
|
|
162
|
-
padding: 15px;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.setting {
|
|
167
|
-
transform: rotate(180deg);
|
|
168
|
-
cursor: pointer;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.pop-menu {
|
|
173
|
-
min-width: 104px;
|
|
174
|
-
height: fit-content;
|
|
175
|
-
padding: 10px 0;
|
|
176
|
-
overflow-y: auto;
|
|
177
|
-
border: 1px solid #eaeaeb;
|
|
178
|
-
border-radius: 2px;
|
|
179
|
-
box-shadow: 0 2px 4px rgba(39, 40, 42, 0.15);
|
|
180
|
-
|
|
181
|
-
// &.side-popover {
|
|
182
|
-
// top: 50px !important;
|
|
183
|
-
// left: 50px !important;
|
|
184
|
-
// max-height: calc(100vh - 80px);
|
|
185
|
-
// }
|
|
186
|
-
|
|
187
|
-
// &.header-popover {
|
|
188
|
-
// top: 35px !important;
|
|
189
|
-
// right: 76px !important;
|
|
190
|
-
// left: auto !important;
|
|
191
|
-
// max-height: calc(100vh - 80px);
|
|
192
|
-
// }
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.menu-item {
|
|
196
|
-
display: flex;
|
|
197
|
-
box-sizing: border-box;
|
|
198
|
-
align-items: center;
|
|
199
|
-
height: 32px;
|
|
200
|
-
padding: 0 8px;
|
|
201
|
-
color: #6a6d73;
|
|
202
|
-
cursor: pointer;
|
|
203
|
-
|
|
204
|
-
&.fixed {
|
|
205
|
-
color: #27282a;
|
|
206
|
-
font-weight: bold;
|
|
207
|
-
|
|
208
|
-
.iconfont {
|
|
209
|
-
color: var(--el-color-primary);
|
|
210
|
-
font-weight: normal;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.iconfont.iconMinus-Circle {
|
|
214
|
-
color: #ccccf5;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
&:hover {
|
|
219
|
-
background: #eeeefc;
|
|
220
|
-
color: var(--el-color-primary);
|
|
221
|
-
|
|
222
|
-
&.fixed .iconfont.iconFixed {
|
|
223
|
-
display: none !important;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.iconfont {
|
|
227
|
-
display: block !important;
|
|
228
|
-
|
|
229
|
-
color: var(--el-color-primary);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.iconfont {
|
|
234
|
-
width: 16px;
|
|
235
|
-
height: 16px;
|
|
236
|
-
color: #95989d;
|
|
237
|
-
line-height: 15px;
|
|
238
|
-
|
|
239
|
-
&.iconFixed {
|
|
240
|
-
display: none;
|
|
241
|
-
color: #9a98eb;
|
|
242
|
-
font-size: 14px;
|
|
243
|
-
cursor: pointer;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
&.iconDrag1 {
|
|
247
|
-
display: none;
|
|
248
|
-
margin-left: 8px;
|
|
249
|
-
color: #9a98eb;
|
|
250
|
-
font-size: 14px;
|
|
251
|
-
cursor: grab;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.name {
|
|
256
|
-
flex: 1;
|
|
257
|
-
margin-left: 8px;
|
|
258
|
-
overflow: hidden;
|
|
259
|
-
color: inherit;
|
|
260
|
-
font-size: 12px;
|
|
261
|
-
line-height: 32px;
|
|
262
|
-
text-align: left;
|
|
263
|
-
text-overflow: ellipsis;
|
|
264
|
-
white-space: nowrap;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.app-popper {
|
|
269
|
-
padding: 10px 0 !important;
|
|
270
|
-
top: 50px !important;
|
|
271
|
-
.app-title {
|
|
272
|
-
font-size: 12px;
|
|
273
|
-
font-weight: bold;
|
|
274
|
-
line-height: 19px;
|
|
275
|
-
height: 19px;
|
|
276
|
-
padding: 0 10px 2px;
|
|
277
|
-
.open{
|
|
278
|
-
cursor: pointer;
|
|
279
|
-
}
|
|
280
|
-
.iconClose {
|
|
281
|
-
position: absolute;
|
|
282
|
-
top: 10px;
|
|
283
|
-
right: 8px;
|
|
284
|
-
color: #d5d6d8;
|
|
285
|
-
font-weight: normal;
|
|
286
|
-
cursor: pointer;
|
|
287
|
-
font-size: 16px;
|
|
288
|
-
&:hover {
|
|
289
|
-
color: var(--el-color-primary);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
</style>
|
|
295
|
-
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="screen panel-item hidden-sm-and-down"
|
|
3
|
-
@click="screen">
|
|
4
|
-
|
|
5
|
-
<el-dropdown @command="changeBusinessUnit">
|
|
6
|
-
<div class="bu-list">
|
|
7
|
-
<el-icon><el-icon-help /></el-icon>{{buName}}
|
|
8
|
-
</div>
|
|
9
|
-
<template #dropdown>
|
|
10
|
-
<el-dropdown-menu>
|
|
11
|
-
<el-dropdown-item v-for="item in buList"
|
|
12
|
-
:key="item.id"
|
|
13
|
-
:command="item.code">{{item.name}}</el-dropdown-item>
|
|
14
|
-
</el-dropdown-menu>
|
|
15
|
-
</template>
|
|
16
|
-
</el-dropdown>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
export default {
|
|
22
|
-
data() {
|
|
23
|
-
return {
|
|
24
|
-
buName: '',
|
|
25
|
-
buList: [],
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
props: {
|
|
29
|
-
isInitialized: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: true
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
methods: {
|
|
35
|
-
async changeBusinessUnit(command) {
|
|
36
|
-
let item = this.buList.find(item => item.code === command)
|
|
37
|
-
this.buName = item.name
|
|
38
|
-
this.$store.commit('setRouteShow', true)
|
|
39
|
-
this.$tool.data.set('buCode', command)
|
|
40
|
-
this.$tool.data.set('tenantId', item.tenantId)
|
|
41
|
-
|
|
42
|
-
this.$bus.$emit('changeBu', { buCode: command, tenantId: item.tenantId })
|
|
43
|
-
|
|
44
|
-
// 检验是否初始化
|
|
45
|
-
if (this.isInitialized) {
|
|
46
|
-
let initialized = await this.$api.auth.initialized()
|
|
47
|
-
this.$tool.data.set('zoneInitialized', initialized)
|
|
48
|
-
if (!initialized) {
|
|
49
|
-
this.$router.push(this.$config.INIT_URL);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
//判断是否当前路由,否的话跳转
|
|
55
|
-
this.$store.commit('clearKeepLive')
|
|
56
|
-
this.$store.commit("setRouteShow", false)
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
async created() {
|
|
61
|
-
this.buList = this.$tool.data.get('buList') || []
|
|
62
|
-
let buCode = this.$tool.data.get('buCode')
|
|
63
|
-
if (!this.buList.length) {
|
|
64
|
-
let buResult = await this.$api.auth.bu()
|
|
65
|
-
let bu = buResult || []
|
|
66
|
-
this.$tool.data.set('buList', bu)
|
|
67
|
-
this.buList = bu
|
|
68
|
-
this.$tool.data.set('buCode', bu[0].code)
|
|
69
|
-
buCode = bu[0].code
|
|
70
|
-
}
|
|
71
|
-
let item = this.buList.find(item => item.code === buCode)
|
|
72
|
-
this.buName = item ? item.name : ''
|
|
73
|
-
this.changeBusinessUnit(buCode)
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
</script>
|
|
77
|
-
<style lang="scss" scoped>
|
|
78
|
-
:deep(.el-dropdown) {
|
|
79
|
-
height: 100%;
|
|
80
|
-
}
|
|
81
|
-
.bu-list {
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
gap: 5px;
|
|
85
|
-
height: 100%;
|
|
86
|
-
white-space: nowrap;
|
|
87
|
-
}
|
|
88
|
-
</style>
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div v-show="$route.meta.type=='iframe'" class="iframe-pages">
|
|
3
|
-
<iframe v-for="item in iframeList" :key="item.meta.url" v-show="$route.meta.url==item.meta.url" :src="item.meta.url" frameborder='0'></iframe>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
data() {
|
|
10
|
-
return {
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
watch: {
|
|
15
|
-
$route(e) {
|
|
16
|
-
this.push(e)
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
created() {
|
|
20
|
-
this.push(this.$route);
|
|
21
|
-
},
|
|
22
|
-
computed:{
|
|
23
|
-
iframeList(){
|
|
24
|
-
return this.$store.state.iframe.iframeList
|
|
25
|
-
},
|
|
26
|
-
ismobile(){
|
|
27
|
-
return this.$store.state.global.ismobile
|
|
28
|
-
},
|
|
29
|
-
layoutTags(){
|
|
30
|
-
return this.$store.state.global.layoutTags
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
mounted() {
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
push(route){
|
|
38
|
-
if(route.meta.type == 'iframe'){
|
|
39
|
-
if(this.ismobile || !this.layoutTags){
|
|
40
|
-
this.$store.commit("setIframeList", route)
|
|
41
|
-
}else{
|
|
42
|
-
this.$store.commit("pushIframeList", route)
|
|
43
|
-
}
|
|
44
|
-
}else{
|
|
45
|
-
if(this.ismobile || !this.layoutTags){
|
|
46
|
-
this.$store.commit("clearIframeList")
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
</script>
|
|
53
|
-
|
|
54
|
-
<style scoped>
|
|
55
|
-
.iframe-pages {width:100%;height:100%;background: #fff;}
|
|
56
|
-
iframe {border:0;width:100%;height:100%;display: block;}
|
|
57
|
-
</style>
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dropdown trigger="click"
|
|
3
|
-
placement="bottom-end"
|
|
4
|
-
@command="configLang">
|
|
5
|
-
<el-button link>
|
|
6
|
-
<template #icon>
|
|
7
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
8
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
9
|
-
role="img"
|
|
10
|
-
width="1em"
|
|
11
|
-
height="1em"
|
|
12
|
-
preserveAspectRatio="xMidYMid meet"
|
|
13
|
-
viewBox="0 0 512 512">
|
|
14
|
-
<path d="M478.33 433.6l-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362L368 281.65L401.17 362z"
|
|
15
|
-
fill="currentColor"></path>
|
|
16
|
-
<path d="M267.84 342.92a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73c39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36c-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93c.92 1.19 1.83 2.35 2.74 3.51c-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59c22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z"
|
|
17
|
-
fill="currentColor"></path>
|
|
18
|
-
</svg>
|
|
19
|
-
</template>
|
|
20
|
-
{{ curLang }}
|
|
21
|
-
</el-button>
|
|
22
|
-
<template #dropdown>
|
|
23
|
-
<el-dropdown-menu >
|
|
24
|
-
<el-dropdown-item v-for="item in lang"
|
|
25
|
-
:key="item.value"
|
|
26
|
-
:command="item"
|
|
27
|
-
:class="{'selected':config.lang==item.value}">{{item.name}}</el-dropdown-item>
|
|
28
|
-
</el-dropdown-menu>
|
|
29
|
-
</template>
|
|
30
|
-
</el-dropdown>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
<script>
|
|
34
|
-
import { computed } from 'vue';
|
|
35
|
-
export default {
|
|
36
|
-
data() {
|
|
37
|
-
return {
|
|
38
|
-
config: {
|
|
39
|
-
lang: this.$tool.data.get("APP_LANG") || this.$config.LANG,
|
|
40
|
-
},
|
|
41
|
-
lang: [
|
|
42
|
-
{
|
|
43
|
-
name: "简体中文",
|
|
44
|
-
value: "zh-cn",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: "English",
|
|
48
|
-
value: "en-us",
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
watch: {
|
|
54
|
-
"config.lang"(val) {
|
|
55
|
-
this.$i18n.locale = val;
|
|
56
|
-
this.$i18n.fallbackLocale = val;
|
|
57
|
-
this.$tool.data.remove('RouteTags');
|
|
58
|
-
this.$tool.data.set("APP_LANG", val);
|
|
59
|
-
location.reload()
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
methods: {
|
|
63
|
-
configLang(command) {
|
|
64
|
-
this.config.lang = command.value;
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
computed: {
|
|
68
|
-
curLang() {
|
|
69
|
-
let l = this.lang.find(lang => lang.value === this.config.lang)
|
|
70
|
-
return l.name
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
</script>
|
|
75
|
-
|
|
76
|
-
<style>
|
|
77
|
-
</style>
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-form ref="form"
|
|
3
|
-
label-width="120px"
|
|
4
|
-
label-position="left"
|
|
5
|
-
style="padding:0 20px;">
|
|
6
|
-
<!-- <el-alert title="以下配置可实时预览,开发者可在 config/index.js 中配置默认值,非常不建议在生产环境下开放布局设置" type="error" :closable="false"></el-alert> -->
|
|
7
|
-
<el-divider></el-divider>
|
|
8
|
-
<el-form-item :label="$t('user.nightmode')">
|
|
9
|
-
<el-switch v-model="dark"
|
|
10
|
-
active-value="dark"
|
|
11
|
-
inactive-value="default"></el-switch>
|
|
12
|
-
</el-form-item>
|
|
13
|
-
<el-divider></el-divider>
|
|
14
|
-
<el-form-item :label="$t('user.color')">
|
|
15
|
-
<el-color-picker v-model="colorPrimary"
|
|
16
|
-
:predefine="colorList">></el-color-picker>
|
|
17
|
-
</el-form-item>
|
|
18
|
-
<el-divider></el-divider>
|
|
19
|
-
<el-form-item :label="$t('user.layout')">
|
|
20
|
-
<el-select v-model="layout"
|
|
21
|
-
placeholder="请选择">
|
|
22
|
-
<el-option label="默认"
|
|
23
|
-
value="default"></el-option>
|
|
24
|
-
<el-option label="通栏"
|
|
25
|
-
value="header"></el-option>
|
|
26
|
-
<el-option label="经典"
|
|
27
|
-
value="menu"></el-option>
|
|
28
|
-
<el-option label="功能坞"
|
|
29
|
-
value="dock"></el-option>
|
|
30
|
-
</el-select>
|
|
31
|
-
</el-form-item>
|
|
32
|
-
<el-form-item :label="$t('user.menu')">
|
|
33
|
-
<el-switch v-model="menuIsCollapse"></el-switch>
|
|
34
|
-
</el-form-item>
|
|
35
|
-
<el-form-item :label="$t('user.tag')">
|
|
36
|
-
<el-switch v-model="layoutTags"></el-switch>
|
|
37
|
-
</el-form-item>
|
|
38
|
-
<el-divider></el-divider>
|
|
39
|
-
<el-form-item :label="$t('user.lang')">
|
|
40
|
-
<Lang />
|
|
41
|
-
</el-form-item>
|
|
42
|
-
|
|
43
|
-
</el-form>
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<script>
|
|
47
|
-
import colorTool from '@/utils/color'
|
|
48
|
-
import Lang from './lang.vue'
|
|
49
|
-
|
|
50
|
-
export default {
|
|
51
|
-
components: { Lang },
|
|
52
|
-
data() {
|
|
53
|
-
return {
|
|
54
|
-
layout: this.$store.state.global.layout,
|
|
55
|
-
menuIsCollapse: this.$store.state.global.menuIsCollapse,
|
|
56
|
-
layoutTags: this.$store.state.global.layoutTags,
|
|
57
|
-
dark: this.$tool.data.get('APP_THEME'),
|
|
58
|
-
colorList: ['#409EFF', '#009688', '#536dfe', '#ff5c93', '#c62f2f', '#fd726d'],
|
|
59
|
-
colorPrimary: this.$tool.data.get('APP_COLOR') || this.$config.COLOR || '#409EFF'
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
watch: {
|
|
63
|
-
layout(val) {
|
|
64
|
-
this.$store.commit("SET_layout", val)
|
|
65
|
-
},
|
|
66
|
-
menuIsCollapse(val) {
|
|
67
|
-
this.$store.commit("TOGGLE_menuIsCollapse")
|
|
68
|
-
if (val) {
|
|
69
|
-
this.$tool.data.set("APP_menuIsCollapse", 'true');
|
|
70
|
-
} else {
|
|
71
|
-
this.$tool.data.remove("APP_menuIsCollapse");
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
layoutTags(val) {
|
|
75
|
-
this.$store.commit("TOGGLE_layoutTags")
|
|
76
|
-
if (val) {
|
|
77
|
-
this.$tool.data.remove("APP_LAYOUTTAGS");
|
|
78
|
-
} else {
|
|
79
|
-
this.$tool.data.set("APP_LAYOUTTAGS", 'hide');
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
dark(val) {
|
|
84
|
-
document.body.setAttribute('data-theme', val)
|
|
85
|
-
this.$tool.data.set("APP_THEME", val);
|
|
86
|
-
},
|
|
87
|
-
colorPrimary(val) {
|
|
88
|
-
document.documentElement.style.setProperty('--el-color-primary', val);
|
|
89
|
-
for (let i = 1; i <= 9; i++) {
|
|
90
|
-
document.documentElement.style.setProperty(`--el-color-primary-light-${i}`, colorTool.lighten(val, i / 10));
|
|
91
|
-
}
|
|
92
|
-
for (let i = 1; i <= 9; i++) {
|
|
93
|
-
document.documentElement.style.setProperty(`--el-color-primary-dark-${i}`, colorTool.darken(val, i / 10));
|
|
94
|
-
}
|
|
95
|
-
this.$tool.data.set("APP_COLOR", val);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
</script>
|
|
100
|
-
|
|
101
|
-
<style>
|
|
102
|
-
</style>
|