fix: 增加系统类别字段搜索

hbcl
时启龙 2025-03-26 13:46:27 +08:00
parent db1cc1c1e9
commit 6c18d1ff13
2 changed files with 5 additions and 2 deletions

View File

@ -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()

View File

@ -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' }
]