瀏覽代碼

no message

aXin-0810 9 月之前
父節點
當前提交
e931b673a5

+ 29 - 26
src/components/head.vue

@@ -3,15 +3,18 @@
     <div class="dierjibie">
       <img :src="[img0, img1, img2][swindex]" alt="" srcset="" />
       <div class="asleft">
-        <div class="jajajaj" v-if="tianqi">{{
-        tianqi.result.city
-          ? `${tianqi.result.city} :${tianqi.result.weather || ''} ${tianqi.result.templow || ''
-          }℃ ~${tianqi.result.temphigh || ''}℃`
-          : ''
-      }}</div>
+        <div class="jajajaj" v-if="tianqi">
+          {{
+            tianqi.result.city
+              ? `${tianqi.result.city} :${tianqi.result.weather || ''} ${tianqi.result.templow || ''}℃ ~${
+                  tianqi.result.temphigh || ''
+                }℃`
+              : ''
+          }}
+        </div>
       </div>
       <div class="aszhongjian">
-        {{ userInfo.companyWechatId ? userInfo.companyName : "售修宝运营平台" }}
+        {{ userInfo.companyWechatId ? userInfo.companyName : '工单客服管理系统' }}
       </div>
       <div class="asright">{{ timeStr }}</div>
     </div>
@@ -19,17 +22,17 @@
 </template>
 
 <script>
-import { dateFormat2 } from '@/utils/util.js';
-import img0 from '@/assets/head8.png';
-import img1 from '@/assets/head1.png';
-import img2 from '@/assets/head2.png';
-import { bigWaterGet } from '@/api/common.js';
+import { dateFormat2 } from '@/utils/util.js'
+import img0 from '@/assets/head8.png'
+import img1 from '@/assets/head1.png'
+import img2 from '@/assets/head2.png'
+import { bigWaterGet } from '@/api/common.js'
 export default {
   props: {
     swindex: {
       type: Number,
-      default: 0,
-    },
+      default: 0
+    }
   },
   data() {
     return {
@@ -40,13 +43,13 @@ export default {
       timeId: null,
       info: {},
       tianqi: null
-    };
+    }
   },
   computed: {
     // 用户信息
     userInfo() {
       return JSON.parse(localStorage.getItem('greemall_user'))
-    },
+    }
   },
   watch: {
     $IpAdd: {
@@ -61,23 +64,23 @@ export default {
         }
       },
       deep: true,
-      immediate: true,
-    },
+      immediate: true
+    }
   },
   mounted() {
     this.jishikaishi()
   },
   beforeUnmount() {
-    this.timeId && clearInterval(this.timeId);
+    this.timeId && clearInterval(this.timeId)
   },
   methods: {
     jishikaishi() {
-      let date = new Date();
-      this.timeStr = dateFormat2('YYYY-mm-dd HH:MM:SS WWW', date);
-      this.timeId = setTimeout(this.jishikaishi, 1000);
+      let date = new Date()
+      this.timeStr = dateFormat2('YYYY-mm-dd HH:MM:SS WWW', date)
+      this.timeId = setTimeout(this.jishikaishi, 1000)
     }
-  },
-};
+  }
+}
 </script>
 
 <style scoped lang="scss">
@@ -129,9 +132,9 @@ export default {
     font-family: Source Han Sans CN;
     font-weight: 500;
     font-size: 30px;
-    color: #FFFFFF;
+    color: #ffffff;
     line-height: 35px;
-    background: linear-gradient(0deg, #FFFFFF 0%, #B0D7FF 100%);
+    background: linear-gradient(0deg, #ffffff 0%, #b0d7ff 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     position: absolute;

+ 110 - 46
src/layout/components/Navbar.vue

@@ -5,11 +5,19 @@
       <hamburger :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
       <div class="menu_module">
         <div class="menu_module_view">
-          <v-scroll-view :x="true" :y="false" slidingBgClassName="slidingBgClassName"
-            slidingBlockClassName="slidingBlockClassName">
+          <v-scroll-view
+            :x="true"
+            :y="false"
+            slidingBgClassName="slidingBgClassName"
+            slidingBlockClassName="slidingBlockClassName"
+          >
             <div class="menu_module_fj">
-              <div v-for="(item, index) in routes" :key="index" :class="{ item: true, select: path === item.path }"
-                @click="path = item.path">
+              <div
+                v-for="(item, index) in routes"
+                :key="index"
+                :class="{ item: true, select: path === item.path }"
+                @click="path = item.path"
+              >
                 {{ item.meta.title }}
               </div>
             </div>
@@ -24,12 +32,19 @@
         <div class="right-menu-item">
           <el-autocomplete
             v-model="pathurl"
-            :fetch-suggestions="querySearchAsync"s
+            :fetch-suggestions="querySearchAsync"
+            s
             placeholder="搜索菜单"
             @select="handleSelect"
           ></el-autocomplete>
         </div>
-        <div  style="margin-right: 20px; cursor: pointer" @click="getList();isShow = true">
+        <div
+          style="margin-right: 20px; cursor: pointer"
+          @click="
+            getList()
+            isShow = true
+          "
+        >
           <i class="el-icon-message-solid"></i>
           <el-badge :is-dot="isDot1 || isDot2"></el-badge>
         </div>
@@ -57,21 +72,44 @@
       </div>
     </div>
     <notice-bar />
-    <el-drawer title="系统消息" :visible.sync="isShow" :append-to-body="true" :with-header="false" direction="rtl" size="25%">
+    <el-drawer
+      title="系统消息"
+      :visible.sync="isShow"
+      :append-to-body="true"
+      :with-header="false"
+      direction="rtl"
+      size="25%"
+    >
       <div class="message">
         <div class="head">
           <div class="flex_asb">
             <el-radio-group size="small" v-model="messageType" @change="getList">
               <el-badge :is-dot="isDot1" class="item">
                 <el-radio-button
-                  :label="['WBI', 'WBK', 'CRE_ORDER', 'SEND_MALL', 'RP_MALL', 'CR_SALES', 'ENGIN_PAY_ORDER','CR_ES_SALES']">系统消息</el-radio-button>
+                  :label="[
+                    'WBI',
+                    'WBK',
+                    'CRE_ORDER',
+                    'SEND_MALL',
+                    'RP_MALL',
+                    'CR_SALES',
+                    'ENGIN_PAY_ORDER',
+                    'CR_ES_SALES'
+                  ]"
+                  >系统消息</el-radio-button
+                >
               </el-badge>
               <el-badge :is-dot="isDot2" class="item">
                 <el-radio-button :label="['NOTICE']">平台公告</el-radio-button>
               </el-badge>
             </el-radio-group>
-            <el-switch v-model="isOpen" @change="updateIsNotice" inactive-text="消息弹窗" active-color="#13ce66"
-              inactive-color="#ff4949">
+            <el-switch
+              v-model="isOpen"
+              @change="updateIsNotice"
+              inactive-text="消息弹窗"
+              active-color="#13ce66"
+              inactive-color="#ff4949"
+            >
             </el-switch>
           </div>
           <el-radio-group size="mini" v-model="dateType" @change="getList" style="margin: 10px 0">
@@ -98,15 +136,17 @@
           </div>
         </div>
         <el-card class="box-card" v-for="(item, index) in messageData" style="margin-top: 10px">
-          <div @click="
-            isShow = false
-          toDetail(
-            item.adminNoticeType,
-            item.paidType,
-            item.adminNoticeType == 'NOTICE' ? item.noticeId : item.orderId,
-            item.id
-          )
-            ">
+          <div
+            @click="
+              isShow = false
+              toDetail(
+                item.adminNoticeType,
+                item.paidType,
+                item.adminNoticeType == 'NOTICE' ? item.noticeId : item.orderId,
+                item.id
+              )
+            "
+          >
             <div v-if="item.adminNoticeType == 'NOTICE'">
               <div class="flex_asb item">
                 <div>
@@ -175,8 +215,14 @@
         </el-card>
         <el-empty v-if="messageData.length == 0" description="暂无数据"></el-empty>
         <div class="flex_ac bottom">
-          <el-pagination @current-change="handleCurrentChange" :current-page="currentPage" :page-size="pageSize"
-            layout="prev, pager, next" background :total="listTotal"></el-pagination>
+          <el-pagination
+            @current-change="handleCurrentChange"
+            :current-page="currentPage"
+            :page-size="pageSize"
+            layout="prev, pager, next"
+            background
+            :total="listTotal"
+          ></el-pagination>
         </div>
       </div>
     </el-drawer>
@@ -218,7 +264,7 @@ export default {
       isShow: false,
       isOpen: true,
       checked: false,
-      messageType: ['WBI', 'WBK', 'CRE_ORDER', 'SEND_MALL', 'RP_MALL', 'CR_SALES', 'ENGIN_PAY_ORDER','CR_ES_SALES'],
+      messageType: ['WBI', 'WBK', 'CRE_ORDER', 'SEND_MALL', 'RP_MALL', 'CR_SALES', 'ENGIN_PAY_ORDER', 'CR_ES_SALES'],
       messageData: [],
       dateType: '',
       readFlag: '',
@@ -235,8 +281,8 @@ export default {
     routes() {
       return global.antRouter.filter(item => item.meta)
     },
-    bigViewsBool(){
-      return !!global.antRouter.find(item => item.code=="bigViews")
+    bigViewsBool() {
+      return !!global.antRouter.find(item => item.code == 'bigViews')
     },
     noticeVisible() {
       return this.noticeCount > 0
@@ -247,22 +293,28 @@ export default {
       if (this.dateType === '') {
         return ['', '']
       } else {
-        var date = new Date();
-        var base = Date.parse(date); // 转换为时间戳
-        var year = date.getFullYear(); //获取当前年份
-        var mon = date.getMonth() + 1; //获取当前月份
-        var day = date.getDate(); //获取当前日
+        var date = new Date()
+        var base = Date.parse(date) // 转换为时间戳
+        var year = date.getFullYear() //获取当前年份
+        var mon = date.getMonth() + 1 //获取当前月份
+        var day = date.getDate() //获取当前日
         var oneDay = 24 * 3600 * 1000
 
         var daytimeArr = []
-        var now = new Date((base - oneDay * this.dateType));
-        var myear = now.getFullYear();
-        var month = now.getMonth() + 1;
+        var now = new Date(base - oneDay * this.dateType)
+        var myear = now.getFullYear()
+        var month = now.getMonth() + 1
         var mday = now.getDate()
         if (this.dateType == 1) {
-          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`]
+          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`
+          ]
         } else {
-          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`]
+          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`
+          ]
         }
       }
     },
@@ -276,8 +328,8 @@ export default {
           SEND_MALL: '商城订单发货',
           RP_MALL: '商城订单维权',
           CR_SALES: '订单支付成功',
-		  ENGIN_PAY_ORDER: '工程收款单',
-		  CR_ES_SALES: '二手商品订单'
+          ENGIN_PAY_ORDER: '工程收款单',
+          CR_ES_SALES: '二手商品订单'
         }
         return MAP[val]
       }
@@ -291,9 +343,18 @@ export default {
           CRE_ORDER: 'workOrderPool',
           SEND_MALL: 'order_detail',
           RP_MALL: 'order_refund_detail',
-          CR_SALES: (paidType == 'M' ? 'auxiliarySalesOrder' : paidType == 'P' ? 'attachmentSalesOrder' : paidType == 'YB' ? 'orderSettleManag' : paidType == 'MALL' ? 'order_detail' : ''),
-		  ENGIN_PAY_ORDER: 'projectCollectionManagement',
-		  CR_ES_SALES: 'orderManagement'
+          CR_SALES:
+            paidType == 'M'
+              ? 'auxiliarySalesOrder'
+              : paidType == 'P'
+              ? 'attachmentSalesOrder'
+              : paidType == 'YB'
+              ? 'orderSettleManag'
+              : paidType == 'MALL'
+              ? 'order_detail'
+              : '',
+          ENGIN_PAY_ORDER: 'projectCollectionManagement',
+          CR_ES_SALES: 'orderManagement'
         }
         return MAP[val]
       }
@@ -327,10 +388,10 @@ export default {
     this.$store.commit('app/SET_L1_PATH', this.path)
   },
   methods: {
-    goBigViews(){
+    goBigViews() {
       this.$router.push({
-	  		name: 'bigViews',
-	  	})
+        name: 'bigViews'
+      })
     },
     handlePage() {
       let link = null
@@ -342,7 +403,10 @@ export default {
       window.open(link)
     },
     querySearchAsync(queryString, cb) {
-      var data = pages.filter(item => !~item.path.indexOf(":pageName?/:pageType?/:pageCode?/:pagePam?") && !!~item.meta.title.indexOf(queryString))
+      var data = pages.filter(
+        item =>
+          !~item.path.indexOf(':pageName?/:pageType?/:pageCode?/:pagePam?') && !!~item.meta.title.indexOf(queryString)
+      )
       cb(
         data.map(item => ({
           value: item.meta.title,
@@ -566,7 +630,7 @@ export default {
         params: {
           noticeIds: id
         }
-      }).then(res => { })
+      }).then(res => {})
     }
   }
 }
@@ -727,7 +791,7 @@ export default {
     height: 100%;
     line-height: 50px;
 
-    &>div {
+    & > div {
       float: left;
     }
 
@@ -774,7 +838,7 @@ export default {
       }
 
       .right-menu-item {
-        .notice-icon>i {
+        .notice-icon > i {
           font-size: 18px;
         }
 

+ 4 - 4
src/layout/components/Sidebar/Logo.vue

@@ -3,11 +3,11 @@
     <transition name="sidebarLogoFade">
       <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
         <img v-if="logo" src="@/assets/login/geLi_logo2.png" class="sidebar-logo-2" />
-        <h1 v-else class="sidebar-title">工单客服管理系统</h1>
+        <h1 v-else class="sidebar-title">{{ title }}</h1>
       </router-link>
       <router-link v-else key="expand" class="sidebar-logo-link" to="/">
         <img v-if="logo" src="@/assets/login/geLi_logo2.png" class="sidebar-logo" />
-        <h1 class="sidebar-title">工单客服管理系统</h1>
+        <h1 class="sidebar-title">{{ title }}</h1>
       </router-link>
     </transition>
   </div>
@@ -24,8 +24,8 @@ export default {
   },
   data() {
     return {
-      title: '售修宝',
-      logo: '@/assets/logo.png'
+      title: '工单客服管理系统',
+      logo: '@/assets/login/geLi_logo2.png'
     }
   }
 }

+ 13 - 8
src/layout/components/TagsView/index.vue

@@ -1,11 +1,16 @@
 <template>
   <div id="tags-view-container" class="tags-view-container">
     <scroll-pane ref="scrollPane" class="tags-view-wrapper" @scroll="handleScroll">
-      <div v-for="(tag, index) in visitedViews" ref="tag" :key="tag.path + index"
+      <div
+        v-for="(tag, index) in visitedViews"
+        ref="tag"
+        :key="tag.path + index"
         :class="['tags-view-item', isActive(tag) ? 'active' : '']"
         :data="JSON.stringify({ path: tag.path, query: tag.query, fullPath: tag.fullPath })"
-        @click="djclick({ path: tag.path, query: tag.query, fullPath: tag.fullPath })" @dblclick="sjclick(tag)"
-        @contextmenu.prevent="openMenu(tag, $event)">
+        @click="djclick({ path: tag.path, query: tag.query, fullPath: tag.fullPath })"
+        @dblclick="sjclick(tag)"
+        @contextmenu.prevent="openMenu(tag, $event)"
+      >
         {{ tag.title }}
         <span v-if="!isAffix(tag)" class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)" />
       </div>
@@ -116,13 +121,13 @@ export default {
             ...(() => {
               if (pageName) {
                 return {
-                  title: pageName && pageName != "-" ? `${meta.title}-${pageName}` : meta.title
+                  title: pageName && pageName != '-' ? `${meta.title}-${pageName}` : meta.title
                 }
               }
               return {}
-            })(),
+            })()
           },
-          nameKey: `${name}_${pageType}_${pageCode}_${pagePam}_${Math.floor(Date.now() / 1000)}`,
+          nameKey: `${name}_${pageType}_${pageCode}_${pagePam}_${Math.floor(Date.now() / 1000)}`
         })
       }
       return false
@@ -248,9 +253,9 @@ export default {
       }
 
       &.active {
-        background-color: #42b983;
+        background-color: #3d8ffd; //#{$menuSub3ActiveBg};
         color: #fff;
-        border-color: #42b983;
+        border-color: #3d8ffd; //#{$menuSub3ActiveBg};
 
         &::before {
           content: '';

+ 1 - 1
src/settings.js

@@ -1,5 +1,5 @@
 module.exports = {
-  title: '售修宝平台',
+  title: '工单客服管理系统',
 
   /**
    * @type {boolean} true | false

+ 1 - 3
src/styles/sidebar.scss

@@ -251,10 +251,8 @@
   right: 0;
   left: 0;
 }
-.menu_module_fj .item {
-  font-weight: bold;
-}
 .menu_module_fj .select {
+  font-weight: bold;
   position: relative;
   color: $menuActiveBg !important;
   border-bottom: none !important;

+ 2 - 0
src/styles/variables.scss

@@ -9,6 +9,8 @@
 // $subMenuBg:#1f2d3d;
 // $subMenuHover:#001528;
 
+$menuSub3ActiveBg: #3d8ffd;
+
 $menuText: #ffffff;
 $menuActiveText: #ffffff;
 $subMenuActiveText: #ffffff;

+ 1 - 1
src/views/login/index.vue

@@ -31,7 +31,7 @@
             <div class="right-container">
               <div class="empty-height" />
               <div class="form-container">
-                <div class="title">售修宝平台</div>
+                <div class="title">工单客服管理系统</div>
                 <el-form-item prop="username">
                   <span class="svg-container">
                     <svg-icon icon-class="user" />