diff --git a/frontend/src/api/modules/case-management/featureCase.ts b/frontend/src/api/modules/case-management/featureCase.ts index 176c314b7b..8fcdcff921 100644 --- a/frontend/src/api/modules/case-management/featureCase.ts +++ b/frontend/src/api/modules/case-management/featureCase.ts @@ -241,7 +241,7 @@ export function getThirdDemandList(data: TableQueryParams) { // 上传文件并关联用例 export function uploadOrAssociationFile(data: Record) { - return MSR.uploadFile({ url: UploadOrAssociationFileUrl }, { request: data.request, fileList: data.file }); + return MSR.uploadFile({ url: UploadOrAssociationFileUrl }, { request: data.request, fileList: [data.file] }); } // 转存文件 export function transferFileRequest(data: OperationFile) { diff --git a/frontend/src/utils/index.ts b/frontend/src/utils/index.ts index 666765f569..4ec756aeeb 100644 --- a/frontend/src/utils/index.ts +++ b/frontend/src/utils/index.ts @@ -806,10 +806,14 @@ export function customFieldDataToTableData(customFieldData: Record[ tableData[field.id] = JSON.parse(field.value).join(',') || '-'; } else if (multipleExcludes.includes(field.type) && Array.isArray(field.options) && field.value) { // 多值的类型后端返回的是json字符串 - field.value = JSON.parse(field.value); - tableData[field.id] = field.value - .map((val: string) => field.options.find((option: { value: string }) => option.value === val)?.text) - .join(','); + try { + field.value = JSON.parse(field.value); + tableData[field.id] = field.value + .map((val: string) => field.options.find((option: { value: string }) => option.value === val)?.text) + .join(','); + } catch (e) { + console.log('自定义字段值不是数组'); + } } else { tableData[field.id] = field.value; } diff --git a/frontend/src/views/bug-management/components/bug-detail-drawer.vue b/frontend/src/views/bug-management/components/bug-detail-drawer.vue index dc1b77b7cd..71525a4d33 100644 --- a/frontend/src/views/bug-management/components/bug-detail-drawer.vue +++ b/frontend/src/views/bug-management/components/bug-detail-drawer.vue @@ -646,7 +646,7 @@ line-height: 32px; @apply flex; .label { - width: 38%; + width: 84px; color: var(--color-text-3); } } diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseDetail.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseDetail.vue index 9f8268a815..6f14d9da1d 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseDetail.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseDetail.vue @@ -99,6 +99,7 @@ if (isContinue) { Message.success(t('caseManagement.featureCase.addSuccess')); caseModuleDetailRef.value.resetForm(); + return; } createSuccessId.value = res.data.id; diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseDetailDrawer.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseDetailDrawer.vue index d7cc2af2d5..b12a9ce5ee 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseDetailDrawer.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseDetailDrawer.vue @@ -672,7 +672,7 @@ @apply flex; .label { flex-shrink: 0; - width: 38%; + width: 84px; color: var(--color-text-3); } .value { @@ -682,8 +682,26 @@ :deep(.arco-form-item-layout-horizontal) { margin-bottom: 16px !important; } + :deep(.arco-form-item-label-col) { + padding-right: 0; + } + :deep(.arco-col-9) { + flex: 0 0 84px; + width: 84px; + } + :deep(.arco-col-15) { + flex: 0 0 calc(100% - 84px); + width: calc(100% - 84px); + } + :deep(.arco-form-item-label::after) { + color: red !important; + } :deep(.arco-form-item-label-col > .arco-form-item-label) { color: var(--color-text-3) !important; + width: 84px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } :deep(.arco-select-view-single) { border-color: transparent !important; diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDetail.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDetail.vue index 277b668faa..75b6c22bb2 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDetail.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDetail.vue @@ -160,7 +160,6 @@ ref="fileListRef" v-model:file-list="fileList" :show-tab="false" - mode="static" :request-params="{ caseId: detailForm.id, projectId: currentProjectId, @@ -168,6 +167,7 @@ :upload-func="uploadOrAssociationFile" :handle-delete="deleteFileHandler" :show-delete="props.allowEdit" + @finish="uploadFileOver" >