fix(性能测试): 只读用户可以修改性能测试报告的名称
--bug=1017147 --user=李玉号 【性能测试】只读用户可以修改性能测试报告的名称
This commit is contained in:
parent
3accd23d60
commit
de1bbdd03c
|
@ -182,6 +182,7 @@ import MsTableColumn from "metersphere-frontend/src/components/table/MsTableColu
|
||||||
import MsTable from "metersphere-frontend/src/components/table/MsTable";
|
import MsTable from "metersphere-frontend/src/components/table/MsTable";
|
||||||
import {deleteReport, deleteReportBatch, getOverview, getReportTime, renameReport, searchReports} from "@/api/report";
|
import {deleteReport, deleteReportBatch, getOverview, getReportTime, renameReport, searchReports} from "@/api/report";
|
||||||
import {getProjectVersions, isProjectVersionEnable} from "metersphere-frontend/src/api/version";
|
import {getProjectVersions, isProjectVersionEnable} from "metersphere-frontend/src/api/version";
|
||||||
|
import {hasPermission} from "metersphere-frontend/src/utils/permission";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "PerformanceTestReportList",
|
name: "PerformanceTestReportList",
|
||||||
|
@ -459,6 +460,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openReNameDialog($event) {
|
openReNameDialog($event) {
|
||||||
|
if (!hasPermission('PROJECT_PERFORMANCE_REPORT:READ+DELETE')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
this.$refs.renameDialog.open($event);
|
this.$refs.renameDialog.open($event);
|
||||||
},
|
},
|
||||||
rename(data) {
|
rename(data) {
|
||||||
|
|
Loading…
Reference in New Issue