|
|
|
@ -94,18 +94,49 @@
|
|
|
|
|
content="导入"
|
|
|
|
|
placement="bottom"
|
|
|
|
|
>
|
|
|
|
|
<i class="iconfont iconyulan" @click="importDashboard"></i>
|
|
|
|
|
|
|
|
|
|
<el-upload class="el-upload"
|
|
|
|
|
ref="upload"
|
|
|
|
|
:action="uploadUrl"
|
|
|
|
|
:headers="headers"
|
|
|
|
|
accept=".zip"
|
|
|
|
|
:on-success="handleUpload"
|
|
|
|
|
:on-error="handleError"
|
|
|
|
|
:show-file-list="false"
|
|
|
|
|
:limit="1">
|
|
|
|
|
<i class="iconfont iconxiazai"></i>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="btn">
|
|
|
|
|
<span class="btn border-left">
|
|
|
|
|
<ul class="nav">
|
|
|
|
|
<li>
|
|
|
|
|
<i class="iconfont iconfenxiang_2"></i><i class="el-icon-arrow-down"></i>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<el-tooltip
|
|
|
|
|
class="item"
|
|
|
|
|
effect="dark"
|
|
|
|
|
content="导出"
|
|
|
|
|
placement="bottom"
|
|
|
|
|
content="适合当前系统"
|
|
|
|
|
placement="right"
|
|
|
|
|
>
|
|
|
|
|
<div @click="exportDashboard(1)">导出(包含数据集)</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<el-tooltip
|
|
|
|
|
class="item"
|
|
|
|
|
effect="dark"
|
|
|
|
|
content="适合跨系统"
|
|
|
|
|
placement="right"
|
|
|
|
|
>
|
|
|
|
|
<i class="iconfont iconyulan" @click="exportDashboard"></i>
|
|
|
|
|
<div @click="exportDashboard(0)">导出(不包含数据集)</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</span>
|
|
|
|
|
<!-- <span class="btn border-left">
|
|
|
|
|
<ul class="nav">
|
|
|
|
@ -253,6 +284,8 @@ import dynamicForm from "./form/dynamicForm.vue";
|
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
|
import VueRulerTool from "vue-ruler-tool"; // 大屏设计页面的标尺插件
|
|
|
|
|
import contentMenu from "./form/contentMenu";
|
|
|
|
|
import {getToken} from "@/utils/auth";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Login",
|
|
|
|
|
components: {
|
|
|
|
@ -264,6 +297,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
uploadUrl: process.env.BASE_API + '/reportDashboard/import/' + this.$route.query.reportCode,
|
|
|
|
|
grade: false,
|
|
|
|
|
layerWidget: [],
|
|
|
|
|
widgetTools: widgetTools, // 左侧工具栏的组件图标,将js变量加入到当前作用域
|
|
|
|
@ -330,6 +364,11 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
headers() {
|
|
|
|
|
return {
|
|
|
|
|
Authorization: getToken(), // 直接从本地获取token就行
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 左侧折叠切换时,动态计算中间区的宽度
|
|
|
|
|
middleWidth() {
|
|
|
|
|
var widthLeftAndRight = 0;
|
|
|
|
@ -516,9 +555,14 @@ export default {
|
|
|
|
|
window.open(routeUrl.href, "_blank");
|
|
|
|
|
},
|
|
|
|
|
// 导出
|
|
|
|
|
async exportDashboard() {
|
|
|
|
|
async exportDashboard(val) {
|
|
|
|
|
const fileName = this.$route.query.reportCode + ".zip"
|
|
|
|
|
exportDashboard(this.$route.query.reportCode).then(res=>{
|
|
|
|
|
|
|
|
|
|
const param = {
|
|
|
|
|
reportCode:this.$route.query.reportCode,
|
|
|
|
|
showDataSet:val
|
|
|
|
|
}
|
|
|
|
|
exportDashboard(param).then(res => {
|
|
|
|
|
const blob = new Blob([res], {type: "application/octet-stream"});
|
|
|
|
|
if (window.navigator.msSaveOrOpenBlob) {//msSaveOrOpenBlob方法返回bool值
|
|
|
|
|
navigator.msSaveBlob(blob, fileName);//本地保存
|
|
|
|
@ -532,11 +576,24 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 导入
|
|
|
|
|
importDashboard() {
|
|
|
|
|
alert("导入,开发中")
|
|
|
|
|
// 上传成功的回调
|
|
|
|
|
handleUpload(response, file, fileList) {
|
|
|
|
|
//清除el-upload组件中的文件
|
|
|
|
|
this.$refs.upload.clearFiles();
|
|
|
|
|
//刷新大屏页面
|
|
|
|
|
this.initEchartData();
|
|
|
|
|
this.$message({
|
|
|
|
|
message: '导入成功!',
|
|
|
|
|
type: 'success',
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleError() {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: '上传失败!',
|
|
|
|
|
type: 'error',
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 在缩放模式下的大小
|
|
|
|
|
getPXUnderScale(px) {
|
|
|
|
|
return this.bigscreenScaleInWorkbench * px;
|
|
|
|
@ -792,22 +849,28 @@ export default {
|
|
|
|
|
.mr10 {
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ml20 {
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.border-right {
|
|
|
|
|
border-right: 1px solid #273b4d;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.border-left {
|
|
|
|
|
border-left: 1px solid #273b4d;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-icon-arrow-down {
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.is-active {
|
|
|
|
|
background: #31455d !important;
|
|
|
|
|
color: #bfcbd9 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layout {
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
display: -ms-flexbox;
|
|
|
|
@ -817,6 +880,7 @@ export default {
|
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
.layout-left {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
height: 100%;
|
|
|
|
@ -849,6 +913,7 @@ export default {
|
|
|
|
|
border: 1px solid #3a4659;
|
|
|
|
|
background: #282a30;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tools-item-text {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -865,6 +930,7 @@ export default {
|
|
|
|
|
background-color: #242a30;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding-top: 26%;
|
|
|
|
|
|
|
|
|
|
i {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
width: 18px;
|
|
|
|
@ -886,18 +952,21 @@ export default {
|
|
|
|
|
align-items: center;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
.top-button {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
height: 40px;
|
|
|
|
|
line-height: 40px;
|
|
|
|
|
margin-left: 9px;
|
|
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
|
color: #788994;
|
|
|
|
|
width: 55px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
display: block;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
.el-icon-arrow-down {
|
|
|
|
|
transform: rotate(0deg);
|
|
|
|
|
-ms-transform: rotate(0deg); /* IE 9 */
|
|
|
|
@ -906,8 +975,10 @@ export default {
|
|
|
|
|
-o-transform: rotate(0deg); /* Opera */
|
|
|
|
|
transition: all 0.4s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: rgb(25, 29, 34);
|
|
|
|
|
|
|
|
|
|
.el-icon-arrow-down {
|
|
|
|
|
transform: rotate(180deg);
|
|
|
|
|
-ms-transform: rotate(180deg); /* IE 9 */
|
|
|
|
@ -919,6 +990,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.workbench-container {
|
|
|
|
|
position: relative;
|
|
|
|
|
-webkit-transform-origin: 0 0;
|
|
|
|
@ -927,10 +999,12 @@ export default {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
.vueRuler {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 18px 0px 0px 18px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.workbench {
|
|
|
|
|
background-color: #1e1e1e;
|
|
|
|
|
position: relative;
|
|
|
|
@ -943,6 +1017,7 @@ export default {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bg-grid {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
@ -958,6 +1033,7 @@ export default {
|
|
|
|
|
// z-index: 2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bottom-text {
|
|
|
|
|
width: 100%;
|
|
|
|
|
color: #a0a0a0;
|
|
|
|
@ -974,34 +1050,41 @@ export default {
|
|
|
|
|
|
|
|
|
|
/deep/ .el-tabs--border-card {
|
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
|
|
.el-tabs__header {
|
|
|
|
|
.el-tabs__nav {
|
|
|
|
|
.el-tabs__item {
|
|
|
|
|
background-color: #242f3b;
|
|
|
|
|
border: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-tabs__item.is-active {
|
|
|
|
|
background-color: #31455d;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-tabs__content {
|
|
|
|
|
background-color: #242a30;
|
|
|
|
|
height: calc(100vh - 39px);
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
|
|
.el-tab-pane {
|
|
|
|
|
color: #bfcbd9;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
width: 5px;
|
|
|
|
|
height: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track,
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
|
border-radius: 1px;
|
|
|
|
|
border: 0 solid transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track-piece {
|
|
|
|
|
/*修改滚动条的背景和圆角*/
|
|
|
|
|
background: #29405c;
|
|
|
|
@ -1011,14 +1094,17 @@ export default {
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
|
box-shadow: 1px 1px 5px rgba(116, 148, 170, 0.5) inset;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
|
min-height: 20px;
|
|
|
|
|
background-clip: content-box;
|
|
|
|
|
box-shadow: 0 0 0 5px rgba(116, 148, 170, 0.5) inset;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-corner {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*修改垂直滚动条的样式*/
|
|
|
|
|
&::-webkit-scrollbar-thumb:vertical {
|
|
|
|
|
background-color: #00113a;
|
|
|
|
@ -1033,34 +1119,41 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ul,
|
|
|
|
|
li {
|
|
|
|
|
list-style: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
|
width: 40px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
list-style: none;
|
|
|
|
|
/* overflow: hidden; */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
|
zoom: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav:before,
|
|
|
|
|
.nav:after {
|
|
|
|
|
content: "";
|
|
|
|
|
display: table;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav:after {
|
|
|
|
|
clear: both;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav li {
|
|
|
|
|
width: 55px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav li a {
|
|
|
|
|
float: left;
|
|
|
|
|
padding: 12px 30px;
|
|
|
|
@ -1068,9 +1161,11 @@ li {
|
|
|
|
|
font: bold 12px;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav li:hover {
|
|
|
|
|
color: #788994;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav li ul {
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
position: absolute;
|
|
|
|
@ -1085,14 +1180,17 @@ li {
|
|
|
|
|
width: 120px;
|
|
|
|
|
transition: all 0.2s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav li:hover > ul {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
visibility: visible;
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
|
|
li:hover {
|
|
|
|
|
background-color: rgb(25, 29, 34);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav ul li {
|
|
|
|
|
float: left;
|
|
|
|
|
display: block;
|
|
|
|
@ -1100,6 +1198,7 @@ li {
|
|
|
|
|
width: 100%;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav ul a {
|
|
|
|
|
padding: 10px;
|
|
|
|
|
width: 100%;
|
|
|
|
@ -1110,12 +1209,15 @@ li {
|
|
|
|
|
background-color: rgb(25, 29, 34);
|
|
|
|
|
transition: all 0.2s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav ul a:hover {
|
|
|
|
|
border: 1px solid #3c5e88;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav ul li:first-child > a:hover:before {
|
|
|
|
|
border-bottom-color: #04acec;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav ul ul {
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 120px;
|
|
|
|
@ -1125,6 +1227,7 @@ li {
|
|
|
|
|
padding: 10px;
|
|
|
|
|
_margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav ul ul li {
|
|
|
|
|
width: 120px;
|
|
|
|
|
height: 120px;
|
|
|
|
@ -1132,9 +1235,11 @@ li {
|
|
|
|
|
display: block;
|
|
|
|
|
float: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .vue-ruler-h {
|
|
|
|
|
opacity: 0.3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .vue-ruler-v {
|
|
|
|
|
opacity: 0.3;
|
|
|
|
|
}
|
|
|
|
|