提交 59fa7e0c authored 作者: wangjiahao's avatar wangjiahao

Merge remote-tracking branch 'origin/main' into main

...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<!-- />--> <!-- />-->
<svg-icon icon-class="scene" class="ds-icon-scene" /> <svg-icon icon-class="scene" class="ds-icon-scene" />
</span> </span>
<span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{{ data.name }}</span> <span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" :title="data.name">{{ data.name }}</span>
</span> </span>
<span v-if="hasDataPermission('manage',data.privileges)"> <span v-if="hasDataPermission('manage',data.privileges)">
<span v-if="data.type ==='group'" @click.stop> <span v-if="data.type ==='group'" @click.stop>
...@@ -114,8 +114,8 @@ ...@@ -114,8 +114,8 @@
<!--scene--> <!--scene-->
<el-col v-if="sceneMode"> <el-col v-if="sceneMode">
<el-row class="title-css"> <el-row class="title-css scene-title">
<span class="title-text"> <span class="title-text scene-title-name" :title="currGroup.name">
{{ currGroup.name }} {{ currGroup.name }}
</span> </span>
<el-button icon="el-icon-back" size="mini" style="float: right" circle @click="back"> <el-button icon="el-icon-back" size="mini" style="float: right" circle @click="back">
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
<span slot-scope="{ node, data }" class="custom-tree-node-list"> <span slot-scope="{ node, data }" class="custom-tree-node-list">
<span style="display: flex;flex: 1;width: 0;"> <span style="display: flex;flex: 1;width: 0;">
<span><svg-icon :icon-class="data.type" /></span> <span><svg-icon :icon-class="data.type" /></span>
<span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{{ data.name }}</span> <span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" :title="data.name">{{ data.name }}</span>
</span> </span>
<span v-if="hasDataPermission('manage',data.privileges)"> <span v-if="hasDataPermission('manage',data.privileges)">
<span style="margin-left: 12px;" @click.stop> <span style="margin-left: 12px;" @click.stop>
...@@ -680,4 +680,16 @@ export default { ...@@ -680,4 +680,16 @@ export default {
.form-item>>>.el-form-item__label{ .form-item>>>.el-form-item__label{
font-size: 12px; font-size: 12px;
} }
.scene-title{
width: 100%;
display: flex;
}
.scene-title-name{
width: 100%;
overflow: hidden;
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
}
</style> </style>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
@start="start1" @start="start1"
> >
<transition-group> <transition-group>
<span v-for="item in dimension" :key="item.id" class="item"> <span v-for="item in dimension" :key="item.id" class="item" :title="item.name">
<svg-icon v-if="item.deType === 0" icon-class="field_text" class="field-icon-text" /> <svg-icon v-if="item.deType === 0" icon-class="field_text" class="field-icon-text" />
<svg-icon v-if="item.deType === 1" icon-class="field_time" class="field-icon-time" /> <svg-icon v-if="item.deType === 1" icon-class="field_time" class="field-icon-time" />
<svg-icon v-if="item.deType === 2 || item.deType === 3" icon-class="field_value" class="field-icon-value" /> <svg-icon v-if="item.deType === 2 || item.deType === 3" icon-class="field_value" class="field-icon-value" />
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
@start="start1" @start="start1"
> >
<transition-group> <transition-group>
<span v-for="item in quota" :key="item.id" class="item"> <span v-for="item in quota" :key="item.id" class="item" :title="item.name">
<svg-icon v-if="item.deType === 0" icon-class="field_text" class="field-icon-text" /> <svg-icon v-if="item.deType === 0" icon-class="field_text" class="field-icon-text" />
<svg-icon v-if="item.deType === 1" icon-class="field_time" class="field-icon-time" /> <svg-icon v-if="item.deType === 1" icon-class="field_time" class="field-icon-time" />
<svg-icon v-if="item.deType === 2 || item.deType === 3" icon-class="field_value" class="field-icon-value" /> <svg-icon v-if="item.deType === 2 || item.deType === 3" icon-class="field_value" class="field-icon-value" />
...@@ -101,49 +101,75 @@ ...@@ -101,49 +101,75 @@
@change="save(true,'chart')" @change="save(true,'chart')"
> >
<div style="width: 100%;display: flex;display: -webkit-flex;justify-content: space-between;flex-direction: row;flex-wrap: wrap;"> <div style="width: 100%;display: flex;display: -webkit-flex;justify-content: space-between;flex-direction: row;flex-wrap: wrap;">
<el-tooltip effect="dark" :content="$t('chart.chart_table_normal')" placement="bottom"> <el-radio value="table-normal" label="table-normal">
<el-radio value="table-normal" label="table-normal"><svg-icon icon-class="table-normal" class="chart-icon" /></el-radio> <span :title="$t('chart.chart_table_normal')">
</el-tooltip> <svg-icon icon-class="table-normal" class="chart-icon" />
<el-tooltip effect="dark" :content="$t('chart.chart_card')" placement="bottom"> </span>
<el-radio value="text" label="text"><svg-icon icon-class="text" class="chart-icon" /></el-radio> </el-radio>
</el-tooltip> <el-radio value="text" label="text">
<el-tooltip effect="dark" :content="$t('chart.chart_bar')" placement="bottom"> <span :title="$t('chart.chart_card')">
<el-radio value="bar" label="bar"><svg-icon icon-class="bar" class="chart-icon" /></el-radio> <svg-icon icon-class="text" class="chart-icon" />
</el-tooltip> </span>
<el-tooltip effect="dark" :content="$t('chart.chart_bar_stack')" placement="bottom"> </el-radio>
<el-radio value="bar-stack" label="bar-stack"><svg-icon icon-class="bar-stack" class="chart-icon" /></el-radio> <el-radio value="bar" label="bar">
</el-tooltip> <span :title="$t('chart.chart_bar')">
<el-tooltip effect="dark" :content="$t('chart.chart_bar_horizontal')" placement="bottom"> <svg-icon icon-class="bar" class="chart-icon" />
<el-radio value="bar-horizontal" label="bar-horizontal"><svg-icon icon-class="bar-horizontal" class="chart-icon" /></el-radio> </span>
</el-tooltip> </el-radio>
<el-radio value="bar-stack" label="bar-stack">
<span :title="$t('chart.chart_bar_stack')">
<svg-icon icon-class="bar-stack" class="chart-icon" />
</span>
</el-radio>
<el-radio value="bar-horizontal" label="bar-horizontal">
<span :title="$t('chart.chart_bar_horizontal')">
<svg-icon icon-class="bar-horizontal" class="chart-icon" />
</span>
</el-radio>
</div> </div>
<div style="width: 100%;display: flex;display: -webkit-flex;justify-content: space-between;flex-direction: row;flex-wrap: wrap;"> <div style="width: 100%;display: flex;display: -webkit-flex;justify-content: space-between;flex-direction: row;flex-wrap: wrap;">
<el-tooltip effect="dark" :content="$t('chart.chart_bar_stack_horizontal')" placement="bottom"> <el-radio value="bar-stack-horizontal" label="bar-stack-horizontal">
<el-radio value="bar-stack-horizontal" label="bar-stack-horizontal"><svg-icon icon-class="bar-stack-horizontal" class="chart-icon" /></el-radio> <span :title="$t('chart.chart_bar_stack_horizontal')">
</el-tooltip> <svg-icon icon-class="bar-stack-horizontal" class="chart-icon" />
<el-tooltip effect="dark" :content="$t('chart.chart_line')" placement="bottom"> </span>
<el-radio value="line" label="line"><svg-icon icon-class="line" class="chart-icon" /></el-radio> </el-radio>
</el-tooltip> <el-radio value="line" label="line">
<el-tooltip effect="dark" :content="$t('chart.chart_line_stack')" placement="bottom"> <span :title="$t('chart.chart_line')">
<el-radio value="line-stack" label="line-stack"><svg-icon icon-class="line-stack" class="chart-icon" /></el-radio> <svg-icon icon-class="line" class="chart-icon" />
</el-tooltip> </span>
<el-tooltip effect="dark" :content="$t('chart.chart_pie')" placement="bottom"> </el-radio>
<el-radio value="pie" label="pie"><svg-icon icon-class="pie" class="chart-icon" /></el-radio> <el-radio value="line-stack" label="line-stack">
</el-tooltip> <span :title="$t('chart.chart_line_stack')">
<el-tooltip effect="dark" :content="$t('chart.chart_pie_rose')" placement="bottom"> <svg-icon icon-class="line-stack" class="chart-icon" />
<el-radio value="pie-rose" label="pie-rose"><svg-icon icon-class="pie-rose" class="chart-icon" /></el-radio> </span>
</el-tooltip> </el-radio>
<el-radio value="pie" label="pie">
<span :title="$t('chart.chart_pie')">
<svg-icon icon-class="pie" class="chart-icon" />
</span>
</el-radio>
<el-radio value="pie-rose" label="pie-rose">
<span :title="$t('chart.chart_pie_rose')">
<svg-icon icon-class="pie-rose" class="chart-icon" />
</span>
</el-radio>
</div> </div>
<div style="width: 100%;display: flex;display: -webkit-flex;justify-content: space-between;flex-direction: row;flex-wrap: wrap;"> <div style="width: 100%;display: flex;display: -webkit-flex;justify-content: space-between;flex-direction: row;flex-wrap: wrap;">
<el-tooltip effect="dark" :content="$t('chart.chart_funnel')" placement="bottom"> <el-radio value="funnel" label="funnel">
<el-radio value="funnel" label="funnel"><svg-icon icon-class="funnel" class="chart-icon" /></el-radio> <span :title="$t('chart.chart_funnel')">
</el-tooltip> <svg-icon icon-class="funnel" class="chart-icon" />
<el-tooltip effect="dark" :content="$t('chart.chart_radar')" placement="bottom"> </span>
<el-radio value="radar" label="radar"><svg-icon icon-class="radar" class="chart-icon" /></el-radio> </el-radio>
</el-tooltip> <el-radio value="radar" label="radar">
<el-tooltip effect="dark" :content="$t('chart.chart_gauge')" placement="bottom"> <span :title="$t('chart.chart_radar')">
<el-radio value="gauge" label="gauge"><svg-icon icon-class="gauge" class="chart-icon" /></el-radio> <svg-icon icon-class="radar" class="chart-icon" />
</el-tooltip> </span>
</el-radio>
<el-radio value="gauge" label="gauge">
<span :title="$t('chart.chart_gauge')">
<svg-icon icon-class="gauge" class="chart-icon" />
</span>
</el-radio>
<el-radio value="" label="" disabled class="disabled-none-cursor"><svg-icon icon-class="" class="chart-icon" /></el-radio> <el-radio value="" label="" disabled class="disabled-none-cursor"><svg-icon icon-class="" class="chart-icon" /></el-radio>
<el-radio value="" label="" disabled class="disabled-none-cursor"><svg-icon icon-class="" class="chart-icon" /></el-radio> <el-radio value="" label="" disabled class="disabled-none-cursor"><svg-icon icon-class="" class="chart-icon" /></el-radio>
</div> </div>
...@@ -236,8 +262,8 @@ ...@@ -236,8 +262,8 @@
<chart-component v-if="httpRequest.status && chart.type && !chart.type.includes('table') && !chart.type.includes('text')" :chart-id="chart.id" :chart="chart" class="chart-class" /> <chart-component v-if="httpRequest.status && chart.type && !chart.type.includes('table') && !chart.type.includes('text')" :chart-id="chart.id" :chart="chart" class="chart-class" />
<table-normal v-if="httpRequest.status && chart.type && chart.type.includes('table')" :chart="chart" class="table-class" /> <table-normal v-if="httpRequest.status && chart.type && chart.type.includes('table')" :chart="chart" class="table-class" />
<label-normal v-if="httpRequest.status && chart.type && chart.type.includes('text')" :chart="chart" class="table-class" /> <label-normal v-if="httpRequest.status && chart.type && chart.type.includes('text')" :chart="chart" class="table-class" />
<div v-if="!httpRequest.status" style=";width: 100%;height: 100%;background-color: #ece7e7; text-align: center"> <div v-if="!httpRequest.status" class="chart-error-class">
<div style="font-size: 12px; color: #9ea6b2;"> <div style="font-size: 12px; color: #9ea6b2;height: 100%;display: flex;align-items: center;justify-content: center;">
{{ $t('panel.error_data') }}<br> {{ $t('panel.error_data') }}<br>
{{ httpRequest.msg }} {{ httpRequest.msg }}
</div> </div>
...@@ -941,7 +967,10 @@ export default { ...@@ -941,7 +967,10 @@ export default {
background-color: white; background-color: white;
display: block; display: block;
word-break: break-all; word-break: break-all;
white-space: normal;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
} }
.item-on-move { .item-on-move {
...@@ -952,6 +981,10 @@ export default { ...@@ -952,6 +981,10 @@ export default {
color: #606266; color: #606266;
/*background-color: rgba(35,46,64,.05);*/ /*background-color: rgba(35,46,64,.05);*/
background-color: white; background-color: white;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
} }
.item + .item { .item + .item {
...@@ -1070,4 +1103,12 @@ export default { ...@@ -1070,4 +1103,12 @@ export default {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.chart-error-class{
text-align: center;
height: calc(100% - 84px);
display: flex;
align-items: center;
justify-content: center;
background-color: #ece7e7;
}
</style> </style>
<template> <template>
<el-col> <el-col>
<el-row style="height: 25px;"> <el-row style="height: 25px;">
<span>{{ table.name }}</span> <span class="table-name">{{ table.name }}</span>
</el-row> </el-row>
<el-divider /> <el-divider />
<el-checkbox v-model="checkAll" :disabled="!(fields.length > 0)" :indeterminate="isIndeterminate" @change="handleCheckAllChange">{{ $t('dataset.check_all') }}</el-checkbox> <el-checkbox v-model="checkAll" :disabled="!(fields.length > 0)" :indeterminate="isIndeterminate" @change="handleCheckAllChange">{{ $t('dataset.check_all') }}</el-checkbox>
...@@ -105,4 +105,12 @@ export default { ...@@ -105,4 +105,12 @@ export default {
.el-divider--horizontal { .el-divider--horizontal {
margin: 12px 0 margin: 12px 0
} }
.table-name{
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
width: 100%;
overflow: hidden;
}
</style> </style>
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<!-- />--> <!-- />-->
<svg-icon icon-class="scene" class="ds-icon-scene" /> <svg-icon icon-class="scene" class="ds-icon-scene" />
</span> </span>
<span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{{ data.name }}</span> <span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" :title="data.name">{{ data.name }}</span>
</span> </span>
</span> </span>
</el-tree> </el-tree>
...@@ -52,8 +52,8 @@ ...@@ -52,8 +52,8 @@
<!--scene--> <!--scene-->
<el-col v-if="sceneMode" v-loading="dsLoading"> <el-col v-if="sceneMode" v-loading="dsLoading">
<el-row class="title-css"> <el-row class="title-css scene-title">
<span class="title-text"> <span class="title-text scene-title-name" :title="currGroup.name">
{{ currGroup.name }} {{ currGroup.name }}
</span> </span>
<el-button icon="el-icon-back" size="mini" style="float: right" circle @click="back"> <el-button icon="el-icon-back" size="mini" style="float: right" circle @click="back">
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<span v-if="data.mode === 0" style="margin-left: 6px"><i class="el-icon-s-operation" /></span> <span v-if="data.mode === 0" style="margin-left: 6px"><i class="el-icon-s-operation" /></span>
<span v-if="data.mode === 1" style="margin-left: 6px"><i class="el-icon-alarm-clock" /></span> <span v-if="data.mode === 1" style="margin-left: 6px"><i class="el-icon-alarm-clock" /></span>
</span> </span>
<span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{{ data.name }}</span> <span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" :title="data.name">{{ data.name }}</span>
</span> </span>
</span> </span>
</el-tree> </el-tree>
...@@ -383,4 +383,16 @@ export default { ...@@ -383,4 +383,16 @@ export default {
.title-text { .title-text {
line-height: 26px; line-height: 26px;
} }
.scene-title{
width: 100%;
display: flex;
}
.scene-title-name{
width: 100%;
overflow: hidden;
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
}
</style> </style>
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<!-- />--> <!-- />-->
<svg-icon icon-class="scene" class="ds-icon-scene" /> <svg-icon icon-class="scene" class="ds-icon-scene" />
</span> </span>
<span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{{ data.name }}</span> <span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" :title="data.name">{{ data.name }}</span>
</span> </span>
<span v-if="hasDataPermission('manage',data.privileges)"> <span v-if="hasDataPermission('manage',data.privileges)">
<span v-if="data.type ==='group'" @click.stop> <span v-if="data.type ==='group'" @click.stop>
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</span> </span>
<span style="margin-left: 12px;" @click.stop > <span style="margin-left: 12px;" @click.stop>
<el-dropdown trigger="click" size="small" @command="clickMore"> <el-dropdown trigger="click" size="small" @command="clickMore">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
<el-button <el-button
...@@ -117,8 +117,8 @@ ...@@ -117,8 +117,8 @@
<!--scene--> <!--scene-->
<el-col v-if="sceneMode"> <el-col v-if="sceneMode">
<el-row class="title-css"> <el-row class="title-css scene-title">
<span class="title-text"> <span class="title-text scene-title-name" :title="currGroup.name">
{{ currGroup.name }} {{ currGroup.name }}
</span> </span>
<el-button icon="el-icon-back" size="mini" style="float: right" circle @click="back"> <el-button icon="el-icon-back" size="mini" style="float: right" circle @click="back">
...@@ -191,10 +191,10 @@ ...@@ -191,10 +191,10 @@
<span v-if="data.mode === 0" style="margin-left: 6px"><i class="el-icon-s-operation" /></span> <span v-if="data.mode === 0" style="margin-left: 6px"><i class="el-icon-s-operation" /></span>
<span v-if="data.mode === 1" style="margin-left: 6px"><i class="el-icon-alarm-clock" /></span> <span v-if="data.mode === 1" style="margin-left: 6px"><i class="el-icon-alarm-clock" /></span>
</span> </span>
<span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{{ data.name }}</span> <span style="margin-left: 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" :title="data.name">{{ data.name }}</span>
</span> </span>
<span v-if="hasDataPermission('manage',data.privileges)"> <span v-if="hasDataPermission('manage',data.privileges)">
<span style="margin-left: 12px;" @click.stop > <span style="margin-left: 12px;" @click.stop>
<el-dropdown trigger="click" size="small" @command="clickMore"> <el-dropdown trigger="click" size="small" @command="clickMore">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
<el-button <el-button
...@@ -621,4 +621,16 @@ export default { ...@@ -621,4 +621,16 @@ export default {
.title-text { .title-text {
line-height: 26px; line-height: 26px;
} }
.scene-title{
width: 100%;
display: flex;
}
.scene-title-name{
width: 100%;
overflow: hidden;
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
}
</style> </style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<complex-table <complex-table
:data="data" :data="data"
:columns="columns" :columns="columns"
local-key="userGrid"
:search-config="searchConfig" :search-config="searchConfig"
:pagination-config="paginationConfig" :pagination-config="paginationConfig"
@select="select" @select="select"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论