diff --git a/src/views/device/deviceOrder/index.vue b/src/views/device/deviceOrder/index.vue index d5f4e056..e4bf2724 100644 --- a/src/views/device/deviceOrder/index.vue +++ b/src/views/device/deviceOrder/index.vue @@ -948,12 +948,14 @@ export default { } this.$modal.confirm('是否确认删除计划工单编号为"' + orderCodes + '"的数据项?').then(function () { - return delDeviceOrder(orderIds); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("删除成功"); - }).catch(() => { - }); + delDeviceOrder(orderIds).then(response => { + if (response.code != 500) { + this.$modal.msgSuccess("删除成功"); + this.getList(); + } + }).catch(() => { + }); + }) }, /** 导出按钮操作 */ handleExport() { diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue index 8d0e1c06..9f35e46b 100644 --- a/src/views/device/inspectionPlan/index.vue +++ b/src/views/device/inspectionPlan/index.vue @@ -377,18 +377,18 @@