diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue
index 6f9d69b1b8..21d5bc423e 100644
--- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue
+++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue
@@ -568,7 +568,7 @@ import { KeyValue } from '@/business/definition/model/ApiTestModel';
import { getCurrentProjectID, getCurrentUser } from 'metersphere-frontend/src/utils/token';
import { getUUID, objToStrMap, strMapToObj } from 'metersphere-frontend/src/utils';
-import { hasLicense, hasPermission } from 'metersphere-frontend/src/utils/permission';
+import { hasLicense, hasPermissions } from 'metersphere-frontend/src/utils/permission';
import OutsideClick from './common/outside-click';
import {
getReportMessageSocket,
@@ -1723,7 +1723,7 @@ export default {
});
},
runDebug(runScenario) {
- if (!hasPermission('PROJECT_API_SCENARIO:READ+EDIT')) {
+ if (!hasPermissions('PROJECT_API_SCENARIO:READ+DEBUG','PROJECT_API_SCENARIO:READ+RUN')) {
return;
}
this.mergeScenario(this.scenarioDefinition);
diff --git a/api-test/frontend/src/business/automation/scenario/common/ApiBaseComponent.vue b/api-test/frontend/src/business/automation/scenario/common/ApiBaseComponent.vue
index be28ba5bb1..b815c9bec6 100644
--- a/api-test/frontend/src/business/automation/scenario/common/ApiBaseComponent.vue
+++ b/api-test/frontend/src/business/automation/scenario/common/ApiBaseComponent.vue
@@ -65,18 +65,18 @@
diff --git a/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue b/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue
index 35160905bc..22a5529e72 100644
--- a/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue
+++ b/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue
@@ -90,7 +90,11 @@
icon="el-icon-video-play"
class="ms-btn"
size="mini"
- circle />
+ circle
+ v-permission="[
+ 'PROJECT_API_SCENARIO:READ+DEBUG',
+ 'PROJECT_API_SCENARIO:READ+RUN'
+ ]"/>
+ circle
+ v-permission="[
+ 'PROJECT_API_SCENARIO:READ+DEBUG',
+ 'PROJECT_API_SCENARIO:READ+RUN'
+ ]">
STOP
diff --git a/api-test/frontend/src/business/automation/scenario/component/ApiScenarioComponent.vue b/api-test/frontend/src/business/automation/scenario/component/ApiScenarioComponent.vue
index 7a20276d4c..5db364911f 100644
--- a/api-test/frontend/src/business/automation/scenario/component/ApiScenarioComponent.vue
+++ b/api-test/frontend/src/business/automation/scenario/component/ApiScenarioComponent.vue
@@ -29,7 +29,7 @@
-
+
{{ $t('project.version.name') }}: {{ scenario.versionName }}
@@ -39,9 +39,9 @@
{{ $t('api_test.automation.reference_deleted') }}
- {{ $t('commons.copy') }}
+ {{ $t('commons.copy') }}
{{ $t('api_test.scenario.reference') }}
+ >{{ $t('api_test.scenario.reference') }}
{{ getProjectName(scenario.projectId) }}
-
+
-
+
{{ $t('commons.testing') }}
+ circle
+ v-permission="[
+ 'PROJECT_API_SCENARIO:READ+DEBUG',
+ 'PROJECT_API_SCENARIO:READ+RUN'
+ ]"/>
+ circle
+ v-permission="[
+ 'PROJECT_API_SCENARIO:READ+DEBUG',
+ 'PROJECT_API_SCENARIO:READ+RUN'
+ ]">
STOP
@@ -109,11 +117,11 @@ import MsTcpBasisParameters from '../../../definition/components/request/tcp/Tcp
import MsDubboBasisParameters from '../../../definition/components/request/dubbo/BasisParameters';
import MsApiRequestForm from '../../../definition/components/request/http/ApiHttpRequestForm';
import ApiBaseComponent from '../common/ApiBaseComponent';
-import { getCurrentProjectID, getCurrentWorkspaceId } from 'metersphere-frontend/src/utils/token';
-import { getUUID, strMapToObj } from 'metersphere-frontend/src/utils';
-import { STEP } from '@/business/automation/scenario/Setting';
-import { getOwnerProjectIds, getProject } from '@/api/project';
-import { checkScenarioEnv, getScenarioById, setScenarioDomain } from '@/api/scenario';
+import {getCurrentProjectID, getCurrentWorkspaceId} from 'metersphere-frontend/src/utils/token';
+import {getUUID, strMapToObj} from 'metersphere-frontend/src/utils';
+import {STEP} from '@/business/automation/scenario/Setting';
+import {getOwnerProjectIds, getProject} from '@/api/project';
+import {checkScenarioEnv, getScenarioById, setScenarioDomain} from '@/api/scenario';
export default {
name: 'ApiScenarioComponent',
diff --git a/api-test/frontend/src/business/definition/components/debug/DebugHttpPage.vue b/api-test/frontend/src/business/definition/components/debug/DebugHttpPage.vue
index f0f3443125..bfbfb618dd 100644
--- a/api-test/frontend/src/business/definition/components/debug/DebugHttpPage.vue
+++ b/api-test/frontend/src/business/definition/components/debug/DebugHttpPage.vue
@@ -33,7 +33,7 @@
v-if="testCase === undefined && !scenario">
{{ $t('commons.test') }}
- {{ $t('api_test.definition.request.save_as_case') }}
diff --git a/api-test/frontend/src/business/definition/components/runtest/RunTestHTTPPage.vue b/api-test/frontend/src/business/definition/components/runtest/RunTestHTTPPage.vue
index 81ea505216..a3f0a0ef37 100644
--- a/api-test/frontend/src/business/definition/components/runtest/RunTestHTTPPage.vue
+++ b/api-test/frontend/src/business/definition/components/runtest/RunTestHTTPPage.vue
@@ -35,7 +35,7 @@
@command="handleCommand"
size="small"
v-if="!runLoading"
- v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']">
+ v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API', 'PROJECT_API_DEFINITION:READ+CREATE_CASE']">
{{ $t('commons.test') }}
-
+
diff --git a/framework/sdk-parent/frontend/src/components/environment/EnvironmentEdit.vue b/framework/sdk-parent/frontend/src/components/environment/EnvironmentEdit.vue
index 3203f3274f..eb97f4f755 100644
--- a/framework/sdk-parent/frontend/src/components/environment/EnvironmentEdit.vue
+++ b/framework/sdk-parent/frontend/src/components/environment/EnvironmentEdit.vue
@@ -22,7 +22,7 @@
-
+
{{ $t('commons.confirm') }}
diff --git a/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue b/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue
index 0bbc7f5c9b..edc6889333 100644
--- a/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue
+++ b/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue
@@ -49,23 +49,23 @@
{{ $t('api_test.request.headers') }}
- {{
+ {{
$t("commons.batch_add")
}}
-
+
-
+
{{ $t('commons.add') }}
-
+
{{ $t('commons.clear') }}
- {{
+ {{
$t('commons.update')
}}
@@ -105,9 +105,9 @@
+ icon="el-icon-document-copy" @exec="copy(row)" :disabled="isReadOnly"/>
+ icon="el-icon-delete" @exec="remove(row)" type="danger" :disabled="isReadOnly"/>
diff --git a/framework/sdk-parent/frontend/src/components/environment/database/DatabaseConfig.vue b/framework/sdk-parent/frontend/src/components/environment/database/DatabaseConfig.vue
index 92bfc5b26a..17abcc1652 100644
--- a/framework/sdk-parent/frontend/src/components/environment/database/DatabaseConfig.vue
+++ b/framework/sdk-parent/frontend/src/components/environment/database/DatabaseConfig.vue
@@ -1,7 +1,7 @@
-
+
diff --git a/framework/sdk-parent/frontend/src/components/environment/database/DatabaseConfigList.vue b/framework/sdk-parent/frontend/src/components/environment/database/DatabaseConfigList.vue
index c82724fd52..0001cd3968 100644
--- a/framework/sdk-parent/frontend/src/components/environment/database/DatabaseConfigList.vue
+++ b/framework/sdk-parent/frontend/src/components/environment/database/DatabaseConfigList.vue
@@ -17,9 +17,9 @@
+ @exec="handleCopy(scope.$index, scope.row)" :disabled="isReadOnly"/>
+ @exec="handleDelete(scope.$index)" :disabled="isReadOnly"/>