提交 a2a9fd69 编写于 作者: chendeli's avatar chendeli

修复举报设置bug

上级 3295d8c1
...@@ -160,6 +160,7 @@ export default { ...@@ -160,6 +160,7 @@ export default {
}, },
handelData(d){ handelData(d){
console.log(d)
let index = null,hash = [],r = /^[1-9]+\d*$/; let index = null,hash = [],r = /^[1-9]+\d*$/;
for(let i=0;i<d.length;i++){ for(let i=0;i<d.length;i++){
...@@ -169,6 +170,7 @@ export default { ...@@ -169,6 +170,7 @@ export default {
break; break;
} }
if(!r.test(d[i].doctorId)){ if(!r.test(d[i].doctorId)){
console.log(d[i].doctorId)
index = 3 index = 3
break; break;
} }
...@@ -211,7 +213,12 @@ export default { ...@@ -211,7 +213,12 @@ export default {
if( res.code == '000000' ) { if( res.code == '000000' ) {
if(res.data.length == 0){ if(res.data.length == 0){
this.reportData = [{}] this.reportData = [{
"doctorId": '',
"email": "",
"userName": ""
},]
}else{ }else{
this.reportData = this.handelEmail(res.data,1) || [] this.reportData = this.handelEmail(res.data,1) || []
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册