From cc97e78d6adcc2ca633a3013c43b682e5f8b702b Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 3 Feb 2023 16:53:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=AF=BC=E5=85=A5=E5=A4=9A?= =?UTF-8?q?=E5=80=BC=E8=BE=93=E5=85=A5=E5=90=8E=EF=BC=8C=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=B8=8D=E5=B1=95=E7=A4=BA=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/history/tags/MsInputTag.vue | 1 + .../frontend/src/components/MsInputTag.vue | 1 + .../src/components/history/tags/MsInputTag.vue | 1 + .../sdk-parent/frontend/src/utils/tableUtils.js | 4 +++- .../src/business/issue/IssueEditDetail.vue | 15 ++++++++++----- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/api-test/frontend/src/business/history/tags/MsInputTag.vue b/api-test/frontend/src/business/history/tags/MsInputTag.vue index d376e979f4..2452817a09 100644 --- a/api-test/frontend/src/business/history/tags/MsInputTag.vue +++ b/api-test/frontend/src/business/history/tags/MsInputTag.vue @@ -47,6 +47,7 @@ export default { watch: { innerTags() { this.data[this.prop] = this.innerTags; + this.tagChange(); }, }, methods: { diff --git a/framework/sdk-parent/frontend/src/components/MsInputTag.vue b/framework/sdk-parent/frontend/src/components/MsInputTag.vue index e734845e2b..ade0f5b5af 100644 --- a/framework/sdk-parent/frontend/src/components/MsInputTag.vue +++ b/framework/sdk-parent/frontend/src/components/MsInputTag.vue @@ -76,6 +76,7 @@ export default { watch: { innerTags() { this.currentScenario[this.prop] = this.innerTags; + this.tagChange(); }, 'currentScenario.tags'() { if (this.prop === 'tags') { diff --git a/framework/sdk-parent/frontend/src/components/history/tags/MsInputTag.vue b/framework/sdk-parent/frontend/src/components/history/tags/MsInputTag.vue index 45483f7fc2..1c96c8120e 100644 --- a/framework/sdk-parent/frontend/src/components/history/tags/MsInputTag.vue +++ b/framework/sdk-parent/frontend/src/components/history/tags/MsInputTag.vue @@ -55,6 +55,7 @@ export default { watch: { innerTags() { this.data[this.prop] = this.innerTags; + this.tagChange(); } }, methods: { diff --git a/framework/sdk-parent/frontend/src/utils/tableUtils.js b/framework/sdk-parent/frontend/src/utils/tableUtils.js index 4ea24f6109..9b29bcf7f0 100644 --- a/framework/sdk-parent/frontend/src/utils/tableUtils.js +++ b/framework/sdk-parent/frontend/src/utils/tableUtils.js @@ -569,7 +569,9 @@ export function getCustomFieldValue(row, field, members) { * @returns {*[]|*} */ export function parseMultipleInputToArray(mulInputStr) { - if (mulInputStr.indexOf(",")) { + if (mulInputStr instanceof Array) { + return mulInputStr; + } else if (mulInputStr.indexOf(",")) { return mulInputStr.split(",") } else if (mulInputStr.indexOf(";")) { return mulInputStr.split(";") diff --git a/test-track/frontend/src/business/issue/IssueEditDetail.vue b/test-track/frontend/src/business/issue/IssueEditDetail.vue index 64e4e60482..62d0d0fe24 100644 --- a/test-track/frontend/src/business/issue/IssueEditDetail.vue +++ b/test-track/frontend/src/business/issue/IssueEditDetail.vue @@ -560,11 +560,16 @@ export default { let param = this.buildPram(); this.parseOldFields(param); let option = this.getOption(param); - saveOrUpdateIssue(option.url, option.data).then((response) => { - this.$emit('close'); - this.$success(this.$t('commons.save_success')); - this.$emit('refresh', response.data); - }) + this.result.loading = true; + saveOrUpdateIssue(option.url, option.data) + .then((response) => { + this.$emit('close'); + this.$success(this.$t('commons.save_success')); + this.$emit('refresh', response.data); + this.result.loading = false; + }).catch(() => { + this.result.loading = false; + }); }, parseOldFields(param) { let customFieldsStr = param.customFields;