소스 검색

新增版本 及仅仅显示生物反馈及相关用户管理及设备管理

plg 11 달 전
부모
커밋
0f163bb1dc

+ 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\projectSWFK"
+    WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\projectFK"
     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\projectSWFK"
+    WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\projectSWFK"
     ; CreateDirectory $%USERPROFILE%\*mentalEfficiencyData*
     ; CopyFiles $INSTDIR\user.config $%USERPROFILE%\*mentalEfficiencyData*
     ${If} ${FileExists} $%USERPROFILE%\*mentalEfficiencyData*

+ 4 - 4
package.json

@@ -1,6 +1,6 @@
 {
-  "name": "projectGy",
-  "version": "1.3.5",
+  "name": "projectFK",
+  "version": "1.3.6",
   "author": "",
   "description": "",
   "license": null,
@@ -34,8 +34,8 @@
       "license": "build/script/license.txt",
       "deleteAppDataOnUninstall": false
     },
-    "productName": "自助式心理健康评估与认知行为干预系统",
-    "appId": "com.examplesingletask.yourapp.projectGy",
+    "productName": "生物反馈精神状态干预系统",
+    "appId": "com.examplesingletask.yourapp.projectFK",
     "directories": {
       "output": "build"
     },

+ 1 - 1
src/index.ejs

@@ -3,7 +3,7 @@
 
 <head>
   <meta charset="utf-8">
-  <title>心理效能增强系统</title>
+  <title>生物反馈精神状态干预系统</title>
   <% if (htmlWebpackPlugin.options.nodeModules) { %>
     <!-- Add `node_modules/` to global paths so `require` works properly in development -->
     <script>

+ 43 - 65
src/renderer/components/LoginPage.vue

@@ -20,21 +20,14 @@
               >
                 <el-col
                   :span="24"
-                  style="
-                    padding-left: 0px;
-                    padding-right: 0px;
-                    border-radius: 12px;
-                  "
+                  style="padding-left: 0px; padding-right: 0px; border-radius: 12px"
                 >
                 </el-col>
                 <el-col :span="24" style="margin-top: 30px">
                   <el-row :span="24">
                     <el-col :span="4">&nbsp;</el-col>
                     <el-col :span="16">
-                      <div
-                        class="padding-logo center-logo"
-                        style="margin-top: 30px"
-                      >
+                      <div class="padding-logo center-logo" style="margin-top: 30px">
                         <el-select
                           :popper-append-to-body="false"
                           class="login_select"
@@ -75,10 +68,7 @@
                     </el-col>
                     <el-col :span="4">&nbsp;</el-col>
                   </el-row>
-                  <el-row
-                    :span="24"
-                    style="margin-top: 5px; margin-bottom: 10px"
-                  >
+                  <el-row :span="24" style="margin-top: 5px; margin-bottom: 10px">
                     <el-col :span="4">&nbsp;</el-col>
                     <el-col :span="16" v-show="userType === '1'">
                       <div @click="registerFlag = false">
@@ -135,19 +125,13 @@
           <div class="registerVertical">
             <div class="registerTitle">昵称</div>
             <el-form-item label="" class="registerInput" prop="name">
-              <el-input
-                v-model="ruleForm.name"
-                placeholder="请输入昵称"
-              ></el-input>
+              <el-input v-model="ruleForm.name" placeholder="请输入昵称"></el-input>
             </el-form-item>
           </div>
           <div class="registerVertical">
             <div class="registerTitle">编号</div>
             <el-form-item label="" class="registerInput" prop="num">
-              <el-input
-                v-model="ruleForm.num"
-                placeholder="请输入编号"
-              ></el-input>
+              <el-input v-model="ruleForm.num" placeholder="请输入编号"></el-input>
             </el-form-item>
           </div>
         </div>
@@ -155,19 +139,13 @@
           <div class="registerVertical">
             <div class="registerTitle">年龄</div>
             <el-form-item label="" class="registerInput" prop="age">
-              <el-input
-                v-model="ruleForm.age"
-                placeholder="请输入年龄"
-              ></el-input>
+              <el-input v-model="ruleForm.age" placeholder="请输入年龄"></el-input>
             </el-form-item>
           </div>
           <div class="registerVertical">
             <div class="registerTitle">单位</div>
             <el-form-item label="" class="registerInput" prop="unit">
-              <el-input
-                v-model="ruleForm.unit"
-                placeholder="请输入单位"
-              ></el-input>
+              <el-input v-model="ruleForm.unit" placeholder="请输入单位"></el-input>
             </el-form-item>
           </div>
         </div>
@@ -175,11 +153,7 @@
           <div class="registerVertical">
             <div class="registerTitle">性别</div>
             <el-form-item label="" class="registerInput" prop="sex">
-              <el-select
-                style="width: 100%"
-                v-model="ruleForm.sex"
-                placeholder="请选择"
-              >
+              <el-select style="width: 100%" v-model="ruleForm.sex" placeholder="请选择">
                 <el-option label="女" value="0"></el-option>
                 <el-option label="男" value="1"></el-option>
               </el-select>
@@ -232,12 +206,8 @@
         </div>
         <div class="registerContent">
           <div class="registerRow">
-            <el-button class="registerLoginCancle" @click="handleClose"
-              >取 消</el-button
-            >
-            <el-button
-              class="registerLoginCancle"
-              @click="resetForm('ruleForm')"
+            <el-button class="registerLoginCancle" @click="handleClose">取 消</el-button>
+            <el-button class="registerLoginCancle" @click="resetForm('ruleForm')"
               >重 置</el-button
             >
           </div>
@@ -299,18 +269,12 @@
             </el-col>
             <el-col :span="12">
               <el-form-item label="密码" prop="userPassword">
-                <el-input
-                  v-model="ruleForm.userPassword"
-                  type="password"
-                ></el-input>
+                <el-input v-model="ruleForm.userPassword" type="password"></el-input>
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="确认密码" prop="userRePassword">
-                <el-input
-                  v-model="ruleForm.userRePassword"
-                  type="password"
-                ></el-input>
+                <el-input v-model="ruleForm.userRePassword" type="password"></el-input>
               </el-form-item>
             </el-col>
             <el-col :span="12" class="login_back_group1">
@@ -332,9 +296,7 @@
       <span slot="footer" class="dialog-footer">
         <el-button @click="handleClose">取 消</el-button>
         <el-button @click="resetForm('ruleForm')">重 置</el-button>
-        <el-button type="primary" @click="submitFormV2('ruleForm')"
-          >确 定</el-button
-        >
+        <el-button type="primary" @click="submitFormV2('ruleForm')">确 定</el-button>
       </span>
     </el-dialog>
   </div>
@@ -479,7 +441,7 @@ export default {
     };
   },
   mounted() {
-    this.$root.smartNum=0;
+    this.$root.smartNum = 0;
     this.$root.topPageFlag = false;
 
     this.dirpath = "C:\\DataPilot";
@@ -735,12 +697,13 @@ IF NOT EXISTS t_user_table (
               sessionStorage.setItem("num", account);
               sessionStorage.setItem("pass", that.$md5(password));
               sessionStorage.setItem("userType", "1");
-              sessionStorage.setItem(
-                "isMarried",
-                res.data.data.marriageSituation
-              );
+              sessionStorage.setItem("isMarried", res.data.data.marriageSituation);
+              // that.$router.push({
+              //   path: "/mainTable",
+              // });
               that.$router.push({
-                path: "/mainTable",
+                path: "/menu/animation",
+                query: { url: "swfk" },
               });
             }
             //当type等于2时跳转到我的测试页面
@@ -751,7 +714,13 @@ 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" });
+              //menu/manageElectrical
+              that.$router.push({
+                path: "/menu/manageElectrical",
+                query: { url: "yhfk" },
+              });
+              sessionStorage.setItem("defaultUrl", '/menu/manageElectrical');
             }
           } else {
             this.$message.error("访问服务器失败!");
@@ -785,12 +754,15 @@ IF NOT EXISTS t_user_table (
               sessionStorage.setItem("num", that.account);
               sessionStorage.setItem("pass", that.$md5(that.password));
               sessionStorage.setItem("userType", "1");
-              sessionStorage.setItem(
-                "isMarried",
-                res.data.data.marriageSituation
-              );
+              sessionStorage.setItem("isMarried", res.data.data.marriageSituation);
+              // that.$router.push({
+              //   path: "/mainTable",
+              // });
+              // '/menu/animation', 'swfk'
+              // path: url, query: { url: val } }
               that.$router.push({
-                path: "/mainTable",
+                path: "/menu/animation",
+                query: { url: "swfk" },
               });
             }
             //当type等于2时跳转到我的测试页面
@@ -801,7 +773,13 @@ 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" });
+              // /menu/manageElectrical', 'yhfk
+              // that.$router.push({ path: "/mainTable" });
+              that.$router.push({
+                path: "/menu/manageElectrical",
+                query: { url: "yhfk" },
+              });
+              sessionStorage.setItem("defaultUrl", '/menu/manageElectrical');
             }
           } else {
             this.$message.error("访问服务器失败!");
@@ -1122,4 +1100,4 @@ IF NOT EXISTS t_user_table (
 .registerInput >>> .el-input__inner {
   color: #1d55ff;
 }
-</style>
+</style>

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

+ 34 - 93
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%">
@@ -34,7 +34,6 @@
             </div>
           </div>
         </div>
-        <!-- :default-active="defaultUrl"           :default-active="$route.path"-->
         <el-menu
           :default-active="defaultUrl"
           class="el-menu-vertical-demo"
@@ -69,21 +68,17 @@
               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')"
           >
-            <img
-              class="menu_icon_cla"
-              :src="require('@/assets/menuIcon/' + rjdhUrl)"
-            />
+            <img class="menu_icon_cla" :src="require('@/assets/menuIcon/' + rjdhUrl)" />
             <span
               slot="title"
               class="menu_text_span"
@@ -96,14 +91,8 @@
             v-show="userType === 1"
             @click="menuClick('xlcp')"
           >
-            <img
-              class="menu_icon_cla"
-              :src="require('@/assets/menuIcon/' + xlcpUrl)"
-            />
-            <span
-              slot="title"
-              class=""
-              :style="{ color: xlcp ? '#ffffff' : '#0FB577' }"
+            <img class="menu_icon_cla" :src="require('@/assets/menuIcon/' + xlcpUrl)" />
+            <span slot="title" class="" :style="{ color: xlcp ? '#ffffff' : '#0FB577' }"
               >心理测评</span
             >
           </el-menu-item>
@@ -112,10 +101,7 @@
             v-show="userType === 1"
             @click="menuClick('xlfs')"
           >
-            <img
-              class="menu_icon_cla"
-              :src="require('@/assets/menuIcon/' + xlfsUrl)"
-            />
+            <img class="menu_icon_cla" :src="require('@/assets/menuIcon/' + xlfsUrl)" />
             <span
               slot="title"
               :style="{ color: xlfs ? '#ffffff' : '#0FB577' }"
@@ -123,37 +109,26 @@
               >心理放松</span
             >
           </el-menu-item>
-          <!-- :style="[{background:rzgy?'':'#ffffff'}]" -->
+
           <el-menu-item
             index="/menu/intervene"
             v-show="userType === 1"
             @click="menuClick('rzgy')"
           >
-            <img
-              class="menu_icon_cla"
-              :src="require('@/assets/menuIcon/' + rzgyUrl)"
-            />
+            <img class="menu_icon_cla" :src="require('@/assets/menuIcon/' + rzgyUrl)" />
             <span
               slot="title"
               :style="[{ color: rzgy ? '#ffffff' : '#0FB577' }]"
               class="menu_text_cla"
               >认知行为干预</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> -->
-          <!-- :style="{ background: swfk ? '' : '#ffffff' }" -->
           <el-menu-item
             index="/menu/animation"
             v-show="userType === 1"
             @click="menuClick('swfk')"
           >
-            <img
-              class="menu_icon_cla"
-              :src="require('@/assets/menuIcon/' + swfkUrl)"
-            />
+            <img class="menu_icon_cla" :src="require('@/assets/menuIcon/' + swfkUrl)" />
             <span slot="title" :style="{ color: swfk ? '#ffffff' : '#0FB577' }"
               >生物反馈训练</span
             >
@@ -164,10 +139,7 @@
             v-show="userType === 2"
             @click="menuManageClick('yhgl')"
           >
-            <img
-              class="menu_icon_cla"
-              :src="require('@/assets/menuIcon/' + yhglUrl)"
-            />
+            <img class="menu_icon_cla" :src="require('@/assets/menuIcon/' + yhglUrl)" />
             <span
               slot="title"
               class="menu_text_cla"
@@ -175,15 +147,12 @@
               >用户管理</span
             >
           </el-menu-item>
-          <el-menu-item
+          <!--   <el-menu-item
             index="/menu/manageUserScale"
             v-show="userType === 2"
             @click="menuManageClick('yhlt')"
           >
-            <img
-              class="menu_icon_cla"
-              :src="require('@/assets/menuIcon/' + yhltUrl)"
-            />
+            <img class="menu_icon_cla" :src="require('@/assets/menuIcon/' + yhltUrl)" />
             <span
               slot="title"
               class="menu_text_cla"
@@ -196,26 +165,20 @@
             v-show="userType === 2"
             @click="menuManageClick('yhcp')"
           >
-            <img
-              class="menu_icon_cla"
-              :src="require('@/assets/menuIcon/' + yhcpUrl)"
-            />
+            <img class="menu_icon_cla" :src="require('@/assets/menuIcon/' + yhcpUrl)" />
             <span
               slot="title"
               class="menu_text_cla"
               :style="{ color: yhcp ? '#ffffff' : '#0FB577' }"
               >量表测评记录</span
             >
-          </el-menu-item>
+          </el-menu-item> -->
           <el-menu-item
             index="/menu/manageElectrical"
             v-show="userType === 2"
             @click="menuManageClick('yhfk')"
           >
-            <img
-              class="menu_icon_cla"
-              :src="require('@/assets/menuIcon/' + yhfkUrl)"
-            />
+            <img class="menu_icon_cla" :src="require('@/assets/menuIcon/' + yhfkUrl)" />
             <span
               slot="title"
               class="menu_text_cla"
@@ -223,31 +186,25 @@
               >生物反馈记录</span
             >
           </el-menu-item>
-          <el-menu-item
+          <!-- <el-menu-item
             index="/menu/managePluse"
             v-show="userType === 2"
             @click="menuManageClick('yhgy')"
           >
-            <img
-              class="menu_icon_cla"
-              :src="require('@/assets/menuIcon/' + yhgyUrl)"
-            />
+            <img class="menu_icon_cla" :src="require('@/assets/menuIcon/' + yhgyUrl)" />
             <span
               slot="title"
               class="menu_text_cla"
               :style="{ color: yhgy ? '#ffffff' : '#0FB577' }"
               >认知行为干预记录</span
             >
-          </el-menu-item>
+          </el-menu-item> -->
           <el-menu-item
             index="/menu/manageEquipment"
             v-show="userType === 2"
             @click="menuManageClick('yhsb')"
           >
-            <img
-              class="menu_icon_cla"
-              :src="require('@/assets/menuIcon/' + yhsbUrl)"
-            />
+            <img class="menu_icon_cla" :src="require('@/assets/menuIcon/' + yhsbUrl)" />
             <span
               slot="title"
               class="menu_text_cla"
@@ -272,12 +229,7 @@
         <!-- <div class="foot_main_menu">&nbsp;</div> -->
       </el-col>
       <el-col
-        style="
-          height: 100vh;
-          overflow-y: no;
-          overflow-x: no;
-          position: relative;
-        "
+        style="height: 100vh; overflow-y: no; overflow-x: no; position: relative"
         :span="20"
       >
         <div class="menu_left_new">
@@ -296,12 +248,7 @@
       </el-col>
     </el-row>
 
-    <el-dialog
-      title="个人中心"
-      :visible.sync="centerDialogPass"
-      width="45%"
-      center
-    >
+    <el-dialog title="个人中心" :visible.sync="centerDialogPass" width="45%" center>
       <el-tabs type="border-card">
         <el-tab-pane label="个人信息">
           <div>
@@ -407,9 +354,7 @@
             </el-form>
             <span slot="footer" class="updatePassword">
               <el-button @click="centerDialogPass = false">取 消</el-button>
-              <el-button type="primary" @click="submitForm('ruleForm')"
-                >确 定</el-button
-              >
+              <el-button type="primary" @click="submitForm('ruleForm')">确 定</el-button>
             </span>
           </div>
         </el-tab-pane>
@@ -529,13 +474,9 @@ export default {
         checkPass: "",
       },
       rules: {
-        oldPass: [
-          { validator: validateOldPass, trigger: "blur", required: true },
-        ],
+        oldPass: [{ validator: validateOldPass, trigger: "blur", required: true }],
         pass: [{ validator: validatePass, trigger: "blur", required: true }],
-        checkPass: [
-          { validator: validateCheckPass, trigger: "blur", required: true },
-        ],
+        checkPass: [{ validator: validateCheckPass, trigger: "blur", required: true }],
       },
       ruleUserForm: {
         name: "",
@@ -584,10 +525,10 @@ export default {
       },
     };
   },
-  watch:{
-    $route(){
+  watch: {
+    $route() {
       this.setCurrentRoute();
-    }
+    },
   },
   mounted() {
     this.acount = sessionStorage.getItem("num");
@@ -604,13 +545,13 @@ export default {
     //根据用户编号查询用户信息
   },
   methods: {
-    setCurrentRoute(){
+    setCurrentRoute() {
       // console.log(this.$route.path)
       // this.defaultUrl=this.$route.path;
       // /menu/treatDepression
-      if(this.$route.path=='/menu/treatDepression'){
-        console.log('1234567')
-        this.defaultUrl= '/menu/intervene'
+      if (this.$route.path == "/menu/treatDepression") {
+        console.log("1234567");
+        this.defaultUrl = "/menu/intervene";
       }
     },
     menuManageClick(val) {
@@ -1085,4 +1026,4 @@ ul {
   display: flex;
   justify-content: center;
 }
-</style>
+</style>

+ 4 - 4
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>
@@ -107,9 +107,9 @@
             本计算机程序受著作权法和国际公约的保护,未经授权擅自复制或传播本程序的部分或全部,
             可能受到严厉的民事及刑事制裁,并将在法律许可的范围内受到最大可能的起诉.
           </p>
-          <p><span>Version:</span> 1.3.5</p>
+          <p><span>Version:</span> 1.3.6</p>
           <p><span>Build:</span>#900ae1a50e</p>
-          <p><span>Build on:</span>2024/05/10</p>
+          <p><span>Build on:</span>2024/05/17</p>
           <p><span>Windows:</span>{{ windowsVersion }}</p>
         </el-col>
       </el-row>

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