diff --git a/frontend/src/business/components/common/components/MsTableOperatorButton.vue b/frontend/src/business/components/common/components/MsTableOperatorButton.vue index 8b03620d11..2e885e09b8 100644 --- a/frontend/src/business/components/common/components/MsTableOperatorButton.vue +++ b/frontend/src/business/components/common/components/MsTableOperatorButton.vue @@ -16,11 +16,6 @@ export default { name: "MsTableOperatorButton", components: {MsTipButton, MsTableButton}, - data() { - return{ - disabled: false - } - }, props: { icon: { type: String, @@ -33,6 +28,10 @@ tip: { type: String }, + disabled: { + type: Boolean, + default: false + }, isTesterPermission: { type: Boolean, default: false diff --git a/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue b/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue index dcc1894a33..655817ea13 100644 --- a/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue @@ -4,7 +4,7 @@ {{$t('load_test.domain_bind')}} - {{$t('commons.add')}} + {{$t('commons.add')}} @@ -19,7 +19,7 @@ - @@ -77,7 +77,7 @@ {{$t('load_test.params')}} - {{$t('commons.add')}} + {{$t('commons.add')}} @@ -92,7 +92,7 @@ {{ row.value }}--> - @@ -154,7 +154,7 @@ {{$t('load_test.connect_timeout')}} - + ms @@ -169,7 +169,7 @@ {{$t('load_test.custom_http_code')}} - @@ -196,7 +196,7 @@ props: { readOnly: { type: Boolean, - default: true + default: false }, testId: String, }, diff --git a/frontend/src/business/components/performance/test/components/PerformanceBasicConfig.vue b/frontend/src/business/components/performance/test/components/PerformanceBasicConfig.vue index 15336c2b7d..8d3ecd1f60 100644 --- a/frontend/src/business/components/performance/test/components/PerformanceBasicConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformanceBasicConfig.vue @@ -10,6 +10,7 @@ :before-upload="beforeUpload" :http-request="handleUpload" :on-exceed="handleExceed" + :disabled="isReadOnly" :file-list="fileList"> @@ -41,9 +42,9 @@ - - @@ -56,7 +57,15 @@ export default { name: "PerformanceBasicConfig", - props: ["testPlan"], + props: { + testPlan: { + type: Object + }, + isReadOnly: { + type: Boolean, + default: false + } + }, data() { return { result: {}, diff --git a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue index 558057d6e0..ebc465b4ee 100644 --- a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue @@ -8,6 +8,7 @@ {{$t('load_test.select_resource_pool')}} - + - + - + diff --git a/frontend/src/business/components/track/plan/view/comonents/test/PerformanceTestDetail.vue b/frontend/src/business/components/track/plan/view/comonents/test/PerformanceTestDetail.vue index 155c27bd03..d678c8cfd4 100644 --- a/frontend/src/business/components/track/plan/view/comonents/test/PerformanceTestDetail.vue +++ b/frontend/src/business/components/track/plan/view/comonents/test/PerformanceTestDetail.vue @@ -13,19 +13,19 @@ - 执行 + 执行 - + - + - + @@ -74,7 +74,13 @@ }] } }, - props: ['id'], + props: { + id: String, + isReadOnly: { + type: Boolean, + default: false + } + }, methods: { init() { this.getTest(); diff --git a/frontend/src/business/components/track/plan/view/comonents/test/PerformanceTestResult.vue b/frontend/src/business/components/track/plan/view/comonents/test/PerformanceTestResult.vue index f5cbfa78f6..583246dd54 100644 --- a/frontend/src/business/components/track/plan/view/comonents/test/PerformanceTestResult.vue +++ b/frontend/src/business/components/track/plan/view/comonents/test/PerformanceTestResult.vue @@ -13,12 +13,12 @@ {{reportName}} - - {{$t('report.test_stop_now')}} - {{$t('report.test_execute_again')}} - {{$t('report.export')}} - {{$t('report.compare')}} - + + + + + + @@ -91,7 +91,13 @@ report: {} } }, - props: ['reportId'], + props: { + reportId: String, + isReadOnly: { + type: Boolean, + default: false + }, + }, mounted() { this.init(); }, @@ -177,7 +183,6 @@ this.$set(this.report, "id", this.reportId); this.$set(this.report, "status", data.status); - // this.checkReportStatus(data.status); if (this.status === "Completed") { this.result = this.$get("/performance/report/content/report_time/" + this.reportId).then(res => { let data = res.data.data; @@ -205,7 +210,6 @@ this.status = data.status; this.$set(this.report, "id", this.reportId); this.$set(this.report, "status", data.status); - // this.checkReportStatus(data.status); if (this.status === "Completed") { this.initReportTimeInfo(); }