diff --git a/src/views/manage/labelfieldinfo/index.vue b/src/views/manage/labelfieldinfo/index.vue index 93ddfda..724bc7f 100644 --- a/src/views/manage/labelfieldinfo/index.vue +++ b/src/views/manage/labelfieldinfo/index.vue @@ -1107,29 +1107,26 @@ export default { nurseclickzx(row) { console.log(this.titleup) this.taskPartitionDictId = row.id - if (this.title == '添加标签字段信息') { - console.log('添加') + if (this.title == '添加标签字段信息' && !this.titleup) { this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictName = row.taskPartitionName; this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictId = row.id; - } else{ - console.log('修改') + } else if (this.titleup == '修改标签字段信息' && !this.title) { this.form.taskPartitionDictName = row.taskPartitionName; this.form.taskPartitionDictId = row.id; - } this.innerVisible = false; }, // 任务类型 nurseclicktype(row) { - console.log(row, 'row') this.queryParamstask.taskTypeId = row.id this.taskTypeId = this.queryParamstask.taskTypeId // this.getListpartit() - if (this.title == '添加标签字段信息') { + if (this.title == '添加标签字段信息' && !this.titleup) { + console.log('xinzeng') this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeName = row.taskTypeName; this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeId = @@ -1138,7 +1135,9 @@ export default { this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictId = ''; // this.form.taskPartitionDictName = '请选择任务细分', this.taskPartitionDictId = ''; - } else{ + } else if (this.titleup == '修改标签字段信息' && !this.title) { + console.log('xiugai') + this.form.taskTypeName = row.taskTypeName; this.form.taskTypeId = row.id; this.form.taskPartitionDictName = "请选择任务细分"; @@ -1279,9 +1278,11 @@ export default { }; this.open = true; this.title = "添加标签字段信息"; + this.titleup=null; }, /** 修改按钮操作 */ handleUpdate(row) { + this.title = null; this.reset(); this.infolistword(); const id = row.id || this.ids