qdt-admin-layout 1.1.34 → 1.1.35
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
CHANGED
|
@@ -58,6 +58,22 @@ export default {
|
|
|
58
58
|
</div>
|
|
59
59
|
);
|
|
60
60
|
},
|
|
61
|
+
// 右侧刷新按钮
|
|
62
|
+
defaultLargeScreenBtn() {
|
|
63
|
+
// 这里为了可读性,不再将click事件放到外面
|
|
64
|
+
return (
|
|
65
|
+
<div
|
|
66
|
+
title="大屏可视化"
|
|
67
|
+
class="header-item"
|
|
68
|
+
on-click={() => handleLargeScreen()}
|
|
69
|
+
>
|
|
70
|
+
大屏可视化
|
|
71
|
+
|
|
72
|
+
{/* <i class="el-icon-refresh-right header-icon" /> */}
|
|
73
|
+
</div>
|
|
74
|
+
);
|
|
75
|
+
},
|
|
76
|
+
|
|
61
77
|
// 右侧下拉菜单
|
|
62
78
|
defaultUserDropdown() {
|
|
63
79
|
const {
|
|
@@ -70,7 +86,6 @@ export default {
|
|
|
70
86
|
|
|
71
87
|
return (
|
|
72
88
|
<div class="user-dropdown-reference">
|
|
73
|
-
<slot name="before-time"></slot>
|
|
74
89
|
<span class="username time">{this.newTime}</span>
|
|
75
90
|
<span class="username shu">|</span>
|
|
76
91
|
<div id="downloadTrigger" class="download-trigger">
|
|
@@ -151,6 +166,11 @@ export default {
|
|
|
151
166
|
},
|
|
152
167
|
|
|
153
168
|
methods: {
|
|
169
|
+
handleLargeScreen() {
|
|
170
|
+
let { token } = this.$store.state.user;
|
|
171
|
+
|
|
172
|
+
window.open(`https://expectykxwebapi.ezhisoft.com:8088/?token=${token}`, "_blank");
|
|
173
|
+
},
|
|
154
174
|
showDownloadPopover() {
|
|
155
175
|
// 通过 ref 获取弹框实例并显示
|
|
156
176
|
this.$refs.downloadPopover.showPopper = true;
|
|
@@ -181,7 +201,9 @@ export default {
|
|
|
181
201
|
return centerSlot ? centerSlot(h, defaultContent) : defaultContent;
|
|
182
202
|
},
|
|
183
203
|
renderRightContent(h) {
|
|
184
|
-
const defaultContent = [
|
|
204
|
+
const defaultContent = [
|
|
205
|
+
// this.defaultRefreshBtn
|
|
206
|
+
, this.defaultUserDropdown];
|
|
185
207
|
const { rightSlot } = headerGetters;
|
|
186
208
|
|
|
187
209
|
return rightSlot ? rightSlot(h, defaultContent) : defaultContent;
|