Merge branch 'dev-3.1' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.1

This commit is contained in:
zhangyu
2021-11-01 09:57:54 +08:00
7 changed files with 21 additions and 37 deletions

View File

@@ -93,20 +93,6 @@
} }
} }
} }
.form-row-item {
.input-box {
.el-textarea {
.el-textarea__inner {
width: 466px;
height: 32px;
padding: 5px 70px 4px 10px;
}
.el-input__count {
right: 0;
}
}
}
}
.el-form-item { .el-form-item {
.el-input__count { .el-input__count {
line-height: 29px; line-height: 29px;
@@ -115,10 +101,8 @@
} }
.el-form-item { .el-form-item {
.el-input--small.not-fixed-height { .el-input--small.not-fixed-height {
height: 32px; .el-textarea__inner {
.el-input__count { min-height: 32px !important;
line-height: 29px;
height: 25px;
} }
} }
} }

View File

@@ -94,7 +94,7 @@
</div> </div>
<div class="alert-label-box"> <div class="alert-label-box">
<div class="alert-label-title">{{$t('overall.remark')}}</div> <div class="alert-label-title">{{$t('overall.remark')}}</div>
<div class="alert-label-value">{{alertLabelData && alertLabelData.remark ? alertLabelData.remark : '--'}}</div> <div class="alert-label-value alert-label-remark">{{alertLabelData && alertLabelData.remark ? alertLabelData.remark : '--'}}</div>
</div> </div>
</div> </div>
@@ -135,7 +135,7 @@
</div> </div>
<div class="alert-label-box"> <div class="alert-label-box">
<div class="alert-label-title">{{$t('overall.remark')}}</div> <div class="alert-label-title">{{$t('overall.remark')}}</div>
<div class="alert-label-value">{{alertLabelData && alertLabelData.remark ? alertLabelData.remark : '--'}}</div> <div class="alert-label-value alert-label-remark">{{alertLabelData && alertLabelData.remark ? alertLabelData.remark : '--'}}</div>
</div> </div>
</div> </div>
@@ -441,7 +441,7 @@ export default {
position: fixed; position: fixed;
background-color: white; background-color: white;
z-index: 3000; z-index: 3000;
padding: 10px; padding: 10px 23px 10px 10px;
border-radius: 4px; border-radius: 4px;
box-shadow: -1px 1px 9px -1px rgba(205,205,205,0.77); box-shadow: -1px 1px 9px -1px rgba(205,205,205,0.77);
} }
@@ -503,26 +503,25 @@ export default {
/*border-bottom: 1px solid #ebeef5;*/ /*border-bottom: 1px solid #ebeef5;*/
} }
.alert-label-title{ .alert-label-title{
font-family: Roboto-Regular;
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
letter-spacing: 0; letter-spacing: 0;
line-height: 23px; line-height: 23px;
font-weight: 400; min-width: 110px;
min-width: 100px;
padding: 0 3px 0 13px; padding: 0 3px 0 13px;
min-width: 100px;
} }
.alert-label-value{ .alert-label-value{
height: 26px; height: 26px;
ont-family: Roboto-Regular;
font-size: 14px; font-size: 14px;
color: #333333; color: #333333;
letter-spacing: 0; letter-spacing: 0;
line-height: 23px; line-height: 23px;
font-weight: 400; }
padding: 0 3px 0 13px; .alert-label-remark {
word-break: break-all; overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
max-width: 210px;
} }
.danger{ .danger{
background-color: #d64f40; background-color: #d64f40;

View File

@@ -161,7 +161,7 @@ export default {
position: fixed; position: fixed;
background-color: white; background-color: white;
z-index: 3000; z-index: 3000;
padding: 10px; padding: 10px 23px 10px 10px;
border-radius: 4px; border-radius: 4px;
box-shadow: -1px 1px 9px -1px rgba(205,205,205,0.77); box-shadow: -1px 1px 9px -1px rgba(205,205,205,0.77);
} }
@@ -230,7 +230,7 @@ export default {
} }
.alert-rule-title{ .alert-rule-title{
text-align: left; text-align: left;
width: 110px; min-width: 110px;
color: #666; color: #666;
padding: 0 3px 0 13px; padding: 0 3px 0 13px;
} }

View File

@@ -284,6 +284,7 @@ const cn = {
chartName: '图表名称', chartName: '图表名称',
type: '类型', type: '类型',
url: 'URL', url: 'URL',
name: '名称',
statistics: '统计数据', statistics: '统计数据',
sync: '同步到设备', sync: '同步到设备',
last: '最后的', last: '最后的',

View File

@@ -295,6 +295,7 @@ const en = {
type: 'Type', type: 'Type',
unit: 'Unit', unit: 'Unit',
url: 'URL', url: 'URL',
name: 'Name',
legend: 'Legend', legend: 'Legend',
statistics: 'Statistics', statistics: 'Statistics',
legendTip: 'Controls the name of the time series, using name or pattern. For example {{hostname}} will be replaced with label value for the label hostname.', legendTip: 'Controls the name of the time series, using name or pattern. For example {{hostname}} will be replaced with label value for the label hostname.',

View File

@@ -185,7 +185,7 @@
<div class="right-box__container"> <div class="right-box__container">
<div class="container__form"> <div class="container__form">
<el-form ref="chartForm" :model="editChart" :rules="rules" label-position= "top" label-width="120px"> <el-form ref="chartForm" :model="editChart" :rules="rules" label-position= "top" label-width="120px">
<el-form-item :label='$t("dashboard.panel.chartForm.chartName")' prop="title"> <el-form-item :label='$t("dashboard.panel.chartForm.name")' prop="title">
<el-input maxlength="64" show-word-limit size="small" v-model="editChart.name" id="chart-box-title"></el-input> <el-input maxlength="64" show-word-limit size="small" v-model="editChart.name" id="chart-box-title"></el-input>
</el-form-item> </el-form-item>
<el-form-item v-if="showPanel.type !== fromRoute.project && showPanel.type !== fromRoute.asset && showPanel.type !== fromRoute.endpoint && showPanel.type !== fromRoute.model && from!=='chartTemp'" :label="$t('dashboard.panel.title')" prop="panelName"> <el-form-item v-if="showPanel.type !== fromRoute.project && showPanel.type !== fromRoute.asset && showPanel.type !== fromRoute.endpoint && showPanel.type !== fromRoute.model && from!=='chartTemp'" :label="$t('dashboard.panel.title')" prop="panelName">

View File

@@ -38,7 +38,7 @@
<div v-if="errorMsg" class="append-msg error"><span>{{errorMsg}}</span></div> <div v-if="errorMsg" class="append-msg error"><span>{{errorMsg}}</span></div>
<div v-if="appendMsg" class="append-msg error"><span>{{appendMsg}}</span></div> <div v-if="appendMsg" class="append-msg error"><span>{{appendMsg}}</span></div>
</div> </div>
<div class="top-tool-btn-group"> <div class="top-tool-btn-group" style="margin-left: 10px">
<button v-if="plugins.indexOf('add') > -1" class="top-tool-btn" <button v-if="plugins.indexOf('add') > -1" class="top-tool-btn"
@click="addExpression"><i class="nz-icon nz-icon-plus"></i></button> @click="addExpression"><i class="nz-icon nz-icon-plus"></i></button>
<button v-if="plugins.indexOf('copy') > -1" class="top-tool-btn" <button v-if="plugins.indexOf('copy') > -1" class="top-tool-btn"
@@ -706,7 +706,6 @@ export default {
.query-row .input-box { .query-row .input-box {
flex: auto; flex: auto;
margin-right: 10px;
} }
.metric-btn { .metric-btn {
@@ -842,7 +841,7 @@ export default {
.nz-temp-box .nz-btn-style-normal-new{ .nz-temp-box .nz-btn-style-normal-new{
margin-left: 10px; margin-left: 10px;
} }
.right-box__container .form-row-item .input-box .el-textarea.no-resize .el-textarea__inner { /*.right-box__container .form-row-item .input-box .el-textarea.no-resize .el-textarea__inner {*/
width: 476px; /* width: 476px;*/
} /*}*/
</style> </style>