qdt-admin-layout 1.1.34 → 1.1.36
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,21 @@ 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
|
+
</div>
|
|
73
|
+
);
|
|
74
|
+
},
|
|
75
|
+
|
|
61
76
|
// 右侧下拉菜单
|
|
62
77
|
defaultUserDropdown() {
|
|
63
78
|
const {
|
|
@@ -70,7 +85,6 @@ export default {
|
|
|
70
85
|
|
|
71
86
|
return (
|
|
72
87
|
<div class="user-dropdown-reference">
|
|
73
|
-
<slot name="before-time"></slot>
|
|
74
88
|
<span class="username time">{this.newTime}</span>
|
|
75
89
|
<span class="username shu">|</span>
|
|
76
90
|
<div id="downloadTrigger" class="download-trigger">
|
|
@@ -151,6 +165,11 @@ export default {
|
|
|
151
165
|
},
|
|
152
166
|
|
|
153
167
|
methods: {
|
|
168
|
+
handleLargeScreen() {
|
|
169
|
+
let { token } = this.$store.state.user;
|
|
170
|
+
|
|
171
|
+
window.open(`https://expectykxwebapi.ezhisoft.com:8088/?token=${token}`, "_blank");
|
|
172
|
+
},
|
|
154
173
|
showDownloadPopover() {
|
|
155
174
|
// 通过 ref 获取弹框实例并显示
|
|
156
175
|
this.$refs.downloadPopover.showPopper = true;
|
|
@@ -181,7 +200,9 @@ export default {
|
|
|
181
200
|
return centerSlot ? centerSlot(h, defaultContent) : defaultContent;
|
|
182
201
|
},
|
|
183
202
|
renderRightContent(h) {
|
|
184
|
-
const defaultContent = [
|
|
203
|
+
const defaultContent = [
|
|
204
|
+
this.defaultLargeScreenBtn
|
|
205
|
+
, this.defaultUserDropdown];
|
|
185
206
|
const { rightSlot } = headerGetters;
|
|
186
207
|
|
|
187
208
|
return rightSlot ? rightSlot(h, defaultContent) : defaultContent;
|