提交 867c17a9 编写于 作者: zhentian.jia's avatar zhentian.jia

勾选单页全空问题

上级 899f27c0
...@@ -2036,7 +2036,7 @@ export default { ...@@ -2036,7 +2036,7 @@ export default {
this.getOrganizationChoose(); this.getOrganizationChoose();
} }
}, },
//初始化搜索人员状态 //初始化搜索机构状态
initOrganizationChoose() { initOrganizationChoose() {
let tableStatus = this.tableOrganization; let tableStatus = this.tableOrganization;
if(typeof tableStatus === 'undefined') { if(typeof tableStatus === 'undefined') {
...@@ -2148,13 +2148,20 @@ export default { ...@@ -2148,13 +2148,20 @@ export default {
this.lookedOrganization, this.lookedOrganization,
idList idList
); );
// this.changedOrganization2 = operationData.getDifference(
// this.lookedOrganization,
// this.changedOrganization
// );
let difference = operationData.getDifference(
idList,
this.changedOrganization2
);
//debugger;
//console.log('全部看过的:',this.lookedOrganization); //console.log('全部看过的:',this.lookedOrganization);
if (vm.checkTableState.multipleOrganization === "") { if (vm.checkTableState.multipleOrganization === "") {
if (intersect.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,
...@@ -2436,15 +2443,18 @@ export default { ...@@ -2436,15 +2443,18 @@ export default {
this.lookedPerson, this.lookedPerson,
idList idList
); );
this.changedPerson2 = operationData.getDifference( // this.changedPerson2 = operationData.getDifference(
this.lookedPerson, // this.lookedPerson,
this.changedPerson // this.changedPerson
// );
let difference = operationData.getDifference(
idList,
this.changedPerson2
); );
//console.log('全部看过的:',this.lookedPerson); //console.log('全部看过的:',this.lookedPerson);
if (vm.checkTableState.multiplePerson === "") { if (vm.checkTableState.multiplePerson === "") {
console.log('intersect',intersect); // console.log('intersect',intersect);
// debugger; if (intersect.length == 0 && difference.length > 0) {
if (intersect.length == 0) {
this.initPeopleStatus(); this.initPeopleStatus();
} }
} else if (vm.checkTableState.multiplePerson === true) { } else if (vm.checkTableState.multiplePerson === true) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册