123123 :filterOption =" filterOption"
124124 :options =" hostSelectOptions"
125125 :loading =" loading.hosts"
126+ @change =" onSelectHostId"
126127 ></a-select >
127128 </a-form-item >
128129 </div >
@@ -1005,7 +1006,7 @@ export default {
10051006 })
10061007 options .unshift ({
10071008 label: this .$t (' label.default' ),
1008- value: undefined
1009+ value: null
10091010 })
10101011 return options
10111012 },
@@ -1018,7 +1019,7 @@ export default {
10181019 })
10191020 options .unshift ({
10201021 label: this .$t (' label.default' ),
1021- value: undefined
1022+ value: null
10221023 })
10231024 return options
10241025 },
@@ -1031,7 +1032,7 @@ export default {
10311032 })
10321033 options .unshift ({
10331034 label: this .$t (' label.default' ),
1034- value: undefined
1035+ value: null
10351036 })
10361037 return options
10371038 },
@@ -2130,15 +2131,27 @@ export default {
21302131 },
21312132 onSelectPodId (value ) {
21322133 this .podId = value
2134+ if (this .podId === null ) {
2135+ this .form .podid = undefined
2136+ }
21332137
21342138 this .fetchOptions (this .params .clusters , ' clusters' )
21352139 this .fetchOptions (this .params .hosts , ' hosts' )
21362140 },
21372141 onSelectClusterId (value ) {
21382142 this .clusterId = value
2143+ if (this .clusterId === null ) {
2144+ this .form .clusterid = undefined
2145+ }
21392146
21402147 this .fetchOptions (this .params .hosts , ' hosts' )
21412148 },
2149+ onSelectHostId (value ) {
2150+ this .hostId = value
2151+ if (this .hostId === null ) {
2152+ this .form .hostid = undefined
2153+ }
2154+ },
21422155 handleSearchFilter (name , options ) {
21432156 this .params [name].options = { ... this .params [name].options , ... options }
21442157 this .fetchOptions (this .params [name], name)
0 commit comments