fix: 修复搜索历史互相影响的问题,修复asset新增时输入冲突问题

This commit is contained in:
@changcode
2022-02-15 10:08:31 +08:00
parent 4f1e59edc5
commit 6bd1c0f8dd
3 changed files with 3 additions and 1 deletions

View File

@@ -341,6 +341,7 @@ export const fromRoute = {
alertSilence: 'alertSilence', alertSilence: 'alertSilence',
model: 'model', model: 'model',
mib: 'mib', mib: 'mib',
credential: 'credential',
asset: 'asset', asset: 'asset',
assetType: 'assetType', assetType: 'assetType',
assetState: 'assetState', assetState: 'assetState',

View File

@@ -233,6 +233,7 @@ export default {
modelId: '', modelId: '',
model: { id: '', name: '' }, model: { id: '', name: '' },
type: { name: '', id: '' }, type: { name: '', id: '' },
number: '',
brandAndModel: [], brandAndModel: [],
typeId: '', typeId: '',
snmpCredentialId: '', snmpCredentialId: '',

View File

@@ -5,7 +5,7 @@
ref="dataList" ref="dataList"
:api="url" :api="url"
:custom-table-title.sync="tools.customTableTitle" :custom-table-title.sync="tools.customTableTitle"
:from="fromRoute.mib" :from="fromRoute.credential"
:layout="['searchInput', 'elementSet', 'pagination']" :layout="['searchInput', 'elementSet', 'pagination']"
:search-msg="searchMsg" :search-msg="searchMsg"
@search="search" @search="search"