index.ftl 33 KB

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