NEZ-2268 fix:log relabel配置页面action设置默认值
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
}
|
}
|
||||||
.param-box-row-symbol {
|
.param-box-row-symbol {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-left: 3px;
|
padding-left: 10px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: $--color-text-regular;
|
color: $--color-text-regular;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
@@ -104,7 +104,6 @@
|
|||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
margin-right: 80px;
|
|
||||||
}
|
}
|
||||||
.right-box-form-add.module-add-label {
|
.right-box-form-add.module-add-label {
|
||||||
.nz-icon-create-square {
|
.nz-icon-create-square {
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<el-input v-model="item.value" class="silence-matchers-value" placeholder="value" size="mini"></el-input>
|
<el-input v-model="item.value" class="silence-matchers-value" placeholder="value" size="mini"></el-input>
|
||||||
<el-checkbox v-model="item.regex" :false-label="0" :true-label="1" class="silence-matchers-regex" >Regex</el-checkbox>
|
<el-checkbox v-model="item.regex" :false-label="0" :true-label="1" class="silence-matchers-regex" >Regex</el-checkbox>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<span :id="'moduel-remove-label-'+index" class="param-box-row-symbol" @click="removematchers(index)" :title="$t('overall.delete')"><i class="nz-icon nz-icon-shanchu1"></i></span>
|
<span :id="'moduel-remove-label-'+index" class="param-box-row-symbol" style="padding-left: 0px;" @click="removematchers(index)" :title="$t('overall.delete')"><i class="nz-icon nz-icon-shanchu1"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="" style="text-align: center;">
|
<div class="" style="text-align: center;">
|
||||||
<span id="module-add-label" type="button" @click="addmatchers" class="right-box-form-add module-add-label right-box-form-minus-box module-add-label" style="" :title="$t('tip.add')">
|
<span id="module-add-label" type="button" @click="addmatchers" class="right-box-form-add module-add-label right-box-form-minus-box module-add-label" style="" :title="$t('tip.add')">
|
||||||
|
|||||||
@@ -1724,7 +1724,7 @@ export default {
|
|||||||
this.editEndpoint.configs[1].config[index].relabel_config.push({
|
this.editEndpoint.configs[1].config[index].relabel_config.push({
|
||||||
source_labels: [],
|
source_labels: [],
|
||||||
target_label: '',
|
target_label: '',
|
||||||
action: '',
|
action: 'replace',
|
||||||
regex: '(.*)',
|
regex: '(.*)',
|
||||||
replacement: '$1',
|
replacement: '$1',
|
||||||
showAllRelabelOption: false
|
showAllRelabelOption: false
|
||||||
|
|||||||
@@ -1232,7 +1232,7 @@ export default {
|
|||||||
this.editModule.configs[0].config.relabel_config.push({
|
this.editModule.configs[0].config.relabel_config.push({
|
||||||
source_labels: [],
|
source_labels: [],
|
||||||
target_label: '',
|
target_label: '',
|
||||||
action: '',
|
action: 'replace',
|
||||||
regex: '(.*)',
|
regex: '(.*)',
|
||||||
replacement: '$1',
|
replacement: '$1',
|
||||||
showAllRelabelOption: false
|
showAllRelabelOption: false
|
||||||
@@ -1258,7 +1258,7 @@ export default {
|
|||||||
this.editModule.configs[1].config[index].relabel_config.push({
|
this.editModule.configs[1].config[index].relabel_config.push({
|
||||||
source_labels: [],
|
source_labels: [],
|
||||||
target_label: '',
|
target_label: '',
|
||||||
action: '',
|
action: 'replace',
|
||||||
regex: '(.*)',
|
regex: '(.*)',
|
||||||
replacement: '$1',
|
replacement: '$1',
|
||||||
showAllRelabelOption: false
|
showAllRelabelOption: false
|
||||||
|
|||||||
Reference in New Issue
Block a user