index.ftl 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870
  1. <!-- 主页 -->
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <title>MCms</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 'basic/components/reset-password.ftl'/>
  18. <#include 'basic/components/switch-theme.ftl'/>
  19. <#include 'basic/components/manager-icon.ftl'/>
  20. <div id="index" class="index">
  21. <el-container :class="theme">
  22. <!--左侧菜单-->
  23. <el-aside class="ms-admin-menu-aside" v-cloak>
  24. <el-scrollbar style="height:100%">
  25. <el-menu :default-active="asideMenuActive" class="el-menu-vertical-demo"
  26. text-color="rgba(255,255,255,1)" active-text-color="rgba(255,255,255,1)"
  27. :collapse="collapseMenu" :unique-opened='true' ref='menu'>
  28. <div class="ms-admin-logo" :style="{display: 'flex','padding-left': (collapseMenu?'5px':'22px')}">
  29. <img :src="ms.base+'/static/logo.png'"/>
  30. </div>
  31. <template v-for="(menu,i) in asideMenuList" :key='i'>
  32. <el-sub-menu v-if="!menu.isSingle" :popper-class="'ms-admin-menu-aside-submenu '+theme" :index="menu.id+''">
  33. <template #title>
  34. <!-- 修改图标样式使其与文字对齐 -->
  35. <i :class="['ms-admin-icon','iconfont',menu.modelIcon?menu.modelIcon:'icon-zidingyimoxing']"
  36. style="margin-right: 4px;"></i>
  37. <span>{{ menu.modelTitle }}</span>
  38. </template>
  39. <!-- 子菜单 -->
  40. <el-menu-item :index="sub.id+''"
  41. v-for="(sub,index) in getSubMenu(menu.id)"
  42. :key='sub.modelId' v-text="sub.modelTitle"
  43. @click.self='open(sub)'></el-menu-item>
  44. </el-sub-menu>
  45. <!-- 子菜单 -->
  46. <el-menu-item v-else :index="menu.id+''" style="margin-left: 2px"
  47. :key='menu.modelId'
  48. @click.self='open(menu)'>
  49. <i :class="['ms-admin-icon','iconfont',menu.modelIcon?menu.modelIcon:'icon-zidingyimoxing']" style="margin-right: 4px;"></i>
  50. <span>{{menu.modelTitle}}</span>
  51. </el-menu-item>
  52. </template>
  53. <!-- 当没有菜单显示时显示提示图片 -->
  54. <img v-if="asideMenuList.length == 0 " :src="ms.base+'/static/images/tip.png'" />
  55. <!-- 收缩按钮 -->
  56. </el-menu>
  57. </el-scrollbar>
  58. </el-aside>
  59. <!--右侧内容-->
  60. <el-container class="ms-admin-container" v-cloak>
  61. <!--头部-->
  62. <el-header class="ms-admin-header" v-cloak>
  63. <!--展示合并菜单-->
  64. <div class="ms-admin-header-menu-shrink" @click="collapseMenu = !collapseMenu">
  65. <i class="iconfont"
  66. :class="collapseMenu?'icon-liebiaoxiangyou':'icon-shousuo'"></i>
  67. </div>
  68. <!--头部menu-->
  69. <el-menu menu-trigger="hover" class="ms-admin-header-menu"
  70. mode="horizontal" :ellipsis="false" >
  71. <el-sub-menu index="1" style="height: 100%">
  72. <template #title>
  73. <i class="iconfont icon-gezi" style="font-size: 17px;margin-right:8PX"></i>
  74. <span>功能大全</span>
  75. </template>
  76. <div class="ms-admin-header-menu-all" v-if="parentMenuList.length > 0">
  77. <li class="ms-admin-header-menu-all-item" v-for="(item,index) of parentMenuList"
  78. :key='index'>
  79. <div style="display:flex;" @click='openMenu(item,index)'>
  80. <i :class="['iconfont',item.modelIcon?item.modelIcon:'icon-zidingyimoxing']" style="padding-right: 4px"></i>
  81. <div style="width:80px">{{item.modelTitle}}</div>
  82. </div>
  83. <div style="float: right;width: 18px;">
  84. <i @click="item.isMark=!item.isMark"
  85. :class="item.isMark?'el-icon-star-on ':'el-icon-star-off'"></i>
  86. </div>
  87. </li>
  88. </div>
  89. <div style="display: flex; justify-content: center; width: 100%;" v-else>
  90. <el-empty :image-size="50" description="无菜单,请检查站点信息" />
  91. </div>
  92. </el-sub-menu>
  93. </el-menu>
  94. <!--头部右侧-->
  95. <div class="ms-admin-header-right">
  96. <!-- 主题切换 -->
  97. <ms-switch-theme :theme="theme" @update-theme="updateTheme"></ms-switch-theme>
  98. <!-- 设置 -->
  99. <ms-manager-icon :manager="managerInfo">
  100. <template #default>
  101. <el-menu-item
  102. style="display: flex;align-items: center" @click='$refs.resetPasswordForm.open()' index="reset-password">
  103. <i class="el-icon-key"></i>
  104. <span slot="title">修改密码</span>
  105. </el-menu-item>
  106. </template>
  107. </ms-manager-icon>
  108. <!--mstore按钮-->
  109. <#--<ms-store ref="storec" client="${client}"></ms-store>-->
  110. </div>
  111. </el-header>
  112. <!--内容-->
  113. <el-main class="ms-admin-main">
  114. <!--选项卡-->
  115. <el-tabs class="ms-admin-tabs" v-model="currentTab" type="card" closable @tab-remove="closeTab"
  116. @tab-click='tabClick' tab-position="top">
  117. <el-tab-pane v-for="(item, index) in editableTabs"
  118. :key="index"
  119. :label="item.modelTitle"
  120. :name="item.id">
  121. <keep-alive>
  122. <iframe :src='item.modelUrl.startsWith("http")||item.modelUrl.startsWith("https")||item.isStore?item.modelUrl:ms.manager+"/"+encodeURI(item.modelUrl)+(item.modelUrl.indexOf("?")==-1?"?":"&")'
  123. :ref="item.id" :style="{background:'url('+ms.base+'/static/images/loading.gif) no-repeat center'}"></iframe>
  124. </keep-alive>
  125. </el-tab-pane>
  126. </el-tabs>
  127. </el-main>
  128. </el-container>
  129. </el-container>
  130. <reset-password ref="resetPasswordForm" :manager="managerInfo" ></reset-password>
  131. </div>
  132. </body>
  133. </html>
  134. <script>
  135. const indexVue = new _Vue({
  136. el: "#index",
  137. components:{
  138. MsManagerIcon,
  139. MsSwitchTheme,
  140. ResetPassword
  141. },
  142. data: function () {
  143. return {
  144. menuList: [], //菜单接口数据
  145. asideMenuList: [], //侧边菜单
  146. parentMenuList: [], //一级菜单
  147. subMenuList: [], //二级菜单 所有
  148. asideMenuActive: "", //左侧选中菜单
  149. headMenuActive: '', //头部菜单激活
  150. editableTabs: [{"modelTitle": "工作台", "id": "0", "modelUrl": "main.do"}], //当前打开的tab页面
  151. collapseMenu: false, //菜单折叠,false不折叠
  152. currentTab: '0', //当前激活tab的name,初始值为工作台id
  153. //登录用户信息
  154. managerInfo: {
  155. managerName: '', //账号
  156. managerNickName: '',
  157. },
  158. mstore: {},
  159. //主题
  160. theme: localStorage.getItem("theme") || 'ms-theme-light',
  161. appId:'',
  162. managerPermissions: [], // 管理员拥有的权限
  163. }
  164. },
  165. computed: {
  166. },
  167. watch: {
  168. parentMenuList: {
  169. handler: function (n, o) {
  170. localStorage.setItem(this.managerInfo.managerName + "-parent-menu-list-" + this.appId, JSON.stringify(n))
  171. },
  172. deep: true
  173. },
  174. editableTabs: {
  175. handler: function (n, o) {
  176. if (n.length) {
  177. var that = this;
  178. if (!document.querySelector('.el-icon-refresh')) {
  179. var i = document.createElement('i');
  180. i.className = "el-icon-refresh ms-admin-refresh"
  181. i.title = "点击刷新当前页"
  182. i.addEventListener('click', function () {
  183. var index = null
  184. Object.keys(that.$refs).forEach(function (item, i) {
  185. item.indexOf(that.currentTab) > -1 ? index = i : ''
  186. }, that)
  187. if(that.$refs[Object.keys(that.$refs)[index]][0].contentDocument!=null) {
  188. that.$refs[Object.keys(that.$refs)[index]][0].contentDocument.location.reload(true)
  189. }
  190. })
  191. document.querySelector('.el-tabs__header').appendChild(i, document.querySelector('.el-tabs__nav-wrap'))
  192. }
  193. } else {
  194. if (document.querySelector('.ms-admin-refresh')) {
  195. document.querySelector('.el-tabs__header').removeChild(document.querySelector('.ms-admin-refresh'))
  196. }
  197. }
  198. },
  199. deep: true
  200. }
  201. },
  202. methods: {
  203. /**
  204. * 获取当前应用
  205. */
  206. getApp: function (){
  207. var that = this;
  208. ms.http.get(ms.manager + "/basic/app/get.do").then(function (res){
  209. if (res.result){
  210. that.appId = res.data.id;
  211. // 修改标题
  212. document.title = res.data.appName;
  213. that.list();
  214. }
  215. })
  216. },
  217. /**
  218. * 获取菜单列表
  219. */
  220. list: function () {
  221. var that = this;
  222. ms.http.get(ms.manager + "/basic/model/list.do")
  223. .then(function (res) {
  224. that.menuList = res.data.rows;
  225. //获取收藏
  226. var markList = localStorage.getItem(that.managerInfo.managerName + "-parent-menu-list-" + that.appId);
  227. //组织顶部功能大全显示菜单
  228. that.menuList.forEach(function (item, index) {
  229. //如果没有收藏,默认全部显示
  230. if(markList == null) {
  231. item.isMark = true;
  232. } else {
  233. item.isMark = false;
  234. }
  235. //判断是否是一级菜单,简单判断通过url,如果菜单有地址就表示为一级菜单
  236. if(item.modelUrl) {
  237. item.isSingle = true;
  238. }
  239. //如果是顶级菜单增加
  240. item.modelId ? that.subMenuList.push(item) : that.parentMenuList.push(item);
  241. // 添加管理员具有的权限
  242. if(item.modelIsMenu===0){
  243. that.managerPermissions.push(item.modelUrl);
  244. }
  245. })
  246. // 每次进主页都更新管理员拥有的菜单权限
  247. sessionStorage.setItem("manager-permission-list", JSON.stringify(that.managerPermissions))
  248. //如果收藏就优先显示收藏
  249. if(markList) {
  250. var markMenuList = JSON.parse(markList);
  251. // 遍历最新的菜单覆盖缓存的菜单,避免菜单变化导致缓存菜单没更新
  252. that.parentMenuList.forEach(function (item){
  253. markMenuList.forEach(function (markItem){
  254. if (item.id === markItem.id){
  255. item.isMark = markItem.isMark;
  256. //更新缓存中的菜单数据
  257. markItem = item;
  258. }
  259. })
  260. })
  261. //更新缓存
  262. localStorage.setItem(that.managerInfo.managerName + "-parent-menu-list-" + that.appId, JSON.stringify(markMenuList))
  263. }
  264. //简单深度复制一下,否则数据无法双向绑定
  265. that.parentMenuList = JSON.parse(JSON.stringify(that.parentMenuList));
  266. //左侧菜单也显示收藏的菜单
  267. that.parentMenuList.forEach(function (item) {
  268. if(item.isMark) {
  269. that.asideMenuList.push(item);
  270. }
  271. })
  272. }, function (err) {
  273. that.$notify({
  274. title: '错误',
  275. message: err,
  276. type: 'error'
  277. });
  278. })
  279. },
  280. /**
  281. * 左侧菜单打开页面
  282. * @param sub
  283. */
  284. open: function (sub) {
  285. var that = this
  286. var result = '';
  287. result = this.editableTabs.some(function (item, index) {
  288. return item.id == sub.id
  289. })
  290. if (sub.syncStoreUrl) {
  291. sub.modelUrl = sub.syncStoreUrl;
  292. sub.modelTitle = 'MStore';
  293. sub.id = 'MStore';
  294. sub.isStore = true;
  295. !result ? this.editableTabs.push(sub) : ""
  296. } else {
  297. !result ? this.editableTabs.push(sub) : ""
  298. }
  299. this.currentTab = sub.id;
  300. this.headMenuActive = sub.modelId
  301. this.$nextTick(function () {
  302. that.asideMenuActive = sub.id;
  303. })
  304. // 处理其他逻辑
  305. setTimeout(function () {
  306. if (document.querySelector('.el-tabs__nav-prev')) {
  307. document.querySelector('.el-tabs__nav-wrap').style.padding = '0 40px'
  308. } else {
  309. document.querySelector('.el-tabs__nav-wrap').style.padding = '0'
  310. }
  311. }, 16)
  312. },
  313. /**
  314. * 点击选项卡切换左侧菜单
  315. * @param tab tab页
  316. */
  317. tabClick: function (tab,e) {
  318. var _menu = this.menuList.filter(m=>{
  319. return m.id == tab.props.name;
  320. })
  321. if(_menu.length > 0) {
  322. this.asideMenuActive = _menu[0].id;
  323. this.headMenuActive = _menu[0].modelId;
  324. }
  325. },
  326. /**
  327. * 获取当前菜单的子菜单
  328. * @param id 父菜单
  329. * @returns {*[]}
  330. */
  331. getSubMenu: function (id) {
  332. var result = [];
  333. var that = this;
  334. that.subMenuList && that.subMenuList.forEach(function (item) {
  335. item.modelId == id ? result.push(item) : ''
  336. })
  337. return result;
  338. },
  339. /**
  340. * 关闭tab
  341. * @param targetName 菜单
  342. */
  343. closeTab: function (targetName) {
  344. var that = this;
  345. // 关闭的面板是当前激活面板
  346. if (that.currentTab == targetName) {
  347. var modelId = null
  348. that.editableTabs.forEach(function (tab, index, arr) {
  349. if (tab.id == targetName) {
  350. modelId = arr[index].modelId
  351. var nextTab = arr[index + 1] || arr[index - 1];
  352. if (nextTab) {
  353. that.currentTab = nextTab.id
  354. that.asideMenuActive = nextTab.id
  355. that.headMenuActive = nextTab.modelId
  356. }
  357. }
  358. })
  359. }
  360. // 去掉关闭的tab
  361. that.editableTabs = that.editableTabs.filter(function (tab) {
  362. return tab.id !== targetName
  363. })
  364. // 关闭左侧父菜单
  365. if (that.editableTabs.length) {
  366. var result = that.editableTabs.every(function (item) {
  367. return item.modelId !== modelId
  368. })
  369. if (result) {
  370. that.asideMenuList.forEach(function (menu, index, arr) {
  371. if (menu.id == modelId) {
  372. var flag = false;
  373. that.markList && that.markList.forEach(function (item, index, array) {
  374. if (item.title == menu.modelTitle) {
  375. flag = true;
  376. }
  377. })
  378. if (!flag && that.markList) {
  379. arr.splice(index, 1);
  380. }
  381. }
  382. })
  383. }
  384. } else {
  385. that.asideMenuList = []
  386. }
  387. // 判断是否出现左右箭头
  388. setTimeout(function () {
  389. if (document.querySelector('.el-tabs__nav-prev')) {
  390. document.querySelector('.el-tabs__nav-wrap').style.padding = '0 40px'
  391. } else {
  392. document.querySelector('.el-tabs__nav-wrap').style.padding = '0'
  393. }
  394. }, 16)
  395. },
  396. /**
  397. * 功能大全打开菜单
  398. * @param menu 菜单
  399. */
  400. openMenu: function (menu) {
  401. var that = this;
  402. this.asideMenuList.some(function (item, index) {
  403. return item.id == menu.id
  404. }) || this.asideMenuList.push(menu)
  405. var children = [];
  406. this.menuList.forEach(function (tab) {
  407. if (tab.modelId == menu.id) {
  408. children.push(tab)
  409. }
  410. })
  411. // 若子菜单不是功能导航
  412. if(children.length>0 && children[0].modelIsMenu) {
  413. //默认打开第一个子菜单
  414. this.currentTab = children[0] && children[0].id;
  415. this.open(children[0]);
  416. menu.isSingle = false;
  417. that.$nextTick(function () {
  418. that.$refs.menu.open(String(menu.id))
  419. })
  420. } else if(menu.modelUrl) {
  421. this.open(menu);
  422. menu.isSingle = true;
  423. that.$nextTick(function () {
  424. that.$refs.menu.open(String(menu.id))
  425. })
  426. }
  427. },
  428. /**
  429. * 获取管理员信息
  430. */
  431. getManagerInfo: function () {
  432. var that = this;
  433. ms.http.get(ms.manager + "/basic/manager/info.do")
  434. .then(function (res) {
  435. that.managerInfo = res.data;
  436. // 请求菜单数据
  437. that.getApp();
  438. }, function (err) {
  439. that.$notify({
  440. title: '错误',
  441. message: err,
  442. type: 'error'
  443. });
  444. }).catch( function(err){
  445. that.$notify({
  446. title: '错误',
  447. message: err,
  448. type: 'error'
  449. });
  450. });
  451. },
  452. /**
  453. * 主界面常用菜单,点击打开左侧菜单
  454. * main.ftl 里面使用
  455. * @param id 菜单编号
  456. */
  457. openParentMenuInId: function (id) {
  458. var data = this.parentMenuList.find(function (menu) {
  459. return menu.id == id
  460. })
  461. data && this.openMenu(data)
  462. },
  463. /**
  464. * 更新主题
  465. */
  466. updateTheme:function(){
  467. this.theme = localStorage.getItem("theme") || 'ms-theme-light';
  468. }
  469. },
  470. created: function () {
  471. },
  472. mounted: function () {
  473. //获取登录用户信息,成功后获取菜单信息
  474. this.getManagerInfo();
  475. },
  476. })
  477. //标准版需要
  478. window.indexVue = indexVue;
  479. </script>
  480. <style>
  481. .ms-admin-logo {
  482. display: flex;
  483. align-items: center;
  484. overflow: hidden;
  485. }
  486. .ms-admin-logo img {
  487. padding: 14px 0;
  488. width: 120px;
  489. }
  490. .ms-admin-logo>div {
  491. display: flex;
  492. align-items: center;
  493. }
  494. .ms-admin-logo>div span {
  495. margin-top: -6px;
  496. position: absolute;
  497. margin-left: 10px;
  498. font-size: 12px;
  499. }
  500. .ms-admin-logo .iconfont {
  501. color: #fff;
  502. margin-left: auto;
  503. margin-right: 20px;
  504. cursor: pointer;
  505. }
  506. .ms-admin-header-right {
  507. margin-left: auto;
  508. min-width: 200px;
  509. display: flex;
  510. align-items: center;
  511. justify-content: flex-end;
  512. padding: 0;
  513. line-height: 1;
  514. }
  515. .ms-admin-header-menu-shrink {
  516. width: 64px;
  517. display: flex;
  518. justify-content: center;
  519. align-items: center;
  520. line-height: 50px;
  521. border-right: 1px solid rgba(238, 238, 238, 1);
  522. cursor: pointer;
  523. }
  524. .ms-admin-header-menu-shrink:hover {
  525. background: rgba(250, 250, 250, 0.2);
  526. }
  527. .el-menu-vertical-demo:not(.el-menu--collapse) {
  528. width: 180px;
  529. min-height: 100vh;
  530. }
  531. .el-menu--collapse {
  532. height: 100vh;
  533. }
  534. .ms-admin-menu-aside {
  535. width: auto !important;
  536. height: 100vh;
  537. position: relative;
  538. overflow: visible;
  539. }
  540. .ms-admin-menu-aside .ms-admin-menu .el-menu--inline .is-active {
  541. border-left: 2px solid #0099ff;
  542. }
  543. .ms-admin-menu-aside .ms-menu-expand i {
  544. font-weight: bolder;
  545. font-size: 14px;
  546. color: #333;
  547. position: absolute;
  548. transform: rotate(90deg);
  549. right: 40%;
  550. }
  551. .ms-admin-menu-aside .ms-menu-expand::before {
  552. border-color: transparent transparent #eee;
  553. border-style: none solid solid;
  554. border-width: 0 30px 22px;
  555. content: "";
  556. display: block;
  557. height: 0;
  558. left: -10px;
  559. width: 30px;
  560. }
  561. .ms-admin-menu-aside .el-sub-menu__title,
  562. .ms-admin-menu-aside .el-menu-item {
  563. color: rgba(255, 255, 255, 1);
  564. height: 40px;
  565. line-height: 40px;
  566. }
  567. .ms-admin-menu-aside .el-sub-menu__title i {
  568. color: inherit;
  569. }
  570. .ms-admin-menu-aside .el-sub-menu__title .iconfont {
  571. font-size: 19px !important;
  572. }
  573. .ms-admin-menu-aside .el-sub-menu.is-active .el-sub-menu__title {
  574. color: rgba(255, 255, 255, 1) !important;
  575. }
  576. .ms-admin-menu-aside .el-sub-menu__title:hover {
  577. background-color: rgba(255,255,255,0.3) !important;
  578. }
  579. .ms-admin-header {
  580. display: flex;
  581. padding: 0;
  582. background-color: rgba(255, 255, 255, 1);
  583. height: 50px !important;
  584. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  585. z-index: 0;
  586. overflow: hidden;
  587. }
  588. .ms-admin-header .ms-admin-header-menu {
  589. border-bottom: none;
  590. position: relative;
  591. }
  592. .ms-admin-header .ms-admin-header-menu>.ms-admin-menu-item>* {
  593. height: 50px !important;
  594. line-height: 50px !important;
  595. border-bottom: none !important;
  596. font-size: 1em;
  597. }
  598. .ms-admin-header .ms-admin-header-menu .ms-admin-shortcut-menu>li {
  599. margin: 0;
  600. padding: 0 20px;
  601. text-align: left;
  602. display: -webkit-inline-box;
  603. display: inline-block;
  604. height: 50px;
  605. line-height: 50px;
  606. font-weight: normal;
  607. font-size: 14px;
  608. color: #333;
  609. }
  610. .ms-admin-header .ms-admin-header-menu .ms-admin-shortcut-menu>li:hover {
  611. cursor: pointer;
  612. color: #0099ff;
  613. }
  614. .ms-admin-header-menu .el-sub-menu__title {
  615. height: 50px !important;
  616. line-height: 50px !important;
  617. display: flex;
  618. align-items: center;
  619. }
  620. .ms-admin-header-menu .el-sub-menu__title:hover {
  621. background-color: #f2f6fc !important;
  622. color: #409eff !important;
  623. }
  624. .ms-admin-header-menu .el-sub-menu__title:hover i {
  625. color: #409eff !important;
  626. }
  627. .ms-admin-header-menu .el-sub-menu__icon-arrow {
  628. margin-top: -4px !important;
  629. }
  630. .ms-admin-header-menu-item .el-menu-item:hover {
  631. background-color: #f2f6fc !important;
  632. color: #409eff !important;
  633. }
  634. .ms-admin-header-menu-item .el-menu-item:hover i {
  635. color: #409eff !important;
  636. }
  637. .ms-admin-header-menu-all {
  638. width: 560px;
  639. height: auto;
  640. background: rgba(255, 255, 255, 1);
  641. border-radius: 2px;
  642. display: flex;
  643. flex-direction: row;
  644. flex-wrap: wrap;
  645. line-height: 40px;
  646. }
  647. .ms-admin-header-menu-all .iconfont {
  648. font-size: 17px;
  649. }
  650. .ms-admin-header-menu-all .ms-admin-header-menu-all-item {
  651. display: flex;
  652. width: 25%;
  653. justify-content: center;
  654. align-items: center;
  655. cursor: pointer;
  656. }
  657. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-on {
  658. color: #ccc;
  659. font-size: 17px;
  660. margin-left: -1px;
  661. margin-top: 1px;
  662. }
  663. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-on:hover {
  664. color: rgba(64, 158, 255, 1);
  665. }
  666. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-off {
  667. color: #ccc;
  668. }
  669. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-off:hover {
  670. color: rgba(64, 158, 255, 1);
  671. }
  672. .ms-admin-header-menu-all .ms-admin-header-menu-all-item:hover {
  673. color: rgba(64, 158, 255, 1);
  674. }
  675. .ms-admin-menu-aside-submenu .el-menu-item {
  676. line-height: 40px;
  677. height: 40px;
  678. }
  679. .el-sub-menu__title * {
  680. vertical-align: top;
  681. }
  682. .ms-admin-login-theme .el-dropdown-menu__item {
  683. display: flex;
  684. flex-direction: row;
  685. justify-content: center;
  686. align-items: center;
  687. }
  688. .el-tabs__nav .el-tabs__item:nth-child(1) i {
  689. display: none;
  690. }
  691. .el-tabs__item.is-active {
  692. background-color: rgba(255, 255, 255, 1);
  693. }
  694. .el-menu {
  695. border-right: 0px;
  696. }
  697. .ms-admin-logo .class-1 {
  698. color: white;
  699. padding-top: 8px;
  700. color: #ffffff;
  701. word-wrap: break-word;
  702. font-family: MicrosoftYaHei-Bold;
  703. font-weight: bold;
  704. font-style: italic;
  705. }
  706. .ms-admin-logo .class-2 {
  707. font-size: 12px;
  708. font-weight: normal;
  709. }
  710. .top-operate-select .el-menu--popup {
  711. width: 162px;
  712. min-width: 162px;
  713. }
  714. .ms-admin-container {
  715. height: auto;
  716. }
  717. .ms-admin-container>.ms-admin-main {
  718. padding: 0;
  719. background-color: #fff;
  720. z-index: 0;
  721. overflow: hidden;
  722. }
  723. .ms-admin-container>.ms-admin-main .ms-admin-tabs {
  724. height: calc(100vh - 50px);
  725. display: flex;
  726. flex-direction: column;
  727. }
  728. .ms-admin-container>.ms-admin-main .ms-admin-tabs .el-tabs__content {
  729. height: 100%;
  730. }
  731. .ms-admin-container>.ms-admin-main .ms-admin-tabs .el-tabs__content .el-tab-pane {
  732. height: 100%;
  733. }
  734. .ms-admin-container>.ms-admin-main .ms-admin-tabs .el-tabs__header {
  735. background: #fafafa;
  736. margin-bottom: 0;
  737. }
  738. .ms-admin-container>.ms-admin-main .ms-admin-tabs .el-tabs__header .el-tabs__nav-scroll .el-tabs__nav {
  739. border-left: none;
  740. border-radius: 0;
  741. }
  742. .ms-admin-container>.ms-admin-main .ms-admin-tabs .ms-admin-refresh {
  743. float: right;
  744. width: 40px;
  745. height: 40px;
  746. text-align: center;
  747. border-left: 1px solid #e6e6e6;
  748. cursor: pointer;
  749. position: relative;
  750. }
  751. .ms-admin-container>.ms-admin-main .ms-admin-tabs .ms-admin-refresh::before {
  752. position: absolute;
  753. left: 34%;
  754. top: 50%;
  755. transform: translateY(-50%);
  756. color: #999;
  757. }
  758. .ms-admin-container>.ms-admin-main .ms-admin-tabs .el-tabs__nav-next,
  759. .ms-admin-container>.ms-admin-main .ms-admin-tabs .el-tabs__nav-prev {
  760. width: 40px;
  761. height: 40px;
  762. display: flex;
  763. justify-content: center;
  764. align-items: center;
  765. }
  766. .ms-admin-container>.ms-admin-main .ms-admin-tabs .el-tabs__nav-next {
  767. border-left: 1px solid #e6e6e6;
  768. }
  769. .ms-admin-container>.ms-admin-main .ms-admin-tabs .el-tabs__nav-prev {
  770. border-right: 1px solid #e6e6e6;
  771. }
  772. .ms-admin-container>.ms-admin-main iframe {
  773. width: 100%;
  774. height: 100%;
  775. border: none !important;
  776. }
  777. /**tab页标题白色 **/
  778. /** 表单提示 **/
  779. .el-form-item__content {
  780. display: unset !important;
  781. }
  782. </style>