hd-idevvue3 3.0.3 → 3.0.4
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/assets/index.9c127719.css +1 -0
- package/dist/hd-idevvue3.mjs +3521 -3305
- package/dist/hd-idevvue3.umd.js +29 -29
- package/npminstall-debug.log +2 -10
- package/package.json +3 -1
- package/pnpm-lock.yaml +37 -4
- package/src/App.vue +11 -15
- package/src/assets/sound/notify.wav +0 -0
- package/src/demo/demo.vue +9 -10
- package/src/demo/dropdemo.vue +42 -43
- package/src/demo/extsets.vue +140 -39
- package/src/demo/formedit.vue +157 -145
- package/src/demo/hightquery.vue +263 -66
- package/src/demo/inlineedit.vue +129 -35
- package/src/demo/selfdrop.vue +32 -15
- package/src/directive/el-dragDialog/drag.js +13 -13
- package/src/directive/el-dragDialog/index.js +13 -13
- package/src/errorLog.js +3 -3
- package/src/hdcom/BigGrid.js +54 -48
- package/src/hdcom/BillShow.vue +84 -63
- package/src/hdcom/BillUpload.vue +144 -86
- package/src/hdcom/BtnRight.vue +26 -23
- package/src/hdcom/ErrHint.vue +36 -24
- package/src/hdcom/ExtendColumn.vue +97 -90
- package/src/hdcom/ExtendCommon.js +24 -13
- package/src/hdcom/ExtendForm.vue +107 -80
- package/src/hdcom/FacePicUpload.vue +59 -50
- package/src/hdcom/FaceRecTest.vue +87 -77
- package/src/hdcom/GridChart.vue +175 -162
- package/src/hdcom/GridExField.vue +328 -234
- package/src/hdcom/GridShow.vue +89 -39
- package/src/hdcom/HdAside.vue +192 -145
- package/src/hdcom/HdBtn.vue +44 -32
- package/src/hdcom/HdButton.vue +141 -117
- package/src/hdcom/HdComFaceRec.vue +80 -32
- package/src/hdcom/HdComGrid.vue +329 -229
- package/src/hdcom/HdComQuery.vue +179 -90
- package/src/hdcom/HdComQueryDetail.vue +159 -115
- package/src/hdcom/HdComSortDetail.vue +136 -130
- package/src/hdcom/HdDatePicker.vue +32 -16
- package/src/hdcom/HdDialog.vue +62 -44
- package/src/hdcom/HdDrop.vue +163 -138
- package/src/hdcom/HdFileUpload.vue +138 -119
- package/src/hdcom/HdFilterBox.vue +62 -62
- package/src/hdcom/HdFooter.vue +152 -119
- package/src/hdcom/HdForm.vue +276 -203
- package/src/hdcom/HdFormBtn.vue +81 -39
- package/src/hdcom/HdFormItem.vue +14 -10
- package/src/hdcom/HdGrid.vue +353 -156
- package/src/hdcom/HdGridEditBtn.vue +34 -20
- package/src/hdcom/HdGridExt.js +78 -47
- package/src/hdcom/HdGridSel.vue +227 -193
- package/src/hdcom/HdHeader.vue +149 -117
- package/src/hdcom/HdHotKey.vue +70 -67
- package/src/hdcom/HdInputHint.vue +40 -36
- package/src/hdcom/HdMain.vue +25 -27
- package/src/hdcom/HdMessage.vue +180 -171
- package/src/hdcom/HdNum.vue +67 -57
- package/src/hdcom/HdPopSel.vue +46 -24
- package/src/hdcom/HdRightMenu.vue +63 -61
- package/src/hdcom/HdSel/SelGridFieldcod.vue +46 -28
- package/src/hdcom/HdTableColumn.vue +156 -109
- package/src/hdcom/HdTempSave.vue +138 -116
- package/src/hdcom/HdTree.vue +89 -72
- package/src/hdcom/HdTreeTable/eval.js +8 -3
- package/src/hdcom/HdTreeTable/index.vue +229 -174
- package/src/hdcom/ImportExcel.vue +69 -34
- package/src/hdcom/index.js +39 -44
- package/src/idev.common.js +54 -47
- package/src/index.js +3 -6
- package/src/utils/HdQuery.js +25 -14
- package/src/utils/comutils.js +50 -28
- package/src/utils/gogocodeTransfer.js +59 -0
- package/src/utils/utils.js +30 -19
- package/src/vendor/Blob.js +187 -179
- package/src/vendor/Export2Excel.js +231 -220
- package/src/vendor/Export2Zip.js +25 -22
- package/src/views/layout/AppMain.vue +34 -32
- package/src/views/layout/HdLayout.vue +64 -52
- package/src/views/layout/header/ElasticSearch.vue +196 -159
- package/src/views/layout/header/HZRecorder.js +163 -135
- package/src/views/layout/header/HeaderSearch.vue +165 -145
- package/src/views/layout/header/Levelbar.vue +55 -49
- package/src/views/layout/header/MainHeader.vue +233 -189
- package/src/views/layout/header/Navbar.vue +74 -78
- package/src/views/layout/header/ScrollPane.vue +103 -81
- package/src/views/layout/header/TagsView.vue +169 -164
- package/src/views/layout/header/VocRec.vue +86 -78
- package/src/views/layout/header/changepswform.vue +98 -64
- package/src/views/layout/index.js +5 -7
- package/src/views/layout/menu/Hamburger.vue +63 -45
- package/src/views/layout/menu/HdMenu.vue +155 -118
- package/src/views/layout/menu/index.vue +21 -19
- package/src/views/privilege/commsg/commsg.vue +115 -41
- package/src/views/privilege/commsg/commsgOrgn.vue +40 -31
- package/src/views/privilege/commsg/commsgRole.vue +180 -109
- package/src/views/privilege/commsg/commsgform.vue +125 -101
- package/src/views/privilege/commsg/commsgiframe.vue +30 -23
- package/src/views/privilege/commsg/commsgto.vue +163 -84
- package/src/views/privilege/commsg/commsgtoform.vue +64 -58
- package/src/views/privilege/commsg/commsgtrans.vue +187 -115
- package/src/views/privilege/exfield/comexcolumn.vue +133 -43
- package/src/views/privilege/exfield/comexcolumnform.vue +85 -58
- package/src/views/privilege/exfield/comexfield.vue +15 -17
- package/src/views/privilege/exfield/comexfieldform.vue +71 -53
- package/src/views/privilege/exfield/comexfieldsub.vue +137 -46
- package/src/views/privilege/index.js +19 -20
- package/src/views/privilege/menu/comMenu.vue +49 -41
- package/src/views/privilege/menu/menu.vue +166 -49
- package/src/views/privilege/menu/menuinfo.vue +41 -34
- package/src/views/privilege/menu/rolelist.vue +78 -33
- package/src/views/privilege/menu/userlist.vue +76 -33
- package/src/views/privilege/mobile/authmobileupdate.vue +119 -43
- package/src/views/privilege/mobile/authmobileupdateform.vue +76 -46
- package/src/views/privilege/orgDept/authOrgn.vue +157 -65
- package/src/views/privilege/orgDept/authorgnform.vue +50 -38
- package/src/views/privilege/orgDept/orgDept.vue +38 -37
- package/src/views/privilege/orgDept/orgTree.vue +99 -88
- package/src/views/privilege/orgDept/orgnselect.vue +132 -111
- package/src/views/privilege/personDept/authuser.vue +197 -91
- package/src/views/privilege/personDept/authuserform.vue +123 -71
- package/src/views/privilege/personDept/facerec.vue +128 -83
- package/src/views/privilege/personDept/orgncascader.vue +134 -115
- package/src/views/privilege/personDept/personDept.vue +9 -7
- package/src/views/privilege/quartz/comquartzjob.vue +123 -38
- package/src/views/privilege/quartz/comquartzjobform.vue +67 -51
- package/src/views/privilege/quartz/comquartzlog.vue +116 -32
- package/src/views/privilege/role/btnRole.vue +123 -67
- package/src/views/privilege/role/menuRole.vue +65 -45
- package/src/views/privilege/role/orgnRole.vue +63 -41
- package/src/views/privilege/role/role.vue +26 -9
- package/src/views/privilege/role/rolelist.vue +114 -45
- package/src/views/privilege/role/roleselect.vue +34 -17
- package/src/views/privilege/search/comsearch.vue +164 -73
- package/src/views/privilege/search/menu.vue +38 -22
- package/src/views/privilege/syscode/syscode.vue +157 -69
- package/src/views/privilege/syscode/sysfield.vue +96 -43
- package/src/views/privilege/syscode/sysfieldframe.vue +30 -30
- package/src/views/privilege/syslog/menulog.vue +38 -22
- package/src/views/privilege/syslog/syslog.vue +145 -78
- package/src/views/privilege/syslog/syslogconfig.vue +91 -24
- package/src/views/privilege/syslog/syslogform.vue +45 -43
- package/src/views/privilege/syslog/syslogframe.vue +26 -26
- package/src/views/privilege/userRole/userRole.vue +187 -89
- package/vite.config.js +7 -0
- package/dist/assets/index.774ef40e.css +0 -1
- package/src/views/privilege.zip +0 -0
|
@@ -2,97 +2,140 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<div class="headerLogo"></div>
|
|
4
4
|
<div class="headerIcon">
|
|
5
|
-
<a @click="logout" class="headerIconLink5" href="javascript:void(0)"
|
|
5
|
+
<a @click="logout" class="headerIconLink5" href="javascript:void(0)"
|
|
6
|
+
><!--退出--></a
|
|
7
|
+
>
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
<el-dropdown
|
|
10
|
+
class="avatar-container right-menu-item"
|
|
11
|
+
style="float: right"
|
|
12
|
+
trigger="click"
|
|
13
|
+
>
|
|
9
14
|
<a class="headerIconLink7" href="javascript:void(0)">
|
|
10
|
-
<el-badge
|
|
11
|
-
|
|
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>
|
|
12
21
|
<!--<el-badge :value="$store.state.user.messageNum" :hidden="$store.state.user.messageNum==0" :max="99">-->
|
|
13
|
-
<div class="avatar-wrapper" style="float: left
|
|
14
|
-
<span class="headerIconFontColor"> {{name}}</span>
|
|
22
|
+
<div class="avatar-wrapper" style="float: left">
|
|
23
|
+
<span class="headerIconFontColor"> {{ name }}</span>
|
|
15
24
|
</div>
|
|
16
25
|
</a>
|
|
17
26
|
|
|
18
27
|
<el-dropdown-menu slot="dropdown">
|
|
19
28
|
<router-link to="/">
|
|
20
29
|
<el-dropdown-item>
|
|
21
|
-
{{$t('首页')}}
|
|
30
|
+
{{ $t('首页') }}
|
|
22
31
|
</el-dropdown-item>
|
|
23
32
|
</router-link>
|
|
24
33
|
<el-dropdown-item>
|
|
25
|
-
<span @click="changePsw" style="display:block
|
|
34
|
+
<span @click="changePsw" style="display: block">
|
|
35
|
+
{{ $t('修改密码') }}</span
|
|
36
|
+
>
|
|
26
37
|
</el-dropdown-item>
|
|
27
38
|
<el-dropdown-item>
|
|
28
|
-
<span @click="editBoard" style="display:block
|
|
39
|
+
<span @click="editBoard" style="display: block">
|
|
40
|
+
{{ $t('修改首页') }}</span
|
|
41
|
+
>
|
|
29
42
|
</el-dropdown-item>
|
|
30
43
|
<el-dropdown-item>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
+
/>
|
|
36
53
|
</span>
|
|
37
|
-
|
|
38
54
|
</el-dropdown-item>
|
|
39
55
|
|
|
40
56
|
<!--<el-dropdown-item>
|
|
41
|
-
|
|
42
|
-
|
|
57
|
+
<span @click="chgLanguage" style="display:block;">{{nextLanguage}}</span>
|
|
58
|
+
</el-dropdown-item>-->
|
|
43
59
|
</el-dropdown-menu>
|
|
44
60
|
</el-dropdown>
|
|
45
61
|
|
|
46
|
-
|
|
47
|
-
|
|
62
|
+
<el-dropdown
|
|
63
|
+
class="avatar-container right-menu-item"
|
|
64
|
+
style="float: right"
|
|
65
|
+
trigger="click"
|
|
66
|
+
>
|
|
48
67
|
<a class="headerIconLink3" href="javascript:void(0)">
|
|
49
68
|
<div class="avatar-wrapper">
|
|
50
|
-
<
|
|
69
|
+
<el-icon class="headerIconFontColor"
|
|
70
|
+
><el-icon-caret-bottom
|
|
71
|
+
/></el-icon>
|
|
51
72
|
</div>
|
|
52
73
|
</a>
|
|
53
74
|
<el-dropdown-menu slot="dropdown">
|
|
54
75
|
<el-dropdown-item>
|
|
55
|
-
<span @click="changeStyle('metro-orange')" style="display:block
|
|
76
|
+
<span @click="changeStyle('metro-orange')" style="display: block">
|
|
77
|
+
{{ $t('橙色') }}</span
|
|
78
|
+
>
|
|
56
79
|
</el-dropdown-item>
|
|
57
80
|
<el-dropdown-item>
|
|
58
|
-
|
|
59
|
-
|
|
81
|
+
<span @click="changeStyle('metro-green')" style="display: block">
|
|
82
|
+
{{ $t('绿色') }}</span
|
|
83
|
+
>
|
|
60
84
|
</el-dropdown-item>
|
|
61
85
|
<el-dropdown-item>
|
|
62
|
-
<span @click="changeStyle('metro-mauves')" style="display:block
|
|
86
|
+
<span @click="changeStyle('metro-mauves')" style="display: block">
|
|
87
|
+
{{ $t('紫色') }}</span
|
|
88
|
+
>
|
|
63
89
|
</el-dropdown-item>
|
|
64
90
|
<el-dropdown-item>
|
|
65
|
-
<span @click="changeStyle('metro-blue')" style="display:block
|
|
91
|
+
<span @click="changeStyle('metro-blue')" style="display: block">
|
|
92
|
+
{{ $t('蓝色') }}</span
|
|
93
|
+
>
|
|
66
94
|
</el-dropdown-item>
|
|
67
95
|
</el-dropdown-menu>
|
|
68
96
|
</el-dropdown>
|
|
69
97
|
|
|
70
|
-
<el-dropdown
|
|
98
|
+
<el-dropdown
|
|
99
|
+
class="avatar-container right-menu-item"
|
|
100
|
+
style="float: right"
|
|
101
|
+
trigger="hover"
|
|
102
|
+
>
|
|
71
103
|
<a :class="colorStyle" href="javascript:void(0)">
|
|
72
104
|
<div class="avatar-wrapper">
|
|
73
|
-
<
|
|
105
|
+
<el-icon class="headerIconFontColor"
|
|
106
|
+
><el-icon-caret-bottom
|
|
107
|
+
/></el-icon>
|
|
74
108
|
</div>
|
|
75
109
|
</a>
|
|
76
110
|
<el-dropdown-menu slot="dropdown">
|
|
77
111
|
<el-dropdown-item>
|
|
78
|
-
<span @click="changeLanguage('zh')" style="display:block
|
|
112
|
+
<span @click="changeLanguage('zh')" style="display: block"
|
|
113
|
+
>中文</span
|
|
114
|
+
>
|
|
79
115
|
<!--<span @click="chgLanguage" style="display:block;">{{nextLanguage}}</span>-->
|
|
80
116
|
</el-dropdown-item>
|
|
81
117
|
<el-dropdown-item>
|
|
82
|
-
<span @click="changeLanguage('en')" style="display:block
|
|
118
|
+
<span @click="changeLanguage('en')" style="display: block"
|
|
119
|
+
>English</span
|
|
120
|
+
>
|
|
83
121
|
</el-dropdown-item>
|
|
84
122
|
</el-dropdown-menu>
|
|
85
123
|
</el-dropdown>
|
|
86
124
|
|
|
87
|
-
<div
|
|
125
|
+
<div
|
|
126
|
+
class="avatar-container right-menu-item"
|
|
127
|
+
style="float: right"
|
|
128
|
+
trigger="click"
|
|
129
|
+
>
|
|
88
130
|
<a class="mike" href="javascript:void(0)">
|
|
89
|
-
<div @shortkey="vocHotKey" v-shortkey.push="['ctrl','`']">
|
|
90
|
-
</div>
|
|
131
|
+
<div @shortkey="vocHotKey" v-shortkey.push="['ctrl', '`']"></div>
|
|
91
132
|
</a>
|
|
92
133
|
</div>
|
|
93
134
|
|
|
94
|
-
<search
|
|
95
|
-
|
|
135
|
+
<search
|
|
136
|
+
class="avatar-container right-menu-item"
|
|
137
|
+
style="float: right"
|
|
138
|
+
></search>
|
|
96
139
|
|
|
97
140
|
<changepswform ref="changepswform"></changepswform>
|
|
98
141
|
</div>
|
|
@@ -100,172 +143,173 @@
|
|
|
100
143
|
</template>
|
|
101
144
|
|
|
102
145
|
<script>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
146
|
+
import { CaretBottom as ElIconCaretBottom } from '@element-plus/icons'
|
|
147
|
+
import { mapGetters } from 'vuex'
|
|
148
|
+
import search from './ElasticSearch'
|
|
149
|
+
import changepswform from './changepswform'
|
|
150
|
+
import VocRec from './VocRec'
|
|
108
151
|
|
|
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
|
-
|
|
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 '中文'
|
|
135
190
|
}
|
|
136
|
-
this.$i18n.locale = this.$store.state.user.language || 'zh';
|
|
137
|
-
this.placeholderChg()
|
|
138
191
|
},
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
'
|
|
142
|
-
|
|
143
|
-
'
|
|
144
|
-
'language'
|
|
145
|
-
]),
|
|
146
|
-
nextLanguage() {
|
|
147
|
-
if (this.$i18n.locale == 'zh') {
|
|
148
|
-
return 'English'
|
|
149
|
-
} else {
|
|
150
|
-
return '中文'
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
colorStyle() {
|
|
154
|
-
if (this.$i18n.locale == 'zh') {
|
|
155
|
-
return 'zhjack'
|
|
156
|
-
} else {
|
|
157
|
-
return 'enjack'
|
|
158
|
-
}
|
|
192
|
+
colorStyle() {
|
|
193
|
+
if (this.$i18n.locale == 'zh') {
|
|
194
|
+
return 'zhjack'
|
|
195
|
+
} else {
|
|
196
|
+
return 'enjack'
|
|
159
197
|
}
|
|
160
198
|
},
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
+
// },
|
|
173
212
|
|
|
174
|
-
|
|
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
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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) => {
|
|
231
274
|
const data = response.data
|
|
232
|
-
|
|
233
275
|
})
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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) => {
|
|
243
287
|
const data = response.datas
|
|
244
288
|
})
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
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
|
+
}
|
|
254
298
|
</script>
|
|
255
|
-
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
256
299
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
300
|
+
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
301
|
+
.right-menu-item {
|
|
302
|
+
display: inline-block;
|
|
303
|
+
margin: 0 8px;
|
|
304
|
+
}
|
|
261
305
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
306
|
+
.item {
|
|
307
|
+
position: absolute;
|
|
308
|
+
z-index: 2000;
|
|
309
|
+
margin-left: -10px;
|
|
310
|
+
}
|
|
267
311
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
312
|
+
.el-icon-caret-bottom:before {
|
|
313
|
+
content: '' !important;
|
|
314
|
+
}
|
|
271
315
|
</style>
|