Navbar.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. <template>
  2. <div>
  3. <div class="navbar">
  4. <!-- 菜单展开缩起 -->
  5. <hamburger :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
  6. <div class="menu_module">
  7. <div class="menu_module_view">
  8. <v-scroll-view :x="true" :y="false" slidingBgClassName="slidingBgClassName"
  9. slidingBlockClassName="slidingBlockClassName">
  10. <div class="menu_module_fj">
  11. <div v-for="(item, index) in routes" :key="index" :class="{ item: true, select: path === item.path }"
  12. @click="path = item.path">
  13. {{ item.meta.title }}
  14. </div>
  15. </div>
  16. </v-scroll-view>
  17. </div>
  18. </div>
  19. <!-- 右侧 -->
  20. <div class="right-menu">
  21. <div class="right-menu-item" v-if="bigViewsBool" @click="goBigViews">
  22. <el-button size="mini">数据大屏</el-button>
  23. </div>
  24. <div class="right-menu-item">
  25. <el-autocomplete
  26. v-model="pathurl"
  27. :fetch-suggestions="querySearchAsync"s
  28. placeholder="搜索菜单"
  29. @select="handleSelect"
  30. ></el-autocomplete>
  31. </div>
  32. <div style="margin-right: 20px; cursor: pointer" @click="getList();isShow = true">
  33. <i class="el-icon-message-solid"></i>
  34. <el-badge :is-dot="isDot1 || isDot2"></el-badge>
  35. </div>
  36. <shortcut />
  37. <template v-if="device !== 'mobile'">
  38. <!-- 全屏控制 -->
  39. <screenfull id="screenfull" class="right-menu-item hover-effect" />
  40. </template>
  41. <el-dropdown class="user-container" trigger="click">
  42. <div class="user right-menu-item hover-effect">
  43. <div class="flex">
  44. <i class="el-icon-user-solid" />
  45. <span :class="name.length > 5 ? 'ellipsis' : ''">{{ name }}</span>
  46. </div>
  47. </div>
  48. <el-dropdown-menu slot="dropdown" class="user-dropdown">
  49. <router-link :to="{ name: 'profile' }">
  50. <el-dropdown-item>个人信息</el-dropdown-item>
  51. </router-link>
  52. <el-dropdown-item divided @click.native="logout">
  53. <span style="display: block">退出登录</span>
  54. </el-dropdown-item>
  55. </el-dropdown-menu>
  56. </el-dropdown>
  57. </div>
  58. </div>
  59. <notice-bar />
  60. <el-drawer title="系统消息" :visible.sync="isShow" :append-to-body="true" :with-header="false" direction="rtl" size="25%">
  61. <div class="message">
  62. <div class="head">
  63. <div class="flex_asb">
  64. <el-radio-group size="small" v-model="messageType" @change="getList">
  65. <el-badge :is-dot="isDot1" class="item">
  66. <el-radio-button
  67. :label="['WBI', 'WBK', 'CRE_ORDER', 'SEND_MALL', 'RP_MALL', 'CR_SALES', 'ENGIN_PAY_ORDER','CR_ES_SALES']">系统消息</el-radio-button>
  68. </el-badge>
  69. <el-badge :is-dot="isDot2" class="item">
  70. <el-radio-button :label="['NOTICE']">平台公告</el-radio-button>
  71. </el-badge>
  72. </el-radio-group>
  73. <el-switch v-model="isOpen" @change="updateIsNotice" inactive-text="消息弹窗" active-color="#13ce66"
  74. inactive-color="#ff4949">
  75. </el-switch>
  76. </div>
  77. <el-radio-group size="mini" v-model="dateType" @change="getList" style="margin: 10px 0">
  78. <el-radio-button label="">全部</el-radio-button>
  79. <el-radio-button :label="0">今天</el-radio-button>
  80. <el-radio-button :label="1">昨天</el-radio-button>
  81. <el-radio-button :label="6">近7天</el-radio-button>
  82. <el-radio-button :label="29">近30天</el-radio-button>
  83. </el-radio-group>
  84. <div class="flex_asb">
  85. <el-radio-group size="mini" v-model="readFlag" @change="getList">
  86. <el-radio-button label="">全部</el-radio-button>
  87. <el-badge :hidden="count > 0 ? false : true" :value="count" class="item" style="margin: 0 10px">
  88. <el-radio-button label="NO">未读</el-radio-button>
  89. </el-badge>
  90. <el-badge :value="count" :hidden="true" class="item">
  91. <el-radio-button label="YES">已读</el-radio-button>
  92. </el-badge>
  93. </el-radio-group>
  94. <div style="color: #409eff; cursor: pointer" @click="confirmRead">
  95. <i class="el-icon-message-solid"></i>
  96. <span style="font-size: 14px">全部已读</span>
  97. </div>
  98. </div>
  99. </div>
  100. <el-card class="box-card" v-for="(item, index) in messageData" style="margin-top: 10px">
  101. <div @click="
  102. isShow = false
  103. toDetail(
  104. item.adminNoticeType,
  105. item.paidType,
  106. item.adminNoticeType == 'NOTICE' ? item.noticeId : item.orderId,
  107. item.id
  108. )
  109. ">
  110. <div v-if="item.adminNoticeType == 'NOTICE'">
  111. <div class="flex_asb item">
  112. <div>
  113. <span>公告类型:</span>
  114. <span>{{ statusFilter(item.adminNoticeType) }}</span>
  115. </div>
  116. <div class="read1" v-if="item.readFlag == 'NO'">未读</div>
  117. <div class="read2" v-if="item.readFlag == 'YES'">已读</div>
  118. </div>
  119. <div class="item">
  120. <div>
  121. <span>文件标题:</span>
  122. <span style="color: #409eff">{{ item.title }}</span>
  123. </div>
  124. </div>
  125. <div class="item">
  126. <div>
  127. <span>发布人:</span>
  128. <span>{{ item.issueNickName | '' }}</span>
  129. </div>
  130. </div>
  131. <div class="item">
  132. <div>
  133. <span>发布时间:</span>
  134. <span>{{ item.issueTime }}</span>
  135. </div>
  136. </div>
  137. <div v-if="item.readFlag == 'YES'" class="item">
  138. <span>阅读人:</span>
  139. <span>{{ item.adminNickName }} {{ item.readTime }}</span>
  140. </div>
  141. </div>
  142. <div v-else>
  143. <div class="flex_asb item">
  144. <div>
  145. <span>消息类型:</span>
  146. <span>{{ statusFilter(item.adminNoticeType) }}</span>
  147. </div>
  148. <div class="read1" v-if="item.readFlag == 'NO'">未读</div>
  149. <div class="read2" v-if="item.readFlag == 'YES'">已读</div>
  150. </div>
  151. <div class="item">
  152. <div>
  153. <span>订单编号:</span>
  154. <span style="color: #409eff">{{ item.orderId }}</span>
  155. </div>
  156. </div>
  157. <div class="item">
  158. <div>
  159. <span>消息内容:</span>
  160. <span>{{ item.content }}</span>
  161. </div>
  162. </div>
  163. <div class="item">
  164. <div>
  165. <span>创建时间:</span>
  166. <span>{{ item.createTime }}</span>
  167. </div>
  168. </div>
  169. <div v-if="item.readFlag == 'YES'" class="item">
  170. <span>阅读人:</span>
  171. <span>{{ item.adminNickName }} {{ item.readTime }}</span>
  172. </div>
  173. </div>
  174. </div>
  175. </el-card>
  176. <el-empty v-if="messageData.length == 0" description="暂无数据"></el-empty>
  177. <div class="flex_ac bottom">
  178. <el-pagination @current-change="handleCurrentChange" :current-page="currentPage" :page-size="pageSize"
  179. layout="prev, pager, next" background :total="listTotal"></el-pagination>
  180. </div>
  181. </div>
  182. </el-drawer>
  183. </div>
  184. </template>
  185. <script>
  186. import { mapGetters } from 'vuex'
  187. import Hamburger from '@/components/Hamburger'
  188. import Shortcut from '@/components/Shortcut'
  189. import Screenfull from '@/components/Screenfull'
  190. import NavMenu from '@/components/NavMenu'
  191. import vScrollView from 'v-scroll-view'
  192. import NoticeBar from '@/components/NoticeBar'
  193. import { pages } from '@/settings'
  194. import request from '@/utils/request'
  195. function getc(obj) {
  196. if (!obj.children || !obj.children.length) {
  197. return obj
  198. } else {
  199. return getc(obj.children[0])
  200. }
  201. }
  202. export default {
  203. components: {
  204. NoticeBar,
  205. Hamburger,
  206. Screenfull,
  207. NavMenu,
  208. Shortcut,
  209. vScrollView
  210. },
  211. data() {
  212. return {
  213. pathurl: '',
  214. visible: false,
  215. noticeCount: 0,
  216. path: `/${this.$route.path.split('/')[1] || ''}`,
  217. isShow: false,
  218. isOpen: true,
  219. checked: false,
  220. messageType: ['WBI', 'WBK', 'CRE_ORDER', 'SEND_MALL', 'RP_MALL', 'CR_SALES', 'ENGIN_PAY_ORDER','CR_ES_SALES'],
  221. messageData: [],
  222. dateType: '',
  223. readFlag: '',
  224. timer: null,
  225. listTotal: 0,
  226. currentPage: 1, // 当前页码
  227. pageSize: 10, // 每页数量
  228. count: 0,
  229. isDot1: false,
  230. isDot2: false
  231. }
  232. },
  233. computed: {
  234. routes() {
  235. return global.antRouter.filter(item => item.meta)
  236. },
  237. bigViewsBool(){
  238. return !!global.antRouter.find(item => item.code=="bigViews")
  239. },
  240. noticeVisible() {
  241. return this.noticeCount > 0
  242. },
  243. ...mapGetters(['userid']),
  244. ...mapGetters(['sidebar', 'avatar', 'device', 'name', 'isNotice']),
  245. filterTime() {
  246. if (this.dateType === '') {
  247. return ['', '']
  248. } else {
  249. var date = new Date();
  250. var base = Date.parse(date); // 转换为时间戳
  251. var year = date.getFullYear(); //获取当前年份
  252. var mon = date.getMonth() + 1; //获取当前月份
  253. var day = date.getDate(); //获取当前日
  254. var oneDay = 24 * 3600 * 1000
  255. var daytimeArr = []
  256. var now = new Date((base - oneDay * this.dateType));
  257. var myear = now.getFullYear();
  258. var month = now.getMonth() + 1;
  259. var mday = now.getDate()
  260. if (this.dateType == 1) {
  261. return [`${myear}-${month > 9 ? month : '0' + month}-${mday > 9 ? mday : '0' + mday} 00:00:00`, `${myear}-${month > 9 ? month : '0' + month}-${mday > 9 ? mday : '0' + mday} 23:59:59`]
  262. } else {
  263. return [`${myear}-${month > 9 ? month : '0' + month}-${mday > 9 ? mday : '0' + mday} 00:00:00`, `${year}-${mon > 9 ? mon : '0' + mon}-${day > 9 ? day : '0' + day} 23:59:59`]
  264. }
  265. }
  266. },
  267. statusFilter() {
  268. return function (val) {
  269. const MAP = {
  270. NOTICE: '平台公告',
  271. WBI: '维保消息费用申请',
  272. WBK: '维保费用申请审批',
  273. CRE_ORDER: '创建工单',
  274. SEND_MALL: '商城订单发货',
  275. RP_MALL: '商城订单维权',
  276. CR_SALES: '订单支付成功',
  277. ENGIN_PAY_ORDER: '工程收款单',
  278. CR_ES_SALES: '二手商品订单'
  279. }
  280. return MAP[val]
  281. }
  282. },
  283. typeFilter() {
  284. return function (val, paidType) {
  285. const MAP = {
  286. NOTICE: 'systemMessage',
  287. WBI: 'applicationWithoutFee',
  288. WBK: 'applicationWithoutFee',
  289. CRE_ORDER: 'workOrderPool',
  290. SEND_MALL: 'order_detail',
  291. RP_MALL: 'order_refund_detail',
  292. CR_SALES: (paidType == 'M' ? 'auxiliarySalesOrder' : paidType == 'P' ? 'attachmentSalesOrder' : paidType == 'YB' ? 'orderSettleManag' : paidType == 'MALL' ? 'order_detail' : ''),
  293. ENGIN_PAY_ORDER: 'projectCollectionManagement',
  294. CR_ES_SALES: 'orderManagement'
  295. }
  296. return MAP[val]
  297. }
  298. }
  299. },
  300. watch: {
  301. $route() {
  302. this.path = `/${this.$route.path.split('/')[1] || ''}`
  303. },
  304. path(newVal) {
  305. this.$store.commit('app/SET_L1_PATH', newVal)
  306. if (
  307. !~this.$route.path
  308. .split('/')
  309. .map(str => `/${str}`)
  310. .indexOf(newVal)
  311. ) {
  312. var item = getc(this.routes.find(item => item.path === newVal))
  313. if (item) {
  314. this.$router.push(item.path)
  315. }
  316. }
  317. }
  318. },
  319. created() {
  320. clearInterval(this.timer)
  321. this.getUserInfo()
  322. this.redDot()
  323. },
  324. mounted() {
  325. this.$store.commit('app/SET_L1_PATH', this.path)
  326. },
  327. methods: {
  328. goBigViews(){
  329. this.$router.push({
  330. name: 'bigViews',
  331. })
  332. },
  333. handlePage() {
  334. let link = null
  335. if (process.env.VUE_APP_ENV === 'production') {
  336. link = 'https://fw.gd-jxm.com/#/home'
  337. } else {
  338. link = 'https://jiasm.zfire.top/center/#/home'
  339. }
  340. window.open(link)
  341. },
  342. querySearchAsync(queryString, cb) {
  343. var data = pages.filter(item => !~item.path.indexOf(":pageName?/:pageType?/:pageCode?/:pagePam?") && !!~item.meta.title.indexOf(queryString))
  344. cb(
  345. data.map(item => ({
  346. value: item.meta.title,
  347. path: item.path
  348. }))
  349. )
  350. },
  351. handleSelect(item) {
  352. if (item.path) {
  353. this.$router.push({
  354. path: item.path
  355. })
  356. }
  357. this.pathurl = ''
  358. },
  359. async logout() {
  360. await this.$store.dispatch('user/logout')
  361. this.$store.commit('tagsView/SET_RESET_VIES')
  362. this.$router.push(`/login`)
  363. },
  364. toggleSideBar() {
  365. this.$store.dispatch('app/toggleSideBar')
  366. },
  367. //获取最新消息并弹窗
  368. getMessageTips() {
  369. const that = this
  370. this.timer = setInterval(() => {
  371. request({
  372. url: `/notice/list/out`,
  373. method: 'get',
  374. params: {
  375. num: 30
  376. }
  377. }).then(res => {
  378. res.data.forEach(item => {
  379. this.$notify({
  380. title: '新消息',
  381. position: 'bottom-right',
  382. duration: 30000,
  383. message: that.$createElement(
  384. 'div',
  385. {
  386. style: 'cursor: pointer;text-align: left;',
  387. on: {
  388. click: that.toDetail.bind(
  389. that,
  390. item.adminNoticeType,
  391. item.paidType,
  392. item.adminNoticeType == 'NOTICE' ? item.noticeId : item.orderId,
  393. item.id
  394. )
  395. }
  396. },
  397. [
  398. that.$createElement('span', null, that.statusFilter(item.adminNoticeType) + ' '),
  399. that.$createElement(
  400. 'span',
  401. {
  402. style: 'color: #409EFF;'
  403. },
  404. ' ' + item.adminNoticeType == 'NOTICE' ? item.title : item.orderId
  405. ),
  406. that.$createElement('span', null, item.adminNoticeType == 'NOTICE' ? '' : item.content)
  407. // that.$createElement(
  408. // "el-checkbox",
  409. // {
  410. // on: {
  411. // change: that.updateIsNotice.bind(that)
  412. // },
  413. // }, '不再弹窗新消息'
  414. // )
  415. ]
  416. )
  417. })
  418. })
  419. })
  420. }, 30000)
  421. },
  422. getCount() {
  423. request({
  424. url: `/notice/list/count`,
  425. method: 'get',
  426. params: {
  427. noticeType: this.messageType.join(','),
  428. readFlag: 'NO'
  429. }
  430. }).then(res => {
  431. this.count = res.data
  432. })
  433. },
  434. redDot() {
  435. request({
  436. url: `/notice/list/count`,
  437. method: 'get',
  438. params: {
  439. noticeType: ['WBI', 'WBK', 'CRE_ORDER', 'SEND_MALL', 'RP_MALL', 'CR_SALES'].join(','),
  440. readFlag: 'NO'
  441. }
  442. }).then(res => {
  443. this.isDot1 = res.data > 0 ? true : false
  444. })
  445. request({
  446. url: `/notice/list/count`,
  447. method: 'get',
  448. params: {
  449. noticeType: ['NOTICE'].join(','),
  450. readFlag: 'NO'
  451. }
  452. }).then(res => {
  453. this.isDot2 = res.data > 0 ? true : false
  454. })
  455. },
  456. getUserInfo() {
  457. const that = this
  458. request({
  459. url: `/admin/user/detail`,
  460. method: 'get',
  461. params: {
  462. adminUserId: this.userid
  463. }
  464. }).then(res => {
  465. this.isOpen = res.data.isNotice == 'YES' ? true : false
  466. if (res.data.isNotice == 'NO') {
  467. clearInterval(this.timer)
  468. } else {
  469. clearInterval(this.timer)
  470. this.getMessageTips()
  471. }
  472. })
  473. },
  474. //全部已读
  475. confirmRead() {
  476. this.$confirm('是否全部设为已读, 是否继续?', '提示', {
  477. confirmButtonText: '确定',
  478. cancelButtonText: '取消',
  479. type: 'warning'
  480. })
  481. .then(() => {
  482. request({
  483. url: `/notice/mark/read/all`,
  484. method: 'post',
  485. data: {}
  486. }).then(res => {
  487. if (res.code == 200) {
  488. this.getList()
  489. this.$message.success('全部已读成功!')
  490. }
  491. })
  492. })
  493. .catch(() => {
  494. this.$message({
  495. type: 'info',
  496. message: '已取消'
  497. })
  498. })
  499. },
  500. //点击不再弹窗新消息
  501. updateIsNotice(e) {
  502. request({
  503. url: `/notice/updateIsNotice`,
  504. method: 'post',
  505. params: {
  506. isNotice: e ? 'YES' : 'NO'
  507. }
  508. }).then(res => {
  509. if (res.code == 200) {
  510. this.getUserInfo()
  511. this.$message.success(e ? '已开启弹窗消息提醒' : '已关闭弹窗消息提醒')
  512. if (!e) {
  513. clearInterval(this.timer)
  514. }
  515. }
  516. })
  517. },
  518. getList() {
  519. request({
  520. url: `/notice/list`,
  521. method: 'post',
  522. data: {
  523. pageNum: this.currentPage,
  524. pageSize: this.pageSize,
  525. params: [
  526. { param: 'nr.read_flag', compare: '=', value: this.readFlag },
  527. { param: 'nr.admin_notice_type', compare: '=', value: this.messageType },
  528. { param: 'nr.issue_time', compare: '>=', value: this.filterTime[0] },
  529. { param: 'nr.issue_time', compare: '<=', value: this.filterTime[1] }
  530. ]
  531. }
  532. }).then(res => {
  533. this.getCount()
  534. this.redDot()
  535. this.listTotal = res.data.total
  536. this.messageData = res.data.records
  537. })
  538. },
  539. // 更改当前页
  540. handleCurrentChange(val) {
  541. this.currentPage = val
  542. this.getList()
  543. },
  544. toDetail(type, paidType, orderId, id) {
  545. console.log(this.typeFilter(type, paidType))
  546. this.read(id)
  547. this.$router.push({
  548. name: this.typeFilter(type, paidType),
  549. params: {
  550. pageName: orderId,
  551. pageType: 'detail',
  552. pageCode: orderId
  553. },
  554. query: {
  555. id: orderId,
  556. orderId: orderId
  557. }
  558. })
  559. },
  560. read(id) {
  561. request({
  562. url: `/notice/mark/read`,
  563. method: 'post',
  564. params: {
  565. noticeIds: id
  566. }
  567. }).then(res => { })
  568. }
  569. }
  570. }
  571. </script>
  572. <style lang="scss" scoped>
  573. @import '~@/styles/variables.scss';
  574. // ::v-deep .el-drawer__container{
  575. // top: 50px;
  576. // }
  577. ::v-deep .is-fixed {
  578. right: 10px !important;
  579. }
  580. ::v-deep .slidingBgClassName {
  581. background: rgba(0, 0, 0, 0.01) !important;
  582. }
  583. ::v-deep .slidingBlockClassName {
  584. background: rgba(0, 0, 0, 0.05) !important;
  585. }
  586. .flex_asb {
  587. display: flex;
  588. justify-content: space-between;
  589. align-items: center;
  590. }
  591. .flex_ac {
  592. display: flex;
  593. justify-content: center;
  594. }
  595. .message {
  596. padding: 20px;
  597. position: relative;
  598. min-height: 100%;
  599. padding-bottom: 60px;
  600. padding-top: 150px;
  601. box-sizing: border-box;
  602. .head {
  603. width: 25%;
  604. position: fixed;
  605. top: 0;
  606. right: 0;
  607. background: #ffffff;
  608. padding: 20px;
  609. }
  610. .bottom {
  611. width: 25%;
  612. position: fixed;
  613. bottom: 0;
  614. right: 0;
  615. background: #ffffff;
  616. padding: 10px 0;
  617. }
  618. }
  619. .box-card {
  620. .item {
  621. cursor: pointer;
  622. margin-bottom: 6px;
  623. }
  624. .read1 {
  625. color: #f5680e;
  626. background: #fff2da;
  627. padding: 2px 4px;
  628. border-radius: 4px;
  629. font-size: 14px;
  630. }
  631. .read2 {
  632. color: #42b983;
  633. background: #d7fdde;
  634. padding: 2px 4px;
  635. border-radius: 4px;
  636. font-size: 14px;
  637. }
  638. }
  639. .navbar {
  640. width: 100%;
  641. height: 50px;
  642. overflow: hidden;
  643. background: #{$navbarBg};
  644. box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  645. display: flex;
  646. flex-direction: row;
  647. align-items: center;
  648. .hamburger-container {
  649. line-height: 46px;
  650. height: 100%;
  651. color: #{$navbarText};
  652. cursor: pointer;
  653. transition: background 0.3s;
  654. -webkit-tap-highlight-color: transparent;
  655. border-right: 1px solid #eaeaea;
  656. &:hover {
  657. background: rgba(0, 0, 0, 0.025);
  658. }
  659. }
  660. .menu_module {
  661. height: 100%;
  662. flex: 1;
  663. position: relative;
  664. .menu_module_view {
  665. position: absolute;
  666. top: 0;
  667. left: 0;
  668. bottom: 0;
  669. right: 0;
  670. .menu_module_fj {
  671. height: 100%;
  672. width: fit-content;
  673. white-space: nowrap;
  674. box-sizing: border-box;
  675. padding: 0 10px;
  676. .item {
  677. display: inline-block;
  678. height: 100%;
  679. line-height: 50px;
  680. box-sizing: border-box;
  681. padding: 0 10px;
  682. cursor: pointer;
  683. }
  684. .select {
  685. border-bottom: 1px solid #000;
  686. }
  687. }
  688. }
  689. }
  690. .flex {
  691. display: flex;
  692. align-items: center;
  693. }
  694. .ellipsis {
  695. display: inline-block;
  696. width: (16px * 6);
  697. white-space: nowrap;
  698. overflow: hidden;
  699. text-overflow: ellipsis;
  700. }
  701. .right-menu {
  702. height: 100%;
  703. line-height: 50px;
  704. &>div {
  705. float: left;
  706. }
  707. &:focus {
  708. outline: none;
  709. }
  710. .user-container {
  711. height: 50px;
  712. .user {
  713. i {
  714. font-size: 18px;
  715. margin-right: 5px;
  716. }
  717. span {
  718. font-size: 16px;
  719. }
  720. }
  721. }
  722. .right-menu-item {
  723. display: inline-block;
  724. padding: 0 15px;
  725. height: 100%;
  726. font-size: 18px;
  727. color: #{$navbarText};
  728. vertical-align: text-bottom;
  729. border-left: 1px solid #eaeaea;
  730. &.hover-effect {
  731. cursor: pointer;
  732. transition: background 0.3s;
  733. &:hover {
  734. background: rgba(0, 0, 0, 0.025);
  735. }
  736. }
  737. .notice-icon {
  738. padding-top: 0;
  739. padding-bottom: 0;
  740. }
  741. .right-menu-item {
  742. .notice-icon>i {
  743. font-size: 18px;
  744. }
  745. sup {
  746. top: 12px;
  747. right: 25px;
  748. }
  749. }
  750. }
  751. }
  752. }
  753. ::v-deep .el-badge__content.is-fixed {
  754. z-index: 99;
  755. }
  756. </style>