修改bug

dev_xds
姜玉琦 2023-08-29 11:06:42 +08:00
parent b2faaa9aba
commit 1446bc8d56
2 changed files with 7 additions and 12 deletions

View File

@ -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;
} }

View File

@ -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;
// //