Quellcode durchsuchen

【update】去除jinyuan账号相关校验

cfort vor 2 Jahren
Ursprung
Commit
b42103dfbb

+ 2 - 3
src/business/platform/org/employee/panel.vue

@@ -136,10 +136,9 @@ export default {
     },
     },
     data () {
     data () {
         const { first = '', second = '' } = this.$store.getters.level
         const { first = '', second = '' } = this.$store.getters.level
-        const { isSuper = '', account = '' } = this.$store.getters
-        const special = ['admin', 'jinyuan']
+        const { isSuper = false } = this.$store.getters
         let level = second || first
         let level = second || first
-        if (special.includes(account) && isSuper) {
+        if (isSuper) {
             level = null
             level = null
         }
         }
         return {
         return {

+ 4 - 4
src/layout/header-aside/layout.vue

@@ -94,10 +94,10 @@
                     <ibps-header-fullscreen />
                     <ibps-header-fullscreen />
                     <ibps-header-tenant /> -->
                     <ibps-header-tenant /> -->
 
 
-                    <ibps-header-clean-cache v-if="isSuper && account === 'jinyuan'" type="platform" />
-                    <ibps-header-clean-cache v-if="isSuper && account === 'jinyuan'" type="form" />
-                    <!-- <ibps-header-clean-cache v-if="isSuper && account === 'jinyuan'" type="oauth" />
-                    <ibps-header-clean-cache v-if="isSuper && account === 'jinyuan'" type="office" /> -->
+                    <ibps-header-clean-cache v-if="isSuper" type="platform" />
+                    <ibps-header-clean-cache v-if="isSuper" type="form" />
+                    <!-- <ibps-header-clean-cache v-if="isSuper" type="oauth" />
+                    <ibps-header-clean-cache v-if="isSuper" type="office" /> -->
 
 
                     <span style="font-size: 12px; cursor: pointer;" @click="goToMain()">首页</span>
                     <span style="font-size: 12px; cursor: pointer;" @click="goToMain()">首页</span>
                     <span style="margin: 0 10px;">|</span>
                     <span style="margin: 0 10px;">|</span>

+ 2 - 3
src/views/platform/org/employee/list.vue

@@ -76,10 +76,9 @@ export default {
     mixins: [CustomDataDisplayMixin],
     mixins: [CustomDataDisplayMixin],
     data () {
     data () {
         const { first = '', second = '' } = this.$store.getters.level
         const { first = '', second = '' } = this.$store.getters.level
-        const { isSuper = '', account = '' } = this.$store.getters
-        const special = ['admin', 'jinyuan']
+        const { isSuper = false } = this.$store.getters
         let level = second || first
         let level = second || first
-        if (special.includes(account) && isSuper) {
+        if (isSuper) {
             level = null
             level = null
         }
         }
         return {
         return {

+ 3 - 3
src/views/platform/org/role/user-list.vue

@@ -60,11 +60,11 @@ export default {
         }
         }
     },
     },
     data () {
     data () {
-        const { account = '', deptList = [] } = this.$store.getters
+        const { isSuper = false, deptList = [] } = this.$store.getters
         const { first = '', second = '' } = this.$store.getters.level
         const { first = '', second = '' } = this.$store.getters.level
         const level = second || first
         const level = second || first
         return {
         return {
-            account,
+            isSuper,
             level,
             level,
             deptList,
             deptList,
             selectorVisible: false,
             selectorVisible: false,
@@ -151,7 +151,7 @@ export default {
          */
          */
         getSearcFormData () {
         getSearcFormData () {
             const res = ActionUtils.formatParams({ roleId: this.id }, this.pagination, this.sorts)
             const res = ActionUtils.formatParams({ roleId: this.id }, this.pagination, this.sorts)
-            if (this.account !== 'jinyuan') {
+            if (!this.isSuper) {
                 res.customs = {
                 res.customs = {
                     position: this.level
                     position: this.level
                 }
                 }