Commit bf3cddbb by linboxuan

diagnosisSve update

parent 407f1356
......@@ -103,12 +103,16 @@ class DiagnosisService extends ServiceBase {
}
// 返回经过处理 为客户选中的数组
var newArr = arr.filter((obj) => {
return obj.isChoice == true;
let flag = true
return obj.isChoice == false;
});
// 删掉原来数组中选选过的
for(var i = 0;i < arr.length;i++) {
if(arr[i].isChoice == true) {
for(var i = 0;i < arr.length;) {
console.log(arr[i])
if(arr[i].isChoice == false) {
arr.splice(i,1)
} else {
++i
}
}
return newArr;
......
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