mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	在选择区域弹出框中可以不选区域直接确定返回
This commit is contained in:
		@@ -40,12 +40,18 @@ func (this *SelectPopupAction) RunPost(params struct {
 | 
			
		||||
	Must *actions.Must
 | 
			
		||||
	CSRF *actionutils.CSRF
 | 
			
		||||
}) {
 | 
			
		||||
	if params.RegionId <= 0 {
 | 
			
		||||
		this.Data["region"] = nil
 | 
			
		||||
		this.Success()
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	regionResp, err := this.RPC().NodeRegionRPC().FindEnabledNodeRegion(this.AdminContext(), &pb.FindEnabledNodeRegionRequest{NodeRegionId: params.RegionId})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		this.ErrorPage(err)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	region := regionResp.NodeRegion
 | 
			
		||||
	var region = regionResp.NodeRegion
 | 
			
		||||
	if region == nil {
 | 
			
		||||
		this.NotFound("nodeRegion", params.RegionId)
 | 
			
		||||
		return
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{$layout "layout_popup"}
 | 
			
		||||
 | 
			
		||||
<h3>选择分组</h3>
 | 
			
		||||
<h3>选择所属分组</h3>
 | 
			
		||||
 | 
			
		||||
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
 | 
			
		||||
	<input type="hidden" name="groupId" :value="groupId"/>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{$layout "layout_popup"}
 | 
			
		||||
 | 
			
		||||
<h3>选择分组</h3>
 | 
			
		||||
<h3>选择所属区域</h3>
 | 
			
		||||
 | 
			
		||||
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
 | 
			
		||||
    <csrf-token></csrf-token>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user