Navbar.vue 19 KB

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