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

外部人员

上级 1ede883b
...@@ -627,7 +627,7 @@ export default { ...@@ -627,7 +627,7 @@ export default {
{ required: true, message: "请选择活动资源", trigger: "change" } { required: true, message: "请选择活动资源", trigger: "change" }
], ],
projectIntro: [ projectIntro: [
{ required: true, message: "请填写活动形式", trigger: "blur" } { required: true, message: "请填写项目简介", trigger: "blur" }
], ],
attachmentUrl1: [ attachmentUrl1: [
{ required: true, message: "请选择列表图片", trigger: "blur" } { required: true, message: "请选择列表图片", trigger: "blur" }
...@@ -649,13 +649,12 @@ export default { ...@@ -649,13 +649,12 @@ export default {
this.getComponentInfo(); this.getComponentInfo();
this.idTypeValue = vm.idType; this.idTypeValue = vm.idType;
if (vm.idType == 2) {
this.activeName = "second";
}
this.$nextTick(function() { this.$nextTick(function() {
//this.getDepartment(); //this.getDepartment();
//this.idTypeValue = 2; //this.idTypeValue = 2;
if (this.idTypeValue == 2) {
console.log("idType:", vm.idType, " idTypeValue:", this.idTypeValue);
this.activeName = "second";
}
}); });
}, },
methods: { methods: {
...@@ -1010,6 +1009,7 @@ export default { ...@@ -1010,6 +1009,7 @@ export default {
}); });
} }
}); });
} else { } else {
//没有选择范围 //没有选择范围
vm.$message({ vm.$message({
...@@ -1018,6 +1018,42 @@ export default { ...@@ -1018,6 +1018,42 @@ export default {
type: "error" type: "error"
}); });
} }
} else {
//外部人员
let req = {
projectId: this.projectId,
setKindOfAdministrative: 0,
setKindOfOrganization: this.getKind("organization"),
setKindOfDepartment: this.getKind("department"),
setKindOfPeople: this.getKind("person")
};
if (
req.setKindOfOrganization == 2 ||
req.setKindOfOrganization == 3
) {
req.scopeOfOrganization = this.getScopeOrganization(
req.setKindOfOrganization
);
}
if (req.setKindOfDepartment == 3) {
req.scopeOfDepartment = this.getScopeDepartment();
}
if (req.setKindOfPeople == 2 || req.setKindOfPeople == 3) {
req.scopeOfPeople = this.getScopePeople(req.setKindOfPeople);
}
vm.POST("scope", req).then(res => {
if (res.code == "000000") {
//移动到选择项目组件
console.log(res);
this.active++;
this.stepData = [false, false, true];
} else {
this.$notify({
title: "",
message: res.message
});
}
});
} }
} }
}, },
...@@ -1184,6 +1220,9 @@ export default { ...@@ -1184,6 +1220,9 @@ export default {
//编辑 //编辑
if (this.idType == 1) { if (this.idType == 1) {
this.getAdministrative(); this.getAdministrative();
} else {
this.activeName = 'second';
this.getOrganization();
} }
} }
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册