|

楼主 |
发表于 2018-6-13 16:25:38
|
显示全部楼层
您看我这样写有什么问题,还是一楼的那个错
if (value == "sszc") {//如果是sszc,只显示id=commercial的tabl页
tabPanel.setTabActive("commercial");//商事仲裁(tab页)
tabPanel.setVisable("labour", false);// 劳动仲裁(tab页)
tabPanel.setVisable("firstInstance", false);// 一审(tab页)
tabPanel.setVisable("secondInstance", false);// 二审(tab页)
tabPanel.setVisable("programInfo", false);// 程序审(tab页)
tabPanel.setVisable("executeInfo", false);// 执行信息(tab页)
tabPanel.setVisable("closeInfo", false);// 结案信息(tab页)
// 劳动仲裁
} else if (value == "ldzc") {//如果是ldzc,只显示id=labour的tabl页
tabPanel.setVisable("labour", true);// 劳动仲裁
tabPanel.setTabActive("labour");//劳动仲裁(tab页)
tabPanel.setVisable("commercial", false);// 商事仲裁
tabPanel.setVisable("firstInstance", false);// 一审
tabPanel.setVisable("secondInstance", false);// 二审
tabPanel.setVisable("programInfo", false);// 程序审
tabPanel.setVisable("executeInfo", false);// 执行信息
tabPanel.setVisable("closeInfo", false);// 结案信息
// 一审
} else if (value == "ys") {//如果是ys,只显示id=firstInstance的tabl页
tabPanel.setVisable("labour", false);// 劳动仲裁
tabPanel.setVisable("commercial", false);// 劳动仲裁
tabPanel.setVisable("firstInstance", true);// 一审
tabPanel.setTabActive("firstInstance");
tabPanel.setVisable("secondInstance", false);// 二审
tabPanel.setVisable("programInfo", false);// 程序审
tabPanel.setVisable("executeInfo", false);// 执行信息
tabPanel.setVisable("closeInfo", false);// 结案信息
} else if (value == "es") {//如果是es,只显示id=secondInstance的tabl页
tabPanel.setVisable("labour", false);// 劳动仲裁
tabPanel.setVisable("commercial", false);// 商事仲裁
tabPanel.setVisable("firstInstance", false);// 一审
tabPanel.setVisable("secondInstance", true);// 二审
tabPanel.setTabActive("secondInstance");
tabPanel.setVisable("programInfo", false);// 程序审
tabPanel.setVisable("executeInfo", false);// 执行信息
tabPanel.setVisable("closeInfo", false);// 结案信息
} else if (value == "cxs") {//如果是cxs,只显示id=programInfo的tabl页
tabPanel.setVisable("labour", false);// 劳动仲裁
tabPanel.setVisable("commercial", false);// 劳动仲裁
tabPanel.setVisable("firstInstance", false);// 一审
tabPanel.setVisable("secondInstance", false);// 二审
tabPanel.setVisable("programInfo", true);// 程序审
tabPanel.setTabActive("programInfo");
tabPanel.setVisable("executeInfo", false);// 执行信息
tabPanel.setVisable("closeInfo", false);// 结案信息
} else if (value == "zx") {//如果是zx,只显示id=executeInfo的tabl页
tabPanel.setVisable("labour", false);// 劳动仲裁
tabPanel.setVisable("commercial", false);// 劳动仲裁
tabPanel.setVisable("firstInstance", false);// 一审
tabPanel.setVisable("secondInstance", false);// 二审
tabPanel.setVisable("programInfo", false);// 程序审
tabPanel.setVisable("executeInfo", true);// 执行信息
tabPanel.setTabActive("executeInfo");
tabPanel.setVisable("closeInfo", false);// 结案信息
} else if (value == "ja") {//如果是ja,只显示id=closeInfo的tabl页
tabPanel.setVisable("labour", false);// 劳动仲裁
tabPanel.setVisable("commercial", false);// 劳动仲裁
tabPanel.setVisable("firstInstance", false);// 一审
tabPanel.setVisable("secondInstance", false);// 二审
tabPanel.setVisable("programInfo", false);// 程序审
tabPanel.setVisable("executeInfo", false);// 执行信息
tabPanel.setVisable("closeInfo", true);// 结案信息
tabPanel.setTabActive("closeInfo");
}
|
|