NEZ-2231 feat:asset 列表页面增加comment查询条件
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
>
|
>
|
||||||
<template>
|
<template>
|
||||||
<el-input-number ref="jumpInput" v-model="pageObj.pageNo" :controls="false" :min="1" :max="pageObj.pages" class="jump-input" @change="getTableData" @keyup.enter.native="getTableData" size="mini"/>
|
<el-input-number ref="jumpInput" v-model="pageObj.pageNo" :controls="false" :min="1" :max="pageObj.pages" class="jump-input" @change="getTableData" @keyup.enter.native="getTableData" size="mini"/>
|
||||||
<span class="jump-pages">/ {{pageObj.pages}}</span>
|
<span class="jump-pages">/ {{pageObj.pages}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</template>
|
</template>
|
||||||
@@ -315,6 +315,12 @@ export default {
|
|||||||
id: 'stateIds',
|
id: 'stateIds',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
disabled: false
|
disabled: false
|
||||||
|
}, {
|
||||||
|
id: 'comment',
|
||||||
|
name: this.$t('licenseGen.comment'),
|
||||||
|
type: 'input',
|
||||||
|
label: 'comment',
|
||||||
|
disabled: false
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -699,7 +705,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getTableData (params) {
|
async getTableData (params) {
|
||||||
if (params && Object.keys(params).length > 0) {
|
if (params && Object.keys(params).length > 0) {
|
||||||
for (const key in params) {
|
for (const key in params) {
|
||||||
this.$set(this.searchLabel, key, params[key])
|
this.$set(this.searchLabel, key, params[key])
|
||||||
@@ -913,11 +919,26 @@ export default {
|
|||||||
},
|
},
|
||||||
jsonKey: 'valnum'
|
jsonKey: 'valnum'
|
||||||
},
|
},
|
||||||
|
comment: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'comment',
|
||||||
|
isSearchInput: true,
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'comment',
|
||||||
|
label: 'comment',
|
||||||
|
name: this.$t('licenseGen.comment'),
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
dcIds: { target: this.searchCheckBox, propertyName: 'dcIds', type: 'string', target2: this.selectValue, type2: 'array' },
|
dcIds: { target: this.searchCheckBox, propertyName: 'dcIds', type: 'string', target2: this.selectValue, type2: 'array' },
|
||||||
fields: { target: this.searchCheckBox, propertyName: 'fields', type: 'json', target2: this.selectValue, type2: 'json' },
|
typeIds: { target: this.searchCheckBox, propertyName: 'typeIds', type: 'string', target2: this.selectValue, type2: 'array' },
|
||||||
ping: { target: this.searchCheckBox, propertyName: 'ping', type: 'string', target2: this.selectValue, type2: 'array' },
|
ping: { target: this.searchCheckBox, propertyName: 'ping', type: 'string', target2: this.selectValue, type2: 'array' },
|
||||||
modelIds: { target: this.searchCheckBox, propertyName: 'modelIds', type: 'string', target2: this.selectValue, type2: 'array' },
|
modelIds: { target: this.searchCheckBox, propertyName: 'modelIds', type: 'string', target2: this.selectValue, type2: 'array' },
|
||||||
typeIds: { target: this.searchCheckBox, propertyName: 'typeIds', type: 'string', target2: this.selectValue, type2: 'array' }
|
fields: { target: this.searchCheckBox, propertyName: 'fields', type: 'json', target2: this.selectValue, type2: 'json' }
|
||||||
}
|
}
|
||||||
this.initQueryFromPath(searchKeys)
|
this.initQueryFromPath(searchKeys)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user