MainTable.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. <template>
  2. <div
  3. class="login_back_group_all"
  4. style="overflow-y: hidden; overflow-x: hidden"
  5. >
  6. <TopPage></TopPage>
  7. <div>
  8. <img
  9. width="100%"
  10. style="margin-top: 10px"
  11. src="../assets/newImage/main_top.png"
  12. />
  13. </div>
  14. <div
  15. class="login_back_group"
  16. style="overflow-y: hidden; overflow-x: hidden"
  17. >
  18. <el-row>
  19. <el-col :span="2"> &nbsp; </el-col>
  20. <el-col :span="22" style="margin-top: 10px">
  21. <div>
  22. <span class="main_top_wellcom"
  23. >你好,{{ name }}!
  24. <span class="main_top_week">
  25. 今天星期<span>{{ week }}</span></span
  26. ></span
  27. ><br />
  28. <span class="welcome"
  29. >欢迎来到自助式心理健康评估与认知行为干预系统!</span
  30. >
  31. <br />
  32. </div>
  33. </el-col>
  34. </el-row>
  35. <el-row class="main_middle">
  36. <el-col :span="2">&nbsp;</el-col>
  37. <el-col :span="20">
  38. <el-row :span="24" v-show="userType === 2">
  39. <div class="main_picture">
  40. <div>
  41. <img
  42. height="300px"
  43. @click="goPage('/menu/manageUser', 'yhgl')"
  44. src="../assets/newImage/main_user.png"
  45. />
  46. </div>
  47. <div>
  48. <img
  49. height="300px"
  50. @click="goPage('/menu/manageUserScale', 'yhlt')"
  51. src="../assets/newImage/main_chart.png"
  52. />
  53. </div>
  54. <div>
  55. <img
  56. height="300px"
  57. @click="goPage('/menu/manageScaleUser', 'yhcp')"
  58. src="../assets/newImage/main_scale.png"
  59. />
  60. </div>
  61. <div>
  62. <img
  63. height="300px"
  64. @click="goPage('/menu/manageElectrical', 'yhfk')"
  65. src="../assets/newImage/main_game.png"
  66. />
  67. </div>
  68. <div>
  69. <img
  70. height="300px"
  71. @click="goPage('/menu/managePluse', 'yhgy')"
  72. src="../assets/newImage/main_ganyu.png"
  73. />
  74. </div>
  75. </div>
  76. <!-- <div class="main-six-user">
  77. <div class="main-six-user-zhixin-admin">
  78. <div
  79. class="main_middle_yhgl"
  80. @click="goPage('/menu/manageUser')"
  81. >
  82. <span class="main_middle_zzdh_first"
  83. ><p class="main_middle_zzdh_first_font">用户管理</p></span
  84. >
  85. </div>
  86. <div
  87. class="main_middle_lblb"
  88. @click="goPage('/menu/manageUserScale')"
  89. >
  90. <span class="main_middle_zzdh_first"
  91. ><p class="main_middle_zzdh_first_font">
  92. 用户测试记录
  93. </p></span
  94. >
  95. </div>
  96. </div>
  97. <div class="main-six-user-zhixin-admin">
  98. <div
  99. class="main_middle_ndlb"
  100. @click="goPage('/menu/manageElectrical')"
  101. >
  102. <span class="main_middle_zzdh_first"
  103. ><p class="main_middle_zzdh_first_font">
  104. 脑电测试记录
  105. </p></span
  106. >
  107. </div>
  108. <div
  109. class="main_middle_mblb"
  110. @click="goPage('/menu/managePluse')"
  111. >
  112. <span class="main_middle_zzdh_first"
  113. ><p class="main_middle_zzdh_first_font">
  114. 脉搏测试记录
  115. </p></span
  116. >
  117. </div>
  118. </div>
  119. </div> -->
  120. </el-row>
  121. <el-row :span="24" v-show="userType === 1">
  122. <div class="main_picture">
  123. <div>
  124. <img
  125. @click="goPage('/menu/smart1', 'rjdh')"
  126. height="300px"
  127. src="../assets/newImage/main_smart.png"
  128. />
  129. </div>
  130. <div>
  131. <img
  132. @click="goPage('/menu/evaluation', 'xlcp')"
  133. height="300px"
  134. src="../assets/newImage/main_test.png"
  135. />
  136. </div>
  137. <div>
  138. <img
  139. @click="goPage('/menu/relax', 'xlfs')"
  140. height="300px"
  141. src="../assets/newImage/main_relax.png"
  142. />
  143. </div>
  144. <div>
  145. <img
  146. @click="goPage('/menu/intervene', 'rzgy')"
  147. height="300px"
  148. src="../assets/newImage/main_ganyu.png"
  149. />
  150. </div>
  151. <div>
  152. <img
  153. @click="goPage('/menu/animation', 'swfk')"
  154. height="300px"
  155. src="../assets/newImage/main_fankui.png"
  156. />
  157. </div>
  158. </div>
  159. <!--
  160. <div class="main-six-user">
  161. <div class="main-six-user-zhixin">
  162. <div
  163. class="main_middle_zzdh styleMain"
  164. @click="goPage('/menu/smart')"
  165. >
  166. <span class="main_middle_zzdh_first"
  167. ><div class="main_middle_zzdh_first_font">
  168. 智能对话
  169. </div></span
  170. >
  171. </div>
  172. <div
  173. class="main_middle_xlfs styleMain"
  174. @click="goPage('/menu/relax')"
  175. >
  176. <span class="main_middle_zzdh_first"
  177. ><div class="main_middle_zzdh_first_font">
  178. 心理放松
  179. </div></span
  180. >
  181. </div>
  182. </div>
  183. <div class="main-six-user-xinlin">
  184. <div
  185. class="main_middle_xlcp styleMain"
  186. @click="goPage('/menu/evaluation')"
  187. >
  188. <span class="main_middle_zzdh_first"
  189. ><div class="main_middle_zzdh_first_font">
  190. 心理测评
  191. </div></span
  192. >
  193. </div>
  194. </div>
  195. <div class="main-six-user-mainaosheng" style="">
  196. <div
  197. style="width: 410px; display: inline-block"
  198. class="main_middle_mbcj styleMain"
  199. @click="goPage('/menu/pulse')"
  200. >
  201. <span class="main_middle_zzdh_first"
  202. ><p class="main_middle_zzdh_first_font">脉搏采集</p></span
  203. >
  204. </div>
  205. <div
  206. style="width: 190px; display: inline-block"
  207. class="main_middle_ndcj styleMain"
  208. @click="goPage('/menu/electrical')"
  209. >
  210. <span class="main_middle_zzdh_first"
  211. ><p class="main_middle_zzdh_first_font">脑电采集</p></span
  212. >
  213. </div>
  214. <div
  215. style="width: 190px; display: inline-block"
  216. class="main_middle_swfkxl styleMain"
  217. @click="goPage('/menu/animation')"
  218. >
  219. <span class="main_middle_zzdh_first"
  220. ><p class="main_middle_zzdh_first_font">
  221. 生物反馈训练
  222. </p></span
  223. >
  224. </div>
  225. </div>
  226. </div> -->
  227. </el-row>
  228. </el-col>
  229. <el-col :span="2">&nbsp;</el-col>
  230. </el-row>
  231. <el-footer class="buttLlo1">
  232. <div class="menu_main_exit">
  233. <img
  234. @click="userExit"
  235. class="imgStyle"
  236. align="center"
  237. src="../assets/newImage/exit1.png"
  238. />&nbsp;&nbsp;
  239. <span class="exitLogin" @click="userExit" style="font-size: 14px"
  240. >退出登录</span
  241. >
  242. </div></el-footer
  243. >
  244. <el-footer class="buttLlo">Copyright© 2024</el-footer>
  245. <!-- <el-footer class="buttLlo">Copyright© 北京决明科技有限公司</el-footer> -->
  246. </div>
  247. </div>
  248. </template>
  249. <script>
  250. export default {
  251. data() {
  252. return {
  253. userType: 0,
  254. name: sessionStorage.getItem("name"),
  255. week: this.getWeek(new Date().getDay()),
  256. mainList: [
  257. { name: "智能对话", url: "/smart", index: 1 },
  258. { name: "心理测评", url: "/evaluation", index: 2 },
  259. { name: "心理放松", url: "/relax", index: 3 },
  260. { name: "脑电采集", url: "/electrical", index: 4 },
  261. { name: "脉搏采集", url: "/pulse", index: 5 },
  262. { name: "生物反馈训练", url: "/animation", index: 6 },
  263. ],
  264. };
  265. },
  266. mounted() {
  267. this.$root.topPageFlag = false;
  268. this.userType = sessionStorage.getItem("userType");
  269. this.userType = parseInt(this.userType);
  270. },
  271. methods: {
  272. userExit() {
  273. this.$router.push("/");
  274. // ipcRenderer.removeAllListeners();
  275. // Utils.$off();
  276. // this.desTimer();
  277. },
  278. getWeek(val) {
  279. let week = "";
  280. if (val === 0) {
  281. week = "日";
  282. }
  283. if (val === 1) {
  284. week = "一";
  285. }
  286. if (val === 2) {
  287. week = "二";
  288. }
  289. if (val === 3) {
  290. week = "三";
  291. }
  292. if (val === 4) {
  293. week = "四";
  294. }
  295. if (val === 5) {
  296. week = "五";
  297. }
  298. if (val === 6) {
  299. week = "六";
  300. }
  301. return week;
  302. },
  303. goPage(url, val) {
  304. sessionStorage.setItem("defaultUrl", url);
  305. this.$router.push({ path: url, query: { url: val } });
  306. //this.$router.push({ path: url });
  307. },
  308. },
  309. };
  310. </script>
  311. <style scoped>
  312. .mainTable-top {
  313. margin-top: 5%;
  314. }
  315. .mainTable-top-two {
  316. margin-top: 10%;
  317. }
  318. .mainTable-tab {
  319. cursor: pointer;
  320. margin-left: 50px;
  321. margin-right: 50px;
  322. border-radius: 5px;
  323. border: 1px solid #000000;
  324. text-align: center;
  325. height: 150px;
  326. margin-bottom: 100px;
  327. }
  328. .mainTable-tab-p {
  329. padding-top: 40px;
  330. }
  331. .login_back_group {
  332. width: 100vw;
  333. /* height: 95vh; */
  334. /* padding-top: 20px; */
  335. /* background: url(../assets/newImage/login_bg.png) no-repeat;
  336. background-size: cover; */
  337. }
  338. .login_back_group_all {
  339. height: 100vh;
  340. /* width: 100vw;
  341. height: 95vh; */
  342. /* padding-top: 20px; */
  343. background: url(../assets/newImage/login_bg1.png) no-repeat;
  344. background-size: cover;
  345. }
  346. .main_top_wellcom {
  347. font-size: 30px;
  348. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  349. font-weight: 500;
  350. color: #ffffff;
  351. line-height: 0px;
  352. margin-left: 100px;
  353. }
  354. .main_top_week {
  355. font-size: 16px;
  356. font-family: Source Han Sans CN-ExtraLight, Source Han Sans CN;
  357. font-weight: 200;
  358. color: #ffffff;
  359. }
  360. .main_middle {
  361. margin-top: 80px;
  362. }
  363. .main_middle_ndlb {
  364. background: url(../assets/newImage/lbbgck_bt.png) no-repeat;
  365. background-size: cover;
  366. height: 190px;
  367. margin-left: 15px;
  368. margin-right: 15px;
  369. border-radius: 4px;
  370. cursor: pointer;
  371. }
  372. .main_middle_mblb {
  373. background: url(../assets/newImage/home_mbcj.png) no-repeat;
  374. background-size: cover;
  375. height: 190px;
  376. margin-left: 15px;
  377. margin-right: 15px;
  378. border-radius: 4px;
  379. cursor: pointer;
  380. }
  381. .main_middle_lblb {
  382. background: url(../assets/newImage/xl2.png) no-repeat;
  383. background-size: cover;
  384. height: 190px;
  385. margin-left: 15px;
  386. margin-right: 15px;
  387. border-radius: 4px;
  388. cursor: pointer;
  389. }
  390. .main_middle_yhgl {
  391. background: url(../assets/newImage/xl1.png) no-repeat;
  392. background-size: cover;
  393. height: 190px;
  394. margin-left: 15px;
  395. margin-right: 15px;
  396. border-radius: 4px;
  397. cursor: pointer;
  398. }
  399. .main_middle_zzdh {
  400. background: url(../assets/newImage/home_zndh.png) no-repeat;
  401. background-size: cover;
  402. height: 190px;
  403. margin-left: 15px;
  404. margin-right: 15px;
  405. border-radius: 4px;
  406. cursor: pointer;
  407. }
  408. .main_middle_xlfs {
  409. background: url(../assets/newImage/home_xlfs.png) no-repeat;
  410. background-size: cover;
  411. height: 190px;
  412. margin-left: 15px;
  413. margin-right: 15px;
  414. border-radius: 4px;
  415. cursor: pointer;
  416. }
  417. .main_middle_zzdh_first {
  418. font-size: 20px;
  419. color: #ffffff;
  420. }
  421. .main_middle_zzdh_first_font {
  422. padding-top: 20px;
  423. margin-left: 20px;
  424. }
  425. .main_middle_xlcp {
  426. background: url(../assets/newImage/home_xlcp.png) no-repeat;
  427. background-size: cover;
  428. height: 400px;
  429. margin-left: 15px;
  430. margin-right: 15px;
  431. border-radius: 4px;
  432. cursor: pointer;
  433. }
  434. .main_middle_mbcj {
  435. background: url(../assets/newImage/home_mbcj.png) no-repeat;
  436. background-size: cover;
  437. height: 190px;
  438. margin-left: 15px;
  439. margin-right: 15px;
  440. border-radius: 4px;
  441. cursor: pointer;
  442. }
  443. .main_middle_ndcj {
  444. background: url(../assets/newImage/home_ndcj.png) no-repeat;
  445. background-size: cover;
  446. height: 190px;
  447. margin-left: 15px;
  448. margin-right: 15px;
  449. border-radius: 4px;
  450. cursor: pointer;
  451. }
  452. .main_middle_swfkxl {
  453. background: url(../assets/newImage/home_swfkxl.png) no-repeat;
  454. background-size: cover;
  455. height: 190px;
  456. margin-left: 10px;
  457. margin-right: 15px;
  458. border-radius: 4px;
  459. cursor: pointer;
  460. }
  461. .class2 {
  462. position: relative;
  463. box-shadow: rgba(0, 0, 0, 0.6) 0 0 0 100vh;
  464. }
  465. .styleMain {
  466. width: 200px;
  467. margin-bottom: 20px;
  468. }
  469. .styleMainTop {
  470. width: 400px;
  471. }
  472. .main-six-user {
  473. display: inline-flex;
  474. width: 100%;
  475. justify-content: center;
  476. }
  477. .main-six-user-zhixin {
  478. width: 200px;
  479. display: inline-block;
  480. margin-right: 40px;
  481. }
  482. .main-six-user-zhixin-admin {
  483. width: 400px;
  484. display: inline-block;
  485. /* margin-right: 40px; */
  486. }
  487. .main-six-user-xinlin {
  488. width: 200px;
  489. display: inline-block;
  490. margin-right: 40px;
  491. }
  492. .main-six-user-mainaosheng {
  493. width: 440px;
  494. display: inline-block;
  495. }
  496. .welcome {
  497. font-family: Source Han Sans CN-ExtraLight, Source Han Sans CN;
  498. font-weight: 200;
  499. color: #ffffff;
  500. line-height: 0px;
  501. letter-spacing: 2px;
  502. margin-left: 100px;
  503. display: flex;
  504. margin-top: 30px;
  505. }
  506. .main_picture {
  507. display: flex;
  508. flex-direction: row;
  509. justify-content: center;
  510. }
  511. .buttLlo {
  512. color: #ffffff;
  513. text-align: center;
  514. left: 0px;
  515. right: 0px;
  516. font-size: 14px;
  517. bottom: 0px;
  518. position: fixed;
  519. }
  520. .buttLlo1 {
  521. color: #ffffff;
  522. text-align: right;
  523. left: 0px;
  524. right: 40px;
  525. font-size: 14px;
  526. z-index: 1000;
  527. bottom: 0px;
  528. position: fixed;
  529. }
  530. .main_exit_class {
  531. position: fixed;
  532. z-index: 100;
  533. }
  534. </style>