diff options
| author | default <default@DESKTOP-7FEGRP2> | 2018-11-21 15:57:37 +0800 |
|---|---|---|
| committer | default <default@DESKTOP-7FEGRP2> | 2018-11-21 15:57:37 +0800 |
| commit | cd418ea458e6949cad81041be292b109b7261c4b (patch) | |
| tree | 54ed3d38edb4ec73a40482c53abca999356955aa /WebRoot | |
| parent | 963dc1f56c2b81f026b70671fa210052647e6848 (diff) | |
update topo配置bug
Diffstat (limited to 'WebRoot')
| -rw-r--r-- | WebRoot/page/systemManage/topoManage/topoManageIndex.jsp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/WebRoot/page/systemManage/topoManage/topoManageIndex.jsp b/WebRoot/page/systemManage/topoManage/topoManageIndex.jsp index b08fa95..91dd899 100644 --- a/WebRoot/page/systemManage/topoManage/topoManageIndex.jsp +++ b/WebRoot/page/systemManage/topoManage/topoManageIndex.jsp @@ -30,17 +30,18 @@ <script type="text/javascript">
//页面初始化 回显节点对应信息
+ // type 1 为节点组 2 为节点 3为 空 4为 topo图
$(function(){
$("input[name^='topoNodeType']:checked").each(function(index,data){
var radioValue=$(data).val();
- if(radioValue==1){
+ if(radioValue==2){
$("#topoInfo"+index).hide();
$("#chooseGroupNode"+index).show();
$("#topoNodeOne"+index).show();
$("#topoNodeTwo"+index).show();
$("#chooseType").val(1);
$('#chooseIndex').val(index);
- }else if(radioValue==2){
+ }else if(radioValue==1){
$("#topoInfo"+index).hide();
$("#chooseGroupNode"+index).show();
$("#topoNodeOne"+index).hide();
@@ -68,7 +69,7 @@ function selectNodeAndNodeGroup(index) {
$('#chooseIndex').val(index);
var nodeType = $('input[name="topoNodeType'+index+'"]:checked').val();
- if(nodeType==1){
+ if(nodeType==2){
$("#chooseType").val(1);
}else{
$("#chooseType").val(0);
@@ -116,7 +117,7 @@ $("#topoNodeTwo"+index).hide();
$("#chooseType").val(0);
$('#chooseIndex').val(index);
- }else if(value==2){
+ }else if(value==1){
$("#topoInfo"+index).hide();
$("#chooseGroupNode"+index).show();
$("#topoNodeOne"+index).hide();
@@ -147,7 +148,7 @@ var data={};
topoManageInfo.nodeId=$('#topoNodeInfoId'+index).val();
topoManageInfo.nodeType=radioValue;
- if(radioValue==1){
+ if(radioValue==2){
if(nodeIds==null||nodeIds==undefined||nodeIds==''){
alert("i18n_topoManage.topoNodeError1_n81i");
flag=false;
@@ -158,7 +159,7 @@ return;
}
topoManageInfo.nodeTypeId=nodeIds;
- }else if(radioValue==2){
+ }else if(radioValue==1){
if(groupIds==null||groupIds==undefined||groupIds==''){
alert("i18n_topoManage.topoNodeGroupError1_n81i");
flag=false;
@@ -306,10 +307,10 @@ <c:forEach items="${typeList}" var="type">
<c:choose>
<c:when test='${type==topoManageInfo.topoNodeInfo.type}'>
- <input type='radio' status='${status.index}' value='${type}' name='topoNodeType${status.index}' checked='checked' onchange="chooseTopoNodeType(this)"/><c:if test='${type==1}'>i18n_topoManage.topoNode_n81i</c:if><c:if test='${type==2}'>i18n_topoManage.topoNodeGroup_n81i</c:if><c:if test='${type==3}'>i18n_topoManage.topoNone_n81i</c:if><c:if test='${type==4}'>i18n_topoManage.topoPicture_n81i</c:if>
+ <input type='radio' status='${status.index}' value='${type}' name='topoNodeType${status.index}' checked='checked' onchange="chooseTopoNodeType(this)"/><c:if test='${type==2}'>i18n_topoManage.topoNode_n81i</c:if><c:if test='${type==1}'>i18n_topoManage.topoNodeGroup_n81i</c:if><c:if test='${type==3}'>i18n_topoManage.topoNone_n81i</c:if><c:if test='${type==4}'>i18n_topoManage.topoPicture_n81i</c:if>
</c:when>
<c:otherwise>
- <input type='radio' status='${status.index}' name='topoNodeType${status.index}' value='${type}' onchange="chooseTopoNodeType(this)"/><c:if test='${type==1}'>i18n_topoManage.topoNode_n81i</c:if><c:if test='${type==2}'>i18n_topoManage.topoNodeGroup_n81i</c:if><c:if test='${type==3}'>i18n_topoManage.topoNone_n81i</c:if><c:if test='${type==4}'>i18n_topoManage.topoPicture_n81i</c:if>
+ <input type='radio' status='${status.index}' name='topoNodeType${status.index}' value='${type}' onchange="chooseTopoNodeType(this)"/><c:if test='${type==2}'>i18n_topoManage.topoNode_n81i</c:if><c:if test='${type==1}'>i18n_topoManage.topoNodeGroup_n81i</c:if><c:if test='${type==3}'>i18n_topoManage.topoNone_n81i</c:if><c:if test='${type==4}'>i18n_topoManage.topoPicture_n81i</c:if>
</c:otherwise>
</c:choose>
</c:forEach>
|
