fix: 增加系统类别字段搜索
parent
db1cc1c1e9
commit
6c18d1ff13
|
@ -201,7 +201,10 @@ export default defineComponent({
|
|||
const dialogServerVisible = ref(false)
|
||||
const tableRef = ref()
|
||||
function selectServer() {
|
||||
searchConfigs[4].initValue = props.osCategory
|
||||
if (props.osCategory) {
|
||||
searchConfigs[4].type = 'Const'
|
||||
searchConfigs[4].initValue = props.osCategory
|
||||
}
|
||||
if (tableRef.value) {
|
||||
const { searchRef } = tableRef.value
|
||||
searchRef.handleReset()
|
||||
|
|
|
@ -39,5 +39,5 @@ export const searchConfigs = [
|
|||
{ label: 'IP地址', value: 'ip', type: 'Input' },
|
||||
{ label: '主机名', value: 'name', type: 'Input' },
|
||||
{ value: 'catalog', type: 'Const', initValue: 'Computer' },
|
||||
{ value: 'osCategory', type: 'Const', initValue: '' }
|
||||
{ label: '系统类别', value: 'osCategory', type: 'Input' }
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue