index.ftl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. <!-- 主页 -->
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <title>MCMS-OPEN</title>
  6. <#include '/include/head-file.ftl'/>
  7. <script src="${base}/static/plugins/sockjs/1.4.0/sockjs.min.js"></script>
  8. <script src="${base}/static/plugins/stomp/2.3.3/stomp.min.js"></script>
  9. <style>
  10. .to-ele {
  11. font-size: 18px;
  12. margin: -2px 9px 0px 3px
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <#include "/reset-password.ftl"/>
  18. <#include "/exit-system.ftl"/>
  19. <div id="app" class="index" :class="theme">
  20. <el-container>
  21. <!--左侧菜单-->
  22. <el-aside class="ms-admin-menu-aside" v-cloak>
  23. <el-scrollbar style="height:100%">
  24. <el-menu :default-active="asideMenuActive" class="el-menu-vertical-demo"
  25. text-color="rgba(255,255,255,1)" active-text-color="rgba(255,255,255,1)"
  26. :collapse="collapseMenu" :unique-opened='true' ref='menu' @open="asideMenuOpen">
  27. <div class="ms-admin-logo" :style="{display: 'flex','padding-left': (collapseMenu?'5px':'22px')}">
  28. <img :src="ms.base+'/static/ms-admin/5.0.0/images/logo.png'"/>
  29. <div class="class-1" v-show="!collapseMenu">
  30. <div class="class-2">v</div>
  31. 5.1
  32. </div>
  33. </div>
  34. <el-submenu :popper-class="['ms-admin-menu-aside-submenu',theme]" :index="menu.modelId+''"
  35. :data-index="menu.modelId+''" v-for="(menu,i) in asideMenuList" :key='i'>
  36. <template slot="title">
  37. <i class='ms-admin-icon iconfont' :class="menu.modelIcon"></i>
  38. <span>{{menu.modelTitle}}</span>
  39. </template>
  40. <!-- 子菜单 -->
  41. <el-menu-item :index="sub.modelId+''" :data-index="sub.modelId"
  42. v-for="(sub,index) in getSubMenu(menu.modelId)"
  43. :key='sub.modelModelId' v-text="sub.modelTitle"
  44. @click.self='open(sub)'></el-menu-item>
  45. </el-submenu>
  46. <!-- 收缩按钮 -->
  47. </el-menu>
  48. </el-scrollbar>
  49. </el-aside>
  50. <#--右侧内容-->
  51. <el-container class="ms-admin-container" v-cloak>
  52. <!--头部-->
  53. <el-header class="ms-admin-header" v-cloak>
  54. <#--展示合并菜单-->
  55. <div class="ms-admin-header-menu-shrink" @click="collapseMenu = !collapseMenu"><i class="iconfont"
  56. :class="collapseMenu?'icon-liebiaoxiangyou':'icon-shousuo'"></i>
  57. </div>
  58. <!--头部menu-->
  59. <el-menu menu-trigger="hover" class="ms-admin-header-menu" background-color="rgba(255,255,255,1)"
  60. text-color="#333333" active-text-color="#409EFF" :default-active="headMenuActive"
  61. mode="horizontal">
  62. <el-submenu style="height: 100%;">
  63. <template slot="title">
  64. <i class="iconfont icon-gezi" style="font-size: 17px"></i>
  65. <span>功能大全</span>
  66. </template>
  67. <div class="ms-admin-header-menu-all">
  68. <li class="ms-admin-header-menu-all-item" v-for="(item,index) of parentMenuList"
  69. :key='index' @click='openMenu(item,index)'>
  70. <i class="iconfont" :class="item.modelIcon" style="padding-right: 4px"></i>
  71. <div style="width:80px">{{item.modelTitle}}</div>
  72. <div style="float: right;width: 18px;">
  73. <template>
  74. <i v-if="markList.find(function(x) {
  75. return x.title == item.modelTitle
  76. })!=undefined" @click="cancelMarkMenu(item.modelTitle)"
  77. class='el-icon-star-on'></i>
  78. <i v-else class='el-icon-star-off '
  79. @click="markMenu(item.modelTitle,item.modelIcon)"></i>
  80. </template>
  81. </div>
  82. </li>
  83. </div>
  84. </el-submenu>
  85. </el-menu>
  86. <!--头部右侧-->
  87. <div class="ms-admin-mstore">
  88. <el-menu menu-trigger="hover" class="ms-admin-header-menu" background-color="rgba(255,255,255,1)"
  89. text-color="#333333" active-text-color="#409EFF"
  90. mode="horizontal">
  91. <el-submenu style="height: 100%;" popper-class="theme-select">
  92. <template slot="title">
  93. <i class="iconfont icon-pifu" style="font-size: 18px"></i>
  94. </template>
  95. <el-menu-item @click="handleCommand('ms-theme-light')"
  96. style="display: flex;align-items: center">
  97. <div style="height: 18px;width: 18px;background-color: rgba(64,158,255,1);margin-right: 7px;border-radius: 2px;"></div>
  98. <span>浅色系</span>
  99. </el-menu-item>
  100. <el-menu-item @click="handleCommand('ms-theme-dark')"
  101. style="display: flex;align-items: center">
  102. <div style="height: 18px;width: 18px;background-color: rgba(56,58,63,1);margin-right: 7px;border-radius: 2px;"></div>
  103. <span>深色系</span>
  104. </el-menu-item>
  105. </el-submenu>
  106. </el-menu>
  107. <#-- 语言切换-->
  108. <#-- <el-dropdown @command="handleLanguageClick">-->
  109. <#-- <span class="el-dropdown-link" >-->
  110. <#-- {{locale.text}}<i class="el-icon-arrow-down el-icon--right"></i>-->
  111. <#-- </span>-->
  112. <#-- <el-dropdown-menu slot="dropdown">-->
  113. <#-- <el-dropdown-item v-for="(item,index) in localeCommands" :command="item">{{item.text}}</el-dropdown-item>-->
  114. <#-- </el-dropdown-menu>-->
  115. <#-- </el-dropdown>-->
  116. <el-dropdown trigger="hover" class="ms-admin-login" placement="top-start"
  117. @visible-change="loginDown = !loginDown">
  118. <span class="el-dropdown-link">
  119. <div class="ms-admin-people-head"
  120. v-text="peopleInfo.managerName && peopleInfo.managerName.substr(0, 2)"></div>
  121. <span v-text='peopleInfo.managerName'></span>
  122. </span>
  123. <el-dropdown-menu class="ms-admin-login-down" slot="dropdown" @click.native='openModal'>
  124. <el-dropdown-item icon="iconfont icon-suo">修改密码</el-dropdown-item>
  125. <el-dropdown-item icon="iconfont icon-tuichu1">退出</el-dropdown-item>
  126. </el-dropdown-menu>
  127. </el-dropdown>
  128. <!--mstore按钮-->
  129. <div class="ms-admin-mstore-icon" @click="open(mstore)">
  130. <span v-if="mstore.syncNum>0" v-text="mstore.syncNum"></span>
  131. <i style="line-height: 42px !important;font-size: 30px;" class="iconfont icon-fenxiang2"></i>
  132. </div>
  133. </div>
  134. </el-header>
  135. <!--内容-->
  136. <el-main class="ms-admin-main">
  137. <!--选项卡-->
  138. <el-tabs class="ms-admin-tabs" v-model="currentTab" type="card" closable @tab-remove="closeTab"
  139. @tab-click='tabClick'>
  140. <el-tab-pane v-for="(item, index) in editableTabs" :key="index" :label="item.modelTitle"
  141. :name="item.modelTitle"
  142. :data-modelId='item.modelId' :data-modelModelId='item.modelModelId'>
  143. <keep-alive>
  144. <iframe :src='item.isStore?item.modelUrl:ms.manager+"/"+item.modelUrl+(item.modelUrl.indexOf("?")==-1?"?":"&")+"modelId="+item.modelId+"&modelCode="+item.modelCode+"&modelTitle="+encodeURI(item.modelTitle)'
  145. :ref="item.modelTitle"></iframe>
  146. </keep-alive>
  147. </el-tab-pane>
  148. </el-tabs>
  149. </el-main>
  150. </el-container>
  151. </el-container>
  152. </div>
  153. </body>
  154. </html>
  155. <script>
  156. var indexVue = new Vue({
  157. el: "#app",
  158. data: {
  159. code: '',
  160. locale: {
  161. text: '中文',
  162. language: 'ch',
  163. },
  164. localeCommands:[
  165. {
  166. text: '中文',
  167. language: 'ch',
  168. },
  169. {
  170. text: 'English',
  171. language: 'en',
  172. }
  173. ],
  174. menuList: [], //菜单接口数据
  175. asideMenuList: [], //侧边菜单
  176. parentMenuList: [], //一级菜单
  177. subMenuList: [], //二级菜单 所有
  178. unreadTotal: 0,//未读消息数量
  179. messageList: [],//消息列表
  180. mainParentMenuList: [], //头部菜单显示主要的选项
  181. loginDown: false, //登录下拉
  182. asideMenuActive: "", //左侧选中菜单
  183. headMenuActive: '', //头部菜单激活
  184. editableTabsValue: '',
  185. messageTypeList: [],
  186. editableTabs: [{"modelTitle": "工作台", "modelUrl": "main.do"}], //当前打开的tab页面
  187. shortcutMenu: false, //快捷菜单显示状态
  188. collapseMenu: false, //菜单折叠,false不折叠
  189. currentTab: '工作台', //当前激活tab的name
  190. tabIndex: 1,
  191. markList: [
  192. {title: "权限管理", icon: "icon-wode", hide: true},
  193. {title: "系统设置", icon: "icon-xitongguanli", hide: true},
  194. {title: "内容管理", icon: "icon-neirongguanli", hide: true},
  195. {title: "会员中心", icon: "icon-huiyuanzhongxin", hide: true},
  196. {title: "自定义管理", icon: "icon-zidingyiguanli", hide: true},
  197. ],
  198. //登录用户信息
  199. peopleInfo: {
  200. managerName: '', //账号
  201. managerNickName: '',
  202. },
  203. mstore: {},
  204. theme: 'ms-theme-light',
  205. callbackFun: {},
  206. },
  207. computed: {
  208. messageType: function (type) {
  209. var that = this
  210. return function (type) {
  211. var dict = that.messageTypeList.find(function (x) {
  212. return x.dictValue == type;
  213. });
  214. if (dict) {
  215. return dict.dictLabel;
  216. }
  217. return '';
  218. }
  219. }
  220. },
  221. watch: {
  222. menuList: function (n, o) {
  223. var that = this;
  224. n && n.forEach(function (item, index) {
  225. item.modelModelId ? that.subMenuList.push(item) : that.parentMenuList.push(item)
  226. })
  227. },
  228. parentMenuList: function (n, o) {
  229. var that = this
  230. this.mainParentMenuList = n.slice(0, 5);
  231. this.asideMenuList = n.filter(function (f) {
  232. return that.markList.find(
  233. function (x) {
  234. return x.title == f['modelTitle']
  235. }) != undefined
  236. })
  237. },
  238. editableTabs: {
  239. handler: function (n, o) {
  240. if (n.length) {
  241. var that = this;
  242. if (!document.querySelector('.el-icon-refresh')) {
  243. var i = document.createElement('i');
  244. i.className = "el-icon-refresh ms-admin-refresh"
  245. i.title = "点击刷新当前页"
  246. i.addEventListener('click', function () {
  247. var index = null
  248. Object.keys(that.$refs).forEach(function (item, i) {
  249. item.indexOf(that.currentTab) > -1 ? index = i : ''
  250. }, that)
  251. that.$refs[Object.keys(that.$refs)[index]][0].contentDocument.location.reload(true)
  252. })
  253. document.querySelector('.el-tabs__header').insertBefore(i, document.querySelector('.el-tabs__nav-wrap'))
  254. }
  255. } else {
  256. if (document.querySelector('.ms-admin-refresh')) {
  257. document.querySelector('.el-tabs__header').removeChild(document.querySelector('.ms-admin-refresh'))
  258. }
  259. }
  260. },
  261. deep: true
  262. }
  263. },
  264. methods: {
  265. handleLanguageClick: function (val) {
  266. this.locale.text = val.text
  267. this.locale.language = val.language
  268. //语言切换
  269. console.log(val)
  270. },
  271. getAuthorization: function () {
  272. },
  273. markMenu: function (title, icon) {
  274. var menu = {
  275. title: title,
  276. icon: icon,
  277. }
  278. this.markList.push(menu);
  279. localStorage.setItem("markList", JSON.stringify(this.markList))
  280. this.callbackFun();
  281. },
  282. cancelMarkMenu: function (title) {
  283. var index = this.markList.findIndex(function (x) {
  284. return x.title == title
  285. });
  286. this.markList.splice(index, 1);
  287. localStorage.setItem("markList", JSON.stringify(this.markList))
  288. },
  289. handleMessage: function () {
  290. this.openMenuInTitle('收到消息')
  291. },
  292. handleCommand: function (theme) {
  293. this.theme = theme;
  294. localStorage.setItem("theme", theme);
  295. },
  296. // 菜单列表
  297. list: function () {
  298. var that = this;
  299. ms.http.get(ms.manager + "/model/list.do")
  300. .then(function (data) {
  301. that.menuList = data.data.rows
  302. }, function (err) {
  303. that.$message.error(err);
  304. })
  305. },
  306. asideMenuOpen: function (index, indexPath) {
  307. },
  308. // 菜单打开页面
  309. open: function (sub) {
  310. var that = this
  311. var result = '';
  312. result = this.editableTabs.some(function (item, index) {
  313. return item.modelTitle == sub.modelTitle
  314. })
  315. if (sub.syncStoreUrl) {
  316. sub.modelUrl = sub.syncStoreUrl
  317. sub.modelTitle = 'mstore';
  318. sub.isStore = true;
  319. !result ? this.editableTabs.push(sub) : ""
  320. } else {
  321. !result ? this.editableTabs.push(sub) : ""
  322. }
  323. this.currentTab = sub.modelTitle;
  324. this.headMenuActive = sub.modelModelId
  325. this.$nextTick(function () {
  326. that.asideMenuActive = sub.modelId;
  327. })
  328. // 处理其他逻辑
  329. setTimeout(function () {
  330. if (document.querySelector('.el-tabs__nav-prev')) {
  331. document.querySelector('.el-tabs__nav-wrap').style.padding = '0 40px'
  332. } else {
  333. document.querySelector('.el-tabs__nav-wrap').style.padding = '0'
  334. }
  335. }, 16)
  336. },
  337. tabClick: function (tab) {
  338. this.asideMenuActive = tab.$el.dataset.modelid
  339. this.headMenuActive = tab.$el.dataset.modelmodelid
  340. console.log(this.editableTabs)
  341. },
  342. // 获取当前菜单的子菜单
  343. getSubMenu: function (modelId) {
  344. var result = [];
  345. var that = this;
  346. that.subMenuList && that.subMenuList.forEach(function (item) {
  347. item.modelModelId == modelId ? result.push(item) : ''
  348. })
  349. return result;
  350. },
  351. //关闭tab标签页
  352. closeTab: function (targetName) {
  353. var that = this;
  354. // 关闭的面板是当前激活面板
  355. if (that.currentTab == targetName) {
  356. var modelModelId = null
  357. that.editableTabs.forEach(function (tab, index, arr) {
  358. if (tab.modelTitle == targetName) {
  359. modelModelId = arr[index].modelModelId
  360. var nextTab = arr[index + 1] || arr[index - 1];
  361. if (nextTab) {
  362. that.currentTab = nextTab.modelTitle
  363. that.asideMenuActive = nextTab.modelId
  364. that.headMenuActive = nextTab.modelModelId
  365. }
  366. }
  367. })
  368. }
  369. // 去掉关闭的tab
  370. that.editableTabs = that.editableTabs.filter(function (tab) {
  371. return tab.modelTitle !== targetName
  372. })
  373. // 关闭左侧父菜单
  374. if (that.editableTabs.length) {
  375. var result = that.editableTabs.every(function (item) {
  376. return item.modelModelId !== modelModelId
  377. })
  378. if (result) {
  379. that.asideMenuList.forEach(function (menu, index, arr) {
  380. if (menu.modelId == modelModelId) {
  381. var flag = false;
  382. that.markList.forEach(function (item, index, array) {
  383. if (item.title == menu.modelTitle) {
  384. flag = true;
  385. }
  386. })
  387. if (!flag) {
  388. arr.splice(index, 1);
  389. }
  390. }
  391. })
  392. }
  393. } else {
  394. that.asideMenuList = []
  395. }
  396. // 判断是否出现左右箭头
  397. setTimeout(function () {
  398. if (document.querySelector('.el-tabs__nav-prev')) {
  399. document.querySelector('.el-tabs__nav-wrap').style.padding = '0 40px'
  400. } else {
  401. document.querySelector('.el-tabs__nav-wrap').style.padding = '0'
  402. }
  403. }, 16)
  404. },
  405. openParentMenuInTitle: function (title) {
  406. var data = this.parentMenuList.find(function (menu) {
  407. return menu.modelTitle == title
  408. })
  409. data && this.openMenu(data)
  410. },
  411. // 头部导航打开菜单
  412. openMenu: function (menu, index) {
  413. this.asideMenuList.some(function (item, index) {
  414. return item.modelId == menu.modelId
  415. }) || this.asideMenuList.push(menu)
  416. // this.getSubMenu(menu.modelId)[0] && this.$refs.menu.open(this.getSubMenu(menu.modelId)[0].modelTitle);
  417. var children = [];
  418. this.menuList.forEach(function (tab) {
  419. if (tab.modelModelId == menu.modelId) {
  420. children.push(tab)
  421. }
  422. })
  423. this.currentTab = children[0] && children[0].modelTitle;
  424. this.open(children[0]);
  425. var that = this;
  426. setTimeout(function () {
  427. that.shortcutMenu = false
  428. }, 50)
  429. that.$nextTick(function () {
  430. that.$refs.menu.open(String(menu.modelId))
  431. })
  432. },
  433. managerGet: function () {
  434. var that = this;
  435. ms.http.get(ms.manager + "/basic/manager/get.do")
  436. .then(function (data) {
  437. that.peopleInfo = data.data
  438. resetPasswordVue.resetPasswordForm.managerName = that.peopleInfo.managerName
  439. }, function (err) {
  440. that.$message.error(err);
  441. })
  442. },
  443. exitSystem: function () {
  444. this.$confirm('是否确认退出账号?', '退出系统', {
  445. confirmButtonText: '确定',
  446. cancelButtonText: '取消',
  447. cancelButtonClass: 'el-button--mini',
  448. confirmButtonClass: 'el-button--mini',
  449. type: 'warning'
  450. }).then(function () {
  451. ms.http.get(ms.manager + "/loginOut.do")
  452. .then(function (data) {
  453. isShow = false;
  454. location.href = ms.manager + "/login.do";
  455. }, function (err) {
  456. that.$message.error(err.msg);
  457. })
  458. })
  459. },
  460. // 打开修改密码,退出的模态框
  461. openModal: function () {
  462. event.target.innerText.indexOf('修改密码') > -1 ?
  463. resetPasswordVue.isShow = true : this.exitSystem();
  464. },
  465. // 显示图标
  466. formmateIcon: function (icon) {
  467. return "<i class='ms-admin-icon iconfont'></i>"
  468. },
  469. //打开指定标题
  470. openMenuInTitle: function (title) {
  471. this.open(this.menuList.find(function (x) {
  472. return x.modelTitle == title
  473. }))
  474. },
  475. //消息显示
  476. getMessage: function () {
  477. var that = this
  478. ms.http.post(ms.manager + "/message/myMessage/list.do", {pageSize: 9999, mlStatus: 'unread'})
  479. .then(function (res) {
  480. if (res.result) {
  481. that.messageList = res.data.rows.splice(0, 5);
  482. that.unreadTotal = res.data.total;
  483. }
  484. }, function (err) {
  485. that.$message.error(err);
  486. })
  487. },
  488. dictList: function () {
  489. var that = this;
  490. ms.http.get(ms.base + '/mdiy/dict/list.do', {dictType: '消息类型', pageSize: 99999}).then(function (res) {
  491. that.messageTypeList = res.rows;
  492. }).catch(function (err) {
  493. console.log(err);
  494. });
  495. },
  496. addCallBackFun: function (fun) {
  497. this.callbackFun = fun;
  498. }
  499. },
  500. created: function () {
  501. this.getAuthorization();
  502. var markList = localStorage.getItem("markList");
  503. if (markList) {
  504. this.markList = JSON.parse(markList)
  505. }
  506. localStorage.setItem("markList", JSON.stringify(this.markList))
  507. },
  508. mounted: function () {
  509. // this.getMessage();
  510. this.dictList();
  511. if (localStorage.getItem("theme")) {
  512. this.theme = localStorage.getItem("theme");
  513. }
  514. //setInterval(this.getMessage,3000)
  515. // 菜单列表
  516. this.list();
  517. //获取登录用户信息
  518. this.managerGet();
  519. var that = this;
  520. ms.http.get(ms.manager + "/upgrader/sync.do").then(function (res) {
  521. if (res.result) {
  522. res.data.syncStoreUrl += "/#/?client=${client}";
  523. that.mstore = res.data;
  524. }
  525. })
  526. },
  527. })
  528. </script>
  529. <style>
  530. .adminhead {
  531. margin-top: 10px \0;
  532. }
  533. .item {
  534. margin-right: 19px;
  535. }
  536. .ms-notice-menu {
  537. padding: 0px;
  538. width: 400px;
  539. }
  540. .ms-notice-menu-type {
  541. color: #ccc;
  542. font-weight: 500;
  543. font-family: 黑体 !important;
  544. }
  545. .ms-notice-menu-border {
  546. border-bottom: 1px solid rgb(239, 239, 239);
  547. font-weight: bold;
  548. font-family: 黑体 !important;
  549. }
  550. .ms-admin-header-menu-shrink {
  551. width: 64px;
  552. display: flex;
  553. justify-content: center;
  554. align-items: center;
  555. line-height: 50px;
  556. border-right: 1px solid rgba(238, 238, 238, 1);
  557. cursor: pointer;
  558. }
  559. .ms-admin-header-menu-shrink:hover {
  560. background: rgba(250, 250, 250, 1);
  561. }
  562. .el-menu-vertical-demo:not(.el-menu--collapse) {
  563. width: 180px;
  564. height: 100vh;
  565. }
  566. .el-menu--collapse {
  567. height: 100vh;
  568. }
  569. .ms-admin-menu-aside .el-submenu__title,
  570. .ms-admin-menu-aside .el-menu-item {
  571. color: rgba(255, 255, 255, 1);
  572. height: 40px;
  573. line-height: 40px;
  574. }
  575. .ms-admin-menu-aside .el-submenu__title i {
  576. color: inherit;
  577. }
  578. .ms-admin-menu-aside .el-submenu__title .iconfont {
  579. font-size: 19px !important;
  580. }
  581. .ms-admin-menu-aside .el-submenu.is-active .el-submenu__title {
  582. color: rgba(255, 255, 255, 1) !important;
  583. }
  584. .ms-admin-header-menu .el-submenu__title {
  585. height: 50px !important;
  586. line-height: 50px !important;
  587. }
  588. .ms-admin-header-menu .el-submenu__title:hover {
  589. background: rgba(250, 250, 250, 1) !important;
  590. }
  591. .ms-admin-header-menu-all {
  592. width: 560px;
  593. height: auto;
  594. background: rgba(255, 255, 255, 1);
  595. border-radius: 2px;
  596. display: flex;
  597. flex-direction: row;
  598. flex-wrap: wrap;
  599. line-height: 40px;
  600. }
  601. .ms-admin-header-menu-all .iconfont {
  602. font-size: 17px;
  603. }
  604. .ms-admin-header-menu-all .ms-admin-header-menu-all-item {
  605. display: flex;
  606. width: 25%;
  607. justify-content: center;
  608. align-items: center;
  609. cursor: pointer;
  610. }
  611. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-on {
  612. color: #ccc;
  613. font-size: 17px;
  614. margin-left: -1px;
  615. margin-top: 1px;
  616. }
  617. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-on:hover {
  618. color: rgba(64, 158, 255, 1);
  619. }
  620. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-off {
  621. color: #ccc;
  622. }
  623. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-off:hover {
  624. color: rgba(64, 158, 255, 1);
  625. }
  626. .ms-admin-header-menu-all .ms-admin-header-menu-all-item:hover {
  627. color: rgba(64, 158, 255, 1);
  628. }
  629. .ms-admin-mstore .ms-admin-mstore-menu-icon {
  630. height: 100%;
  631. display: flex;
  632. justify-content: center;
  633. align-items: center;
  634. cursor: pointer;
  635. width: 48px;
  636. color: rgba(51, 51, 51, 1);
  637. }
  638. .ms-admin-mstore .ms-admin-login .el-dropdown-link:hover,
  639. .ms-admin-mstore .ms-admin-mstore-menu-icon:hover {
  640. background: rgba(250, 250, 250, 1);
  641. }
  642. .ms-admin-mstore .ms-admin-mstore-menu-icon i {
  643. font-size: 18px;
  644. margin: 0 5px 0 0;
  645. }
  646. .ms-admin-login-down {
  647. top: 55px !important;
  648. }
  649. .ms-admin-menu-aside-submenu .el-menu-item {
  650. line-height: 40px;
  651. height: 40px;
  652. }
  653. .el-submenu__title * {
  654. vertical-align: top;
  655. }
  656. .ms-admin-login-theme .el-dropdown-menu__item {
  657. display: flex;
  658. flex-direction: row;
  659. justify-content: center;
  660. align-items: center;
  661. }
  662. .el-tabs__nav .el-tabs__item:nth-child(1) span {
  663. display: none;
  664. }
  665. .el-tabs__item.is-active {
  666. background-color: rgba(255, 255, 255, 1);
  667. }
  668. .el-menu {
  669. border-right: 0px;
  670. }
  671. .ms-admin-logo .class-1 {
  672. color: white;
  673. padding-top: 8px;
  674. color: #FFFFFF;
  675. word-wrap: break-word;
  676. font-family: MicrosoftYaHei-Bold;
  677. font-weight: bold;
  678. font-style: italic;
  679. }
  680. .ms-admin-logo .class-2 {
  681. font-size: 12px;
  682. font-weight: normal;
  683. }
  684. .theme-select .el-menu--popup {
  685. width: 100px;
  686. min-width: 100px;
  687. }
  688. .top-operate-select .el-menu--popup {
  689. width: 162px;
  690. min-width: 162px;
  691. }
  692. .ms-admin-login-down {
  693. top: 55px !important;
  694. }
  695. </style>