fix(系统设置): 测试用例权限控制问题
--bug=1009648 --user=lyh [系统设置]-github-#9151 权限设置项目成员不允许修改测试用例的情况下,用例状态,责任人,等级,都可以修改,而且页面输入 Ctrl + S 还能保存用例 https://www.tapd.cn/55049933/s/1093136
This commit is contained in:
parent
edbbfac303
commit
7aafc55f7e
|
@ -19,7 +19,7 @@
|
|||
{{ $t('operating_log.change_history') }}
|
||||
</el-link>
|
||||
<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'">{{
|
||||
|
@ -872,8 +872,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) {
|
||||
|
|
|
@ -392,6 +392,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...",
|
||||
|
|
|
@ -393,6 +393,7 @@ export default {
|
|||
end_time_cannot_over_than_start_time: "结束时间不能超过当前时间",
|
||||
},
|
||||
},
|
||||
no_operation_permission: "无操作权限!",
|
||||
enterprise_edition: "企业版",
|
||||
open_source_version: "开源版",
|
||||
function_planning: "功能正在规划中...",
|
||||
|
|
|
@ -393,6 +393,7 @@ export default {
|
|||
end_time_cannot_over_than_start_time: "結束時間不能超過當前時間",
|
||||
},
|
||||
},
|
||||
no_operation_permission: "無操作權限!",
|
||||
enterprise_edition: "企業版",
|
||||
open_source_version: "開源版",
|
||||
function_planning: "功能正在規劃中...",
|
||||
|
|
Loading…
Reference in New Issue