index.ftl 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  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. subscribe: function () {
  274. var h = this.$createElement
  275. var that = this;
  276. ms.http.get(
  277. ms.manager + "/lic/info"
  278. ).then(function (res) {
  279. that.$msgbox({
  280. title: '关注公众号接收系统通知',
  281. message: h('p', null, [h('el-image', {
  282. attrs: {
  283. src: 'http://www.meczj.com/wx/employee/qrCode?code=' + encodeURIComponent(res.data),
  284. },
  285. style: {
  286. width: "80%",
  287. height: "300px"
  288. }
  289. }
  290. ), h('el-alert', {
  291. props: {
  292. title: '一人一码,请确认当前登录用户信息再进行绑定,如果绑定错误,请取消关注 铭软 公众号再重新扫码绑定',
  293. closable: false
  294. },
  295. }
  296. )]),
  297. showConfirmButton: false,
  298. center: true
  299. })
  300. }).catch(function (err) {
  301. console.log(err)
  302. })
  303. },
  304. markMenu: function (title, icon) {
  305. var menu = {
  306. title: title,
  307. icon: icon,
  308. }
  309. this.markList.push(menu);
  310. localStorage.setItem("markList", JSON.stringify(this.markList))
  311. this.callbackFun();
  312. },
  313. cancelMarkMenu: function (title) {
  314. var index = this.markList.findIndex(function (x) {
  315. return x.title == title
  316. });
  317. this.markList.splice(index, 1);
  318. localStorage.setItem("markList", JSON.stringify(this.markList))
  319. },
  320. handleMessage: function () {
  321. this.openMenuInTitle('收到消息')
  322. },
  323. handleCommand: function (theme) {
  324. this.theme = theme;
  325. localStorage.setItem("theme", theme);
  326. },
  327. // 菜单列表
  328. list: function () {
  329. var that = this;
  330. ms.http.get(ms.manager + "/model/list.do")
  331. .then(function (data) {
  332. that.menuList = data.data.rows
  333. }, function (err) {
  334. that.$message.error(err);
  335. })
  336. },
  337. asideMenuOpen: function (index, indexPath) {
  338. },
  339. // 菜单打开页面
  340. open: function (sub) {
  341. var that = this
  342. var result = '';
  343. result = this.editableTabs.some(function (item, index) {
  344. return item.modelTitle == sub.modelTitle
  345. })
  346. if (sub.syncStoreUrl) {
  347. sub.modelUrl = sub.syncStoreUrl
  348. sub.modelTitle = 'mstore';
  349. sub.isStore = true;
  350. !result ? this.editableTabs.push(sub) : ""
  351. } else {
  352. !result ? this.editableTabs.push(sub) : ""
  353. }
  354. this.currentTab = sub.modelTitle;
  355. this.headMenuActive = sub.modelModelId
  356. this.$nextTick(function () {
  357. that.asideMenuActive = sub.modelId;
  358. })
  359. // 处理其他逻辑
  360. setTimeout(function () {
  361. if (document.querySelector('.el-tabs__nav-prev')) {
  362. document.querySelector('.el-tabs__nav-wrap').style.padding = '0 40px'
  363. } else {
  364. document.querySelector('.el-tabs__nav-wrap').style.padding = '0'
  365. }
  366. }, 16)
  367. },
  368. tabClick: function (tab) {
  369. this.asideMenuActive = tab.$el.dataset.modelid
  370. this.headMenuActive = tab.$el.dataset.modelmodelid
  371. console.log(this.editableTabs)
  372. },
  373. // 获取当前菜单的子菜单
  374. getSubMenu: function (modelId) {
  375. var result = [];
  376. var that = this;
  377. that.subMenuList && that.subMenuList.forEach(function (item) {
  378. item.modelModelId == modelId ? result.push(item) : ''
  379. })
  380. return result;
  381. },
  382. //关闭tab标签页
  383. closeTab: function (targetName) {
  384. var that = this;
  385. // 关闭的面板是当前激活面板
  386. if (that.currentTab == targetName) {
  387. var modelModelId = null
  388. that.editableTabs.forEach(function (tab, index, arr) {
  389. if (tab.modelTitle == targetName) {
  390. modelModelId = arr[index].modelModelId
  391. var nextTab = arr[index + 1] || arr[index - 1];
  392. if (nextTab) {
  393. that.currentTab = nextTab.modelTitle
  394. that.asideMenuActive = nextTab.modelId
  395. that.headMenuActive = nextTab.modelModelId
  396. }
  397. }
  398. })
  399. }
  400. // 去掉关闭的tab
  401. that.editableTabs = that.editableTabs.filter(function (tab) {
  402. return tab.modelTitle !== targetName
  403. })
  404. // 关闭左侧父菜单
  405. if (that.editableTabs.length) {
  406. var result = that.editableTabs.every(function (item) {
  407. return item.modelModelId !== modelModelId
  408. })
  409. if (result) {
  410. that.asideMenuList.forEach(function (menu, index, arr) {
  411. if (menu.modelId == modelModelId) {
  412. var flag = false;
  413. that.markList.forEach(function (item, index, array) {
  414. if (item.title == menu.modelTitle) {
  415. flag = true;
  416. }
  417. })
  418. if (!flag) {
  419. arr.splice(index, 1);
  420. }
  421. }
  422. })
  423. }
  424. } else {
  425. that.asideMenuList = []
  426. }
  427. // 判断是否出现左右箭头
  428. setTimeout(function () {
  429. if (document.querySelector('.el-tabs__nav-prev')) {
  430. document.querySelector('.el-tabs__nav-wrap').style.padding = '0 40px'
  431. } else {
  432. document.querySelector('.el-tabs__nav-wrap').style.padding = '0'
  433. }
  434. }, 16)
  435. },
  436. openParentMenuInTitle: function (title) {
  437. var data = this.parentMenuList.find(function (menu) {
  438. return menu.modelTitle == title
  439. })
  440. data && this.openMenu(data)
  441. },
  442. // 头部导航打开菜单
  443. openMenu: function (menu, index) {
  444. this.asideMenuList.some(function (item, index) {
  445. return item.modelId == menu.modelId
  446. }) || this.asideMenuList.push(menu)
  447. // this.getSubMenu(menu.modelId)[0] && this.$refs.menu.open(this.getSubMenu(menu.modelId)[0].modelTitle);
  448. var children = [];
  449. this.menuList.forEach(function (tab) {
  450. if (tab.modelModelId == menu.modelId) {
  451. children.push(tab)
  452. }
  453. })
  454. this.currentTab = children[0] && children[0].modelTitle;
  455. this.open(children[0]);
  456. var that = this;
  457. setTimeout(function () {
  458. that.shortcutMenu = false
  459. }, 50)
  460. that.$nextTick(function () {
  461. that.$refs.menu.open(String(menu.modelId))
  462. })
  463. },
  464. managerGet: function () {
  465. var that = this;
  466. ms.http.get(ms.manager + "/basic/manager/get.do")
  467. .then(function (data) {
  468. that.peopleInfo = data.data
  469. resetPasswordVue.resetPasswordForm.managerName = that.peopleInfo.managerName
  470. }, function (err) {
  471. that.$message.error(err);
  472. })
  473. },
  474. exitSystem: function () {
  475. this.$confirm('是否确认退出账号?', '退出系统', {
  476. confirmButtonText: '确定',
  477. cancelButtonText: '取消',
  478. cancelButtonClass: 'el-button--mini',
  479. confirmButtonClass: 'el-button--mini',
  480. type: 'warning'
  481. }).then(function () {
  482. ms.http.get(ms.manager + "/loginOut.do")
  483. .then(function (data) {
  484. isShow = false;
  485. location.href = ms.manager + "/login.do";
  486. }, function (err) {
  487. that.$message.error(err.msg);
  488. })
  489. })
  490. },
  491. // 打开修改密码,退出的模态框
  492. openModal: function () {
  493. event.target.innerText.indexOf('修改密码') > -1 ?
  494. resetPasswordVue.isShow = true : this.exitSystem();
  495. },
  496. // 显示图标
  497. formmateIcon: function (icon) {
  498. return "<i class='ms-admin-icon iconfont'></i>"
  499. },
  500. //打开指定标题
  501. openMenuInTitle: function (title) {
  502. this.open(this.menuList.find(function (x) {
  503. return x.modelTitle == title
  504. }))
  505. },
  506. //消息显示
  507. getMessage: function () {
  508. var that = this
  509. ms.http.post(ms.manager + "/message/myMessage/list.do", {pageSize: 9999, mlStatus: 'unread'})
  510. .then(function (res) {
  511. if (res.result) {
  512. that.messageList = res.data.rows.splice(0, 5);
  513. that.unreadTotal = res.data.total;
  514. }
  515. }, function (err) {
  516. that.$message.error(err);
  517. })
  518. },
  519. dictList: function () {
  520. var that = this;
  521. ms.http.get(ms.base + '/mdiy/dict/list.do', {dictType: '消息类型', pageSize: 99999}).then(function (res) {
  522. that.messageTypeList = res.rows;
  523. }).catch(function (err) {
  524. console.log(err);
  525. });
  526. },
  527. addCallBackFun: function (fun) {
  528. this.callbackFun = fun;
  529. }
  530. },
  531. created: function () {
  532. this.getAuthorization();
  533. var markList = localStorage.getItem("markList");
  534. if (markList) {
  535. this.markList = JSON.parse(markList)
  536. }
  537. localStorage.setItem("markList", JSON.stringify(this.markList))
  538. },
  539. mounted: function () {
  540. // this.getMessage();
  541. this.dictList();
  542. if (localStorage.getItem("theme")) {
  543. this.theme = localStorage.getItem("theme");
  544. }
  545. //setInterval(this.getMessage,3000)
  546. // 菜单列表
  547. this.list();
  548. //获取登录用户信息
  549. this.managerGet();
  550. var that = this;
  551. ms.http.get(ms.manager + "/upgrader/sync.do").then(function (data) {
  552. if (data.syncStoreUrl != undefined) {
  553. data.syncStoreUrl += "?client=${client}";
  554. that.mstore = data;
  555. }
  556. })
  557. var sub ={
  558. modelUrl:'http://store.i.mingsoft.net/#/'+"?client=${client}",
  559. modelTitle:'mstore',
  560. isStore:true,
  561. modelModelId:'mstore',
  562. }
  563. this.editableTabs.push(sub)
  564. this.currentTab = sub.modelTitle;
  565. this.headMenuActive = sub.modelModelId
  566. this.$nextTick(function () {
  567. that.asideMenuActive = sub.modelId;
  568. })
  569. },
  570. })
  571. </script>
  572. <style>
  573. .adminhead {
  574. margin-top: 10px \0;
  575. }
  576. .item {
  577. margin-right: 19px;
  578. }
  579. .ms-notice-menu {
  580. padding: 0px;
  581. width: 400px;
  582. }
  583. .ms-notice-menu-type {
  584. color: #ccc;
  585. font-weight: 500;
  586. font-family: 黑体 !important;
  587. }
  588. .ms-notice-menu-border {
  589. border-bottom: 1px solid rgb(239, 239, 239);
  590. font-weight: bold;
  591. font-family: 黑体 !important;
  592. }
  593. .ms-admin-header-menu-shrink {
  594. width: 64px;
  595. display: flex;
  596. justify-content: center;
  597. align-items: center;
  598. line-height: 50px;
  599. border-right: 1px solid rgba(238, 238, 238, 1);
  600. cursor: pointer;
  601. }
  602. .ms-admin-header-menu-shrink:hover {
  603. background: rgba(250, 250, 250, 1);
  604. }
  605. .el-menu-vertical-demo:not(.el-menu--collapse) {
  606. width: 180px;
  607. height: 100vh;
  608. }
  609. .el-menu--collapse {
  610. height: 100vh;
  611. }
  612. .ms-admin-menu-aside .el-submenu__title,
  613. .ms-admin-menu-aside .el-menu-item {
  614. color: rgba(255, 255, 255, 1);
  615. height: 40px;
  616. line-height: 40px;
  617. }
  618. .ms-admin-menu-aside .el-submenu__title i {
  619. color: inherit;
  620. }
  621. .ms-admin-menu-aside .el-submenu__title .iconfont {
  622. font-size: 19px !important;
  623. }
  624. .ms-admin-menu-aside .el-submenu.is-active .el-submenu__title {
  625. color: rgba(255, 255, 255, 1) !important;
  626. }
  627. .ms-admin-header-menu .el-submenu__title {
  628. height: 50px !important;
  629. line-height: 50px !important;
  630. }
  631. .ms-admin-header-menu .el-submenu__title:hover {
  632. background: rgba(250, 250, 250, 1) !important;
  633. }
  634. .ms-admin-header-menu-all {
  635. width: 560px;
  636. height: auto;
  637. background: rgba(255, 255, 255, 1);
  638. border-radius: 2px;
  639. display: flex;
  640. flex-direction: row;
  641. flex-wrap: wrap;
  642. line-height: 40px;
  643. }
  644. .ms-admin-header-menu-all .iconfont {
  645. font-size: 17px;
  646. }
  647. .ms-admin-header-menu-all .ms-admin-header-menu-all-item {
  648. display: flex;
  649. width: 25%;
  650. justify-content: center;
  651. align-items: center;
  652. cursor: pointer;
  653. }
  654. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-on {
  655. color: #ccc;
  656. font-size: 17px;
  657. margin-left: -1px;
  658. margin-top: 1px;
  659. }
  660. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-on:hover {
  661. color: rgba(64, 158, 255, 1);
  662. }
  663. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-off {
  664. color: #ccc;
  665. }
  666. .ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-off:hover {
  667. color: rgba(64, 158, 255, 1);
  668. }
  669. .ms-admin-header-menu-all .ms-admin-header-menu-all-item:hover {
  670. color: rgba(64, 158, 255, 1);
  671. }
  672. .ms-admin-mstore .ms-admin-mstore-menu-icon {
  673. height: 100%;
  674. display: flex;
  675. justify-content: center;
  676. align-items: center;
  677. cursor: pointer;
  678. width: 48px;
  679. color: rgba(51, 51, 51, 1);
  680. }
  681. .ms-admin-mstore .ms-admin-login .el-dropdown-link:hover,
  682. .ms-admin-mstore .ms-admin-mstore-menu-icon:hover {
  683. background: rgba(250, 250, 250, 1);
  684. }
  685. .ms-admin-mstore .ms-admin-mstore-menu-icon i {
  686. font-size: 18px;
  687. margin: 0 5px 0 0;
  688. }
  689. .ms-admin-login-down {
  690. top: 55px !important;
  691. }
  692. .ms-admin-menu-aside-submenu .el-menu-item {
  693. line-height: 40px;
  694. height: 40px;
  695. }
  696. .el-submenu__title * {
  697. vertical-align: top;
  698. }
  699. .ms-admin-login-theme .el-dropdown-menu__item {
  700. display: flex;
  701. flex-direction: row;
  702. justify-content: center;
  703. align-items: center;
  704. }
  705. .el-tabs__nav .el-tabs__item:nth-child(1) span {
  706. display: none;
  707. }
  708. .el-tabs__item.is-active {
  709. background-color: rgba(255, 255, 255, 1);
  710. }
  711. .el-menu {
  712. border-right: 0px;
  713. }
  714. .ms-admin-logo .class-1 {
  715. color: white;
  716. padding-top: 8px;
  717. color: #FFFFFF;
  718. word-wrap: break-word;
  719. font-family: MicrosoftYaHei-Bold;
  720. font-weight: bold;
  721. font-style: italic;
  722. }
  723. .ms-admin-logo .class-2 {
  724. font-size: 12px;
  725. font-weight: normal;
  726. }
  727. .theme-select .el-menu--popup {
  728. width: 100px;
  729. min-width: 100px;
  730. }
  731. .top-operate-select .el-menu--popup {
  732. width: 162px;
  733. min-width: 162px;
  734. }
  735. .ms-admin-login-down {
  736. top: 55px !important;
  737. }
  738. </style>