hd-idevvue3 3.0.5 → 3.0.8
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/dist/static/css/index-DRHIlcVU.css +1 -0
- package/dist/static/js/index-DbUA6jg0.js +184 -0
- package/dist/static/js/index-Dl4O91nB.js +73768 -0
- package/package.json +16 -16
- package/.env.development +0 -5
- package/.env.production +0 -5
- package/.eslintrc.js +0 -151
- package/dist/assets/index.431f21ca.css +0 -1
- package/dist/hd-idevvue3.mjs +0 -45878
- package/dist/hd-idevvue3.umd.js +0 -153
- package/index.html +0 -18
- package/npminstall-debug.log +0 -200
- package/pnpm-lock.yaml +0 -2813
- package/src/App.vue +0 -11
- package/src/assets/sound/notify.wav +0 -0
- package/src/demo/demo.vue +0 -42
- package/src/demo/dropdemo.vue +0 -42
- package/src/demo/extsets.vue +0 -208
- package/src/demo/formedit.vue +0 -157
- package/src/demo/hightquery.vue +0 -366
- package/src/demo/inlineedit.vue +0 -182
- package/src/demo/selfdrop.vue +0 -58
- package/src/demo//350/241/214/345/206/205/347/272/247/350/201/224.txt +0 -2
- package/src/directive/el-dragDialog/drag.js +0 -124
- package/src/directive/el-dragDialog/index.js +0 -13
- package/src/errorLog.js +0 -16
- package/src/hdcom/BigGrid.js +0 -179
- package/src/hdcom/BillShow.vue +0 -111
- package/src/hdcom/BillUpload.vue +0 -311
- package/src/hdcom/BtnRight.vue +0 -101
- package/src/hdcom/ErrHint.vue +0 -42
- package/src/hdcom/ExtendColumn.vue +0 -115
- package/src/hdcom/ExtendCommon.js +0 -40
- package/src/hdcom/ExtendForm.vue +0 -141
- package/src/hdcom/FacePicUpload.vue +0 -80
- package/src/hdcom/FaceRecTest.vue +0 -114
- package/src/hdcom/GridChart.vue +0 -207
- package/src/hdcom/GridExField.vue +0 -375
- package/src/hdcom/GridShow.vue +0 -288
- package/src/hdcom/HdAside.vue +0 -225
- package/src/hdcom/HdBtn.vue +0 -125
- package/src/hdcom/HdButton.vue +0 -161
- package/src/hdcom/HdComFaceRec.vue +0 -106
- package/src/hdcom/HdComGrid.vue +0 -876
- package/src/hdcom/HdComQuery.vue +0 -362
- package/src/hdcom/HdComQueryDetail.vue +0 -205
- package/src/hdcom/HdComSortDetail.vue +0 -161
- package/src/hdcom/HdDatePicker.vue +0 -94
- package/src/hdcom/HdDialog.vue +0 -81
- package/src/hdcom/HdDrop.vue +0 -188
- package/src/hdcom/HdFileUpload.vue +0 -167
- package/src/hdcom/HdFilterBox.vue +0 -90
- package/src/hdcom/HdFooter.vue +0 -182
- package/src/hdcom/HdForm.vue +0 -351
- package/src/hdcom/HdFormBtn.vue +0 -131
- package/src/hdcom/HdFormItem.vue +0 -39
- package/src/hdcom/HdGctosGrid +0 -0
- package/src/hdcom/HdGrid.vue +0 -1022
- package/src/hdcom/HdGridEditBtn.vue +0 -58
- package/src/hdcom/HdGridExt.js +0 -250
- package/src/hdcom/HdGridSel.vue +0 -257
- package/src/hdcom/HdHeader.vue +0 -180
- package/src/hdcom/HdHotKey.vue +0 -84
- package/src/hdcom/HdInputHint.vue +0 -53
- package/src/hdcom/HdMain.vue +0 -41
- package/src/hdcom/HdMessage.vue +0 -201
- package/src/hdcom/HdNum.vue +0 -79
- package/src/hdcom/HdPopSel.vue +0 -80
- package/src/hdcom/HdRightMenu.vue +0 -63
- package/src/hdcom/HdSel/SelGridFieldcod.vue +0 -54
- package/src/hdcom/HdTableColumn.vue +0 -381
- package/src/hdcom/HdTempSave.vue +0 -162
- package/src/hdcom/HdTree.vue +0 -103
- package/src/hdcom/HdTreeTable/eval.js +0 -39
- package/src/hdcom/HdTreeTable/index.vue +0 -229
- package/src/hdcom/ImportExcel.vue +0 -178
- package/src/hdcom/index.js +0 -75
- package/src/idev.common.js +0 -79
- package/src/index.js +0 -11
- package/src/utils/HdQuery.js +0 -65
- package/src/utils/comutils.js +0 -120
- package/src/utils/gogocodeTransfer.js +0 -59
- package/src/utils/utils.js +0 -116
- package/src/vendor/Blob.js +0 -187
- package/src/vendor/Export2Excel.js +0 -231
- package/src/vendor/Export2Zip.js +0 -25
- package/src/views/layout/AppMain.vue +0 -34
- package/src/views/layout/HdLayout.vue +0 -90
- package/src/views/layout/header/ElasticSearch.vue +0 -262
- package/src/views/layout/header/HZRecorder.js +0 -259
- package/src/views/layout/header/HeaderSearch.vue +0 -218
- package/src/views/layout/header/Levelbar.vue +0 -55
- package/src/views/layout/header/MainHeader.vue +0 -315
- package/src/views/layout/header/Navbar.vue +0 -101
- package/src/views/layout/header/ScrollPane.vue +0 -103
- package/src/views/layout/header/TagsView.vue +0 -215
- package/src/views/layout/header/VocRec.vue +0 -105
- package/src/views/layout/header/changepswform.vue +0 -130
- package/src/views/layout/index.js +0 -10
- package/src/views/layout/menu/Hamburger.vue +0 -63
- package/src/views/layout/menu/HdMenu.vue +0 -204
- package/src/views/layout/menu/css/menu.css +0 -288
- package/src/views/layout/menu/index.vue +0 -27
- package/src/views/privilege/commsg/commsg.vue +0 -152
- package/src/views/privilege/commsg/commsgOrgn.vue +0 -51
- package/src/views/privilege/commsg/commsgRole.vue +0 -220
- package/src/views/privilege/commsg/commsgform.vue +0 -184
- package/src/views/privilege/commsg/commsgiframe.vue +0 -40
- package/src/views/privilege/commsg/commsgto.vue +0 -199
- package/src/views/privilege/commsg/commsgtoform.vue +0 -114
- package/src/views/privilege/commsg/commsgtrans.vue +0 -227
- package/src/views/privilege/exfield/comexcolumn.vue +0 -161
- package/src/views/privilege/exfield/comexcolumnform.vue +0 -128
- package/src/views/privilege/exfield/comexfield.vue +0 -29
- package/src/views/privilege/exfield/comexfieldform.vue +0 -112
- package/src/views/privilege/exfield/comexfieldsub.vue +0 -163
- package/src/views/privilege/index.js +0 -41
- package/src/views/privilege/menu/comMenu.vue +0 -49
- package/src/views/privilege/menu/menu.vue +0 -250
- package/src/views/privilege/menu/menuinfo.vue +0 -63
- package/src/views/privilege/menu/rolelist.vue +0 -92
- package/src/views/privilege/menu/userlist.vue +0 -92
- package/src/views/privilege/mobile/authmobileupdate.vue +0 -145
- package/src/views/privilege/mobile/authmobileupdateform.vue +0 -120
- package/src/views/privilege/orgDept/authOrgn.vue +0 -188
- package/src/views/privilege/orgDept/authorgnform.vue +0 -157
- package/src/views/privilege/orgDept/orgDept.vue +0 -38
- package/src/views/privilege/orgDept/orgTree.vue +0 -99
- package/src/views/privilege/orgDept/orgnselect.vue +0 -155
- package/src/views/privilege/personDept/authuser.vue +0 -229
- package/src/views/privilege/personDept/authuserform.vue +0 -206
- package/src/views/privilege/personDept/facerec.vue +0 -162
- package/src/views/privilege/personDept/orgncascader.vue +0 -144
- package/src/views/privilege/personDept/personDept.vue +0 -33
- package/src/views/privilege/quartz/comquartzjob.vue +0 -150
- package/src/views/privilege/quartz/comquartzjobform.vue +0 -115
- package/src/views/privilege/quartz/comquartzlog.vue +0 -143
- package/src/views/privilege/role/btnRole.vue +0 -173
- package/src/views/privilege/role/menuRole.vue +0 -84
- package/src/views/privilege/role/orgnRole.vue +0 -78
- package/src/views/privilege/role/role.vue +0 -84
- package/src/views/privilege/role/rolelist.vue +0 -136
- package/src/views/privilege/role/roleselect.vue +0 -74
- package/src/views/privilege/search/comsearch.vue +0 -196
- package/src/views/privilege/search/menu.vue +0 -68
- package/src/views/privilege/syscode/syscode.vue +0 -191
- package/src/views/privilege/syscode/sysfield.vue +0 -119
- package/src/views/privilege/syscode/sysfieldframe.vue +0 -30
- package/src/views/privilege/syslog/menulog.vue +0 -68
- package/src/views/privilege/syslog/syslog.vue +0 -182
- package/src/views/privilege/syslog/syslogconfig.vue +0 -128
- package/src/views/privilege/syslog/syslogform.vue +0 -85
- package/src/views/privilege/syslog/syslogframe.vue +0 -26
- package/src/views/privilege/userRole/userRole.vue +0 -220
- package/vite.config.js +0 -103
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="{ show: show }" class="header-search">
|
|
3
|
-
<svg
|
|
4
|
-
@click="click"
|
|
5
|
-
class="search-icon screenfull-svg"
|
|
6
|
-
height="32"
|
|
7
|
-
viewBox="-10 -10 150 150"
|
|
8
|
-
width="32"
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
>
|
|
11
|
-
<path
|
|
12
|
-
d="M124.884 109.812L94.256 79.166c-.357-.357-.757-.629-1.129-.914a50.366 50.366 0 0 0 8.186-27.59C101.327 22.689 78.656 0 50.67 0 22.685 0 0 22.688 0 50.663c0 27.989 22.685 50.663 50.656 50.663 10.186 0 19.643-3.03 27.6-8.201.286.385.557.771.9 1.114l30.628 30.632a10.633 10.633 0 0 0 7.543 3.129c2.728 0 5.457-1.043 7.543-3.115 4.171-4.157 4.171-10.915.014-15.073M50.671 85.338C31.557 85.338 16 69.78 16 50.663c0-19.102 15.557-34.661 34.67-34.661 19.115 0 34.657 15.559 34.657 34.675 0 19.102-15.557 34.661-34.656 34.661"
|
|
13
|
-
/>
|
|
14
|
-
</svg>
|
|
15
|
-
<el-select
|
|
16
|
-
:remote-method="querySearch"
|
|
17
|
-
@change="change"
|
|
18
|
-
class="header-search-select"
|
|
19
|
-
default-first-option
|
|
20
|
-
filterable
|
|
21
|
-
:placeholder="$t('菜单查询')"
|
|
22
|
-
ref="headerSearchSelect"
|
|
23
|
-
remote
|
|
24
|
-
v-model="search"
|
|
25
|
-
>
|
|
26
|
-
<el-option
|
|
27
|
-
:key="item.path"
|
|
28
|
-
:label="item.title.join(' > ')"
|
|
29
|
-
:value="item"
|
|
30
|
-
v-for="item in options"
|
|
31
|
-
/>
|
|
32
|
-
</el-select>
|
|
33
|
-
</div>
|
|
34
|
-
</template>
|
|
35
|
-
|
|
36
|
-
<script>
|
|
37
|
-
import Fuse from 'fuse.js'
|
|
38
|
-
import path from 'path'
|
|
39
|
-
|
|
40
|
-
export default {
|
|
41
|
-
name: 'HeaderSearch',
|
|
42
|
-
data() {
|
|
43
|
-
return {
|
|
44
|
-
search: '',
|
|
45
|
-
options: [],
|
|
46
|
-
searchPool: [],
|
|
47
|
-
show: false,
|
|
48
|
-
fuse: undefined,
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
computed: {
|
|
52
|
-
routes() {
|
|
53
|
-
return this.$store.state.permission.hdMenu
|
|
54
|
-
},
|
|
55
|
-
lang() {
|
|
56
|
-
return this.$store.getters.language
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
watch: {
|
|
60
|
-
lang() {
|
|
61
|
-
this.searchPool = this.generateRoutes(this.routes)
|
|
62
|
-
},
|
|
63
|
-
routes() {
|
|
64
|
-
this.searchPool = this.generateRoutes(this.routes)
|
|
65
|
-
},
|
|
66
|
-
searchPool(list) {
|
|
67
|
-
this.initFuse(list)
|
|
68
|
-
},
|
|
69
|
-
show(value) {
|
|
70
|
-
if (value) {
|
|
71
|
-
document.body.addEventListener('click', this.close)
|
|
72
|
-
} else {
|
|
73
|
-
document.body.removeEventListener('click', this.close)
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
mounted() {
|
|
78
|
-
this.searchPool = this.generateRoutes(this.routes)
|
|
79
|
-
},
|
|
80
|
-
methods: {
|
|
81
|
-
click() {
|
|
82
|
-
this.show = !this.show
|
|
83
|
-
if (this.show) {
|
|
84
|
-
this.$refs.headerSearchSelect && this.$refs.headerSearchSelect.focus()
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
close() {
|
|
88
|
-
this.$refs.headerSearchSelect && this.$refs.headerSearchSelect.blur()
|
|
89
|
-
this.options = []
|
|
90
|
-
this.show = false
|
|
91
|
-
},
|
|
92
|
-
change(val) {
|
|
93
|
-
this.$router.push(val.path)
|
|
94
|
-
this.search = ''
|
|
95
|
-
this.options = []
|
|
96
|
-
this.$nextTick(() => {
|
|
97
|
-
this.show = false
|
|
98
|
-
})
|
|
99
|
-
},
|
|
100
|
-
initFuse(list) {
|
|
101
|
-
this.fuse = new Fuse(list, {
|
|
102
|
-
shouldSort: true,
|
|
103
|
-
threshold: 0.4,
|
|
104
|
-
location: 0,
|
|
105
|
-
distance: 100,
|
|
106
|
-
maxPatternLength: 32,
|
|
107
|
-
minMatchCharLength: 1,
|
|
108
|
-
keys: [
|
|
109
|
-
{
|
|
110
|
-
name: 'title',
|
|
111
|
-
weight: 0.7,
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
name: 'path',
|
|
115
|
-
weight: 0.3,
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
})
|
|
119
|
-
},
|
|
120
|
-
// Filter out the routes that can be displayed in the sidebar
|
|
121
|
-
// And generate the internationalized title
|
|
122
|
-
generateRoutes(routes, basePath = '/', prefixTitle = []) {
|
|
123
|
-
let res = []
|
|
124
|
-
for (const router of routes) {
|
|
125
|
-
// skip hidden router
|
|
126
|
-
if (router.hidden) {
|
|
127
|
-
continue
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
const data = {
|
|
131
|
-
path: path.resolve(basePath, router.path),
|
|
132
|
-
title: [...prefixTitle],
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
if (router.meta && router.meta.title) {
|
|
136
|
-
// generate internationalized title
|
|
137
|
-
const i18ntitle =
|
|
138
|
-
this.$i18n.locale == 'zh' ? router.meta.title : router.meta.enTitle
|
|
139
|
-
|
|
140
|
-
data.title = [...data.title, i18ntitle]
|
|
141
|
-
|
|
142
|
-
if (router.redirect !== 'noredirect') {
|
|
143
|
-
// only push the routes with title
|
|
144
|
-
// special case: need to exclude parent router without redirect
|
|
145
|
-
res.push(data)
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// recursive child routes
|
|
150
|
-
if (router.children) {
|
|
151
|
-
const tempRoutes = this.generateRoutes(
|
|
152
|
-
router.children,
|
|
153
|
-
data.path,
|
|
154
|
-
data.title
|
|
155
|
-
)
|
|
156
|
-
if (tempRoutes.length >= 1) {
|
|
157
|
-
res = [...res, ...tempRoutes]
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
return res
|
|
163
|
-
},
|
|
164
|
-
querySearch(query) {
|
|
165
|
-
if (query !== '') {
|
|
166
|
-
this.options = this.fuse.search(query)
|
|
167
|
-
} else {
|
|
168
|
-
this.options = []
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
}
|
|
173
|
-
</script>
|
|
174
|
-
|
|
175
|
-
<style lang="scss" scoped>
|
|
176
|
-
.header-search {
|
|
177
|
-
font-size: 0 !important;
|
|
178
|
-
|
|
179
|
-
.search-icon {
|
|
180
|
-
font-size: 18px;
|
|
181
|
-
vertical-align: middle;
|
|
182
|
-
display: inline-block;
|
|
183
|
-
cursor: pointer;
|
|
184
|
-
fill: #e4e9ef;
|
|
185
|
-
/* width: 20px;
|
|
186
|
-
height: 20px;
|
|
187
|
-
vertical-align: 10px;*/
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.header-search-select {
|
|
191
|
-
font-size: 18px;
|
|
192
|
-
transition: width 0.2s;
|
|
193
|
-
width: 0;
|
|
194
|
-
overflow: hidden;
|
|
195
|
-
background: transparent;
|
|
196
|
-
border-radius: 0;
|
|
197
|
-
display: inline-block;
|
|
198
|
-
vertical-align: middle;
|
|
199
|
-
|
|
200
|
-
:deep(.el-input__inner) {
|
|
201
|
-
border-radius: 0;
|
|
202
|
-
border: 0;
|
|
203
|
-
padding-left: 0;
|
|
204
|
-
padding-right: 0;
|
|
205
|
-
box-shadow: none !important;
|
|
206
|
-
border-bottom: 1px solid #d9d9d9;
|
|
207
|
-
vertical-align: middle;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
&.show {
|
|
212
|
-
.header-search-select {
|
|
213
|
-
width: 150px;
|
|
214
|
-
margin-left: 10px;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
</style>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-breadcrumb class="app-levelbar" separator="/">
|
|
3
|
-
<el-breadcrumb-item v-for="(item, index) in levelList" :key="item.path">
|
|
4
|
-
<span
|
|
5
|
-
v-if="item.redirect === 'noredirect' || index == levelList.length - 1"
|
|
6
|
-
class="no-redirect"
|
|
7
|
-
>{{ item.name }}</span
|
|
8
|
-
>
|
|
9
|
-
<router-link v-else :to="item.redirect || item.path">{{
|
|
10
|
-
item.name
|
|
11
|
-
}}</router-link>
|
|
12
|
-
</el-breadcrumb-item>
|
|
13
|
-
</el-breadcrumb>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
export default {
|
|
18
|
-
created() {
|
|
19
|
-
this.getBreadcrumb()
|
|
20
|
-
},
|
|
21
|
-
data() {
|
|
22
|
-
return {
|
|
23
|
-
levelList: null,
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
methods: {
|
|
27
|
-
getBreadcrumb() {
|
|
28
|
-
let matched = this.$route.matched.filter((item) => item.name)
|
|
29
|
-
/* const first = matched[0]
|
|
30
|
-
if (first && (first.name !== '首页' || first.path !== '')) {
|
|
31
|
-
matched = [{ name: '首页', path: '/' }].concat(matched)
|
|
32
|
-
}*/
|
|
33
|
-
this.levelList = matched
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
watch: {
|
|
37
|
-
$route() {
|
|
38
|
-
this.getBreadcrumb()
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
}
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
45
|
-
.app-levelbar.el-breadcrumb {
|
|
46
|
-
display: inline-block;
|
|
47
|
-
font-size: 14px;
|
|
48
|
-
line-height: 50px;
|
|
49
|
-
margin-left: 10px;
|
|
50
|
-
.no-redirect {
|
|
51
|
-
color: #97a8be;
|
|
52
|
-
cursor: text;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
</style>
|
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="headerLogo"></div>
|
|
4
|
-
<div class="headerIcon">
|
|
5
|
-
<a @click="logout" class="headerIconLink5" href="javascript:void(0)"
|
|
6
|
-
><!--退出--></a
|
|
7
|
-
>
|
|
8
|
-
|
|
9
|
-
<el-dropdown
|
|
10
|
-
class="avatar-container right-menu-item"
|
|
11
|
-
style="float: right"
|
|
12
|
-
trigger="click"
|
|
13
|
-
>
|
|
14
|
-
<a class="headerIconLink7" href="javascript:void(0)">
|
|
15
|
-
<el-badge
|
|
16
|
-
:hidden="$store.state.user.messageNum == 0"
|
|
17
|
-
:max="99"
|
|
18
|
-
:model-value="$store.state.user.messageNum"
|
|
19
|
-
style="float: left"
|
|
20
|
-
></el-badge>
|
|
21
|
-
<!--<el-badge :value="$store.state.user.messageNum" :hidden="$store.state.user.messageNum==0" :max="99">-->
|
|
22
|
-
<div class="avatar-wrapper" style="float: left">
|
|
23
|
-
<span class="headerIconFontColor"> {{ name }}</span>
|
|
24
|
-
</div>
|
|
25
|
-
</a>
|
|
26
|
-
|
|
27
|
-
<el-dropdown-menu slot="dropdown">
|
|
28
|
-
<router-link to="/">
|
|
29
|
-
<el-dropdown-item>
|
|
30
|
-
{{ $t('首页') }}
|
|
31
|
-
</el-dropdown-item>
|
|
32
|
-
</router-link>
|
|
33
|
-
<el-dropdown-item>
|
|
34
|
-
<span @click="changePsw" style="display: block">
|
|
35
|
-
{{ $t('修改密码') }}</span
|
|
36
|
-
>
|
|
37
|
-
</el-dropdown-item>
|
|
38
|
-
<el-dropdown-item>
|
|
39
|
-
<span @click="editBoard" style="display: block">
|
|
40
|
-
{{ $t('修改首页') }}</span
|
|
41
|
-
>
|
|
42
|
-
</el-dropdown-item>
|
|
43
|
-
<el-dropdown-item>
|
|
44
|
-
<span @click="showMessage" style="display: block">
|
|
45
|
-
{{ $t('查看消息') }}
|
|
46
|
-
<el-badge
|
|
47
|
-
:hidden="$store.state.user.messageNum == 0"
|
|
48
|
-
:max="99"
|
|
49
|
-
:model-value="$store.state.user.messageNum"
|
|
50
|
-
style="margin-top: -5px"
|
|
51
|
-
type="warning"
|
|
52
|
-
/>
|
|
53
|
-
</span>
|
|
54
|
-
</el-dropdown-item>
|
|
55
|
-
|
|
56
|
-
<!--<el-dropdown-item>
|
|
57
|
-
<span @click="chgLanguage" style="display:block;">{{nextLanguage}}</span>
|
|
58
|
-
</el-dropdown-item>-->
|
|
59
|
-
</el-dropdown-menu>
|
|
60
|
-
</el-dropdown>
|
|
61
|
-
|
|
62
|
-
<el-dropdown
|
|
63
|
-
class="avatar-container right-menu-item"
|
|
64
|
-
style="float: right"
|
|
65
|
-
trigger="click"
|
|
66
|
-
>
|
|
67
|
-
<a class="headerIconLink3" href="javascript:void(0)">
|
|
68
|
-
<div class="avatar-wrapper">
|
|
69
|
-
<el-icon class="headerIconFontColor"
|
|
70
|
-
><el-icon-caret-bottom
|
|
71
|
-
/></el-icon>
|
|
72
|
-
</div>
|
|
73
|
-
</a>
|
|
74
|
-
<el-dropdown-menu slot="dropdown">
|
|
75
|
-
<el-dropdown-item>
|
|
76
|
-
<span @click="changeStyle('metro-orange')" style="display: block">
|
|
77
|
-
{{ $t('橙色') }}</span
|
|
78
|
-
>
|
|
79
|
-
</el-dropdown-item>
|
|
80
|
-
<el-dropdown-item>
|
|
81
|
-
<span @click="changeStyle('metro-green')" style="display: block">
|
|
82
|
-
{{ $t('绿色') }}</span
|
|
83
|
-
>
|
|
84
|
-
</el-dropdown-item>
|
|
85
|
-
<el-dropdown-item>
|
|
86
|
-
<span @click="changeStyle('metro-mauves')" style="display: block">
|
|
87
|
-
{{ $t('紫色') }}</span
|
|
88
|
-
>
|
|
89
|
-
</el-dropdown-item>
|
|
90
|
-
<el-dropdown-item>
|
|
91
|
-
<span @click="changeStyle('metro-blue')" style="display: block">
|
|
92
|
-
{{ $t('蓝色') }}</span
|
|
93
|
-
>
|
|
94
|
-
</el-dropdown-item>
|
|
95
|
-
</el-dropdown-menu>
|
|
96
|
-
</el-dropdown>
|
|
97
|
-
|
|
98
|
-
<el-dropdown
|
|
99
|
-
class="avatar-container right-menu-item"
|
|
100
|
-
style="float: right"
|
|
101
|
-
trigger="hover"
|
|
102
|
-
>
|
|
103
|
-
<a :class="colorStyle" href="javascript:void(0)">
|
|
104
|
-
<div class="avatar-wrapper">
|
|
105
|
-
<el-icon class="headerIconFontColor"
|
|
106
|
-
><el-icon-caret-bottom
|
|
107
|
-
/></el-icon>
|
|
108
|
-
</div>
|
|
109
|
-
</a>
|
|
110
|
-
<el-dropdown-menu slot="dropdown">
|
|
111
|
-
<el-dropdown-item>
|
|
112
|
-
<span @click="changeLanguage('zh')" style="display: block"
|
|
113
|
-
>中文</span
|
|
114
|
-
>
|
|
115
|
-
<!--<span @click="chgLanguage" style="display:block;">{{nextLanguage}}</span>-->
|
|
116
|
-
</el-dropdown-item>
|
|
117
|
-
<el-dropdown-item>
|
|
118
|
-
<span @click="changeLanguage('en')" style="display: block"
|
|
119
|
-
>English</span
|
|
120
|
-
>
|
|
121
|
-
</el-dropdown-item>
|
|
122
|
-
</el-dropdown-menu>
|
|
123
|
-
</el-dropdown>
|
|
124
|
-
|
|
125
|
-
<div
|
|
126
|
-
class="avatar-container right-menu-item"
|
|
127
|
-
style="float: right"
|
|
128
|
-
trigger="click"
|
|
129
|
-
>
|
|
130
|
-
<a class="mike" href="javascript:void(0)">
|
|
131
|
-
<div @shortkey="vocHotKey" v-shortkey.push="['ctrl', '`']"></div>
|
|
132
|
-
</a>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
<search
|
|
136
|
-
class="avatar-container right-menu-item"
|
|
137
|
-
style="float: right"
|
|
138
|
-
></search>
|
|
139
|
-
|
|
140
|
-
<changepswform ref="changepswform"></changepswform>
|
|
141
|
-
</div>
|
|
142
|
-
</div>
|
|
143
|
-
</template>
|
|
144
|
-
|
|
145
|
-
<script>
|
|
146
|
-
import { CaretBottom as ElIconCaretBottom } from '@element-plus/icons-vue'
|
|
147
|
-
import { mapGetters } from 'vuex'
|
|
148
|
-
import search from './ElasticSearch'
|
|
149
|
-
import changepswform from './changepswform'
|
|
150
|
-
import VocRec from './VocRec'
|
|
151
|
-
|
|
152
|
-
export default {
|
|
153
|
-
components: {
|
|
154
|
-
changepswform,
|
|
155
|
-
search,
|
|
156
|
-
ElIconCaretBottom,
|
|
157
|
-
},
|
|
158
|
-
name: 'mainHeader',
|
|
159
|
-
mixins: [VocRec],
|
|
160
|
-
data() {
|
|
161
|
-
return {
|
|
162
|
-
show: false,
|
|
163
|
-
params: {
|
|
164
|
-
entityId: this.$store.getters.token,
|
|
165
|
-
entityName: 'avatar',
|
|
166
|
-
},
|
|
167
|
-
headers: {
|
|
168
|
-
smail: '*_~',
|
|
169
|
-
},
|
|
170
|
-
imgDataUrl: '', // the datebase64 url of created image
|
|
171
|
-
style: this.$store.state.user.skin,
|
|
172
|
-
//log: errLogStore.state.errLog
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
mounted() {
|
|
176
|
-
//this.screenShotFn = screenShot([16, 65], 27);
|
|
177
|
-
if (this.$store.state.user.nextChgId == '1') {
|
|
178
|
-
this.changePsw()
|
|
179
|
-
}
|
|
180
|
-
this.$i18n.locale = this.$store.state.user.language || 'zh'
|
|
181
|
-
this.placeholderChg()
|
|
182
|
-
},
|
|
183
|
-
computed: {
|
|
184
|
-
...mapGetters(['sidebar', 'name', 'avatar', 'language']),
|
|
185
|
-
nextLanguage() {
|
|
186
|
-
if (this.$i18n.locale == 'zh') {
|
|
187
|
-
return 'English'
|
|
188
|
-
} else {
|
|
189
|
-
return '中文'
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
colorStyle() {
|
|
193
|
-
if (this.$i18n.locale == 'zh') {
|
|
194
|
-
return 'zhjack'
|
|
195
|
-
} else {
|
|
196
|
-
return 'enjack'
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
methods: {
|
|
201
|
-
// toggleSideBar() {
|
|
202
|
-
// this.$store.dispatch('toggleSideBar')
|
|
203
|
-
// },
|
|
204
|
-
// handleSetLanguage(lang) {
|
|
205
|
-
// this.$i18n.locale = lang
|
|
206
|
-
// this.$store.dispatch('setLanguage', lang)
|
|
207
|
-
// this.$message({
|
|
208
|
-
// message: 'switch language success',
|
|
209
|
-
// type: 'success'
|
|
210
|
-
// })
|
|
211
|
-
// },
|
|
212
|
-
|
|
213
|
-
editBoard() {
|
|
214
|
-
this.$router.push({
|
|
215
|
-
path: '/dashboard',
|
|
216
|
-
query: {
|
|
217
|
-
isEdit: '1',
|
|
218
|
-
},
|
|
219
|
-
})
|
|
220
|
-
},
|
|
221
|
-
logout() {
|
|
222
|
-
this.$store.dispatch('LogOut').then(() => {
|
|
223
|
-
location.reload() // 为了重新实例化vue-router对象 避免bug
|
|
224
|
-
})
|
|
225
|
-
},
|
|
226
|
-
changePsw() {
|
|
227
|
-
this.$refs['changepswform'].show()
|
|
228
|
-
},
|
|
229
|
-
changeAvatar() {
|
|
230
|
-
this.show = !this.show
|
|
231
|
-
},
|
|
232
|
-
/**
|
|
233
|
-
* crop success
|
|
234
|
-
*
|
|
235
|
-
* [param] imgDataUrl
|
|
236
|
-
* [param] field
|
|
237
|
-
*/
|
|
238
|
-
cropSuccess(imgDataUrl, field) {
|
|
239
|
-
// console.log('-------- crop success --------')
|
|
240
|
-
// this.imgDataUrl = imgDataUrl
|
|
241
|
-
// store.getters.avatar = imgDataUrl
|
|
242
|
-
this.$store.state.user.avatar = imgDataUrl
|
|
243
|
-
},
|
|
244
|
-
/**
|
|
245
|
-
* upload success
|
|
246
|
-
*
|
|
247
|
-
* [param] jsonData 服务器返回数据,已进行json转码
|
|
248
|
-
* [param] field
|
|
249
|
-
*/
|
|
250
|
-
cropUploadSuccess(jsonData, field) {
|
|
251
|
-
// console.log('-------- upload success --------')
|
|
252
|
-
// console.log(jsonData)
|
|
253
|
-
// console.log('field: ' + field)
|
|
254
|
-
// this.imgDataUrl = 'webresources/login/com/comfileupload/download?uploadId=' + jsonData.message
|
|
255
|
-
},
|
|
256
|
-
/**
|
|
257
|
-
* upload fail
|
|
258
|
-
*
|
|
259
|
-
* [param] status server api return error status, like 500
|
|
260
|
-
* [param] field
|
|
261
|
-
*/
|
|
262
|
-
cropUploadFail(status, field) {
|
|
263
|
-
// console.log('-------- upload fail --------')
|
|
264
|
-
// console.log(status)
|
|
265
|
-
// console.log('field: ' + field)
|
|
266
|
-
},
|
|
267
|
-
changeStyle(style) {
|
|
268
|
-
this.$store.state.user.skin = style
|
|
269
|
-
this.$http
|
|
270
|
-
.get(
|
|
271
|
-
`/webresources/login/privilege/AuthUser/updateUserStyleCss/${style}?stylecss=${style}`
|
|
272
|
-
)
|
|
273
|
-
.then((response) => {
|
|
274
|
-
const data = response.data
|
|
275
|
-
})
|
|
276
|
-
},
|
|
277
|
-
showMessage() {
|
|
278
|
-
this.$router.push({ path: '/privilege/commsgto' })
|
|
279
|
-
},
|
|
280
|
-
changeLanguage(val) {
|
|
281
|
-
this.$i18n.locale = val
|
|
282
|
-
this.$store.state.user.language = val
|
|
283
|
-
this.placeholderChg()
|
|
284
|
-
this.$http
|
|
285
|
-
.get(`/webresources/login/privilege/AuthUser/updateUserLanguage/${val}`)
|
|
286
|
-
.then((response) => {
|
|
287
|
-
const data = response.datas
|
|
288
|
-
})
|
|
289
|
-
},
|
|
290
|
-
placeholderChg() {
|
|
291
|
-
this.$date.placeholder = this.$t('选择日期')
|
|
292
|
-
this.$time.placeholder = this.$t('选择时间')
|
|
293
|
-
this.$simdate.placeholder = this.$t('选择日期')
|
|
294
|
-
this.$simtime.placeholder = this.$t('选择时间')
|
|
295
|
-
},
|
|
296
|
-
},
|
|
297
|
-
}
|
|
298
|
-
</script>
|
|
299
|
-
|
|
300
|
-
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
301
|
-
.right-menu-item {
|
|
302
|
-
display: inline-block;
|
|
303
|
-
margin: 0 8px;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.item {
|
|
307
|
-
position: absolute;
|
|
308
|
-
z-index: 2000;
|
|
309
|
-
margin-left: -10px;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.el-icon-caret-bottom:before {
|
|
313
|
-
content: '' !important;
|
|
314
|
-
}
|
|
315
|
-
</style>
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-menu class="navbar" mode="horizontal">
|
|
3
|
-
<tags-view style="width: calc(100%); height: 100%"></tags-view>
|
|
4
|
-
</el-menu>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import TagsView from './TagsView'
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
components: {
|
|
12
|
-
TagsView,
|
|
13
|
-
},
|
|
14
|
-
data() {
|
|
15
|
-
return {}
|
|
16
|
-
},
|
|
17
|
-
computed: {},
|
|
18
|
-
methods: {},
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
23
|
-
.navbar {
|
|
24
|
-
height: 30px; //jianglinghao 513
|
|
25
|
-
line-height: 40px;
|
|
26
|
-
border-radius: 0px !important;
|
|
27
|
-
|
|
28
|
-
.hamburger-container {
|
|
29
|
-
/*line-height: 40px;*/
|
|
30
|
-
/*height: 40px;*/
|
|
31
|
-
float: left;
|
|
32
|
-
padding: 0 10px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.breadcrumb-container {
|
|
36
|
-
float: left;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.errLog-container {
|
|
40
|
-
display: inline-block;
|
|
41
|
-
vertical-align: top;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.right-menu {
|
|
45
|
-
float: right;
|
|
46
|
-
height: 100%;
|
|
47
|
-
|
|
48
|
-
&:focus {
|
|
49
|
-
outline: none;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.right-menu-item {
|
|
53
|
-
display: inline-block;
|
|
54
|
-
margin: 0 8px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.screenfull {
|
|
58
|
-
vertical-align: middle;
|
|
59
|
-
height: 40px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.international {
|
|
63
|
-
vertical-align: top;
|
|
64
|
-
|
|
65
|
-
.international-icon {
|
|
66
|
-
font-size: 20px;
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
vertical-align: -5px;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.theme-switch {
|
|
73
|
-
vertical-align: 15px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.avatar-container {
|
|
77
|
-
height: 40px;
|
|
78
|
-
margin-right: 30px;
|
|
79
|
-
|
|
80
|
-
.avatar-wrapper {
|
|
81
|
-
cursor: pointer;
|
|
82
|
-
margin-top: 5px;
|
|
83
|
-
position: relative;
|
|
84
|
-
|
|
85
|
-
.user-avatar {
|
|
86
|
-
width: 30px;
|
|
87
|
-
height: 30px;
|
|
88
|
-
border-radius: 10px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.el-icon-caret-bottom {
|
|
92
|
-
position: absolute;
|
|
93
|
-
right: -20px;
|
|
94
|
-
top: 25px;
|
|
95
|
-
font-size: 12px;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
</style>
|