|
@@ -91,7 +91,7 @@ export default (state = initWrapModal, action) => {
|
|
|
warArr.push(listWrap.lisExcelWrapper[m])
|
|
|
checked.push(tmpName)
|
|
|
}
|
|
|
- newState.btnMsg = "取消选中全部异常值数据集"
|
|
|
+ newState.btnMsg = "取消选中全部异常值数据"
|
|
|
}else{//全部的选中就去掉所有异常选中的
|
|
|
for(let n = 0;n < tmpCheckedLis.length;n++){
|
|
|
if(tmpType == 0 && tmpName == tmpCheckedLis[n]){//已选的正常的选项要保留
|
|
@@ -188,19 +188,18 @@ export default (state = initWrapModal, action) => {
|
|
|
|
|
|
let selectNum=0;
|
|
|
let tmpCheckedList = JSON.parse(JSON.stringify(newState.checkedList))
|
|
|
- for(let m =0;m < listWrap.lisExcelWrapper.length;m++){
|
|
|
- let tmpName = listWrap.lisExcelWrapper[m].itemName
|
|
|
- let tmpType = listWrap.lisExcelWrapper[m].type
|
|
|
- if(tmpType != 0 && (tmpCheckedList.filter(item=>item == tmpName)).length == 0){
|
|
|
- ++selectNum
|
|
|
+ let tmpListWrap = JSON.parse(JSON.stringify(newState.hospitalInspectObj))
|
|
|
+ for(let m =0;m < tmpListWrap.lisExcelWrapper.length;m++){
|
|
|
+ let tmpName = tmpListWrap.lisExcelWrapper[m].itemName
|
|
|
+ let tmpType = tmpListWrap.lisExcelWrapper[m].type
|
|
|
+ if(tmpType != 0&& (tmpCheckedList.filter(item=>item == tmpName)).length == 0){
|
|
|
+ selectNum = selectNum+1
|
|
|
}
|
|
|
}
|
|
|
- for(let m =0;m < listWrap.lisExcelWrapper.length;m++){
|
|
|
- if(selectNum>0){
|
|
|
+ if(selectNum>0){//说明有没选中的
|
|
|
newState.btnMsg = "选中全部异常值数据"
|
|
|
- }else{
|
|
|
- newState.btnMsg = "取消选中全部异常值数据集"
|
|
|
- }
|
|
|
+ }else{
|
|
|
+ newState.btnMsg = "取消选中全部异常值数据"
|
|
|
}
|
|
|
return newState;
|
|
|
}
|
|
@@ -225,7 +224,7 @@ export default (state = initWrapModal, action) => {
|
|
|
if(numFst==0){
|
|
|
tmpGroup.push(listWrap)
|
|
|
}
|
|
|
- newState.btnMsg = "取消选中全部异常值数据集"
|
|
|
+ newState.btnMsg = "取消选中全部异常值数据"
|
|
|
newState.checkedList=[...tmpCheckedLis]
|
|
|
newState.selectGroupList = [...tmpGroup]
|
|
|
}else{//反选
|