fix(性能测试): 修复报告页面去掉删除权限不能正常点击重新执行、分享、导出的问题
--bug=1039642 --user=刘瑞斌 【性能测试】github#30182,【性能测试】将项目管理员的删除报告取消勾选,性能测试报告无法导出和分享、再次执行 https://www.tapd.cn/55049933/s/1500531
This commit is contained in:
parent
abca50702b
commit
47a985adbf
|
@ -155,7 +155,7 @@ import MsContainer from "metersphere-frontend/src/components/MsContainer";
|
|||
import MsMainContainer from "metersphere-frontend/src/components/MsMainContainer";
|
||||
import MsTag from "metersphere-frontend/src/components/MsTag";
|
||||
import {exportPdf} from "metersphere-frontend/src/utils";
|
||||
import {hasPermission} from "metersphere-frontend/src/utils/permission";
|
||||
import {hasPermissions} from "metersphere-frontend/src/utils/permission";
|
||||
import {getCurrentProjectID} from "metersphere-frontend/src/utils/token";
|
||||
import html2canvas from 'html2canvas';
|
||||
import MsPerformanceReportExport from "./PerformanceReportExport";
|
||||
|
@ -543,7 +543,7 @@ export default {
|
|||
}
|
||||
},
|
||||
created() {
|
||||
this.isReadOnly = !hasPermission('PROJECT_PERFORMANCE_REPORT:READ+DELETE');
|
||||
this.isReadOnly = !hasPermissions('PROJECT_PERFORMANCE_REPORT:READ+DELETE', 'PROJECT_PERFORMANCE_REPORT:READ+EXPORT');
|
||||
this.reportId = this.$route.path.split('/')[4];
|
||||
if (this.perReportId) {
|
||||
this.reportId = this.perReportId;
|
||||
|
|
Loading…
Reference in New Issue