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', label: 'alertName',
disabled: false disabled: false
}, { }, {
id:20,
name: this.$t('project.project.project'), name: this.$t('project.project.project'),
type: 'project', type: 'project',
label: 'project', label: 'project',
disabled: false disabled: false
}, { }, {
id:21,
name: this.$t('project.module.module'), name: this.$t('project.module.module'),
type: 'module', type: 'module',
label: 'module', label: 'module',
disabled: false disabled: false
}, { }, {
id:22,
name: this.$t('project.endpoint.endpoint'), name: this.$t('project.endpoint.endpoint'),
type: 'input', type: 'input',
label: 'endpointId', label: 'endpointId',

View File

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

View File

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

View File

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