fix:修复部分页面 searchInput不回显的问题

This commit is contained in:
zhangyu
2022-01-05 10:34:22 +08:00
parent 7bbf078c84
commit b6c046efb1
13 changed files with 75 additions and 24 deletions

View File

@@ -316,6 +316,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -330,6 +331,7 @@ export default {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -344,6 +346,7 @@ export default {
},
location: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'location',
type: 'string',
defaultJson: {
@@ -357,9 +360,9 @@ export default {
},
state: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'state',
type: 'string',
isSearchInput: true,
defaultJson: {
disabled: false,
label: 'dcState',
@@ -380,6 +383,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -394,6 +398,7 @@ export default {
},
code: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'code',
type: 'string',
defaultJson: {
@@ -407,6 +412,7 @@ export default {
},
value: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'value',
type: 'string',
defaultJson: {
@@ -420,6 +426,7 @@ export default {
},
lang: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'lang',
type: 'string',
defaultJson: {
@@ -441,6 +448,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -455,6 +463,7 @@ export default {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -469,9 +478,9 @@ export default {
},
brandIds: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'brandIds',
type: 'number',
isSearchInput: true,
defaultJson: {
disabled: false,
label: 'brandIds',
@@ -494,6 +503,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
type: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'type',
type: 'number',
defaultJson: {
@@ -508,6 +518,7 @@ export default {
},
username: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'username',
type: 'string',
defaultJson: {
@@ -522,9 +533,9 @@ export default {
},
operation: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'operation',
type: 'string',
isSearchInput: true,
defaultJson: {
disabled: false,
id: 13,
@@ -537,9 +548,9 @@ export default {
},
state: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'state',
type: 'string',
isSearchInput: true,
defaultJson: {
disabled: false,
id: 16,
@@ -553,6 +564,7 @@ export default {
},
operaId: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'operaId',
type: 'string',
defaultJson: {
@@ -567,6 +579,7 @@ export default {
},
params: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'params',
type: 'string',
defaultJson: {
@@ -589,6 +602,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -603,9 +617,9 @@ export default {
},
state: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'state',
type: 'string',
isSearchInput: true,
defaultJson: {
disabled: false,
label: 'promState',
@@ -618,9 +632,9 @@ export default {
},
dc: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'dc',
type: 'number',
isSearchInput: true,
defaultJson: {
name: 'Date center',
type: 'dc',
@@ -634,9 +648,9 @@ export default {
},
type: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'type',
type: 'number',
isSearchInput: true,
defaultJson: {
disabled: false,
label: 'promType',
@@ -657,6 +671,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -679,6 +694,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -692,6 +708,7 @@ export default {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -706,6 +723,7 @@ export default {
},
gname: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'gname',
type: 'string',
defaultJson: {
@@ -727,6 +745,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -740,6 +759,7 @@ export default {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -754,9 +774,9 @@ export default {
},
type: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'type',
type: 'string',
isSearchInput: true,
defaultJson: {
disabled: false,
label: 'credentialType',
@@ -777,6 +797,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -790,6 +811,7 @@ export default {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {

View File

@@ -397,9 +397,9 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'number',
defaultJson: {
disabled: false,
id: 26,
@@ -412,9 +412,9 @@ export default {
},
endpointName: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'endpointName',
type: 'string',
defaultJson: {
disabled: false,
label: 'endpointName',
@@ -426,9 +426,9 @@ export default {
},
summary: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'summary',
type: 'number',
defaultJson: {
disabled: false,
label: 'summary',
@@ -440,9 +440,9 @@ export default {
},
ruleName: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ruleName',
type: 'string',
defaultJson: {
disabled: false,
label: 'ruleName',
@@ -454,6 +454,7 @@ export default {
},
assetName: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'assetName',
type: 'string',
defaultJson: {
@@ -467,9 +468,9 @@ export default {
},
labels: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'labels',
type: 'string',
defaultJson: {
disabled: false,
label: 'labels',

View File

@@ -344,6 +344,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -358,9 +359,9 @@ export default {
},
severityIds: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'severityIds',
type: 'string',
isSearchInput: true,
defaultJson: {
disabled: false,
id: 4,
@@ -377,9 +378,9 @@ export default {
},
type: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'type',
type: 'number',
isSearchInput: true,
defaultJson: {
name: 'Type',
id: 5,
@@ -395,6 +396,7 @@ export default {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {

View File

@@ -255,6 +255,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -269,6 +270,7 @@ export default {
},
matchers: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'matchers',
type: 'string',
defaultJson: {

View File

@@ -770,6 +770,7 @@ export default {
ids: {
target: this.searchLabel,
propertyName: 'ids',
isSearchInput: true,
type: 'string',
defaultJson: {
disabled: false,
@@ -783,6 +784,7 @@ export default {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -797,6 +799,7 @@ export default {
},
sn: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'sn',
type: 'number',
defaultJson: {
@@ -811,6 +814,7 @@ export default {
},
manageIp: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'manageIp',
type: 'number',
defaultJson: {

View File

@@ -297,7 +297,7 @@ export default {
ids: {
target: this.searchLabel,
propertyName: 'ids',
isSearchInput: true,
type: 'string',
defaultJson: {
disabled: false,
@@ -311,6 +311,7 @@ export default {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -325,6 +326,7 @@ export default {
},
key: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'key',
type: 'string',
defaultJson: {

View File

@@ -140,6 +140,7 @@ export const parentTableCommon = {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -153,6 +154,7 @@ export const parentTableCommon = {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -175,6 +177,7 @@ export const parentTableCommon = {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -188,6 +191,7 @@ export const parentTableCommon = {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -222,6 +226,7 @@ export const parentTableCommon = {
},
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -235,6 +240,7 @@ export const parentTableCommon = {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {

View File

@@ -347,6 +347,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -361,6 +362,7 @@ export default {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -375,9 +377,9 @@ export default {
},
type: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'type',
type: 'string',
isSearchInput: true,
defaultJson: {
disabled: false,
label: 'chartType',
@@ -390,9 +392,9 @@ export default {
},
state: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'state',
type: 'string',
isSearchInput: true,
defaultJson: {
disabled: false,
label: 'varType',

View File

@@ -223,6 +223,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
host: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'host',
type: 'string',
defaultJson: {
@@ -237,6 +238,7 @@ export default {
},
username: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'username',
type: 'string',
defaultJson: {
@@ -251,6 +253,7 @@ export default {
},
loginUser: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'loginUser',
type: 'string',
defaultJson: {
@@ -265,6 +268,7 @@ export default {
},
remoteAddr: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'remoteAddr',
type: 'string',
defaultJson: {
@@ -279,6 +283,7 @@ export default {
},
uuid: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'uuid',
type: 'string',
defaultJson: {
@@ -293,9 +298,9 @@ export default {
},
protocol: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'protocol',
type: 'string',
isSearchInput: true,
defaultJson: {
disabled: false,
id: 16,
@@ -309,9 +314,9 @@ export default {
},
state: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'state',
type: 'number',
isSearchInput: true,
defaultJson: {
disabled: false,
id: 17,

View File

@@ -210,9 +210,9 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
disabled: false,
id: 'name',

View File

@@ -793,6 +793,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -807,6 +808,7 @@ export default {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -821,6 +823,7 @@ export default {
},
assetName: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'assetName',
type: 'string',
defaultJson: {

View File

@@ -464,6 +464,7 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
@@ -478,6 +479,7 @@ export default {
},
name: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'name',
type: 'string',
defaultJson: {
@@ -492,9 +494,9 @@ export default {
},
projectIds: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'projectIds',
type: 'number',
isSearchInput: true,
defaultJson: {
disabled: false,
id: 11,

View File

@@ -168,8 +168,8 @@ export default {
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
ids: {
target: this.searchLabel,
isSearchInput: true,
propertyName: 'ids',
type: 'string',
defaultJson: {
disabled: false,
@@ -185,7 +185,7 @@ export default {
target: this.searchLabel,
propertyName: 'name',
type: 'string',
isSearchInput: true,
defaultJson: {
disabled: false,
id: 'name',