Commit eb8f975d authored by zhangderong's avatar zhangderong

测试上线

parent 74299200
...@@ -725,14 +725,16 @@ export default { ...@@ -725,14 +725,16 @@ export default {
let list = [] let list = []
query = query.split('(')[0] query = query.split('(')[0]
findCompanyEmailByKey(query).then(res => { findCompanyEmailByKey(query).then(res => {
if(res.data.success==true){
list = res list = res
this.options = list.data.body || [] this.options = list.data.body || []
this.options.map(item=>{ this.options.map(item=>{
this.emailName=item.email this.emailName=item.email
}) })
}
// this.options.push({name: '不限', email: ''}) // this.options.push({name: '不限', email: ''})
}) })
}, 500); }, 200);
} else { } else {
this.options = []; this.options = [];
} }
......
...@@ -1806,7 +1806,7 @@ import {mapState} from 'vuex' ...@@ -1806,7 +1806,7 @@ import {mapState} from 'vuex'
this.loading1 = false; this.loading1 = false;
query = query.split('(')[0] query = query.split('(')[0]
let list = await findCompanyEmailByKey(query) let list = await findCompanyEmailByKey(query)
this.options = list.data.body this.options = list.data.body || []
}, 200); }, 200);
} else { } else {
this.options = []; this.options = [];
......
...@@ -1763,7 +1763,7 @@ export default { ...@@ -1763,7 +1763,7 @@ export default {
query = query.split('(')[0] query = query.split('(')[0]
findCompanyEmailByKey(query).then(res => { findCompanyEmailByKey(query).then(res => {
list = res list = res
this.options = list.data.body this.options = list.data.body || []
}, 200); }, 200);
}) })
} else { } else {
......
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