Bläddra i källkod

修改路径及标题

plg 9 månader sedan
förälder
incheckning
bc822b9cc0

+ 4 - 4
build/script/installer.nsh

@@ -4,11 +4,11 @@
 ; RequestExecutionLevel admin
 !macro preInit
     SetRegView 64
-    WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\gy"
-    WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\gy"
+    WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\gyrz"
+    WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\gyrz"
     SetRegView 32
-    WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\gy"
-    WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\gy"
+    WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\gyrz"
+    WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\gyrz"
     ; CreateDirectory $%USERPROFILE%\*mentalEfficiencyData*
     ; CopyFiles $INSTDIR\user.config $%USERPROFILE%\*mentalEfficiencyData*
     ${If} ${FileExists} $%USERPROFILE%\*mentalEfficiencyData*

+ 2 - 2
package.json

@@ -34,8 +34,8 @@
       "license": "build/script/license.txt",
       "deleteAppDataOnUninstall": false
     },
-    "productName": "自助式心理健康评估与认知行为干预系统",
-    "appId": "com.examplesingletask.yourapp.projectGy",
+    "productName": "自助式认知行为干预系统",
+    "appId": "com.examplesingletask.yourapp.projectGyRZ",
     "directories": {
       "output": "build"
     },

BIN
src/renderer/assets/newImage/login_bg.png


BIN
src/renderer/assets/newImage/login_bg3.png


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

@@ -739,8 +739,10 @@ IF NOT EXISTS t_user_table (
                 "isMarried",
                 res.data.data.marriageSituation
               );
+              sessionStorage.setItem("defaultUrl", '/menu/intervene');
               that.$router.push({
-                path: "/mainTable",
+                path: "/menu/intervene",
+                query: { url: "rzgy" },
               });
             }
             //当type等于2时跳转到我的测试页面
@@ -751,7 +753,11 @@ 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" });
+              sessionStorage.setItem("defaultUrl", '/menu/managePluse');
+              that.$router.push({
+                path: "/menu/managePluse",
+                query: { url: "yhgy" },
+              });
             }
           } else {
             this.$message.error("访问服务器失败!");
@@ -789,9 +795,14 @@ IF NOT EXISTS t_user_table (
                 "isMarried",
                 res.data.data.marriageSituation
               );
+              sessionStorage.setItem("defaultUrl", '/menu/intervene');
               that.$router.push({
-                path: "/mainTable",
+                path: "/menu/intervene",
+                query: { url: "rzgy" },
               });
+              // that.$router.push({
+              //   path: "/mainTable",
+              // });
             }
             //当type等于2时跳转到我的测试页面
 
@@ -801,7 +812,11 @@ 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" });
+              sessionStorage.setItem("defaultUrl", '/menu/managePluse');
+              that.$router.push({
+                path: "/menu/managePluse",
+                query: { url: "yhgy" },
+              });
             }
           } else {
             this.$message.error("访问服务器失败!");

+ 1 - 1
src/renderer/components/MainTable.vue

@@ -12,7 +12,7 @@
             <span class="main_top_wellcom">你好,{{ name }}!
               <span class="main_top_week">
                 今天星期<span>{{ week }}</span></span></span><br />
-            <span class="welcome">欢迎来到自助式心理健康评估与认知行为干预系统!</span>
+            <span class="welcome">欢迎来到自助式认知行为干预系统!</span>
             <br />
           </div>
         </el-col>

+ 20 - 20
src/renderer/components/Menu.vue

@@ -4,7 +4,7 @@
     <el-row class="main_right_height">
       <el-col :span="4" class="menu_style" style="position: relative">
         <div class="menu_title_top">
-          <span class="menu_title_top_des">心理与认知干预系统</span>
+          <span class="menu_title_top_des">自助式认知行为干预系统</span>
         </div>
         <div class="menu_feature">
           <div style="margin-left: 10%">
@@ -69,13 +69,13 @@
               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>
+          </el-menu-item> -->
           <!-- :style="[{ background: rjdh ? '' : '#ffffff' }]" -->
-          <el-menu-item
+          <!-- <el-menu-item
             index="/menu/smart1"
             v-show="userType === 1"
             @click="menuClick('rjdh')"
@@ -90,8 +90,8 @@
               :style="[{ color: rjdh ? '#ffffff' : '#0FB577' }]"
               >智能对话</span
             >
-          </el-menu-item>
-          <el-menu-item
+          </el-menu-item> -->
+          <!-- <el-menu-item
             index="/menu/evaluation"
             v-show="userType === 1"
             @click="menuClick('xlcp')"
@@ -106,8 +106,8 @@
               :style="{ color: xlcp ? '#ffffff' : '#0FB577' }"
               >心理测评</span
             >
-          </el-menu-item>
-          <el-menu-item
+          </el-menu-item> -->
+          <!-- <el-menu-item
             index="/menu/relax"
             v-show="userType === 1"
             @click="menuClick('xlfs')"
@@ -122,7 +122,7 @@
               class="menu_text_cla"
               >心理放松</span
             >
-          </el-menu-item>
+          </el-menu-item> -->
           <!-- :style="[{background:rzgy?'':'#ffffff'}]" -->
           <el-menu-item
             index="/menu/intervene"
@@ -145,7 +145,7 @@
             <span slot="title">脉搏采集</span>
           </el-menu-item> -->
           <!-- :style="{ background: swfk ? '' : '#ffffff' }" -->
-          <el-menu-item
+          <!-- <el-menu-item
             index="/menu/animation"
             v-show="userType === 1"
             @click="menuClick('swfk')"
@@ -157,7 +157,7 @@
             <span slot="title" :style="{ color: swfk ? '#ffffff' : '#0FB577' }"
               >生物反馈训练</span
             >
-          </el-menu-item>
+          </el-menu-item> -->
 
           <el-menu-item
             index="/menu/manageUser"
@@ -175,7 +175,7 @@
               >用户管理</span
             >
           </el-menu-item>
-          <el-menu-item
+          <!-- <el-menu-item
             index="/menu/manageUserScale"
             v-show="userType === 2"
             @click="menuManageClick('yhlt')"
@@ -190,8 +190,8 @@
               :style="{ color: yhlt ? '#ffffff' : '#0FB577' }"
               >用户聊天记录</span
             >
-          </el-menu-item>
-          <el-menu-item
+          </el-menu-item> -->
+          <!-- <el-menu-item
             index="/menu/manageScaleUser"
             v-show="userType === 2"
             @click="menuManageClick('yhcp')"
@@ -206,8 +206,8 @@
               :style="{ color: yhcp ? '#ffffff' : '#0FB577' }"
               >量表测评记录</span
             >
-          </el-menu-item>
-          <el-menu-item
+          </el-menu-item> -->
+          <!-- <el-menu-item
             index="/menu/manageElectrical"
             v-show="userType === 2"
             @click="menuManageClick('yhfk')"
@@ -222,7 +222,7 @@
               :style="{ color: yhfk ? '#ffffff' : '#0FB577' }"
               >生物反馈记录</span
             >
-          </el-menu-item>
+          </el-menu-item> -->
           <el-menu-item
             index="/menu/managePluse"
             v-show="userType === 2"
@@ -239,7 +239,7 @@
               >认知行为干预记录</span
             >
           </el-menu-item>
-          <el-menu-item
+          <!-- <el-menu-item
             index="/menu/manageEquipment"
             v-show="userType === 2"
             @click="menuManageClick('yhsb')"
@@ -254,7 +254,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">

+ 3 - 3
src/renderer/components/TopPage.vue

@@ -8,7 +8,7 @@
           <span
             class="top-font"
             :class="$root.topPageFlag ? 'top-font_black' : 'top-font'"
-            >&nbsp;&nbsp;自助式心理健康评估与认知行为干预系统</span
+            >&nbsp;&nbsp;自助式认知行为干预系统</span
           >
         </div> -->
       </el-col>
@@ -93,10 +93,10 @@
       <el-row>
         <el-col :span="6" style="text-align: center">
           <img width="23px" height="20px" src="../assets/logo_icon.png" />
-          <p>自助式心理健康评估与认知行为干预系统</p>
+          <p>自助式认知行为干预系统</p>
         </el-col>
         <el-col :span="18">
-          <h4>关于自助式心理健康评估与认知行为干预系统</h4>
+          <h4>关于自助式认知行为干预系统</h4>
           <!-- <p>版权所有©{{ year }}北京决明科技有限公司</p> -->
           <p>版权所有©{{ year }}</p>
           <p>

+ 1 - 1
static/loading.html

@@ -126,7 +126,7 @@
 
 <body>
     <div class="logo">&nbsp;&nbsp;<img src="./logo_icon.png"></div>
-    <p class="loadP"><span>自助式心理健康评估与认知行为干预系统</span></p>
+    <p class="loadP"><span>自助式认知行为干预系统</span></p>
     <!-- <p><div class="progressBox">
         <div class="progress"></div>
         <div class="progress_bar" style=" width: 40%" ></div>