style : silence 样式调整

This commit is contained in:
zhangyu
2021-05-06 21:40:56 +08:00
parent 73950be33c
commit db2e553ff0
10 changed files with 50 additions and 23 deletions

View File

@@ -100,6 +100,10 @@
line-height: 20px; line-height: 20px;
font-weight: 400; font-weight: 400;
margin-top: 3px; margin-top: 3px;
max-width: 30%;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
} }
.timezone-offset{ .timezone-offset{
display: inline-block; display: inline-block;

View File

@@ -290,7 +290,7 @@ const cn = {
tooltip: 'Tooltip', tooltip: 'Tooltip',
displayChart: '图表', displayChart: '图表',
aggregation: 'Aggregation', aggregation: 'Aggregation',
varType: 'Vartype', varType: 'Variable type',
pid: 'Chart 模板', pid: 'Chart 模板',
selectAsset: '请选择Asset', selectAsset: '请选择Asset',
selectEndpoint: '请选择Endpoint' selectEndpoint: '请选择Endpoint'
@@ -1040,12 +1040,12 @@ const cn = {
create: '创建表达式模板', create: '创建表达式模板',
expressionError: '请填写表达式', expressionError: '请填写表达式',
type: 'Type', type: 'Type',
varType: 'varType' varType: 'Variable type'
}, },
chartTemp: { chartTemp: {
chartTemp: 'Chart 模板', chartTemp: 'Chart 模板',
type: 'Type', type: 'Type',
varType: 'varType' varType: 'Variable type'
} }
}, },
alert: { alert: {
@@ -1107,6 +1107,7 @@ const cn = {
} }
}, },
silence: { silence: {
name:'名称',
silence: '告警静默', silence: '告警静默',
create: '创建告警静默', create: '创建告警静默',
edit: '修改告警静默', edit: '修改告警静默',

View File

@@ -299,7 +299,7 @@ const en = {
tooltip: 'Tooltip', tooltip: 'Tooltip',
displayChart: 'Display chart', displayChart: 'Display chart',
aggregation: 'Aggregation', aggregation: 'Aggregation',
varType: 'Vartype', varType: 'Variable type',
pid: 'Chart template', pid: 'Chart template',
selectAsset: 'Please select the Asset', selectAsset: 'Please select the Asset',
selectEndpoint: 'Please select the Endpoint' selectEndpoint: 'Please select the Endpoint'
@@ -1060,12 +1060,12 @@ const en = {
create: 'New expression template', create: 'New expression template',
expressionError: 'Please fill in the "expression" value', expressionError: 'Please fill in the "expression" value',
type: 'Type', type: 'Type',
varType: 'varType' varType: 'Variable type'
}, },
chartTemp: { chartTemp: {
chartTemp: 'Chart template', chartTemp: 'Chart template',
type: 'Type', type: 'Type',
varType: 'varType' varType: 'Variable type'
} }
}, },
alert: { alert: {
@@ -1127,6 +1127,7 @@ const en = {
}, },
}, },
silence: { silence: {
name:'Name',
silence: 'Alert silence', silence: 'Alert silence',
create: 'New alert silence', create: 'New alert silence',
edit: 'Edit alert silence', edit: 'Edit alert silence',

View File

@@ -169,8 +169,8 @@
</div> </div>
</div> </div>
<div class="el-picker-panel__footer" v-if="showTime"> <div class="el-picker-panel__footer" v-if="showTime">
<span class="timezone-area">{{timezone}}</span> <span class="timezone-area" :title='timezone'>{{timezone}}</span>
<span class="timezone-offset">{{timezoneOffset}}</span> <span class="timezone-offset">UTC {{timezoneOffset}}</span>
<!-- <el-button--> <!-- <el-button-->
<!-- size="mini"--> <!-- size="mini"-->
<!-- type="text"--> <!-- type="text"-->

View File

@@ -123,8 +123,8 @@
<div <div
class="el-picker-panel__footer" class="el-picker-panel__footer"
v-show="footerVisible && currentView === 'date'"> v-show="footerVisible && currentView === 'date'">
<span class="timezone-area">{{timezone}}</span> <span class="timezone-area" :title='timezone'>{{timezone}}</span>
<span class="timezone-offset">{{timezoneOffset}}</span> <span class="timezone-offset">UTC {{timezoneOffset}}</span>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"

View File

@@ -73,8 +73,8 @@
</div> </div>
</div> </div>
<div class="el-picker-panel__footer" v-if="showTime"> <div class="el-picker-panel__footer" v-if="showTime">
<span class="timezone-area">{{timezone}}</span> <span class="timezone-area" :title='timezone'>{{timezone}}</span>
<span class="timezone-offset">{{timezoneOffset}}</span> <span class="timezone-offset">UTC {{timezoneOffset}}</span>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -41,8 +41,8 @@
</div> </div>
</div> </div>
<div class="el-time-panel__footer"> <div class="el-time-panel__footer">
<span class="timezone-area">{{timezone}}</span> <span class="timezone-area" :title='timezone'>{{timezone}}</span>
<span class="timezone-offset">{{timezoneOffset}}</span> <span class="timezone-offset">UTC {{timezoneOffset}}</span>
<button <button
type="button" type="button"
class="el-time-panel__btn cancel" class="el-time-panel__btn cancel"

View File

@@ -16,8 +16,8 @@
</time-spinner> </time-spinner>
</div> </div>
<div class="el-time-panel__footer"> <div class="el-time-panel__footer">
<!-- <span class="timezone-area">{{timezone}}</span>--> <!-- <span class="timezone-area" :title='timezone'>{{timezone}}</span>-->
<!-- <span class="timezone-offset">{{timezoneOffset}}</span>--> <!-- <span class="timezone-offset">UTC {{timezoneOffset}}</span>-->
<button <button
type="button" type="button"
class="el-time-panel__btn cancel" class="el-time-panel__btn cancel"

View File

@@ -13,6 +13,13 @@
<div class="right-box-form-box right-box__container"> <div class="right-box-form-box right-box__container">
<el-form class="right-box-form right-box-form-left" :model="editAlertSilence" label-position="top" <el-form class="right-box-form right-box-form-left" :model="editAlertSilence" label-position="top"
label-width="120px" :rules="rules" ref="alertSilenceForm"> label-width="120px" :rules="rules" ref="alertSilenceForm">
<el-form-item :label='$t("alert.silence.name")' prop="name" class="range-name">
<el-input
:placeholder="''"
size="small"
v-model="editAlertSilence.name">
</el-input>
</el-form-item>
<el-form-item :label='$t("alert.silence.time")' prop="time" class="range-time"> <el-form-item :label='$t("alert.silence.time")' prop="time" class="range-time">
<div> <div>
<el-radio-group v-model="rangeTime" size="small" @change="rangeTimeChange"> <el-radio-group v-model="rangeTime" size="small" @change="rangeTimeChange">
@@ -28,7 +35,7 @@
<div class="datepicker"> <div class="datepicker">
<div class="datepicker-box"> <div class="datepicker-box">
<span class="datepicker-title">start time</span> <span class="datepicker-title">start time</span>
<my-date-picker prefix-icon=" " class="panel-time-picker-hidden " size="mini" ref="calendar" <my-date-picker prefix-icon=" " class=" " size="mini" ref="calendar"
format="yyyy/MM/dd HH:mm:ss" @change="(val)=>{dateChange(val,'startAt')}" v-model="editAlertSilence.startAt" format="yyyy/MM/dd HH:mm:ss" @change="(val)=>{dateChange(val,'startAt')}" v-model="editAlertSilence.startAt"
type="datetime" type="datetime"
:clearable="false" :clearable="false"
@@ -40,7 +47,7 @@
</div> </div>
<div class="datepicker-box"> <div class="datepicker-box">
<span class="datepicker-title">end time</span> <span class="datepicker-title">end time</span>
<my-date-picker prefix-icon=" " class="panel-time-picker-hidden " size="mini" ref="calendar" <my-date-picker prefix-icon=" " class=" " size="mini" ref="calendar"
format="yyyy/MM/dd HH:mm:ss" @change="(val)=>{dateChange(val,'endAt')}" v-model="editAlertSilence.endAt" format="yyyy/MM/dd HH:mm:ss" @change="(val)=>{dateChange(val,'endAt')}" v-model="editAlertSilence.endAt"
type="datetime" type="datetime"
:clearable="false" :clearable="false"
@@ -66,8 +73,8 @@
</el-form-item> </el-form-item>
<span class="param-box-row-symbol" :id="'moduel-remove-label-'+index" @click="removeMatcher(index)"><i class="nz-icon nz-icon-shanchu1" style="color:#666;"></i></span> <span class="param-box-row-symbol" :id="'moduel-remove-label-'+index" @click="removeMatcher(index)"><i class="nz-icon nz-icon-shanchu1" style="color:#666;"></i></span>
</div> </div>
<div style="text-align: center"> <div style="text-align: center;" class="">
<span id="module-add-label" type="button" @click="addMatcher" class="right-box-form-add module-add-label" style="margin-right: 140px"> <span id="module-add-label" type="button" @click="addMatcher" class="right-box-form-add module-add-label right-box-form-minus-box module-add-label" style="">
<span><i style="font-size: 16px;" class="nz-icon nz-icon-create-square"></i></span> <span><i style="font-size: 16px;" class="nz-icon nz-icon-create-square"></i></span>
</span> </span>
</div> </div>
@@ -166,6 +173,9 @@ export default {
{ required: true, trigger: 'change' }, { required: true, trigger: 'change' },
{ validator: validate, trigger: 'change' } { validator: validate, trigger: 'change' }
], ],
name: [
{ required: true, message: this.$t('validate.required'), trigger: 'change' },
],
}, },
rangeTime: '', rangeTime: '',
ruleList: [], ruleList: [],
@@ -322,7 +332,7 @@ export default {
width: 14.2% width: 14.2%
} }
/deep/ .el-date-editor.el-range-editor.el-input__inner.panel-time-picker-hidden.el-date-editor--datetimerange.el-range-editor--mini { /deep/ .el-date-editor.el-range-editor.el-input__inner.el-date-editor--datetimerange.el-range-editor--mini {
width: 100%; width: 100%;
} }
@@ -397,4 +407,15 @@ export default {
/deep/ .param-box-row-value{ /deep/ .param-box-row-value{
width: 50%; width: 50%;
} }
.module-add-label{
display: inline-block;
width: 300px;
height: 18px;
background: #FFFCF9;
border: 1px solid #FFE0BD;
border-radius: 2px;
text-align: center;
line-height: 18px;
margin-right: 80px;
}
</style> </style>

View File

@@ -831,13 +831,13 @@ export default {
min-height: 30px; min-height: 30px;
overflow-x: hidden; overflow-x: hidden;
border-radius: 2px; border-radius: 2px;
padding: 0; padding: 0 !important;
} }
/deep/ .ti-tag{ /deep/ .ti-tag{
background-color: #f4f4f5; background-color: #f4f4f5;
border-color: #e9e9eb; border-color: #e9e9eb;
color: #909399; color: #909399;
padding: 2px 4px; padding: 2px 4px!important;;
} }
</style> </style>
<style> <style>