修改bug
parent
b2faaa9aba
commit
1446bc8d56
|
@ -233,12 +233,12 @@ export default {
|
||||||
mounted() {},
|
mounted() {},
|
||||||
beforeDestroy() {},
|
beforeDestroy() {},
|
||||||
methods: {
|
methods: {
|
||||||
onOpen() {
|
onOpen() {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
onClose() {},
|
onClose() {},
|
||||||
/** 查询项目人员列表 */
|
/** 查询项目人员列表 */
|
||||||
getList() {
|
getList() {
|
||||||
if (this.formData.projectId) {
|
if (this.formData.projectId) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.queryParams.projectId = this.formData.projectId;
|
this.queryParams.projectId = this.formData.projectId;
|
||||||
|
@ -306,7 +306,7 @@ export default {
|
||||||
this.$message.error("请选择下级节点数据,当前数据节点未查询到相关人员!");
|
this.$message.error("请选择下级节点数据,当前数据节点未查询到相关人员!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (note.children.length > 10) {
|
if (note.children && note.children.length > 10) {
|
||||||
this.$message.error("请选择下级节点数据,当前数据节点未查询到相关人员!");
|
this.$message.error("请选择下级节点数据,当前数据节点未查询到相关人员!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -272,12 +272,7 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
ElImageViewer,
|
ElImageViewer,
|
||||||
},
|
},
|
||||||
props: {
|
props: {},
|
||||||
formData: {
|
|
||||||
projectId: String,
|
|
||||||
projectName: String,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
dicts: ["train_nature_zxpx"],
|
dicts: ["train_nature_zxpx"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -424,8 +419,8 @@ export default {
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.reset();
|
this.reset();
|
||||||
this.form.projectId = this.formData.projectId;
|
this.form.projectId = this.project.id;
|
||||||
this.form.projectName = this.formData.projectName;
|
this.form.projectName = this.project.projectName;
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "添加专项培训";
|
this.title = "添加专项培训";
|
||||||
this.getDeptList();
|
this.getDeptList();
|
||||||
|
@ -481,7 +476,7 @@ export default {
|
||||||
this.title = "修改专项培训";
|
this.title = "修改专项培训";
|
||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
let param = {
|
let param = {
|
||||||
projectId: this.formData.projectId,
|
projectId: this.project.id,
|
||||||
};
|
};
|
||||||
this.open = true;
|
this.open = true;
|
||||||
//获取项目部门列表的接口
|
//获取项目部门列表的接口
|
||||||
|
|
Loading…
Reference in New Issue