提交 05cb5ce1 编写于 作者: zhentian.jia's avatar zhentian.jia

fix 7:50选择范围

上级 76d0114f
......@@ -529,7 +529,7 @@ export default {
curmbSecond: "新建项目",
//页面展示位置
stepData: [true, false, false],
active: 0,
active: 1,
activeName: "first",
//基层信息 数据
uploadImgMessage: false,
......@@ -1685,6 +1685,8 @@ export default {
let checkItem = this.checkTableState[name];
if (checkItem !== true) {
console.log(this.tableOrganization);
//let che
this.$refs[name].toggleAllSelection();
this.checkTableState[name] = true;
}
} else {
......@@ -1722,10 +1724,10 @@ export default {
if (this.checkTableState.multipleOrganization == true) {
//设置机构类别0:无 1:全选 2:去掉 3:选中
kind = 1;
if (this.changedOrganization.length > 0) {
if (this.changedOrganization2.length > 0) {
kind = 2;
}
} else {
} else if(this.checkTableState.multipleOrganization == false) {
//全部不选
kind = 0;
if (this.changedOrganization.length > 0) {
......@@ -1743,7 +1745,7 @@ export default {
if (this.changedPerson.length > 0) {
kind = 2;
}
} else {
} else if (this.checkTableState.multiplePerson == false) {
//全部不选
kind = 0;
if (this.changedPerson.length > 0) {
......@@ -1898,7 +1900,12 @@ export default {
//获取机构id列表
getScopeOrganization(type) {
let scope = "";
if (type == 2 || type == 3) {
//2:去掉 3:选中
if (type == 2 ) {
for (let i = 0; i < this.changedOrganization2.length; i++) {
scope += this.changedOrganization2[i] + "|";
}
} else if (type == 3) {
for (let i = 0; i < this.changedOrganization.length; i++) {
scope += this.changedOrganization[i] + "|";
}
......@@ -1910,7 +1917,12 @@ export default {
//获取人员id列表
getScopePeople(type) {
let scope = "";
if (type == 2 || type == 3) {
//2:去掉 3:选中
if (type == 2) {
for (let i = 0; i < this.changedPerson2.length; i++) {
scope += this.changedPerson2[i] + "|";
}
} else if (type == 3) {
for (let i = 0; i < this.changedPerson.length; i++) {
scope += this.changedPerson[i] + "|";
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册