Commit f73e5334 authored by xhx's avatar xhx

调整

parent 5fbc7924
...@@ -141,39 +141,34 @@ export default Vue.extend({ ...@@ -141,39 +141,34 @@ export default Vue.extend({
if( levelList.length==0 && this.search.length == 0 ){ if( levelList.length==0 && this.search.length == 0 ){
this.$message.info({content:"请通过选择或者输入详细地址搜索",icon:()=>{return this.$createElement('Icon',{style:{color:'#3E4FAF'},props:{type:'exclamation-circle'}})}}) this.$message.info({content:"请通过选择或者输入详细地址搜索",icon:()=>{return this.$createElement('Icon',{style:{color:'#3E4FAF'},props:{type:'exclamation-circle'}})}})
}else{ }else{
const search:string|Array<{value: number, name: string}> = levelList.length==0? this.search:levelList const search = levelList
console.log(search)
this.selectTables(search) this.selectTables(search)
} }
// this.$router.push({name:'firstLevel'}) // this.$router.push({name:'firstLevel'})
}, },
selectTables(arr: Array<{value: number, name: string}>|string) { selectTables(arr: Array<{value: number, name: string}>) {
if (typeof arr === 'string') { const count = arr.length
this.$router.push({path: '/backend/user/secondarySub', query: { address: arr }}) if (this.search === eNewRoleRelatedToBackEnd.ACM && count >= 3) {
switch (count) {
case 3:
this.$router.push({path: '/backend/user/firstSubClientManager', query: { rankVal: JSON.stringify(arr), role: this.search }})
break
case 4:
this.$router.push({path: '/backend/user/secondarySubClientManager', query: { rankVal: JSON.stringify(arr), role: this.search }})
}
} else { } else {
const count = arr.length
if (this.search === eNewRoleRelatedToBackEnd.ACM && count >= 3) {
switch (count) { switch (count) {
case 3: case 1:
this.$router.push({path: '/backend/user/firstSubClientManager', query: { rankVal: JSON.stringify(arr), role: this.search }}) this.$router.push({path: '/backend/user/firstLevel', query: { rankVal: JSON.stringify(arr), role: this.search }})
break break
case 4: case 2:
this.$router.push({path: '/backend/user/secondarySubClientManager', query: { rankVal: JSON.stringify(arr), role: this.search }}) this.$router.push({path: '/backend/user/secondary', query: { rankVal: JSON.stringify(arr), role: this.search }})
} break
} else { case 3:
switch (count) { this.$router.push({path: '/backend/user/firstSub', query: { rankVal: JSON.stringify(arr), role: this.search }})
case 1: break
this.$router.push({path: '/backend/user/firstLevel', query: { rankVal: JSON.stringify(arr), role: this.search }}) case 4:
break this.$router.push({path: '/backend/user/secondarySub', query: { rankVal: JSON.stringify(arr), role: this.search }})
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