qdt-admin-layout 1.1.33 → 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 {
|
|
@@ -150,6 +166,11 @@ export default {
|
|
|
150
166
|
},
|
|
151
167
|
|
|
152
168
|
methods: {
|
|
169
|
+
handleLargeScreen() {
|
|
170
|
+
let { token } = this.$store.state.user;
|
|
171
|
+
|
|
172
|
+
window.open(`https://expectykxwebapi.ezhisoft.com:8088/?token=${token}`, "_blank");
|
|
173
|
+
},
|
|
153
174
|
showDownloadPopover() {
|
|
154
175
|
// 通过 ref 获取弹框实例并显示
|
|
155
176
|
this.$refs.downloadPopover.showPopper = true;
|
|
@@ -180,7 +201,9 @@ export default {
|
|
|
180
201
|
return centerSlot ? centerSlot(h, defaultContent) : defaultContent;
|
|
181
202
|
},
|
|
182
203
|
renderRightContent(h) {
|
|
183
|
-
const defaultContent = [
|
|
204
|
+
const defaultContent = [
|
|
205
|
+
// this.defaultRefreshBtn
|
|
206
|
+
, this.defaultUserDropdown];
|
|
184
207
|
const { rightSlot } = headerGetters;
|
|
185
208
|
|
|
186
209
|
return rightSlot ? rightSlot(h, defaultContent) : defaultContent;
|
|
@@ -199,4 +222,4 @@ export default {
|
|
|
199
222
|
);
|
|
200
223
|
},
|
|
201
224
|
};
|
|
202
|
-
</script>
|
|
225
|
+
</script>
|