diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue index 090cc866c4..0a97efc9c9 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue @@ -171,8 +171,7 @@ import MsTableHeader from "@/business/components/common/components/MsTableHeader import MsTablePagination from "@/business/components/common/pagination/TablePagination"; import ShowMoreBtn from "@/business/components/track/case/components/ShowMoreBtn"; import MsTag from "../../../common/components/MsTag"; -import {downloadFile, getCurrentProjectID, getUUID} from "@/common/js/utils"; -import {getCurrentProjectID, getCurrentUser, getUUID} from "@/common/js/utils"; +import {downloadFile, getCurrentProjectID, getCurrentUser, getUUID} from "@/common/js/utils"; import MsApiReportDetail from "../report/ApiReportDetail"; import MsTableMoreBtn from "./TableMoreBtn"; import MsScenarioExtendButtons from "@/business/components/api/automation/scenario/ScenarioExtendBtns"; @@ -184,17 +183,16 @@ import PriorityTableItem from "../../../track/common/tableItems/planview/Priorit import PlanStatusTableItem from "../../../track/common/tableItems/plan/PlanStatusTableItem"; import BatchEdit from "../../../track/case/components/BatchEdit"; import {API_SCENARIO_LIST, TEST_CASE_LIST, TEST_PLAN_LIST, WORKSPACE_ID} from "../../../../../common/js/constants"; -import {PROJECT_NAME, WORKSPACE_ID} from "../../../../../common/js/constants"; +import {PROJECT_NAME} from "../../../../../common/js/constants"; import EnvironmentSelect from "../../definition/components/environment/EnvironmentSelect"; import BatchMove from "../../../track/case/components/BatchMove"; -import {_filter, _sort} from "@/common/js/tableUtils"; +import {_sort} from "@/common/js/tableUtils"; import {Api_Scenario_List, Track_Test_Case} from "@/business/components/common/model/JsonData"; import HeaderCustom from "@/business/components/common/head/HeaderCustom"; import { _filter, _handleSelect, _handleSelectAll, - _sort, getSelectDataCounts, setUnSelectIds, toggleAllSelection } from "@/common/js/tableUtils"; diff --git a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue index 015a81ed1a..df76ae457b 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue @@ -150,7 +150,6 @@ import {API_METHOD_COLOUR, CASE_PRIORITY, DUBBO_METHOD, REQ_METHOD, SQL_METHOD, import {getBodyUploadFiles, getCurrentProjectID, getCurrentUser} from "@/common/js/utils"; import ApiListContainer from "./ApiListContainer"; -import {getBodyUploadFiles, getCurrentProjectID} from "@/common/js/utils"; // import ApiListContainer from "./ApiListContainer"; import ApiListContainerWithDoc from "@/business/components/api/definition/components/list/ApiListContainerWithDoc"; import PriorityTableItem from "../../../../track/common/tableItems/planview/PriorityTableItem"; @@ -249,7 +248,7 @@ export default { props: { currentProtocol: String, selectNodeIds: Array, - activeDom:String, + activeDom: String, visible: { type: Boolean, default: false, @@ -312,8 +311,8 @@ export default { isApiListEnableChange(data) { this.$emit('isApiListEnableChange', data); }, - activeDomChange(tabType){ - this.$emit("activeDomChange",tabType); + activeDomChange(tabType) { + this.$emit("activeDomChange", tabType); }, initTable() { this.getLabel() @@ -474,13 +473,13 @@ export default { // } }, handleEditBatch() { - if(this.currentProtocol =='HTTP'){ + if (this.currentProtocol == 'HTTP') { this.valueArr.method = REQ_METHOD; - }else if(this.currentProtocol =='TCP'){ + } else if (this.currentProtocol == 'TCP') { this.valueArr.method = TCP_METHOD; - }else if(this.currentProtocol =='SQL'){ + } else if (this.currentProtocol == 'SQL') { this.valueArr.method = SQL_METHOD; - }else if(this.currentProtocol =='DUBBO'){ + } else if (this.currentProtocol == 'DUBBO') { this.valueArr.method = DUBBO_METHOD; } this.$refs.batchEdit.open(); @@ -570,9 +569,9 @@ export default { this.clickRow = row; this.$refs.setEnvironment.open(row); }, - headerDragend(newWidth,oldWidth,column,event){ + headerDragend(newWidth, oldWidth, column, event) { let finalWidth = newWidth; - if(column.minWidth>finalWidth){ + if (column.minWidth > finalWidth) { finalWidth = column.minWidth; } column.width = finalWidth; @@ -637,7 +636,8 @@ export default { }); }, }, - } + }, +}