فهرست منبع

Finish Hotfix-106

chen 2 سال پیش
والد
کامیت
f16f343a02
3فایلهای تغییر یافته به همراه21 افزوده شده و 32 حذف شده
  1. 19 30
      src/layout/components/Sidebar/index.vue
  2. 1 0
      src/views/finance/rebate_form.vue
  3. 1 2
      src/views/finance/rebate_list.vue

+ 19 - 30
src/layout/components/Sidebar/index.vue

@@ -2,16 +2,7 @@
   <div :class="{'has-logo':showLogo}">
     <logo v-if="showLogo" :collapse="isCollapse" />
     <el-scrollbar wrap-class="scrollbar-wrapper">
-      <el-menu
-        :default-active="activeMenu"
-        :collapse="isCollapse"
-        :background-color="variables.menuBg"
-        :text-color="variables.menuText"
-        :unique-opened="false"
-        :active-text-color="variables.menuActiveText"
-        :collapse-transition="false"
-        mode="vertical"
-      >
+      <el-menu :default-active="activeMenu" :collapse="isCollapse" :background-color="variables.menuBg" :text-color="variables.menuText" :unique-opened="false" :active-text-color="variables.menuActiveText" :collapse-transition="false" mode="vertical">
 
         <sidebar-item v-for="route in routes" :key="route.path" :item="route" :base-path="route.path" />
       </el-menu>
@@ -20,43 +11,41 @@
 </template>
 
 <script>
-import { mapGetters } from 'vuex'
-import Logo from './Logo'
-import SidebarItem from './SidebarItem'
-import variables from '@/styles/variables.scss'
+import { mapGetters } from "vuex";
+import Logo from "./Logo";
+import SidebarItem from "./SidebarItem";
+import variables from "@/styles/variables.scss";
 
 export default {
   components: { SidebarItem, Logo },
   computed: {
-    ...mapGetters([
-      'sidebar'
-    ]),
+    ...mapGetters(["sidebar"]),
     routes() {
       // return this.$router.options.routes
       // console.log(global.antRouter)
-      return this.$router.options.routes.concat(global.antRouter) //把路由concat进去
+      return this.$router.options.routes.concat(global.antRouter); //把路由concat进去
     },
     activeMenu() {
-      console.log(444);
-      const route = this.$route
+      // console.log(444);
+      const route = this.$route;
 
-      const { meta, path ,fullUrl} = route
-          console.log(route);
+      const { meta, path, fullUrl } = route;
+      // console.log(route);
       // if set path, the sidebar will highlight the path you set
       if (meta.activeMenu) {
-        return meta.activeMenu
+        return meta.activeMenu;
       }
-      return path
+      return path;
     },
     showLogo() {
-      return this.$store.state.settings.sidebarLogo
+      return this.$store.state.settings.sidebarLogo;
     },
     variables() {
-      return variables
+      return variables;
     },
     isCollapse() {
-      return !this.sidebar.opened
-    }
-  }
-}
+      return !this.sidebar.opened;
+    },
+  },
+};
 </script>

+ 1 - 0
src/views/finance/rebate_form.vue

@@ -319,6 +319,7 @@ export default {
 
         // this.dataList = aa;
         this.$message.success("导入成功");
+        this.$router.push("/finance/rebate/rebate_list");
       } else {
         this.$message.error(result.message);
       }

+ 1 - 2
src/views/finance/rebate_list.vue

@@ -10,6 +10,7 @@
         <el-radio-button label="OK">复核通过</el-radio-button>
         <el-radio-button label="FAIL">复核不通过</el-radio-button>
         <el-radio-button label="CLOSE">已关闭</el-radio-button>
+        <el-radio-button label="OK_ONE_AND_CONFIRM">已确认未复核</el-radio-button>
       </el-radio-group>
       <br /><br />
       <!-- 筛选条件 -->
@@ -347,8 +348,6 @@ export default {
     },
     //切换radio获取数据
     changeRadioFn(v) {
-      // console.log(111);
-
       this.currentPage = 1;
       this.getDataList({
         ...this.searchForm,