fix(性能测试): 只读用户可以修改性能测试报告的名称

--bug=1017147 --user=李玉号 【性能测试】只读用户可以修改性能测试报告的名称
This commit is contained in:
shiziyuan9527 2022-10-11 16:25:16 +08:00 committed by lyh
parent 3accd23d60
commit de1bbdd03c
1 changed files with 4 additions and 0 deletions

View File

@ -182,6 +182,7 @@ import MsTableColumn from "metersphere-frontend/src/components/table/MsTableColu
import MsTable from "metersphere-frontend/src/components/table/MsTable";
import {deleteReport, deleteReportBatch, getOverview, getReportTime, renameReport, searchReports} from "@/api/report";
import {getProjectVersions, isProjectVersionEnable} from "metersphere-frontend/src/api/version";
import {hasPermission} from "metersphere-frontend/src/utils/permission";
export default {
name: "PerformanceTestReportList",
@ -459,6 +460,9 @@ export default {
}
},
openReNameDialog($event) {
if (!hasPermission('PROJECT_PERFORMANCE_REPORT:READ+DELETE')) {
return false;
}
this.$refs.renameDialog.open($event);
},
rename(data) {