fix(系统设置): 测试用例权限控制问题

--bug=1009648 --user=lyh
[系统设置]-github-#9151
权限设置项目成员不允许修改测试用例的情况下,用例状态,责任人,等级,都可以修改,而且页面输入 Ctrl
+ S 还能保存用例
https://www.tapd.cn/55049933/s/1093136
This commit is contained in:
shiziyuan9527 2022-01-18 10:57:27 +08:00 committed by shiziyuan9527
parent bb04dc0aa7
commit 725d86a23a
4 changed files with 10 additions and 2 deletions

View File

@ -28,7 +28,7 @@
:current-project-id="currentProjectId"
@compare="compare" @checkout="checkout" @create="create" @del="del"/>
<el-dropdown split-button type="primary" class="ms-api-buttion" @click="handleCommand"
@command="handleCommand" size="small" style="float: right;margin-right: 20px">
@command="handleCommand" size="small" style="float: right;margin-right: 20px" :disabled="readOnly">
{{ $t('commons.save') }}
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="ADD_AND_CREATE" v-if="this.path =='/test/case/add'">{{
@ -925,8 +925,13 @@ export default {
},
createCtrlSHandle(event) {
let curTabId = this.$store.state.curTabId;
if (curTabId === this.tabId)
if (curTabId === this.tabId) {
if (event.keyCode === 83 && event.ctrlKey && this.readOnly) {
this.$warning(this.$t("commons.no_operation_permission"));
return false;
}
handleCtrlSEvent(event, this.saveCase);
}
},
saveFollow() {
if (this.showFollow) {

View File

@ -397,6 +397,7 @@ export default {
end_time_cannot_over_than_start_time: "End time cannot before than start time",
},
},
no_operation_permission: "No operation permission!",
enterprise_edition: "ENTERPRISE",
open_source_version: "OPEN-SOURCE",
function_planning: "The function is being planned...",

View File

@ -398,6 +398,7 @@ export default {
end_time_cannot_over_than_start_time: "结束时间不能超过当前时间",
},
},
no_operation_permission: "无操作权限!",
enterprise_edition: "企业版",
open_source_version: "开源版",
function_planning: "功能正在规划中...",

View File

@ -398,6 +398,7 @@ export default {
end_time_cannot_over_than_start_time: "結束時間不能超過當前時間",
},
},
no_operation_permission: "無操作權限!",
enterprise_edition: "企業版",
open_source_version: "開源版",
function_planning: "功能正在規劃中...",