Commit f73e5334 authored by xhx's avatar xhx

调整

parent 5fbc7924
...@@ -141,16 +141,12 @@ export default Vue.extend({ ...@@ -141,16 +141,12 @@ 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') {
this.$router.push({path: '/backend/user/secondarySub', query: { address: arr }})
} else {
const count = arr.length const count = arr.length
if (this.search === eNewRoleRelatedToBackEnd.ACM && count >= 3) { if (this.search === eNewRoleRelatedToBackEnd.ACM && count >= 3) {
switch (count) { switch (count) {
...@@ -175,7 +171,6 @@ export default Vue.extend({ ...@@ -175,7 +171,6 @@ export default Vue.extend({
this.$router.push({path: '/backend/user/secondarySub', query: { rankVal: JSON.stringify(arr), role: this.search }}) this.$router.push({path: '/backend/user/secondarySub', query: { rankVal: JSON.stringify(arr), role: this.search }})
} }
} }
}
}, },
reset(){ reset(){
(this.$refs.headerSelect as any).init(); (this.$refs.headerSelect as any).init();
......
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