ContainerSys.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818
  1. <template>
  2. <el-container>
  3. <el-header class="shadow-menu">
  4. <el-row class="admin-header-content">
  5. <el-col :span="12" >
  6. <div class="admin-logo-content">
  7. <img src="../../assets/manage/manage_logo.png" alt="" />
  8. </div>
  9. </el-col>
  10. <!--<el-col :offset="15" :span="1">-->
  11. <!--<div class="admin-head-content" key="large">-->
  12. <!--<el-avatar :size="size" :src="circleUrl"></el-avatar>-->
  13. <!--</div>-->
  14. <!--</el-col>-->
  15. <el-col :span="12" class="just-right">
  16. <el-menu
  17. :default-active="activeIndex"
  18. class="el-menu-demo"
  19. mode="horizontal"
  20. background-color="#00CDDD"
  21. text-color="#fff"
  22. active-text-color="#fff"
  23. >
  24. <el-submenu index="2" class="rightExit">
  25. <template slot="title" :size="size" :src="circleUrl">
  26. {{ Name }}
  27. </template>
  28. <el-menu-item index="2-1" @click="escape()">退出</el-menu-item>
  29. <el-menu-item index="2-1" @click="changePwd()">修改密码</el-menu-item>
  30. </el-submenu>
  31. </el-menu>
  32. </el-col>
  33. </el-row>
  34. </el-header>
  35. <el-container class="main-container">
  36. <el-aside style="width: auto">
  37. <el-menu
  38. class="el-menu-vertical-demo shadow-menu aside-menu"
  39. :router="true"
  40. :default-active=" menuActive || active"
  41. :collapse="isCollapse"
  42. text-color="#333"
  43. active-text-color="#fff"
  44. @select="selectMenu"
  45. >
  46. <el-submenu
  47. v-for="item in menuList"
  48. :key="item.id"
  49. :index="item.path"
  50. v-if="item.child && item.child.length && item.showItem > 0"
  51. >
  52. <template slot="title">
  53. <i :class="item.icon"></i>
  54. <span>{{ item.name }}</span>
  55. </template>
  56. <el-menu-item-group>
  57. <el-menu-item
  58. v-for="el in item.child"
  59. :key="el.id"
  60. :index="el.path"
  61. v-if="el.showItem"
  62. >
  63. <span style="margin-left: 10px">{{ el.name }}</span>
  64. </el-menu-item>
  65. </el-menu-item-group>
  66. </el-submenu>
  67. <el-menu-item v-else-if="item.showItem" :index="item.path">
  68. <i :class="item.icon"></i>
  69. <span slot="title">{{ item.name }}</span>
  70. </el-menu-item>
  71. </el-menu>
  72. </el-aside>
  73. <el-container>
  74. <!--<el-header class="shadow-menu">-->
  75. <!--<el-menu-->
  76. <!--:default-active="activeIndex"-->
  77. <!--class="el-menu-demo"-->
  78. <!--mode="horizontal"-->
  79. <!--background-color="#545c64"-->
  80. <!--text-color="#fff"-->
  81. <!--active-text-color="#ffd04b"-->
  82. <!--&gt;-->
  83. <!--<el-radio-group-->
  84. <!--v-model="isCollapse"-->
  85. <!--class="top-menu-control"-->
  86. <!--v-on:click="changeMenu"-->
  87. <!--&gt;-->
  88. <!--<el-menu-item index="1" v-on:click="changeMenu"-->
  89. <!--&gt;<i class="el-icon-s-fold" style="color: #ffffff"></i-->
  90. <!--&gt;</el-menu-item>-->
  91. <!--</el-radio-group>-->
  92. <!---->
  93. <!--<el-submenu index="2" class="rightExit">-->
  94. <!--<template slot="title" :size="size" :src="circleUrl">{{-->
  95. <!--Name-->
  96. <!--}}</template>-->
  97. <!--<el-menu-item index="2-1" @click="escape()">退出</el-menu-item>-->
  98. <!--<el-menu-item index="2-1" @click="changePwd()"-->
  99. <!--&gt;修改密码</el-menu-item-->
  100. <!--&gt;-->
  101. <!--</el-submenu>-->
  102. <!--</el-menu>-->
  103. <!--</el-header>-->
  104. <el-header class="main-header">
  105. <div class="menu-hide" @click="changeMenu">
  106. <i class="el-icon-s-fold" style="color: #000"></i>
  107. </div>
  108. <el-breadcrumb class="admin-breadcrumb" separator="/">
  109. <el-breadcrumb-item>{{ crumbParent }}</el-breadcrumb-item>
  110. <el-breadcrumb-item v-if="crumbChild">
  111. {{ crumbChild }}
  112. </el-breadcrumb-item>
  113. <el-breadcrumb-item v-if="sacleListName"> {{sacleListName}}</el-breadcrumb-item>
  114. </el-breadcrumb>
  115. </el-header>
  116. <el-main class="el-mains" style="background-color: #f5f5f5">
  117. <transition name="fade" mode="out-in">
  118. <router-view></router-view>
  119. </transition>
  120. </el-main>
  121. </el-container>
  122. </el-container>
  123. <el-footer style='padding-left:0;padding-right:0'><Footer /></el-footer>
  124. <!---lxh-修改密码-->
  125. <el-dialog title="修改密码" :visible.sync="dialogVisible" :close-on-click-modal="false" width="40%">
  126. <div>
  127. <el-form
  128. :model="ruleForm"
  129. :rules="rules"
  130. ref="ruleForm"
  131. label-width="150px"
  132. class="demo-ruleForm"
  133. >
  134. <el-form-item label="请输入旧密码" prop="oldpass">
  135. <el-input
  136. type="password"
  137. v-model="ruleForm.oldpass"
  138. autocomplete="off"
  139. />
  140. </el-form-item>
  141. <el-form-item label="请输入新密码" prop="pass">
  142. <el-input
  143. type="password"
  144. v-model="ruleForm.pass"
  145. autocomplete="off"
  146. />
  147. </el-form-item>
  148. <el-form-item label="确认新密码" prop="checkPass">
  149. <el-input
  150. type="password"
  151. v-model="ruleForm.checkPass"
  152. autocomplete="off"
  153. />
  154. </el-form-item>
  155. <el-form-item>
  156. <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
  157. <el-button @click="resetForm('ruleForm')">重置</el-button>
  158. </el-form-item>
  159. </el-form>
  160. </div>
  161. </el-dialog>
  162. </el-container>
  163. </template>
  164. <script>
  165. import {mapGetters,mapActions} from "vuex"
  166. export default {
  167. name: "ContainerSys",
  168. computed: {
  169. ...mapGetters(['sacleListName']),
  170. ...mapGetters(['menuActive']),
  171. },
  172. data() {
  173. var systemVersion = process.env.VUE_APP_VERSION;
  174. //修改密码***
  175. var validatePassOld = (rule, value, callback) => {
  176. // if (value === "") {
  177. // callback(new Error("请输入密码"));
  178. // } else {
  179. // let juPassword = /^(?=.*\d)(?=.*[a-zA-Z])(?=.*[~!@#$%^&*])[\da-zA-Z~!@#$%^&*]{8,16}$/;
  180. // if (!juPassword.test(this.ruleForm.oldpass)) {
  181. // callback(new Error("格式为数字+英文字母+特殊字符(~!@#$%^&*)8-16位"));
  182. // } else {
  183. // callback();
  184. // }
  185. // }
  186. if (value === "") {
  187. callback(new Error("请输入旧密码"));
  188. } else {
  189. if (value.length < 6 || value.length > 18) {
  190. callback(new Error("密码长度需在6~18位之间"));
  191. } else {
  192. this.$refs.ruleForm.validateField("pass");
  193. }
  194. callback();
  195. }
  196. };
  197. var validatePass = (rule, value, callback) => {
  198. // if (value === "") {
  199. // callback(new Error("请输入密码"));
  200. // } else {
  201. // let juPassword = /^(?=.*\d)(?=.*[a-zA-Z])(?=.*[~!@#$%^&*])[\da-zA-Z~!@#$%^&*]{8,16}$/;
  202. // if (!juPassword.test(this.ruleForm.pass)) {
  203. // callback(new Error("格式为数字+英文字母+特殊字符(~!@#$%^&*)8-16位"));
  204. // } else {
  205. // callback();
  206. // }
  207. // }
  208. if (value === "") {
  209. callback(new Error("请输入新密码"));
  210. } else {
  211. if (value.length < 6 || value.length > 18) {
  212. callback(new Error("密码长度需在6~18位之间"));
  213. } else {
  214. this.$refs.ruleForm.validateField("checkPass");
  215. }
  216. callback();
  217. }
  218. };
  219. const validatePass2 = (rule, value, callback) => {
  220. if (value === "") {
  221. callback(new Error("请再次输入密码"));
  222. } else if (value !== this.ruleForm.pass) {
  223. callback(new Error("两次输入密码不一致!"));
  224. } else {
  225. callback();
  226. }
  227. };
  228. let institutionId = sessionStorage.getItem(
  229. "f7a42fe7211f98ac7a60a285ac3a9527"
  230. );
  231. console.log("============>", institutionId);
  232. // end-**************
  233. return {
  234. systemVersion: systemVersion,
  235. Name: "",
  236. dialogVisible: false, //弹出窗是否可见
  237. size: "small",
  238. circleUrl:
  239. "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
  240. institutionNo: "", //学校编号
  241. institutionName: "", //学校名称
  242. institutionId: "", //学校id
  243. activeIndex: "10",
  244. activeIndex2: "1",
  245. isCollapse: false,
  246. menuList: [],
  247. //面包屑页签
  248. crumbParent: "首页",
  249. crumbChild: null,
  250. //修改密码
  251. ruleForm: {
  252. pass: "",
  253. checkPass: "",
  254. oldpass: "",
  255. },
  256. upPass: {
  257. institutionNo: "",
  258. password: "",
  259. },
  260. rules: {
  261. pass: [{ required: true, validator: validatePass, trigger: "blur" }],
  262. checkPass: [
  263. { required: true, validator: validatePass2, trigger: "blur" },
  264. ],
  265. oldpass: [
  266. { required: true, validator: validatePassOld, trigger: "blur" },
  267. ],
  268. },
  269. active: "/ContainerSys/AdminHome",
  270. userId: '',
  271. phone: '', //用户账号
  272. userType: '', //角色类型
  273. };
  274. },
  275. created() {
  276. this.institutionNo = sessionStorage.getItem(
  277. "f7a42fe7211f98ac7a60a285ac3a9527"
  278. );
  279. this.institutionName = sessionStorage.getItem(
  280. "f7a42fe7211f98ac7a60a285ac3a9529"
  281. );
  282. this.userId = sessionStorage.getItem(
  283. "b80bb7740288fda1f201890375a60c8f"
  284. );
  285. this.phone = sessionStorage.getItem(
  286. "f7a42fe7211f98ac7a60a285ac3a9e87"
  287. );
  288. this.userType = sessionStorage.getItem(
  289. "f7a42fe7211f98ac7a60a285ac3a9528"
  290. );
  291. console.log('--------------------------------------------------')
  292. console.log('this.userType: ', this.userType)
  293. console.log('--------------------------------------------------')
  294. this.Name = this.institutionName;
  295. this.initMenus()
  296. // if (this.userType == 3) {
  297. // this.Name = this.institutionName;
  298. // } else if (this.userType == 2) {
  299. // this.Name = this.institutionNo;
  300. // }
  301. if (sessionStorage.getItem("menuActive")) {
  302. this.active = sessionStorage.getItem("menuActive");
  303. }
  304. },
  305. mounted() {
  306. // 页面初始化或者刷新页面初始化页签及激活菜单-2020-03-17 lwl
  307. this.active = this.$route.path;
  308. this.selectMenu(this.$route.path);
  309. },
  310. methods: {
  311. ...mapActions({
  312. setSacleListName:"setSacleListName",
  313. setMenuActive:"setMenuActive"
  314. }),
  315. initMenus() {
  316. this.menuList = [
  317. {
  318. id: 0,
  319. name: "首页",
  320. icon: "el-icon-s-home",
  321. path: "/ContainerSys/AdminHome",
  322. showItem: true,
  323. child: [],
  324. },
  325. {
  326. id: 1,
  327. name: "用户管理",
  328. icon: "el-icon-user-solid",
  329. path: "1",
  330. showItem: ['2', '3'].includes(this.userType),
  331. child: [
  332. {
  333. id: "1-1",
  334. name: "学生管理",
  335. parentName: "用户管理",
  336. styleCss: "el-icon-s-custom",
  337. path: "/ContainerSys/UserManage",
  338. showItem: true,
  339. },
  340. {
  341. id: "1-2",
  342. name: "年级管理",
  343. parentName: "用户管理",
  344. styleCss: "el-icon-s-custom",
  345. path: "/ContainerSys/UserGroupManagement",
  346. showItem: true,
  347. },
  348. {
  349. id: "1-3",
  350. name: "管理员管理",
  351. parentName: "用户管理",
  352. styleCss: "el-icon-s-grid",
  353. path: "/ContainerSys/AdminManage",
  354. showItem: this.userType == 3,
  355. },
  356. ],
  357. },
  358. {
  359. id: 2,
  360. name: "测试记录",
  361. icon: "el-icon-s-order",
  362. path: "2",
  363. showItem: ['2', '3'].includes(this.userType),
  364. child: [
  365. {
  366. id: "2-1",
  367. name: "学生测试记录",
  368. parentName: "测试记录",
  369. styleCss: "el-icon-s-custom",
  370. path: "/ContainerSys/UserRecords",
  371. showItem: true,
  372. },
  373. {
  374. id: "2-2",
  375. name: "量表测试记录",
  376. parentName: "测试记录",
  377. styleCss: "el-icon-s-custom",
  378. path: "/ContainerSys/SacleList",
  379. showItem: true,
  380. },
  381. {
  382. id: "2-3",
  383. name: "认知任务测试记录",
  384. parentName: "测试记录",
  385. styleCss: "el-icon-s-grid",
  386. path: "/ContainerSys/CognitiveTaskList",
  387. showItem: true,
  388. },
  389. ],
  390. },
  391. {
  392. id: 3,
  393. name: "学校管理",
  394. icon: "el-icon-s-order",
  395. path: "3",
  396. showItem: this.userType === '4',
  397. child: [
  398. {
  399. id: "3-1",
  400. name: "学校信息",
  401. parentName: "学校管理",
  402. styleCss: "el-icon-s-custom",
  403. path: "/ContainerSys/InstitutionInfo",
  404. showItem: this.userType === '4',
  405. },
  406. ],
  407. },
  408. {
  409. id: 4,
  410. name: "系统管理",
  411. icon: "el-icon-s-order",
  412. path: "4",
  413. showItem: ['2', '3'].includes(this.userType),
  414. child: [
  415. {
  416. id: "4-1",
  417. name: "操作日志管理",
  418. parentName: "系统管理",
  419. styleCss: "el-icon-s-grid",
  420. path: "/ContainerSys/OperationLog",
  421. showItem: true,
  422. },
  423. {
  424. id: "4-2",
  425. name: "测试计划",
  426. parentName: "系统管理",
  427. styleCss: "el-icon-s-custom",
  428. path: "/ContainerSys/testPlan",
  429. showItem: true,
  430. },
  431. {
  432. id: "4-3",
  433. name: "历史计划",
  434. parentName: "系统管理",
  435. styleCss: "el-icon-s-custom",
  436. path: "/ContainerSys/planHistory",
  437. showItem: true,
  438. },
  439. ],
  440. },
  441. {
  442. id: 5,
  443. name: "量表管理",
  444. icon: "el-icon-s-order",
  445. path: "5",
  446. showItem: ['2', '3'].includes(this.userType),
  447. child: [
  448. {
  449. id: "5-1",
  450. name: "自定义量表",
  451. parentName: "量表管理",
  452. styleCss: "el-icon-s-custom",
  453. path: "/ContainerSys/ScaleManagement",
  454. showItem: true,
  455. },
  456. {
  457. id: "5-2",
  458. name: "量表预警",
  459. parentName: "量表管理",
  460. styleCss: "el-icon-s-custom",
  461. path: "/ContainerSys/scaleWarn",
  462. showItem: true,
  463. },
  464. ],
  465. },
  466. ]
  467. },
  468. changeMenu: function() {
  469. this.isCollapse = !this.isCollapse;
  470. },
  471. //匹配获取页签名称-2020-03-17 lwl
  472. selectMenu(param) {
  473. console.log(param, "888");
  474. this.menuList.forEach((item) => {
  475. if (item.path == param) {
  476. this.crumbParent = item.name;
  477. this.crumbChild = null;
  478. return;
  479. } else {
  480. item.child.forEach((i) => {
  481. if (i.path == param) {
  482. this.crumbParent = i.parentName;
  483. this.crumbChild = i.name;
  484. }
  485. if( param !== "/ContainerSys/SacleList"){
  486. this.setSacleListName(null)
  487. }
  488. });
  489. }
  490. });
  491. },
  492. // 退出
  493. escape() {
  494. let tempData = localStorage.getItem('topUserInfo')
  495. if (tempData) {
  496. this.$alert('即将切换回教育局管理账号!', '页面切换提醒', {
  497. confirmButtonText: '确定',
  498. type: 'warning',
  499. callback: () => {
  500. let tempInfo = JSON.parse(tempData)
  501. sessionStorage.setItem("f7a42fe7211f98ac7a60a285ac3a9528", '4')
  502. sessionStorage.setItem("f7a42fe7211f98ac7a60a285ac3a9527", tempInfo.institutionNo)
  503. sessionStorage.setItem("f7a42fe7211f98ac7a60a285ac3a9529", tempInfo.institutionName)
  504. localStorage.removeItem('topUserInfo')
  505. this.$router.push({
  506. path: '/ContainerSys/AdminHome'
  507. })
  508. location.reload()
  509. }
  510. })
  511. } else {
  512. let data = {
  513. phone: this.phone,
  514. roleType: this.userType,
  515. }
  516. if (this.institutionNo && this.institutionNo !== 'null') {
  517. data.institutionNo = this.institutionNo
  518. }
  519. this.$http.post("system/logout", data,(res) => {
  520. if( res && res.code == 200 ){
  521. this.$message({
  522. message: "已成功退出登录",
  523. type: "success",
  524. })
  525. localStorage.clear()
  526. sessionStorage.clear()
  527. this.$router.push({ path: "/",})
  528. } else {
  529. this.$message({
  530. message: res.msg,
  531. type: "error",
  532. })
  533. }
  534. })
  535. }
  536. },
  537. /*lxh-修改密码*/
  538. submitForm(formName) {
  539. //console.log(this.userType)
  540. this.$refs[formName].validate((valid) => {
  541. if (valid) {
  542. if (this.systemVersion == "public") {
  543. }
  544. if (this.userType == 2) {
  545. this.$http.post(
  546. "system/updatePassword",
  547. {
  548. id: this.userId,
  549. password: this.$md5(this.ruleForm.pass),
  550. oldPassword: this.$md5(this.ruleForm.oldpass),
  551. },
  552. (res) => {
  553. (this.ruleForm.oldpass = ""),
  554. (this.ruleForm.pass = ""),
  555. (this.ruleForm.checkPass = ""),
  556. (this.dialogVisible = false);
  557. this.$message({
  558. message: "密码修改完成!",
  559. type: "success",
  560. });
  561. sessionStorage.clear();
  562. const IsPC = (function () {
  563. var userAgentInfo = navigator.userAgent;
  564. var Agents = ["Android",
  565. "iPhone",
  566. "SymbianOS",
  567. "Windows Phone",
  568. "iPad",
  569. "iPod"];
  570. var flag = true;
  571. for (var v = 0; v < Agents.length; v++) {
  572. if (userAgentInfo.indexOf(Agents[v]) > 0) {
  573. flag = false;
  574. break;
  575. }
  576. }
  577. return flag;
  578. })();
  579. if (IsPC) {
  580. this.$router.push({
  581. path: "/",
  582. });
  583. } else {
  584. window.location.href = `${systemUrl}/h5/#/login`;
  585. }
  586. }
  587. );
  588. } else if (this.userType == 3) {
  589. this.$http.post(
  590. "/system/updatePassword",
  591. {
  592. id: this.userId,
  593. password: this.$md5(this.ruleForm.pass),
  594. oldPassword: this.$md5(this.ruleForm.oldpass),
  595. },
  596. (res) => {
  597. (this.ruleForm.oldpass = ""),
  598. (this.ruleForm.pass = ""),
  599. (this.ruleForm.checkPass = ""),
  600. (this.dialogVisible = false);
  601. this.$message({
  602. message: "密码修改完成!",
  603. type: "success",
  604. });
  605. sessionStorage.clear();
  606. this.$router.push({
  607. path: "/",
  608. });
  609. }
  610. );
  611. }
  612. } else {
  613. console.log("error submit!!");
  614. return false;
  615. }
  616. });
  617. },
  618. // 重置表单
  619. resetForm(formName) {
  620. this.$refs[formName].resetFields();
  621. console.log(this.userType);
  622. },
  623. // 修改密码
  624. changePwd() {
  625. this.dialogVisible = true;
  626. },
  627. },
  628. };
  629. </script>
  630. <style lang="scss" scoped>
  631. ::v-deep .el-container {
  632. &.main-container {
  633. height: calc(100vh - 96px);
  634. overflow: hidden;
  635. }
  636. .el-menu {
  637. .el-menu-item-group {
  638. .el-menu-item-group__title {
  639. display: none;
  640. }
  641. }
  642. }
  643. .el-main {
  644. &.el-mains {
  645. position: relative;
  646. }
  647. }
  648. }
  649. .el-menu-vertical-demo:not(.el-menu--collapse) {
  650. width: 200px;
  651. min-height: 400px;
  652. overflow: hidden;
  653. }
  654. .shadow-menu {
  655. box-shadow: 0 4px 12px 2px rgba(0, 0, 0, 0.1);
  656. }
  657. #app {
  658. margin-top: 0;
  659. }
  660. .el-header {
  661. padding: 0 0 !important;
  662. box-sizing: border-box;
  663. flex-shrink: 0;
  664. }
  665. .menu-top-left {
  666. background-color: black;
  667. height: 3.75rem;
  668. display: flex;
  669. align-items: center;
  670. font-size: 16px;
  671. line-height: 2;
  672. }
  673. .menu-top-left i img {
  674. width: 30px;
  675. height: 30px;
  676. }
  677. .menu-top-left-title {
  678. color: #ffffff;
  679. font-size: 1rem;
  680. }
  681. /*.el-menu--horizontal > .el-submenu {*/
  682. /*float: right;*/
  683. /*}*/
  684. /*.el-menu--horizontal > .el-menu-item {*/
  685. /*float: right;*/
  686. /*height: 60px;*/
  687. /*line-height: 60px;*/
  688. /*margin: 0;*/
  689. /*border-bottom: 2px solid transparent;*/
  690. /*color: #909399;*/
  691. /*}*/
  692. .top-menu-control {
  693. float: left;
  694. }
  695. .aside-menu {
  696. height: calc(100vh - 96px);
  697. text-align: left;
  698. }
  699. .aside-menu .el-menu-item.is-active {
  700. background: #00CDDD !important;
  701. }
  702. .el-menu-item-group .el-menu-item.is-active {
  703. background: #00CDDD !important;
  704. }
  705. .fade-enter {
  706. opacity: 0;
  707. }
  708. .fade-leave {
  709. opacity: 1;
  710. }
  711. .fade-leave-active,
  712. .fade-enter-active {
  713. transition: opacity 0s;
  714. }
  715. /*.rightExit {*/
  716. /*float: right !important;*/
  717. /*}*/
  718. .main-header {
  719. height: 40px !important;
  720. padding-left: 20px !important;
  721. display: flex;
  722. flex-direction: row;
  723. align-items: center;
  724. .menu-hide {
  725. display: flex;
  726. align-items: center;
  727. justify-content: center;
  728. margin-right: 12px;
  729. }
  730. }
  731. .admin-header-content {
  732. background: #00CDDD;
  733. height: 100% !important;
  734. display: flex;
  735. flex-direction: row;
  736. justify-content: space-between;
  737. align-items: center;
  738. }
  739. .admin-header-content .el-col {
  740. height: 100% !important;
  741. }
  742. .admin-header-content .admin-logo-content {
  743. /*box-sizing: border-box;*/
  744. /*width: 100%;*/
  745. /*height: 100%;*/
  746. width: 165px;
  747. height: 45px;
  748. padding: 8px 0 8px 20px;
  749. }
  750. .admin-header-content .admin-logo-content img {
  751. width: 100%;
  752. height: 100%;
  753. }
  754. .admin-header-content .admin-head-content {
  755. width: 100%;
  756. height: 100%;
  757. display: flex;
  758. flex-direction: column;
  759. justify-content: space-between;
  760. align-items: center;
  761. flex: 1;
  762. }
  763. .admin-header-content .el-menu-demo {
  764. height: 100%;
  765. }
  766. .el-menu--horizontal > .el-submenu .el-submenu__title,
  767. /deep/.el-menu--horizontal > .el-submenu.is-active .el-submenu__title {
  768. border-bottom: none !important;
  769. }
  770. /deep/.el-menu--horizontal > .el-submenu .el-submenu__icon-arrow {
  771. color: #fff;
  772. }
  773. .el-menu.el-menu--horizontal {
  774. border-bottom: none;
  775. }
  776. .just-right{
  777. display: flex;
  778. flex-direction: row;
  779. justify-content: flex-end;
  780. }
  781. </style>