refactor: 缺陷复制不能复制不是当前模板平台的用例

This commit is contained in:
chenjianxing 2021-09-22 13:50:21 +08:00 committed by jianxing
parent 3b43384829
commit 6c7b1f7cca
1 changed files with 4 additions and 6 deletions

View File

@ -208,7 +208,6 @@ export default {
{ {
tip: this.$t('commons.edit'), icon: "el-icon-edit", tip: this.$t('commons.edit'), icon: "el-icon-edit",
exec: this.handleEdit, exec: this.handleEdit,
isDisable: this.btnDisable,
permissions: ['PROJECT_TRACK_ISSUE:READ+EDIT'] permissions: ['PROJECT_TRACK_ISSUE:READ+EDIT']
}, { }, {
tip: this.$t('commons.copy'), icon: "el-icon-copy-document", type: "success", tip: this.$t('commons.copy'), icon: "el-icon-copy-document", type: "success",
@ -217,7 +216,6 @@ export default {
}, { }, {
tip: this.$t('commons.delete'), icon: "el-icon-delete", type: "danger", tip: this.$t('commons.delete'), icon: "el-icon-delete", type: "danger",
exec: this.handleDelete, exec: this.handleDelete,
isDisable: this.btnDisable,
permissions: ['PROJECT_TRACK_ISSUE:READ+DELETE'] permissions: ['PROJECT_TRACK_ISSUE:READ+DELETE']
} }
], ],
@ -314,10 +312,10 @@ export default {
}); });
}, },
btnDisable(row) { btnDisable(row) {
// if (row.platform === 'Local' || row.platform === 'Jira') { if (this.issueTemplate.platform !== row.platform) {
return true;
}
return false; return false;
// }
// return true;
}, },
syncIssues() { syncIssues() {
this.page.result = syncIssues(() => { this.page.result = syncIssues(() => {