diff --git a/src/components/CreatePersonDialog.vue b/src/components/CreatePersonDialog.vue index 3a3df78..879aaa0 100644 --- a/src/components/CreatePersonDialog.vue +++ b/src/components/CreatePersonDialog.vue @@ -108,6 +108,8 @@ export default { this.$emit("onCancel"); }, handleInputConfirm() { + this.inputValue = this.inputValue.trim() + this.inputValue.trim() let inputValue = this.inputValue; if (inputValue) { const isCF = !!this.dynamicTags.find((item) => { diff --git a/src/components/EditJobDialog.vue b/src/components/EditJobDialog.vue index 58aecb6..911a5ea 100644 --- a/src/components/EditJobDialog.vue +++ b/src/components/EditJobDialog.vue @@ -86,6 +86,7 @@ export default { this.$emit("onCancel"); }, handleInputConfirm() { + this.inputValue = this.inputValue.trim() let inputValue = this.inputValue; if (inputValue) { const isCF = !!this.dynamicTags.find((item) => { diff --git a/src/views/Project.vue b/src/views/Project.vue index 1b1e1ac..0db87e7 100644 --- a/src/views/Project.vue +++ b/src/views/Project.vue @@ -109,7 +109,7 @@ export default { method: 'get', }).then(response => { if (response.data.code === 200) { - that.projectStaffPosition = response.data.data.projectStaffPosition.replace(',',',') + that.projectStaffPosition = response.data.data.projectStaffPosition.replaceAll(',',',') that.projectAccessLevel = response.data.data.projectAccessLevel } }).catch(function (error) { diff --git a/src/views/ProjectGroup.vue b/src/views/ProjectGroup.vue index c5ee7ae..9e56831 100644 --- a/src/views/ProjectGroup.vue +++ b/src/views/ProjectGroup.vue @@ -285,7 +285,7 @@ export default { this.getTableData(data); }, jobFormatter(row, column) { - return row[column.property].replace(',', ','); + return row[column.property].replaceAll(',', ','); }, }, mounted() { diff --git a/src/views/ProjectWorkitem.vue b/src/views/ProjectWorkitem.vue index 495250e..c91bf44 100644 --- a/src/views/ProjectWorkitem.vue +++ b/src/views/ProjectWorkitem.vue @@ -6,7 +6,7 @@ - 工作项 + {{ mine ? '我的工作项' : '工作项' }} @@ -25,7 +25,7 @@ >
+ style="padding: 4px;margin-left: 5px" text @click.native="onAddClick({taskId: 0, isRoot: true}, '需求')">
@@ -33,7 +33,7 @@ 需求 + style="padding: 4px;margin-left: 5px" text @click.native="onAddClick({taskId: 0, isRoot: true}, '任务')">
@@ -41,7 +41,7 @@ 任务 + style="padding: 4px;margin-left: 5px" text @click.native="onAddClick({taskId: 0, isRoot: true}, '缺陷')">
@@ -52,7 +52,7 @@ @@ -111,7 +111,8 @@