From 1a5df10545516b3f86710bd52889682fba50baea Mon Sep 17 00:00:00 2001 From: wuyize Date: Tue, 12 Jul 2022 10:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BF=AE=E6=94=B9=E5=B2=97?= =?UTF-8?q?=E4=BD=8D=E7=9A=84=E4=B8=80=E4=B8=AA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/EditJobDialog.vue | 6 +++--- src/views/ProjectGroup.vue | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/EditJobDialog.vue b/src/components/EditJobDialog.vue index ab22f18..94f132b 100644 --- a/src/components/EditJobDialog.vue +++ b/src/components/EditJobDialog.vue @@ -12,7 +12,7 @@ v-for="tag in dynamicTags" closable :disable-transitions="false" - @close="handleClose2(tag)" + @close="handleRemoveTag(tag)" size="large" > {{ tag }} @@ -67,7 +67,7 @@ export default { }, }, methods: { - handleClose2(tag) { + handleRemoveTag(tag) { this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1); }, @@ -88,7 +88,7 @@ export default { let inputValue = this.inputValue; if (inputValue) { const isCF = !!this.dynamicTags.find((item) => { - return item == inputValue; + return item === inputValue; }); if (isCF) { this.$message.warning("岗位不能重复"); diff --git a/src/views/ProjectGroup.vue b/src/views/ProjectGroup.vue index cef490f..07fdccc 100644 --- a/src/views/ProjectGroup.vue +++ b/src/views/ProjectGroup.vue @@ -190,7 +190,11 @@ export default { onEditClick(row) { this.editStaffId = row.staffId - this.editStaffPosition= row.projectStaffPosition + this.editStaffPosition = '' + const that = this + this.$nextTick(()=> { + that.editStaffPosition = row.projectStaffPosition + }) this.editJobDialogVisible = true }, // 选择一页显示多少条数据