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",
|
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 false;
|
return true;
|
||||||
// }
|
}
|
||||||
// return true;
|
return false;
|
||||||
},
|
},
|
||||||
syncIssues() {
|
syncIssues() {
|
||||||
this.page.result = syncIssues(() => {
|
this.page.result = syncIssues(() => {
|
||||||
|
|
Loading…
Reference in New Issue