refactor(接口定义): 优化删除case弹窗页面
--bug=1017849 --user=王孝刚 【接口测试】接口CASE和接口自动化-删除接口case和场景弹窗优化-和其他页面保持一致 https://www.tapd.cn/55049933/s/1261573
This commit is contained in:
parent
c2076639ce
commit
fe5935f772
|
@ -349,7 +349,7 @@ import {
|
|||
import {getMaintainer, getProject} from "@/api/project";
|
||||
import {getProjectVersions, versionEnableByProjectId} from "@/api/xpack";
|
||||
import {getCurrentProjectID, getCurrentUserId} from "metersphere-frontend/src/utils/token";
|
||||
import {downloadFile, getUUID, objToStrMap, strMapToObj} from "metersphere-frontend/src/utils";
|
||||
import {downloadFile, getUUID, objToStrMap, strMapToObj, operationConfirm} from "metersphere-frontend/src/utils";
|
||||
import {hasLicense, hasPermission} from "metersphere-frontend/src/utils/permission";
|
||||
import {API_SCENARIO_CONFIGS} from "metersphere-frontend/src/components/search/search-components";
|
||||
import {API_SCENARIO_LIST} from "metersphere-frontend/src/utils/constants";
|
||||
|
@ -1090,8 +1090,7 @@ export default {
|
|||
alertMsg += this.$t('api_test.is_continue') + " ?";
|
||||
}
|
||||
}
|
||||
|
||||
this.$alert(alertMsg, '', {
|
||||
operationConfirm(alertMsg, '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
cancelButtonText: this.$t('commons.cancel'),
|
||||
callback: (action) => {
|
||||
|
@ -1266,7 +1265,7 @@ export default {
|
|||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(row, alertMsg);
|
||||
} else {
|
||||
this.$alert(alertMsg, '', {
|
||||
operationConfirm(alertMsg, '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
cancelButtonText: this.$t('commons.cancel'),
|
||||
callback: (action) => {
|
||||
|
|
|
@ -304,12 +304,12 @@ import MsBottomContainer from "../BottomContainer";
|
|||
import ShowMoreBtn from "@/business/commons/ShowMoreBtn";
|
||||
import MsBatchEdit from "../basis/BatchEdit";
|
||||
import MsApiCaseRunModeWithEnv from "./ApiCaseRunModeWithEnv";
|
||||
import {getUUID, operationConfirm} from "metersphere-frontend/src/utils";
|
||||
|
||||
import {API_METHOD_COLOUR, CASE_PRIORITY, DUBBO_METHOD, REQ_METHOD, SQL_METHOD, TCP_METHOD} from "../../model/JsonData";
|
||||
|
||||
import {getCurrentProjectID} from "metersphere-frontend/src/utils/token";
|
||||
import {hasLicense} from "metersphere-frontend/src/utils/permission";
|
||||
import {getUUID} from "metersphere-frontend/src/utils";
|
||||
import {getBodyUploadFiles} from "@/business/definition/api-definition";
|
||||
import PriorityTableItem from "@/business/commons/PriorityTableItem";
|
||||
import MsApiCaseTableExtendBtns from "../reference/ApiCaseTableExtendBtns";
|
||||
|
@ -1006,7 +1006,7 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
this.$alert(alertMsg, '', {
|
||||
operationConfirm(alertMsg, '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
|
@ -1105,7 +1105,7 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
this.$alert(alertMsg, '', {
|
||||
operationConfirm(alertMsg, '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
|
|
|
@ -883,7 +883,7 @@ export default {
|
|||
},
|
||||
handleDeleteBatch() {
|
||||
if (this.trashEnable) {
|
||||
this.$alert(this.$t('api_test.definition.request.delete_confirm') + "?", '', {
|
||||
operationConfirm(this.$t('api_test.definition.request.delete_confirm') + "?", '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
|
@ -897,7 +897,7 @@ export default {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
this.$alert(this.$t('api_test.definition.request.delete_confirm') + "?", '', {
|
||||
operationConfirm(this.$t('api_test.definition.request.delete_confirm') + "?", '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
|
|
|
@ -103,7 +103,7 @@ import MsTable from "../../table/MsTable";
|
|||
import MsTableColumn from "../../table/MsTableColumn";
|
||||
import ApiVariableSetting from "./ApiVariableSetting";
|
||||
import CsvFileUpload from "./variable/CsvFileUpload";
|
||||
import {downloadFile, getUUID} from "../../../utils";
|
||||
import {downloadFile, getUUID, operationConfirm} from "../../../utils";
|
||||
import VariableImport from "./variable/VariableImport";
|
||||
|
||||
export default {
|
||||
|
@ -244,7 +244,7 @@ export default {
|
|||
});
|
||||
},
|
||||
handleDeleteBatch() {
|
||||
this.$alert(this.$t('api_test.environment.variables_delete_info') + ' ' + " ?", '', {
|
||||
operationConfirm(this.$t('api_test.environment.variables_delete_info') + ' ' + " ?", '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
|
|
Loading…
Reference in New Issue