提交 88e73649 编写于 作者: S shiziyuan9527 提交者: 刘瑞斌

refactor(权限管理): 去掉hasRoles判断

上级 3cf57c48
......@@ -49,16 +49,14 @@ export default {
methods: {
recent() {
if (hasRoles(ROLE_TEST_VIEWER, ROLE_TEST_USER, ROLE_TEST_MANAGER)) {
if (this.options.condition) {
this.result = this.$post(this.options.url, this.options.condition, (response) => {
this.items = response.data;
});
} else {
this.result = this.$get(this.options.url, (response) => {
this.items = response.data;
});
}
if (this.options.condition) {
this.result = this.$post(this.options.url, this.options.condition, (response) => {
this.items = response.data;
});
} else {
this.result = this.$get(this.options.url, (response) => {
this.items = response.data;
});
}
}
}
......
......@@ -511,12 +511,10 @@ export default {
this.initTableData();
},
refreshTestPlanRecent() {
if (hasRoles(ROLE_TEST_USER, ROLE_TEST_MANAGER)) {
let param = {};
param.id = this.planId;
param.updateTime = Date.now();
this.$post('/test/plan/edit', param);
}
let param = {};
param.id = this.planId;
param.updateTime = Date.now();
this.$post('/test/plan/edit', param);
},
search() {
this.initTableData();
......
......@@ -387,12 +387,10 @@ export default {
this.initTableData();
},
refreshTestReviewRecent() {
if (hasRoles(ROLE_TEST_USER, ROLE_TEST_MANAGER)) {
let param = {};
param.id = this.reviewId;
param.updateTime = Date.now();
// this.$post('/test/case/review/edit', param);
}
let param = {};
param.id = this.reviewId;
param.updateTime = Date.now();
// this.$post('/test/case/review/edit', param);
},
search() {
this.initTableData();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册