refactor: 缺陷复制不能复制不是当前模板平台的用例
This commit is contained in:
parent
3b43384829
commit
6c7b1f7cca
|
@ -208,7 +208,6 @@ export default {
|
|||
{
|
||||
tip: this.$t('commons.edit'), icon: "el-icon-edit",
|
||||
exec: this.handleEdit,
|
||||
isDisable: this.btnDisable,
|
||||
permissions: ['PROJECT_TRACK_ISSUE:READ+EDIT']
|
||||
}, {
|
||||
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",
|
||||
exec: this.handleDelete,
|
||||
isDisable: this.btnDisable,
|
||||
permissions: ['PROJECT_TRACK_ISSUE:READ+DELETE']
|
||||
}
|
||||
],
|
||||
|
@ -314,10 +312,10 @@ export default {
|
|||
});
|
||||
},
|
||||
btnDisable(row) {
|
||||
// if (row.platform === 'Local' || row.platform === 'Jira') {
|
||||
if (this.issueTemplate.platform !== row.platform) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
// }
|
||||
// return true;
|
||||
},
|
||||
syncIssues() {
|
||||
this.page.result = syncIssues(() => {
|
||||
|
|
Loading…
Reference in New Issue