fix:搜索框删除标签后显示异常bug修复

This commit is contained in:
wangwenrui
2020-05-19 18:22:22 +08:00
parent 431f3e376b
commit 958cd3dc2f
4 changed files with 12 additions and 7 deletions

View File

@@ -295,16 +295,19 @@
label: 'alertName',
disabled: false
}, {
id:20,
name: this.$t('project.project.project'),
type: 'project',
label: 'project',
disabled: false
}, {
id:21,
name: this.$t('project.module.module'),
type: 'module',
label: 'module',
disabled: false
}, {
id:22,
name: this.$t('project.endpoint.endpoint'),
type: 'input',
label: 'endpointId',

View File

@@ -1061,8 +1061,7 @@
}*/
this.searchMsg.searchLabelList.forEach((val, key) => {
if (this.select_list[ind].id == val.id) {
this.searchLabelList.splice(key + 1, 0, val);
this.searchLabelList.splice(key , 1, val);
this.Iskeywords(ind)
}
});

View File

@@ -332,7 +332,7 @@
searchMsg: { //给搜索框子组件传递的信息
zheze_none: true,
searchLabelList: [{
id: 2,
id: 1,
name: this.$t('alert.alertName'),
type: 'input',
label: 'alertName',
@@ -344,34 +344,37 @@
label: 'alertType',
disabled: false
}, */{
id: 4,
id: 20,
name: this.$t('alert.severity'),
type: 'selectString',
label: 'severity',
disabled: false
}, {
id: 11,
id: 21,
name: this.$t('asset.asset'),
type: 'asset',
label: 'asset',
disabled: false
}, {
id:22,
name: this.$t('project.project.project'),
type: 'project',
label: 'project',
disabled: false
}, {
id:23,
name: this.$t('project.module.module'),
type: 'module',
label: 'module',
disabled: false
}, {
id:24,
name: this.$t('project.endpoint.endpoint'),
type: 'input',
label: 'endpointId',
disabled: false
}, {
id: 12,
id:25,
name: this.$t('alert.list.state'),
type: 'select',
label: 'alertMessageState',

View File

@@ -327,7 +327,7 @@
label: 'assetState',
disabled: false
},{
id: 22,
id: 23,
name: "pingStatus",
type: 'select',
label: 'pingStatus',