fix:解决冲突
This commit is contained in:
@@ -153,10 +153,19 @@
|
|||||||
background-color: $--background-color-empty;
|
background-color: $--background-color-empty;
|
||||||
padding: 0 70px 0 15px;
|
padding: 0 70px 0 15px;
|
||||||
height: 44px;
|
height: 44px;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.top-tools--sub {
|
.top-tools--sub {
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
overflow: hidden;
|
||||||
.top-tool-left {
|
.top-tool-left {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: 0; // 避免计算错误
|
||||||
|
flex: 1;
|
||||||
|
display: block;
|
||||||
|
text-align: left;
|
||||||
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
.sub-list-title {
|
.sub-list-title {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
@@ -166,12 +175,18 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
.sub-list-tabs {
|
.sub-list-tabs {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
flex: 1;
|
||||||
|
width: calc(100% - 220px);
|
||||||
|
min-width: 120px;
|
||||||
|
margin: 0 10px 0 0;
|
||||||
|
display: inline-block;
|
||||||
|
overflow: hidden;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.sub-list-tab {
|
.sub-list-tab {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 120px;
|
width: 120px;
|
||||||
@@ -186,7 +201,28 @@
|
|||||||
color: $--color-primary;
|
color: $--color-primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.sub-list-tabs-nz-tabs {
|
||||||
|
.el-tabs__header{
|
||||||
|
margin: 0;
|
||||||
|
transform: translateY(3px);
|
||||||
|
.el-tabs__item {
|
||||||
|
height: 100%;
|
||||||
|
width: 120px;
|
||||||
|
font-size: 14px;
|
||||||
|
text-align: center;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
line-height: 40px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.el-tabs__nav-wrap::after{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.el-tabs__active-bar {
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* 上滑resize工具条 */
|
/* 上滑resize工具条 */
|
||||||
|
|||||||
@@ -247,6 +247,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selectDashboard{
|
||||||
|
.selectDashboard-select{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
i.el-icon-arrow-down{
|
||||||
|
font-size: 16px;
|
||||||
|
margin-left: 5px;
|
||||||
|
color: $--color-text-regular;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.right-box-playlist{
|
.right-box-playlist{
|
||||||
.el-input-group__append{
|
.el-input-group__append{
|
||||||
background-color: $--right-box-sub-title-background-color;
|
background-color: $--right-box-sub-title-background-color;
|
||||||
|
|||||||
@@ -151,7 +151,7 @@
|
|||||||
}
|
}
|
||||||
.show-panel-name{
|
.show-panel-name{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0 5px;
|
padding: 0 8px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
max-width: 310px;
|
max-width: 310px;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ $--font-path: '~element-ui/lib/theme-chalk/fonts'; // 避免ele原字体加载
|
|||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-width: 1400px;
|
min-width: 1024px;
|
||||||
margin:0 !important;
|
margin:0 !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ export const chartTimeSeriesLineOption = {
|
|||||||
showTitle: true,
|
showTitle: true,
|
||||||
feature: {
|
feature: {
|
||||||
dataZoom: {
|
dataZoom: {
|
||||||
|
show: false,
|
||||||
yAxisIndex: false,
|
yAxisIndex: false,
|
||||||
title: {
|
title: {
|
||||||
zoom: i18n.t('overall.toolBox.zoom'),
|
zoom: i18n.t('overall.toolBox.zoom'),
|
||||||
@@ -24,7 +25,7 @@ export const chartTimeSeriesLineOption = {
|
|||||||
},
|
},
|
||||||
// stack使用自定义按钮
|
// stack使用自定义按钮
|
||||||
myStack: {
|
myStack: {
|
||||||
show: true,
|
show: false,
|
||||||
title: i18n.t('overall.toolBox.stack'),
|
title: i18n.t('overall.toolBox.stack'),
|
||||||
icon: stackIconSvg,
|
icon: stackIconSvg,
|
||||||
iconStyle: {}
|
iconStyle: {}
|
||||||
@@ -51,7 +52,7 @@ export const chartTimeSeriesLineOption = {
|
|||||||
grid: {
|
grid: {
|
||||||
left: 20,
|
left: 20,
|
||||||
right: 35,
|
right: 35,
|
||||||
top: 42,
|
top: 20,
|
||||||
bottom: 15,
|
bottom: 15,
|
||||||
containLabel: true
|
containLabel: true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -114,6 +114,10 @@ export default {
|
|||||||
s.yAxisIndex = 1
|
s.yAxisIndex = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.dataLink.length) {
|
||||||
|
s.cursor = 'default'
|
||||||
|
}
|
||||||
|
|
||||||
if (s.param && s.param.nullType) {
|
if (s.param && s.param.nullType) {
|
||||||
s.connectNulls = s.param.nullType !== 'null'
|
s.connectNulls = s.param.nullType !== 'null'
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="bottom-data-list">
|
<div class="bottom-data-list">
|
||||||
<div class="top-tools top-tools--sub">
|
<div class="top-tools top-tools--sub">
|
||||||
<div class="top-tool-left">
|
<div v-if="customTool" class="top-tool-right">
|
||||||
<div class="sub-list-title" v-if="showTitle">{{bottomHeaderTitle}}:<slot name="title"></slot></div>
|
<slot name="top-tool-right"></slot>
|
||||||
<div class="sub-list-tabs" v-if="!hideHeader">
|
|
||||||
<div v-for="tab in tabs" :key="tab.prop" :class="{'sub-list-tab--active': tab.active || tab.prop == targetTab }" :title='tab.name' class="sub-list-tab" @click="changeTab(tab.prop)">{{tab.name}}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="top-tool-right" v-if="!customTool">
|
<div class="top-tool-right" v-if="!customTool">
|
||||||
<div v-if="layout.indexOf('searchInput') > -1" class="top-tool-search margin-r-20">
|
<div v-if="layout.indexOf('searchInput') > -1" class="top-tool-search margin-r-20">
|
||||||
@@ -18,8 +15,14 @@
|
|||||||
<i class="nz-icon-gear nz-icon"></i>
|
<i class="nz-icon-gear nz-icon"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="top-tool-right">
|
<div class="top-tool-left">
|
||||||
<slot name="top-tool-right"></slot>
|
<div class="sub-list-title" v-if="showTitle">{{bottomHeaderTitle}}:<slot name="title"></slot></div>
|
||||||
|
<div class="sub-list-tabs">
|
||||||
|
<!-- <div v-for="tab in tabs" :key="tab.prop" :class="{'sub-list-tab--active': tab.active || tab.prop == targetTab }" :title='tab.name' class="sub-list-tab" @click="changeTab(tab.prop)">{{tab.name}}</div>-->
|
||||||
|
<el-tabs v-model="activeTargetTab" @tab-click="changeTab" class="sub-list-tabs-nz-tabs">
|
||||||
|
<el-tab-pane v-for="tab in tabs" :label="tab.name" :name="tab.prop" :key="tab.prop" class="sub-list-tab"></el-tab-pane>
|
||||||
|
</el-tabs>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 自定义table列 -->
|
<!-- 自定义table列 -->
|
||||||
@@ -135,7 +138,8 @@ export default {
|
|||||||
toTopBtnTop: this.$tableHeight.toTopBtnTop, // to-top按钮的top属性
|
toTopBtnTop: this.$tableHeight.toTopBtnTop, // to-top按钮的top属性
|
||||||
tableHover: false, // 控制滚动条和top按钮同时出现
|
tableHover: false, // 控制滚动条和top按钮同时出现
|
||||||
showCustomTableTitle: false // 自定义列弹框是否显示
|
showCustomTableTitle: false // 自定义列弹框是否显示
|
||||||
}
|
},
|
||||||
|
activeTargetTab: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -145,11 +149,16 @@ export default {
|
|||||||
this.searchInputShow = true
|
this.searchInputShow = true
|
||||||
}, 100)
|
}, 100)
|
||||||
},
|
},
|
||||||
targetTab (n) {
|
targetTab: {
|
||||||
this.searchInputShow = false
|
immediate: true,
|
||||||
setTimeout(() => {
|
handler (n) {
|
||||||
this.searchInputShow = true
|
this.searchInputShow = false
|
||||||
}, 100)
|
this.activeTargetTab = n
|
||||||
|
console.log(n)
|
||||||
|
setTimeout(() => {
|
||||||
|
this.searchInputShow = true
|
||||||
|
}, 100)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
showDeleteTableRel (n) {
|
showDeleteTableRel (n) {
|
||||||
if (!n) {
|
if (!n) {
|
||||||
@@ -165,8 +174,9 @@ export default {
|
|||||||
this.$emit('search', searchObj)
|
this.$emit('search', searchObj)
|
||||||
},
|
},
|
||||||
// 切换tab
|
// 切换tab
|
||||||
changeTab (tab) {
|
changeTab (tab, event) {
|
||||||
this.$emit('changeTab', tab)
|
console.log(tab, event)
|
||||||
|
this.$emit('changeTab', tab.name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,17 +19,20 @@
|
|||||||
:panel-lock="panelLock"
|
:panel-lock="panelLock"
|
||||||
:placement="'bottom-start'"
|
:placement="'bottom-start'"
|
||||||
:show-panel="showPanel"
|
:show-panel="showPanel"
|
||||||
style="display: inline-block;padding: 0"
|
class="selectDashboard"
|
||||||
@deletePanel="del"
|
@deletePanel="del"
|
||||||
@editPanel="edit"
|
@editPanel="edit"
|
||||||
@selectDashboard="panelChange"
|
@selectDashboard="panelChange"
|
||||||
@startPlay="startPlay"
|
@startPlay="startPlay"
|
||||||
>
|
>
|
||||||
<template v-slot:trigger>
|
<template v-slot:trigger>
|
||||||
<i style="color: #BEBEBE" class="el-icon-menu"></i>
|
<div class="selectDashboard-select">
|
||||||
<span :title="showPanel.name + ' (' + (showPanel.chartNum || 0) +' charts)' " class="show-panel-name">{{showPanel.name||$t('overall.notFound')}}</span>
|
<i style="color: #BEBEBE" class="el-icon-menu"></i>
|
||||||
<i @click.stop="delStarred(showPanel)" v-if="showPanel.starred===1" class="nz-icon nz-icon-a-xingzhuang2" :title ="$t('overall.starred')"></i>
|
<span :title="showPanel.name + ' (' + (showPanel.chartNum || 0) +' charts)' " class="show-panel-name">{{showPanel.name||$t('overall.notFound')}}</span>
|
||||||
<i @click.stop="addStarred(showPanel)" v-else class="nz-icon nz-icon-xingzhuang" :title ="$t('overall.unstarred')"></i>
|
<i @click.stop="delStarred(showPanel)" v-if="showPanel.starred===1" class="nz-icon nz-icon-a-xingzhuang2" :title ="$t('overall.starred')"></i>
|
||||||
|
<i @click.stop="addStarred(showPanel)" v-else class="nz-icon nz-icon-xingzhuang" :title ="$t('overall.unstarred')"></i>
|
||||||
|
<i class="el-icon-arrow-down"></i>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<!-- 按钮插槽 -->
|
<!-- 按钮插槽 -->
|
||||||
<template slot="button">
|
<template slot="button">
|
||||||
|
|||||||
Reference in New Issue
Block a user