Authored by zhengyouwei

nginx gray

... ... @@ -6,6 +6,7 @@ import com.ui.model.BaseResponse;
import com.ui.model.req.ABTestConfig;
import com.ui.model.req.AbTestReq;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
... ... @@ -14,9 +15,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import java.util.ArrayList;
import java.util.List;
/**
* Created by zhengyouwei on 2016/12/16.
... ...
... ... @@ -142,7 +142,7 @@
</div>
<div class="rdio rdio-default">
<input type="radio" name="operate-1" value="qcloud_val" id="qcloud"
<input type="radio" name="operate-1" value="qcloud_val" id="qcloud" checked="checked"
onclick="operSelect(2)"/>
<label for="qcloud">腾讯云</label>
</div>
... ... @@ -152,6 +152,13 @@
onclick="operSelect(3)"/>
<label for="aws">AWS</label>
</div>
<div class="rdio rdio-default" id="gray-redio-div">
<input type="radio" name="operate-1" value="aws_val" id="gray"
onclick="operSelect(4)"/>
<label for="gray">GRAY</label>
</div>
</div>
</div>
</div>
... ... @@ -195,6 +202,12 @@
function operateChange(id) {
type = id;
if(id == 1){
$("#gray-redio-div").show();
}else{
$("#gray-redio-div").hide();
}
}
function operSelect(id) {
... ... @@ -214,6 +227,8 @@
select.disabled = true;
select = document.getElementById("aws");
select.disabled = true;
select = document.getElementById("gray");
select.disabled = true;
var btn = document.getElementById("exe_btn");
btn.disabled = true;
}
... ... @@ -231,6 +246,8 @@
select.disabled = false;
select = document.getElementById("aws");
select.disabled = false;
select = document.getElementById("gray");
select.disabled = false;
var btn = document.getElementById("exe_btn");
btn.disabled = false;
}
... ...