File tree 5 files changed +16
-6
lines changed
console/src/main/resources/static
pages/ConfigurationManagement/ListeningToQuery
5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,7 @@ const I18N_CONF = {
236
236
pleaseInputGroup : 'Enter Group' ,
237
237
groupCanNotBeEmpty : 'Group cannot be empty' ,
238
238
pleaseInputIp : 'Enter IP' ,
239
+ ipCanNotBeEmpty : 'IP cannot be empty' ,
239
240
query : 'Search' ,
240
241
articleMeetRequirements : 'configuration items.' ,
241
242
},
Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ const I18N_CONF = {
234
234
pleaseInputGroup : '请输入Group' ,
235
235
groupCanNotBeEmpty : 'Group不能为空' ,
236
236
pleaseInputIp : '请输入IP' ,
237
+ ipCanNotBeEmpty : 'IP不能为空' ,
237
238
query : '查询' ,
238
239
articleMeetRequirements : '条满足要求的配置。' ,
239
240
} ,
Original file line number Diff line number Diff line change @@ -278,11 +278,19 @@ class ListeningToQuery extends React.Component {
278
278
style = { {
279
279
display : this . getValue ( 'type' ) === 0 ? 'none' : '' ,
280
280
} }
281
+ required
281
282
>
282
283
< Input
283
284
placeholder = { locale . pleaseInputIp }
284
285
style = { { width : 200 , boxSize : 'border-box' } }
285
- { ...this . init ( 'ip' ) }
286
+ { ...this . init ( 'ip' , {
287
+ rules : [
288
+ {
289
+ required : true ,
290
+ message : locale . ipCanNotBeEmpty ,
291
+ } ,
292
+ ] ,
293
+ } ) }
286
294
/>
287
295
</ FormItem >
288
296
< FormItem label = "" >
Original file line number Diff line number Diff line change 35
35
< link rel ="stylesheet " type ="text/css " href ="console-ui/public/css/icon.css ">
36
36
< link rel ="stylesheet " type ="text/css " href ="console-ui/public/css/font-awesome.css ">
37
37
<!-- 第三方css结束 -->
38
- < link href ="./css/main.css?14a4b9dd6e3788d1f3d9 " rel ="stylesheet "> </ head >
38
+ < link href ="./css/main.css?0576563c0d880bc876a0 " rel ="stylesheet "> </ head >
39
39
40
40
< body >
41
41
< div id ="root " style ="overflow:hidden "> </ div >
56
56
< script src ="console-ui/public/js/merge.js "> </ script >
57
57
< script src ="console-ui/public/js/loader.js "> </ script >
58
58
<!-- 第三方js结束 -->
59
- < script type ="text/javascript " src ="./js/main.js?14a4b9dd6e3788d1f3d9 "> </ script > </ body >
59
+ < script type ="text/javascript " src ="./js/main.js?0576563c0d880bc876a0 "> </ script > </ body >
60
60
61
61
</ html >
You can’t perform that action at this time.
0 commit comments