fix: 修复ipam 二级页面 搜索排序传参错误问题

This commit is contained in:
@changcode
2022-03-22 10:04:30 +08:00
parent 0a58c390e0
commit ce4817ea42
3 changed files with 5 additions and 9 deletions

View File

@@ -118,14 +118,12 @@ export default {
}, { }, {
name: 'IP', name: 'IP',
type: 'input', type: 'input',
label: 'manageIp', label: 'addr',
disabled: false disabled: false
}, { }, {
name: this.$t('asset.state'), name: this.$t('asset.state'),
type: 'assetState', type: 'input',
label: 'stateIds', label: 'state',
id: 'stateIds',
readonly: true,
disabled: false disabled: false
}] }]
} }
@@ -144,7 +142,7 @@ export default {
delete this.searchLabel.orderBy delete this.searchLabel.orderBy
} }
this.$set(this.searchLabel, 'pageNo', this.pageObj.pageNo) this.$set(this.searchLabel, 'pageNo', this.pageObj.pageNo)
this.$set(this.searchLabel, 'ids', this.obj.id) this.$set(this.searchLabel, 'subnetId', this.obj.id)
this.$set(this.searchLabel, 'pageSize', this.pageObj.pageSize) this.$set(this.searchLabel, 'pageSize', this.pageObj.pageSize)
this.tools.loading = true this.tools.loading = true
this.$get(this.url, { ...this.searchLabel }).then(response => { this.$get(this.url, { ...this.searchLabel }).then(response => {

View File

@@ -116,13 +116,11 @@ export default {
prop: 'mac', prop: 'mac',
show: true, show: true,
minWidth: 200, minWidth: 200,
sortable: 'custom'
}, { }, {
label: this.$t('config.ipamip.asset'), label: this.$t('config.ipamip.asset'),
prop: 'asset', prop: 'asset',
show: true, show: true,
width: 200, width: 200,
sortable: 'custom'
}, { }, {
label: this.$t('overall.state'), label: this.$t('overall.state'),
prop: 'state', prop: 'state',