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