修改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

@ -233,12 +233,12 @@ export default {
mounted() {},
beforeDestroy() {},
methods: {
onOpen() {
onOpen() {
this.getList();
},
onClose() {},
/** 查询项目人员列表 */
getList() {
getList() {
if (this.formData.projectId) {
this.loading = true;
this.queryParams.projectId = this.formData.projectId;
@ -306,7 +306,7 @@ export default {
this.$message.error("请选择下级节点数据,当前数据节点未查询到相关人员!");
return false;
}
if (note.children.length > 10) {
if (note.children && note.children.length > 10) {
this.$message.error("请选择下级节点数据,当前数据节点未查询到相关人员!");
return false;
}

View File

@ -272,12 +272,7 @@ export default {
components: {
ElImageViewer,
},
props: {
formData: {
projectId: String,
projectName: String,
},
},
props: {},
dicts: ["train_nature_zxpx"],
data() {
return {
@ -424,8 +419,8 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.form.projectId = this.formData.projectId;
this.form.projectName = this.formData.projectName;
this.form.projectId = this.project.id;
this.form.projectName = this.project.projectName;
this.open = true;
this.title = "添加专项培训";
this.getDeptList();
@ -481,7 +476,7 @@ export default {
this.title = "修改专项培训";
const id = row.id || this.ids;
let param = {
projectId: this.formData.projectId,
projectId: this.project.id,
};
this.open = true;
//