[plg137200.] 1 жил өмнө
parent
commit
c356378110

+ 11 - 4
src/renderer/components/LoginPage.vue

@@ -788,9 +788,10 @@ IF NOT EXISTS t_user_table (
                 "isMarried",
                 res.data.data.marriageSituation
               );
-              that.$router.push({
-                path: "/mainTable",
-              });
+              // that.$router.push({
+              //   path: "/mainTable",
+              // });
+              that.goPage('/menu/intervene', 'rzgy')
             }
             //当type等于2时跳转到我的测试页面
 
@@ -800,13 +801,19 @@ IF NOT EXISTS t_user_table (
               sessionStorage.setItem("num", that.account);
               sessionStorage.setItem("pass", that.$md5(that.password));
               sessionStorage.setItem("userType", "2");
-              that.$router.push({ path: "/mainTable" });
+              // that.$router.push({ path: "/mainTable" });
+               that.goPage('/menu/manageUser', 'yhgl')
             }
           } else {
             this.$message.error("访问服务器失败!");
           }
         }
       );
+    },
+      goPage(url, val) {
+      sessionStorage.setItem("defaultUrl", url);
+      this.$router.push({ path: url, query: { url: val } });
+      //this.$router.push({ path: url });
     },
     formateSex(val) {
       if (val === "男") {

+ 10 - 38
src/renderer/components/Menu.vue

@@ -45,31 +45,7 @@
           :popper-append-to-body="false"
           :router="true"
         >
-          <!-- <p align="center">
-            <img
-              width="60px"
-              height="60px"
-              src="../assets/newImage/home_ndcj.png"
-              style="border-radius: 50%"
-            />
-          </p>
-          <p align="center" style="color: #ffffff">
-            <i
-              title="修改密码"
-              @click="updatePass()"
-              style="cursor: pointer"
-              class="el-icon-lock"
-            ></i
-            >&nbsp;&nbsp; {{ acount }} &nbsp;&nbsp;
-            <i
-              title="返回主页"
-              @click="goMain"
-              style="cursor: pointer"
-              class="el-icon-s-home"
-            ></i>
-          </p> -->
-          <el-menu-item index="" @click="goMain" v-show="true">
-            <!-- <i class="el-icon-menu"></i> -->
+          <!-- <el-menu-item index="" @click="goMain" v-show="true">
             <img class="menu_icon_cla" src="../assets/menuIcon/main.png" />
             <span slot="title" class="menu_text_cla">主页</span>
           </el-menu-item>
@@ -78,8 +54,7 @@
             v-show="userType === 1"
             @click="menuClick('rjdh')"
           >
-            <!-- @mouseover="menuClick('rjdh')" -->
-            <!-- @click="menuClick('rjdh')" -->
+       
             <img
               class="menu_icon_cla"
               :src="require('@/assets/menuIcon/' + rjdhUrl)"
@@ -122,7 +97,7 @@
               class="menu_text_cla"
               >心理放松</span
             >
-          </el-menu-item>
+          </el-menu-item> -->
           <el-menu-item
             index="/menu/intervene"
             v-show="userType === 1"
@@ -139,11 +114,8 @@
               >认知行为干预</span
             >
           </el-menu-item>
-          <!-- <el-menu-item index="/menu/pulse" v-show="userType === 1">
-            <i class="el-icon-menu"></i>
-            <span slot="title">脉搏采集</span>
-          </el-menu-item> -->
-          <el-menu-item
+  
+          <!-- <el-menu-item
             index="/menu/animation"
             v-show="userType === 1"
             @click="menuClick('swfk')"
@@ -155,7 +127,7 @@
             <span slot="title" :style="{ color: swfk ? '#ffffff' : '#0FB577' }"
               >生物反馈训练</span
             >
-          </el-menu-item>
+          </el-menu-item> -->
 
           <el-menu-item
             index="/menu/manageUser"
@@ -173,7 +145,7 @@
               >用户管理</span
             >
           </el-menu-item>
-          <el-menu-item
+          <!-- <el-menu-item
             index="/menu/manageUserScale"
             v-show="userType === 2"
             @click="menuManageClick('yhlt')"
@@ -220,7 +192,7 @@
               :style="{ color: yhfk ? '#ffffff' : '#0FB577' }"
               >生物反馈记录</span
             >
-          </el-menu-item>
+          </el-menu-item> -->
           <el-menu-item
             index="/menu/managePluse"
             v-show="userType === 2"
@@ -237,7 +209,7 @@
               >认知行为干预记录</span
             >
           </el-menu-item>
-          <el-menu-item
+          <!-- <el-menu-item
             index="/menu/manageEquipment"
             v-show="userType === 2"
             @click="menuManageClick('yhsb')"
@@ -252,7 +224,7 @@
               :style="{ color: yhsb ? '#ffffff' : '#0FB577' }"
               >设备管理</span
             >
-          </el-menu-item>
+          </el-menu-item> -->
         </el-menu>
         <div class="foot_main_exit">
           <div class="menu_main_exit">