From 2ca90f313682758e5d5e30640e8cef81caf261ca Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 21 Nov 2022 15:17:14 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8Prettier=E8=87=AA=E5=AE=9A=E4=B9=89=E6=A0=87?= =?UTF-8?q?=E5=87=86=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-test/frontend/.prettierrc.json | 20 + api-test/frontend/public/index.html | 5 +- api-test/frontend/src/api/base-network.js | 9 +- .../frontend/src/api/definition-module.js | 15 +- api-test/frontend/src/api/definition.js | 24 +- api-test/frontend/src/api/home.js | 10 +- api-test/frontend/src/api/share.js | 10 +- .../src/business/automation/ApiAutomation.vue | 171 +-- .../src/business/automation/api-automation.js | 40 +- .../automation/report/ApiReportDetail.vue | 106 +- .../automation/report/ApiReportExport.vue | 63 +- .../automation/report/ApiReportList.vue | 197 +-- .../automation/report/ApiReportStatus.vue | 20 +- .../automation/report/ApiReportView.vue | 3 +- .../automation/report/ApiReportViewHeader.vue | 108 +- .../automation/report/SyncApiReportDetail.vue | 78 +- .../report/components/AssertionResults.vue | 47 +- .../report/components/MetricChart.vue | 124 +- .../report/components/RequestMetric.vue | 60 +- .../report/components/RequestResult.vue | 71 +- .../report/components/RequestResultTail.vue | 24 +- .../report/components/RequestSubResult.vue | 47 +- .../components/RequestSubResultTail.vue | 16 +- .../report/components/ResponseText.vue | 58 +- .../report/components/ScenarioResult.vue | 22 +- .../report/components/ScenarioResults.vue | 51 +- .../report/components/SqlResultTable.vue | 19 +- .../automation/scenario/AddBasisScenario.vue | 68 +- .../automation/scenario/ApiCustomize.vue | 24 +- .../automation/scenario/ApiScenarioEnv.vue | 32 +- .../automation/scenario/ApiScenarioList.vue | 390 ++---- .../automation/scenario/ApiScenarioModule.vue | 60 +- .../scenario/ApiScenarioVariables.vue | 12 +- .../automation/scenario/ApiVariableInput.vue | 18 +- .../business/automation/scenario/DebugRun.vue | 20 +- .../automation/scenario/EditApiScenario.vue | 1055 +++++------------ .../business/automation/scenario/EnvGroup.vue | 36 +- .../scenario/EnvGroupWithOption.vue | 41 +- .../automation/scenario/EnvPopover.vue | 41 +- .../automation/scenario/EnvSelect.vue | 36 +- .../automation/scenario/EnvSelectPopover.vue | 34 +- .../automation/scenario/ImportApiScenario.vue | 53 +- .../automation/scenario/MsInputTag.vue | 16 +- .../scenario/ScenarioDeleteConfirm.vue | 14 +- .../scenario/ScenarioExtendBtns.vue | 18 +- .../business/automation/scenario/Setting.js | 116 +- .../automation/scenario/TableMoreBtn.vue | 6 +- .../automation/scenario/api/AddApiCase.vue | 16 +- .../automation/scenario/api/AddBasisApi.vue | 96 +- .../automation/scenario/api/ApiRelevance.vue | 37 +- .../scenario/api/RelevanceApiList.vue | 16 +- .../scenario/api/RelevanceCaseList.vue | 62 +- .../scenario/api/RelevanceScenarioList.vue | 110 +- .../scenario/api/ScenarioRelevance.vue | 63 +- .../scenario/common/ApiBaseComponent.vue | 82 +- .../automation/scenario/common/ApiRunMode.vue | 49 +- .../scenario/common/CustomizeReqInfo.vue | 82 +- .../scenario/common/JDBCProcessorContent.vue | 143 +-- .../common/Jsr233ProcessorContent.vue | 57 +- .../scenario/common/MsPluginUpload.vue | 13 +- .../scenario/common/ScenarioImport.vue | 166 +-- .../common/function/ApiFuncRelevance.vue | 20 +- .../common/function/CustomFunctionRelate.vue | 66 +- .../common/function/ScriptNavMenu.vue | 48 +- .../common/function/custom-function.js | 33 +- .../scenario/common/function/script-menu.js | 23 +- .../scenario/component/ApiComponent.vue | 226 +--- .../component/ApiResponseComponent.vue | 6 +- .../component/ApiScenarioComponent.vue | 118 +- .../scenario/component/ComponentConfig.vue | 19 +- .../scenario/component/ConstantTimer.vue | 6 +- .../scenario/component/IfController.vue | 36 +- .../scenario/component/JDBCProcessor.vue | 9 +- .../component/JmeterElementComponent.vue | 17 +- .../scenario/component/Jsr233Processor.vue | 137 +-- .../scenario/component/LoopController.vue | 136 +-- .../scenario/component/PluginComponent.vue | 194 +-- .../component/PluginContentAssertions.vue | 253 +--- .../scenario/component/StepExtendBtns.vue | 60 +- .../component/TransactionController.vue | 23 +- .../scenario/component/urlhelper.js | 45 +- .../scenario/maximize/MaximizeScenario.vue | 424 ++----- .../business/automation/scenario/menu/Menu.js | 35 +- .../module/ApiScenarioModuleHeader.vue | 50 +- .../scenario/testplan/TestPlanList.vue | 101 +- .../scenario/variable/CsvFileUpload.vue | 112 +- .../scenario/variable/EditConstant.vue | 40 +- .../scenario/variable/EditCounter.vue | 32 +- .../automation/scenario/variable/EditCsv.vue | 57 +- .../scenario/variable/EditListValue.vue | 23 +- .../scenario/variable/EditRandom.vue | 37 +- .../scenario/variable/VariableImport.vue | 22 +- .../scenario/variable/VariableList.vue | 339 ++---- .../automation/schedule/ScheduleMaintain.vue | 167 +-- .../schedule/ScheduleNotification.vue | 17 +- .../automation/schedule/ScheduleSwitch.vue | 21 +- .../automation/version/ScenarioChildDiff.vue | 6 +- .../automation/version/ScenarioDiff.vue | 489 ++------ .../automation/version/v_node_diff.js | 97 +- .../src/business/commons/BatchEdit.vue | 89 +- .../src/business/commons/BatchMove.vue | 12 +- .../src/business/commons/DependenciesList.vue | 55 +- .../business/commons/EditEnvironmentGroup.vue | 35 +- .../business/commons/EnvironmentGroupList.vue | 49 +- .../business/commons/EnvironmentGroupRow.vue | 178 +-- .../src/business/commons/FileBatchMove.vue | 17 +- .../src/business/commons/FileHeader.vue | 25 +- .../src/business/commons/FormRichTextItem.vue | 14 +- .../src/business/commons/MsDropdown.vue | 6 +- .../src/business/commons/MsEditDialog.vue | 3 +- .../frontend/src/business/commons/MsTabs.vue | 11 +- .../src/business/commons/NodeTree.vue | 73 +- .../business/commons/PlanStatusTableItem.vue | 37 +- .../business/commons/PriorityTableItem.vue | 14 +- .../src/business/commons/QuoteFileList.vue | 105 +- .../src/business/commons/RelationshipList.vue | 10 +- .../src/business/commons/RelevanceDialog.vue | 3 +- .../business/commons/ScheduleNotification.vue | 17 +- .../src/business/commons/SelectMenu.vue | 16 +- .../src/business/commons/ShowMoreBtn.vue | 14 +- .../src/business/commons/TabPaneCount.vue | 6 +- .../commons/TestCaseRelevanceBase.vue | 43 +- .../commons/json-schema/JsonSchemaEditor.vue | 29 +- .../commons/json-schema/convert/convert.js | 29 +- .../commons/json-schema/import/ImportJson.vue | 39 +- .../json-schema/schema/editor/main.vue | 156 +-- .../schema/editor/mock/Advance.vue | 78 +- .../schema/editor/mock/MockComplete.vue | 26 +- .../src/business/definition/ApiDefinition.vue | 277 ++--- .../src/business/definition/api-definition.js | 50 +- .../definition/components/ApiConfig.vue | 45 +- .../definition/components/ApiKeyValue.vue | 71 +- .../components/ApiScenarioVariables.vue | 43 +- .../definition/components/ApiVariable.vue | 99 +- .../components/ApiVariableAdvance.vue | 394 ++---- .../components/ApiVariableInput.vue | 24 +- .../definition/components/ApiVariableJson.vue | 23 +- .../components/ApiVariableSetting.vue | 35 +- .../definition/components/BottomContainer.vue | 6 +- .../components/EditCompleteContainer.vue | 127 +- .../definition/components/MsCodeEdit.vue | 8 +- .../business/definition/components/Run.vue | 16 +- .../assertion/ApiAssertionDuration.vue | 23 +- .../assertion/ApiAssertionJsonPath.vue | 97 +- .../assertion/ApiAssertionJsr223.vue | 95 +- .../assertion/ApiAssertionRegex.vue | 53 +- .../components/assertion/ApiAssertionText.vue | 46 +- .../assertion/ApiAssertionXPath2.vue | 26 +- .../components/assertion/ApiAssertions.vue | 73 +- .../assertion/ApiAssertionsEdit.vue | 92 +- .../assertion/ApiJsonPathSuggestButton.vue | 10 +- .../assertion/ApiJsonpathSuggest.vue | 9 +- .../assertion/GlobalAssertionText.vue | 47 +- .../components/assertion/GlobalAssertions.vue | 69 +- .../assertion/ScenarioAssertions.vue | 70 +- .../assertion/document/DocumentBody.vue | 191 +-- .../assertion/document/DocumentHeader.vue | 12 +- .../assertion/document/DocumentImport.vue | 34 +- .../components/auth/ApiAuthConfig.vue | 79 +- .../components/basis/AddBasisApi.vue | 109 +- .../components/basis/BatchAddParameter.vue | 26 +- .../basis/BatchAddParameterButton.vue | 10 +- .../definition/components/basis/BatchEdit.vue | 88 +- .../definition/components/basis/BatchMove.vue | 12 +- .../components/basis/SetEnvironment.vue | 20 +- .../components/body/ApiBinaryVariable.vue | 35 +- .../definition/components/body/ApiBody.vue | 94 +- .../components/body/ApiBodyFileUpload.vue | 69 +- .../components/body/ApiFromUrlVariable.vue | 57 +- .../components/body/ApiJsonVariable.vue | 35 +- .../components/case/ApiCaseHeader.vue | 17 +- .../components/case/ApiCaseItem.vue | 387 ++---- .../components/case/EditApiCase.vue | 80 +- .../components/case/MsEnvironmentSelect.vue | 30 +- .../components/collapse/ApiCollapse.vue | 5 +- .../components/collapse/ApiCollapseItem.vue | 20 +- .../collapse/ApiRequestMethodSelect.vue | 7 +- .../components/complete/ApiBaseInfo.vue | 75 +- .../components/complete/ApiOtherInfo.vue | 23 +- .../complete/ApiRelationshipList.vue | 48 +- .../complete/ApiRelationshipRelevance.vue | 23 +- .../components/complete/ApiTableList.vue | 57 +- .../components/complete/BasisApi.vue | 51 +- .../complete/EditCompleteDubboApi.vue | 189 +-- .../complete/EditCompleteHTTPApi.vue | 489 ++------ .../complete/EditCompleteSQLApi.vue | 193 +-- .../complete/EditCompleteTCPApi.vue | 251 ++-- .../components/complete/TCPBasicApi.vue | 61 +- .../components/complete/table/TcpXmlTable.vue | 130 +- .../complete/version/DubboApiVersionDiff.vue | 85 +- .../complete/version/HttpApiVersionDiff.vue | 231 +--- .../complete/version/SQLApiVersionDiff.vue | 85 +- .../complete/version/TCPApiVersionDiff.vue | 131 +- .../components/debug/DebugDubboPage.vue | 41 +- .../components/debug/DebugHttpPage.vue | 89 +- .../components/debug/DebugJdbcPage.vue | 37 +- .../components/debug/DebugTcpPage.vue | 55 +- .../components/document/ApiDocumentAnchor.vue | 277 ++--- .../document/components/ApiInfoCollapse.vue | 31 +- .../document/components/ApiInformation.vue | 98 +- .../document/components/ApiRemarkShow.vue | 8 +- .../document/components/ApiRequestInfo.vue | 56 +- .../document/components/ApiResponseInfo.vue | 42 +- .../components/JsonSchema/JsonSchemaPanel.vue | 90 +- .../components/JsonSchema/JsonSchemaShow.vue | 26 +- .../components/plugin/JsonAdvancedSetting.vue | 6 +- .../plugin/TableAdvancedSetting.vue | 12 +- .../components/esb/EsbResponseResult.vue | 72 +- .../definition/components/esb/EsbTable.vue | 121 +- .../components/esb/MxEsbDefinition.vue | 193 +-- .../esb/MxEsbDefinitionResponse.vue | 28 +- .../components/extract/ApiExtract.vue | 37 +- .../components/extract/ApiExtractCommon.vue | 38 +- .../components/extract/ApiExtractEdit.vue | 41 +- .../components/import/ApiImport.vue | 224 +--- .../components/import/ApiSchedule.vue | 167 +-- .../components/import/ImportScheduleEdit.vue | 73 +- .../components/import/SwaggerTaskList.vue | 51 +- .../import/SwaggerTaskNotification.vue | 17 +- .../assertions/response-assertion/index.js | 5 +- .../json-path-extractor/index.js | 4 +- .../components/sampler/dubbo-sampler/index.js | 10 +- .../components/sampler/tcp-sampler/index.js | 12 +- .../jmeter/components/test-plan/index.js | 5 +- .../definition/components/jmeter/props.js | 12 +- .../components/list/ApiCaseBatchRun.vue | 9 +- .../components/list/ApiCaseSimpleList.vue | 273 ++--- .../components/list/ApiDeleteConfirm.vue | 34 +- .../components/list/ApiDocumentsPage.vue | 3 +- .../definition/components/list/ApiList.vue | 260 +--- .../components/list/ApiListContainer.vue | 14 +- .../list/ApiListContainerWithDoc.vue | 24 +- .../definition/components/list/ApiStatus.vue | 16 +- .../mock/Components/MockApiBody.vue | 60 +- .../mock/Components/MockApiResponseBody.vue | 32 +- .../mock/Components/MockApiScriptEditor.vue | 45 +- .../mock/Components/MockApiVariable.vue | 90 +- .../Components/MockCombinationCondition.vue | 42 +- .../mock/Components/MockRequestParam.vue | 113 +- .../mock/Components/MockResponseParam.vue | 55 +- .../mock/Components/MockScriptNavMenu.vue | 46 +- .../mock/Components/MockTcpParam.vue | 29 +- .../definition/components/mock/MockConfig.vue | 157 +-- .../components/mock/MockConfigHeader.vue | 17 +- .../components/mock/MockEditDrawer.vue | 60 +- .../components/mock/MockRowVariables.vue | 21 +- .../definition/components/mock/MockTab.vue | 132 +-- .../components/mock/TcpMockConfig.vue | 139 +-- .../components/module/ApiModule.vue | 59 +- .../components/module/ApiModuleHeader.vue | 28 +- .../components/module/ModulePublicButton.vue | 11 +- .../components/module/ModuleTrashButton.vue | 6 +- .../reference/ApiCaseTableExtendBtns.vue | 7 +- .../components/reference/ApiExtendBtns.vue | 19 +- .../components/reference/ShowReference.vue | 112 +- .../request/database/BasisParameters.vue | 236 +--- .../request/database/DatabaseConfig.vue | 13 +- .../request/database/DatabaseConfigList.vue | 50 +- .../request/database/DatabaseFrom.vue | 72 +- .../request/dubbo/BasisParameters.vue | 101 +- .../components/request/dubbo/ConfigCenter.vue | 38 +- .../request/dubbo/ConsumerAndService.vue | 66 +- .../components/request/dubbo/Interface.vue | 38 +- .../request/dubbo/RegistryCenter.vue | 31 +- .../request/http/ApiAdvancedConfig.vue | 26 +- .../request/http/ApiHttpRequestForm.vue | 195 +-- .../request/tcp/TcpBasisParameters.vue | 141 +-- .../components/request/tcp/TcpConfig.vue | 53 +- .../request/tcp/TcpFormatParameters.vue | 262 +--- .../components/request/tcp/TcpParams.vue | 41 +- .../components/response/ApiResponseView.vue | 6 +- .../components/response/AssertionResults.vue | 51 +- .../components/response/RequestMetric.vue | 121 +- .../components/response/RequestResultTail.vue | 8 +- .../components/response/ResponseResult.vue | 110 +- .../components/response/ResponseText.vue | 44 +- .../components/response/SqlResultTable.vue | 14 +- .../components/runtest/RunTestDubboPage.vue | 44 +- .../components/runtest/RunTestHTTPPage.vue | 93 +- .../components/runtest/RunTestSQLPage.vue | 51 +- .../components/runtest/RunTestTCPPage.vue | 72 +- .../share/MxApiDocumentBatchShare.vue | 13 +- .../definition/components/step/JmxStep.vue | 137 +-- .../business/definition/model/ApiTestModel.js | 120 +- .../business/definition/util/SyncSetting.vue | 12 +- .../components/EnvironmentSelect.vue | 50 +- .../environment/model/EnvironmentModel.js | 7 +- .../src/business/head/ApiHeaderMenus.vue | 28 +- .../src/business/history/ApiHistory.vue | 47 +- .../src/business/history/ApiHistoryDetail.vue | 18 +- .../history/api/ApiDubboParameters.vue | 110 +- .../business/history/api/ApiHistoryDetail.vue | 83 +- .../history/api/ApiHttpRequestParams.vue | 119 +- .../history/api/ApiJdbcParameters.vue | 33 +- .../src/business/history/api/ApiTcpEsb.vue | 72 +- .../business/history/api/ApiTcpParameters.vue | 75 +- .../history/api/EnvironmentEditParams.vue | 224 +--- .../history/api/EnvironmentHistoryDetail.vue | 65 +- .../history/api/common/ApiKeyValueDetail.vue | 29 +- .../history/api/json-view/ComparedEditor.vue | 12 +- .../api/json-view/schema/editor/main.vue | 90 +- .../src/business/history/tags/MsInputTag.vue | 19 +- .../history/tags/TagsHistoryDetail.vue | 27 +- .../home/components/card/HoverCard.vue | 12 +- .../home/components/card/MainInfoCard.vue | 42 +- .../home/components/chart/CountChart.vue | 29 +- .../components/dashboard/ApiCaseDashboard.vue | 123 +- .../components/dashboard/ApiDashboard.vue | 75 +- .../dashboard/ScenarioDashboard.vue | 131 +- .../dashboard/ScenarioScheduleDashboard.vue | 100 +- .../components/table/HomeTablePagination.vue | 6 +- .../components/table/ScheduleTaskList.vue | 107 +- .../home/components/table/UpdatedApiList.vue | 103 +- api-test/frontend/src/i18n/lang/en-US.js | 3 +- api-test/frontend/src/main.js | 8 +- api-test/frontend/src/router/index.js | 3 +- api-test/frontend/src/router/modules/api.js | 3 +- .../src/template/document/share/Document.vue | 3 +- .../report/share/ShareApiReportTemplate.vue | 3 +- api-test/frontend/vue.config.js | 11 +- 320 files changed, 5221 insertions(+), 17499 deletions(-) create mode 100644 api-test/frontend/.prettierrc.json diff --git a/api-test/frontend/.prettierrc.json b/api-test/frontend/.prettierrc.json new file mode 100644 index 0000000000..fc78cb2c89 --- /dev/null +++ b/api-test/frontend/.prettierrc.json @@ -0,0 +1,20 @@ +{ + "tabWidth": 2, + "useTabs": false, + "semi": true, + "singleQuote": true, + "quoteProps": "as-needed", + "trailingComma": "es5", + "bracketSpacing": true, + "bracketSameLine": true, + "jsxBracketSameLine": true, + "arrowParens": "always", + "rangeStart": 0, + "requirePragma": false, + "insertPragma": false, + "htmlWhitespaceSensitivity": "css", + "vueIndentScriptAndStyle": false, + "endOfLine": "lf", + "printWidth": 120, + "proseWrap": "never" +} diff --git a/api-test/frontend/public/index.html b/api-test/frontend/public/index.html index 5f1393c1a7..e647f117e3 100644 --- a/api-test/frontend/public/index.html +++ b/api-test/frontend/public/index.html @@ -10,9 +10,8 @@
diff --git a/api-test/frontend/src/api/base-network.js b/api-test/frontend/src/api/base-network.js index f717f8e44a..68b74ce434 100644 --- a/api-test/frontend/src/api/base-network.js +++ b/api-test/frontend/src/api/base-network.js @@ -23,10 +23,7 @@ export function fileUpload(url, file, files, param) { formData.append('files', f); }); } - formData.append( - 'request', - new Blob([JSON.stringify(param)], { type: 'application/json' }) - ); + formData.append('request', new Blob([JSON.stringify(param)], { type: 'application/json' })); let config = getUploadConfig(url, formData); return request(config); } @@ -45,9 +42,7 @@ export function downloadFile(method, url, data, fileName) { }; request(config) .then((res) => { - fileName = fileName - ? fileName - : window.decodeURI(res.headers['content-disposition'].split('=')[1]); + fileName = fileName ? fileName : window.decodeURI(res.headers['content-disposition'].split('=')[1]); jsFileDownload(res.data, fileName); }) .catch((e) => { diff --git a/api-test/frontend/src/api/definition-module.js b/api-test/frontend/src/api/definition-module.js index fb8326c86a..a971fd4432 100644 --- a/api-test/frontend/src/api/definition-module.js +++ b/api-test/frontend/src/api/definition-module.js @@ -1,12 +1,7 @@ import { get, post } from 'metersphere-frontend/src/plugins/request'; export function getApiModules(projectId, protocol, currentVersion) { - let url = - '/api/module/list/' + - projectId + - '/' + - protocol + - (currentVersion ? '/' + currentVersion : ''); + let url = '/api/module/list/' + projectId + '/' + protocol + (currentVersion ? '/' + currentVersion : ''); return get(url); } @@ -16,13 +11,7 @@ export function getApiModuleByProjectIdAndProtocol(projectId, protocol) { } export function getApiModuleByTrash(projectId, protocol, currentVersion) { - let url = - '/api/module/trash/list/' + - projectId + - '/' + - protocol + - '/' + - (currentVersion ? '/' + currentVersion : ''); + let url = '/api/module/trash/list/' + projectId + '/' + protocol + '/' + (currentVersion ? '/' + currentVersion : ''); return get(url); } diff --git a/api-test/frontend/src/api/definition.js b/api-test/frontend/src/api/definition.js index b2926807d7..a8b23d1668 100644 --- a/api-test/frontend/src/api/definition.js +++ b/api-test/frontend/src/api/definition.js @@ -62,16 +62,11 @@ export function apiListBatch(params) { } export function definitionWeekList(projectId, page, pageSize) { - return post( - '/api/definition/list/week/' + projectId + '/' + page + '/' + pageSize - ); + return post('/api/definition/list/week/' + projectId + '/' + page + '/' + pageSize); } export function getRelevanceDefinitionPage(page, pageSize, params) { - return post( - '/api/definition/list/relevance/' + page + '/' + pageSize, - params - ); + return post('/api/definition/list/relevance/' + page + '/' + pageSize, params); } export function getDefinitionPage(page, pageSize, params) { @@ -115,10 +110,7 @@ export function definitionReduction(params) { } export function definitionRelationship(currentPage, pageSize, params) { - return post( - '/api/definition/relationship/relate/' + currentPage + '/' + pageSize, - params - ); + return post('/api/definition/relationship/relate/' + currentPage + '/' + pageSize, params); } export function addRelationship(params) { @@ -130,17 +122,11 @@ export function jsonGenerator(params) { } export function getDefinitionReference(currentPage, pageSize, params) { - return post( - '/api/definition/get-reference/' + currentPage + '/' + pageSize, - params - ); + return post('/api/definition/get-reference/' + currentPage + '/' + pageSize, params); } export function getPlanReference(currentPage, pageSize, params) { - return post( - '/test/plan/api/case/get-reference/' + currentPage + '/' + pageSize, - params - ); + return post('/test/plan/api/case/get-reference/' + currentPage + '/' + pageSize, params); } export function deleteBatchByParams(params) { diff --git a/api-test/frontend/src/api/home.js b/api-test/frontend/src/api/home.js index 7901969644..420e5457d6 100644 --- a/api-test/frontend/src/api/home.js +++ b/api-test/frontend/src/api/home.js @@ -31,15 +31,7 @@ export function genPerformanceTestXml(file, files, params) { } export function getRunningTask(selectProjectId, currentPage, pageSize, param) { - return post( - '/task/center/runningTask/' + - selectProjectId + - '/' + - currentPage + - '/' + - pageSize, - param - ); + return post('/task/center/runningTask/' + selectProjectId + '/' + currentPage + '/' + pageSize, param); } export function formatNumber(param) { diff --git a/api-test/frontend/src/api/share.js b/api-test/frontend/src/api/share.js index d99c3c7bda..b13fc8e887 100644 --- a/api-test/frontend/src/api/share.js +++ b/api-test/frontend/src/api/share.js @@ -1,8 +1,4 @@ -import { - post, - generateShareUrl, - get, -} from 'metersphere-frontend/src/plugins/request'; +import { post, generateShareUrl, get } from 'metersphere-frontend/src/plugins/request'; export function generateApiDocumentShareInfo(param) { return post('/share/generate/api/document', param); @@ -22,9 +18,7 @@ export function getShareContent(shareId, stepId) { } export function getShareApiReport(shareId, testId) { - return get( - '/share/api/definition/report/getReport/' + shareId + '/' + testId - ); + return get('/share/api/definition/report/getReport/' + shareId + '/' + testId); } export function getShareInfo(id) { diff --git a/api-test/frontend/src/business/automation/ApiAutomation.vue b/api-test/frontend/src/business/automation/ApiAutomation.vue index 18c98acf80..9637844117 100644 --- a/api-test/frontend/src/business/automation/ApiAutomation.vue +++ b/api-test/frontend/src/business/automation/ApiAutomation.vue @@ -16,21 +16,11 @@ :is-trash-data="trashEnable" :type="'edit'" :total="total" - ref="nodeTree" - /> + ref="nodeTree" /> - - + + + ref="apiTrashScenarioList"> - + + ref="apiScenarioList"> - + + class="ms-tab-name-width"> {{ item.label }}
@@ -115,23 +85,16 @@ :currentScenario="item.currentScenario" :custom-num="customNum" :moduleOptions="moduleOptions" - ref="autoScenarioConfig" - /> + ref="autoScenarioConfig" />
- +