feat: asset二级endpoint增加导入导出按钮等

1.asset二级endpoint增加导入导出按钮
2.asset/alertRule二级alertMessage页面初始参数
This commit is contained in:
陈劲松
2020-03-31 17:22:15 +08:00
parent 7f9bac0f94
commit e3809a11dc
10 changed files with 99 additions and 19 deletions

View File

@@ -12,7 +12,7 @@
</div>
<div class="top-tool-right">
<div class="top-tool-search">
<search-input :searchMsg="searchMsg" @search="search"></search-input>
<search-input :default-item="'alertMessageState'" :default-value="defaultSearchValue" :searchMsg="searchMsg" @search="search"></search-input>
</div>
</div>
</div>
@@ -117,6 +117,7 @@
},
data() {
return {
defaultSearchValue: this.obj.alertNum ? 1 : 0,
showElementSet: false,
tableId: 'alertListTable', //需要分页的table的id用于记录每页数量
showTopBtn: false, //top按钮是否显示
@@ -196,6 +197,12 @@
type: 'asset',
label: 'asset',
disabled: true
}, {
id: 12,
name: this.$t('alert.list.state'),
type: 'select',
label: 'alertMessageState',
disabled: false
}],
},
searchLabel: { //搜索参数
@@ -366,6 +373,9 @@
this.searchLabel.type = 3;
this.searchLabel.linkId = n.id;
}
if (n.alertNum) {
this.defaultSearchValue = 1;
}
this.getAlertList();
}
}