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

修复举报设置bug

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