Browse Source

修改版本,人机对话

plg 10 months ago
parent
commit
48a7ed5acf

+ 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\gydh"
+    WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\gydh"
     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\gydh"
+    WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\gydh"
     ; 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.projectGyDH",
     "directories": {
       "output": "build"
     },

File diff suppressed because it is too large
+ 506 - 382
src/main/index.js


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


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


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

@@ -479,6 +479,7 @@ export default {
     };
   },
   mounted() {
+
     this.$root.smartNum=0;
     this.$root.topPageFlag = false;
 
@@ -739,8 +740,13 @@ IF NOT EXISTS t_user_table (
                 "isMarried",
                 res.data.data.marriageSituation
               );
+              // that.$router.push({
+              //   path: "/mainTable",
+              // });
+              sessionStorage.setItem("defaultUrl", '/menu/smart1');
               that.$router.push({
-                path: "/mainTable",
+                path: "/menu/animation",
+                query: { url: "swfk" },
               });
             }
             //当type等于2时跳转到我的测试页面
@@ -751,7 +757,12 @@ 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/manageUserScale');
+              that.$router.push({
+                path: "/menu/manageUserScale",
+                query: { url: "yhlt" },
+              });
+              // that.$router.push({ path: "/mainTable" });
             }
           } else {
             this.$message.error("访问服务器失败!");
@@ -789,8 +800,13 @@ IF NOT EXISTS t_user_table (
                 "isMarried",
                 res.data.data.marriageSituation
               );
+              sessionStorage.setItem("defaultUrl", '/menu/smart1');
+              // that.$router.push({
+              //   path: "/mainTable",
+              // });
               that.$router.push({
-                path: "/mainTable",
+                path: "/menu/smart1",
+                query: { url: "rjdh" },
               });
             }
             //当type等于2时跳转到我的测试页面
@@ -801,7 +817,12 @@ 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/manageUserScale');
+              that.$router.push({
+                path: "/menu/manageUserScale",
+                query: { url: "yhlt" },
+              });
             }
           } else {
             this.$message.error("访问服务器失败!");

+ 19 - 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,11 +69,10 @@
               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
             index="/menu/smart1"
@@ -91,7 +90,7 @@
               >智能对话</span
             >
           </el-menu-item>
-          <el-menu-item
+          <!-- <el-menu-item
             index="/menu/evaluation"
             v-show="userType === 1"
             @click="menuClick('xlcp')"
@@ -106,8 +105,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,9 +121,9 @@
               class="menu_text_cla"
               >心理放松</span
             >
-          </el-menu-item>
+          </el-menu-item> -->
           <!-- :style="[{background:rzgy?'':'#ffffff'}]" -->
-          <el-menu-item
+          <!-- <el-menu-item
             index="/menu/intervene"
             v-show="userType === 1"
             @click="menuClick('rzgy')"
@@ -139,13 +138,13 @@
               class="menu_text_cla"
               >认知行为干预</span
             >
-          </el-menu-item>
+          </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> -->
           <!-- :style="{ background: swfk ? '' : '#ffffff' }" -->
-          <el-menu-item
+          <!-- <el-menu-item
             index="/menu/animation"
             v-show="userType === 1"
             @click="menuClick('swfk')"
@@ -157,7 +156,7 @@
             <span slot="title" :style="{ color: swfk ? '#ffffff' : '#0FB577' }"
               >生物反馈训练</span
             >
-          </el-menu-item>
+          </el-menu-item> -->
 
           <el-menu-item
             index="/menu/manageUser"
@@ -191,7 +190,7 @@
               >用户聊天记录</span
             >
           </el-menu-item>
-          <el-menu-item
+          <!-- <el-menu-item
             index="/menu/manageScaleUser"
             v-show="userType === 2"
             @click="menuManageClick('yhcp')"
@@ -206,8 +205,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,8 +221,8 @@
               :style="{ color: yhfk ? '#ffffff' : '#0FB577' }"
               >生物反馈记录</span
             >
-          </el-menu-item>
-          <el-menu-item
+          </el-menu-item> -->
+          <!-- <el-menu-item
             index="/menu/managePluse"
             v-show="userType === 2"
             @click="menuManageClick('yhgy')"
@@ -238,8 +237,8 @@
               :style="{ color: yhgy ? '#ffffff' : '#0FB577' }"
               >认知行为干预记录</span
             >
-          </el-menu-item>
-          <el-menu-item
+          </el-menu-item> -->
+          <!-- <el-menu-item
             index="/menu/manageEquipment"
             v-show="userType === 2"
             @click="menuManageClick('yhsb')"
@@ -254,7 +253,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">

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

@@ -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>

Some files were not shown because too many files changed in this diff