fix: 修复删除的时候开源版报错的问题
This commit is contained in:
parent
e2c0155cbc
commit
e099aefa22
|
@ -218,7 +218,8 @@
|
|||
<el-link type="danger" @click="showReport(row)" v-else-if="row.lastResult === 'Fail'">
|
||||
{{ $t('api_test.automation.fail') }}
|
||||
</el-link>
|
||||
<el-link type="danger" style="color: #F6972A" @click="showReport(row)" v-else-if="row.lastResult === 'errorReportResult'">
|
||||
<el-link type="danger" style="color: #F6972A" @click="showReport(row)"
|
||||
v-else-if="row.lastResult === 'errorReportResult'">
|
||||
{{ $t('error_report_library.option.name') }}
|
||||
</el-link>
|
||||
</template>
|
||||
|
@ -1146,8 +1147,12 @@ export default {
|
|||
}
|
||||
}
|
||||
//
|
||||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(row, alertMsg);
|
||||
if (hasLicense()) {
|
||||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(row, alertMsg);
|
||||
} else {
|
||||
this._handleDelete(row, false);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
@ -814,8 +814,12 @@ export default {
|
|||
});
|
||||
return;
|
||||
}
|
||||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(api, this.$t('api_test.definition.request.delete_confirm'));
|
||||
if (hasLicense()) {
|
||||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(api, this.$t('api_test.definition.request.delete_confirm'));
|
||||
} else {
|
||||
this._handleDelete(api, false);
|
||||
}
|
||||
},
|
||||
_handleDelete(api, deleteCurrentVersion) {
|
||||
// 删除指定版本
|
||||
|
|
|
@ -256,8 +256,12 @@ export default {
|
|||
});
|
||||
},
|
||||
handleDelete(test) {
|
||||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(test, this.$t('load_test.delete_confirm'));
|
||||
if (hasLicense()) {
|
||||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(test, this.$t('load_test.delete_confirm'));
|
||||
} else {
|
||||
this._handleDelete(test, false);
|
||||
}
|
||||
},
|
||||
_handleDelete(test, deleteCurrentVersion) {
|
||||
if (deleteCurrentVersion) {
|
||||
|
|
|
@ -897,8 +897,12 @@ export default {
|
|||
});
|
||||
},
|
||||
handleDeleteToGc(testCase) {
|
||||
if (hasLicense()) {
|
||||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(testCase, this.$t('test_track.case.delete_confirm'));
|
||||
} else {
|
||||
this._handleDeleteVersion(testCase, false);
|
||||
}
|
||||
},
|
||||
batchReduction() {
|
||||
let param = buildBatchParam(this, this.$refs.table.selectIds);
|
||||
|
|
Loading…
Reference in New Issue