Commit 3b3c3243 authored by xhx's avatar xhx

用户跳转

parent 82a0c019
...@@ -152,18 +152,28 @@ export default Vue.extend({ ...@@ -152,18 +152,28 @@ export default Vue.extend({
this.$router.push({path: '/backend/user/secondarySub', query: { address: arr }}) this.$router.push({path: '/backend/user/secondarySub', query: { address: arr }})
} else { } else {
const count = arr.length const count = arr.length
switch (count) { if (this.search === eNewRoleRelatedToBackEnd.ACM && count >= 3) {
case 1: switch (count) {
this.$router.push({path: '/backend/user/firstLevel', query: { rankVal: JSON.stringify(arr), role: this.search }}) case 3:
break this.$router.push({path: '/backend/user/firstSubClientManager', query: { rankVal: JSON.stringify(arr), role: this.search }})
case 2: break
this.$router.push({path: '/backend/user/secondary', query: { rankVal: JSON.stringify(arr), role: this.search }}) case 4:
break this.$router.push({path: '/backend/user/secondarySubClientManager', query: { rankVal: JSON.stringify(arr), role: this.search }})
case 3: }
this.$router.push({path: '/backend/user/firstSub', query: { rankVal: JSON.stringify(arr), role: this.search }}) } else {
break switch (count) {
case 4: case 1:
this.$router.push({path: '/backend/user/secondarySub', query: { rankVal: JSON.stringify(arr), role: this.search }}) this.$router.push({path: '/backend/user/firstLevel', query: { rankVal: JSON.stringify(arr), role: this.search }})
break
case 2:
this.$router.push({path: '/backend/user/secondary', query: { rankVal: JSON.stringify(arr), role: this.search }})
break
case 3:
this.$router.push({path: '/backend/user/firstSub', query: { rankVal: JSON.stringify(arr), role: this.search }})
break
case 4:
this.$router.push({path: '/backend/user/secondarySub', query: { rankVal: JSON.stringify(arr), role: this.search }})
}
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment