提交 0f8457a7 编写于 作者: zhentian.jia's avatar zhentian.jia

更新搜索后的状态情况

上级 867c17a9
...@@ -2051,7 +2051,7 @@ export default { ...@@ -2051,7 +2051,7 @@ export default {
//debugger; //debugger;
if(intersect.length > 0) { if(intersect.length > 0) {
//选中 //选中
this.$refs.multipleOrganization.toggleRowSelection(row); //this.$refs.multipleOrganization.toggleRowSelection(row);
} else if (intersect2.length > 0) { } else if (intersect2.length > 0) {
//不选 //不选
} else { } else {
...@@ -2156,12 +2156,13 @@ export default { ...@@ -2156,12 +2156,13 @@ export default {
idList, idList,
this.changedOrganization2 this.changedOrganization2
); );
//debugger; // debugger;
//console.log('全部看过的:',this.lookedOrganization); //console.log('全部看过的:',this.lookedOrganization);
if (vm.checkTableState.multipleOrganization === "") { if (vm.checkTableState.multipleOrganization === "") {
if (intersect.length == 0 && difference.length > 0) { // if (intersect.length == 0 && difference.length > 0) {
this.initOrganizationStatus(); // this.initOrganizationStatus();
} // }
this.initOrganizationChoose();
} else if (vm.checkTableState.multipleOrganization === true) { } else if (vm.checkTableState.multipleOrganization === true) {
let intersect2 = operationData.getIntersect( let intersect2 = operationData.getIntersect(
idList, idList,
...@@ -2315,7 +2316,7 @@ export default { ...@@ -2315,7 +2316,7 @@ export default {
// debugger; // debugger;
if(intersect.length > 0) { if(intersect.length > 0) {
//选中 //选中
this.$refs.multiplePerson.toggleRowSelection(row); //this.$refs.multiplePerson.toggleRowSelection(row);
} else if (intersect2.length > 0) { } else if (intersect2.length > 0) {
//不选 //不选
} else { } else {
...@@ -2392,7 +2393,6 @@ export default { ...@@ -2392,7 +2393,6 @@ export default {
}); });
}, },
initPeopleStatus() { initPeopleStatus() {
let tableStatus = this.tablePerson; let tableStatus = this.tablePerson;
tableStatus.forEach(row => { tableStatus.forEach(row => {
if (row.status == 1) { if (row.status == 1) {
...@@ -2453,10 +2453,10 @@ export default { ...@@ -2453,10 +2453,10 @@ export default {
); );
//console.log('全部看过的:',this.lookedPerson); //console.log('全部看过的:',this.lookedPerson);
if (vm.checkTableState.multiplePerson === "") { if (vm.checkTableState.multiplePerson === "") {
// console.log('intersect',intersect); // if (intersect.length == 0 && difference.length > 0) {
if (intersect.length == 0 && difference.length > 0) { // this.initPeopleStatus();
this.initPeopleStatus(); // }
} this.initPeopleChoose();
} else if (vm.checkTableState.multiplePerson === true) { } else if (vm.checkTableState.multiplePerson === true) {
let intersect2 = operationData.getIntersect( let intersect2 = operationData.getIntersect(
idList, idList,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册