Browse Source

新增快捷审核

yuanmingze 5 tháng trước cách đây
mục cha
commit
d6bca39868
1 tập tin đã thay đổi với 8 bổ sung7 xóa
  1. 8 7
      src/page/index/sidebar/sidebarItem.vue

+ 8 - 7
src/page/index/sidebar/sidebarItem.vue

@@ -5,7 +5,7 @@
         v-if="validatenull(item[childrenKey]) && vaildRoles(item)"
         :index="item[pathKey] + ''"
         :key="item[pathKey]"
-        :class="{'is-active': vaildAvtive(item)}"
+        :class="{ 'is-active': vaildAvtive(item) }"
         @click="open(item)"
       >
         <i :class="item[iconKey]" />
@@ -14,14 +14,14 @@
       <el-submenu v-else-if="!validatenull(item[childrenKey]) && vaildRoles(item)" :index="item[pathKey] + ''" :key="item[pathKey]">
         <template slot="title">
           <i :class="item[iconKey]" />
-          <span slot="title" :class="{'el-menu--display': collapse && first}">{{ item[labelKey] }}</span>
+          <span slot="title" :class="{ 'el-menu--display': collapse && first }">{{ item[labelKey] }}</span>
         </template>
         <template v-for="(child, cindex) in item[childrenKey]">
           <el-menu-item
             v-if="validatenull(child[childrenKey])"
             v-show="isShow(child[labelKey])"
             :index="(child[pathKey], cindex) + ''"
-            :class="{'is-active': vaildAvtive(child)}"
+            :class="{ 'is-active': vaildAvtive(child) }"
             :key="child[pathKey]"
             @click="open(child)"
           >
@@ -35,8 +35,8 @@
   </div>
 </template>
 <script>
-import {mapGetters} from 'vuex';
-import {validatenull} from '@/util/validate';
+import { mapGetters } from 'vuex';
+import { validatenull } from '@/util/validate';
 import config from './config.js';
 export default {
   name: 'SidebarItem',
@@ -88,7 +88,7 @@ export default {
   },
   methods: {
     vaildAvtive(item) {
-      const groupFlag = (item['group'] || []).some(ele => this.$route.path.includes(ele));
+      const groupFlag = (item['group'] || []).some((ele) => this.$route.path.includes(ele));
       return this.nowTagValue === item[this.pathKey] || groupFlag;
     },
     vaildRoles(item) {
@@ -135,7 +135,8 @@ export default {
         '创建试卷',
         '编辑试卷',
         '任务监督',
-        '服务商风险查询'
+        '服务商风险查询',
+        '快捷审核'
       ];
       return hiddenMenu.indexOf(val) === -1;
     },