浏览代码

样式调整

1178232204@qq.com 3 年之前
父节点
当前提交
4820620851
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      src/js/appealUserPage.js

+ 9 - 9
src/js/appealUserPage.js

@@ -154,7 +154,6 @@ $(function () {
         const info = Object.assign(beHospital, result);
         initMenu(JSON.parse(result.menuData));
         // $(".sub-menu>ul>li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
-        initList(msg);
         if (form == 44) {
           //选中样式
           $(".sub-menu .active,.menu-mini .active").removeClass('active');
@@ -164,13 +163,9 @@ $(function () {
           mItems.parents(".list-1").addClass("slide-up");
           mItems.parents("ul").show()
           //  //显示对应内容
-          global_activeTab = $(".sub-menu .page.active").attr("code");
           getQcCasesEntry();
           //initModuleData();
-          $(".flaw-table .page-item").hide();
-          $(".flaw-table,.flaw-table .page-item[code=" + '查房记录' + "]").show();
-          $(".content-item,.flaw-item").hide();
-          $(".content-item[code='" + '查房记录' + "']").show();
+          global_activeTab = $(".sub-menu .page.active").attr("code");
           showFlawList();
           $("#contentInfo").scrollTop(0)
         } else {
@@ -180,7 +175,7 @@ $(function () {
         $(".operation").show()
         initPatientInfo(info);
         initContent(result.pageData);
-
+        initList(msg);
         initScoreItem(msg);
         global_flawData = msg;
         global_flawDataPay = drgs;
@@ -347,8 +342,13 @@ $(function () {
   function initList(data, type) {
     //$("#flawTotalList").tmpl({title:"缺陷总览",data:data}).appendTo(".flaw-table");
     formatSpecPage(data, "缺陷总览", type);
-    $(".flaw-table").show();
-    $(".flaw-table .page-item[code=" + global_activeTab + "]").show();
+    if(form == 44){
+      $(".flaw-table").hide();
+      $(".flaw-table .page-item[code=" + global_activeTab + "]").hide();
+    }else{
+      $(".flaw-table").show();
+      $(".flaw-table .page-item[code=" + global_activeTab + "]").show();
+    }
     $(".slide-up").off("click").on("click", function () {
       const name = $(this).text();
       $("tr[code='" + name + "']").slideToggle();