From 583b93451117b3fb35a31cfc639639fb78bf4bc2 Mon Sep 17 00:00:00 2001 From: lb Date: Thu, 26 Oct 2023 14:07:36 +0800 Subject: [PATCH] delete some files --- src/views/base/equipmentAttr/index.vue | 214 ------------- src/views/base/equipmentFile/index.vue | 225 ------------- src/views/base/equipmentQuantityLog/index.vue | 277 ---------------- .../base/equipmentQuantityRealtime/index.vue | 276 ---------------- src/views/base/equipmentStatusLog/index.vue | 289 ----------------- .../base/equipmentStatusRealtime/index.vue | 296 ------------------ src/views/base/equipmentTypeFile/index.vue | 229 -------------- .../components/ProcessDetail.vue | 20 +- 8 files changed, 14 insertions(+), 1812 deletions(-) delete mode 100644 src/views/base/equipmentAttr/index.vue delete mode 100644 src/views/base/equipmentFile/index.vue delete mode 100644 src/views/base/equipmentQuantityLog/index.vue delete mode 100644 src/views/base/equipmentQuantityRealtime/index.vue delete mode 100644 src/views/base/equipmentStatusLog/index.vue delete mode 100644 src/views/base/equipmentStatusRealtime/index.vue delete mode 100644 src/views/base/equipmentTypeFile/index.vue diff --git a/src/views/base/equipmentAttr/index.vue b/src/views/base/equipmentAttr/index.vue deleted file mode 100644 index 9696af92..00000000 --- a/src/views/base/equipmentAttr/index.vue +++ /dev/null @@ -1,214 +0,0 @@ - - - diff --git a/src/views/base/equipmentFile/index.vue b/src/views/base/equipmentFile/index.vue deleted file mode 100644 index cb2ebd21..00000000 --- a/src/views/base/equipmentFile/index.vue +++ /dev/null @@ -1,225 +0,0 @@ - - - diff --git a/src/views/base/equipmentQuantityLog/index.vue b/src/views/base/equipmentQuantityLog/index.vue deleted file mode 100644 index b8d5208e..00000000 --- a/src/views/base/equipmentQuantityLog/index.vue +++ /dev/null @@ -1,277 +0,0 @@ - - - diff --git a/src/views/base/equipmentQuantityRealtime/index.vue b/src/views/base/equipmentQuantityRealtime/index.vue deleted file mode 100644 index 6d85dbbe..00000000 --- a/src/views/base/equipmentQuantityRealtime/index.vue +++ /dev/null @@ -1,276 +0,0 @@ - - - diff --git a/src/views/base/equipmentStatusLog/index.vue b/src/views/base/equipmentStatusLog/index.vue deleted file mode 100644 index 5aa1b79a..00000000 --- a/src/views/base/equipmentStatusLog/index.vue +++ /dev/null @@ -1,289 +0,0 @@ - - - diff --git a/src/views/base/equipmentStatusRealtime/index.vue b/src/views/base/equipmentStatusRealtime/index.vue deleted file mode 100644 index 64b6e43f..00000000 --- a/src/views/base/equipmentStatusRealtime/index.vue +++ /dev/null @@ -1,296 +0,0 @@ - - - diff --git a/src/views/base/equipmentTypeFile/index.vue b/src/views/base/equipmentTypeFile/index.vue deleted file mode 100644 index e148348e..00000000 --- a/src/views/base/equipmentTypeFile/index.vue +++ /dev/null @@ -1,229 +0,0 @@ - - - diff --git a/src/views/extend/processFlowView/components/ProcessDetail.vue b/src/views/extend/processFlowView/components/ProcessDetail.vue index 3d844ab0..5cb65004 100644 --- a/src/views/extend/processFlowView/components/ProcessDetail.vue +++ b/src/views/extend/processFlowView/components/ProcessDetail.vue @@ -227,8 +227,12 @@ export default { cancelButtonText: '取消', type: 'warning' } - ).then(() => { - view.cell.remove() + ).then(async () => { + const id = node.attrs.detId.text; + const status = await this.handleDelete(id); + if (status) { + view.cell.remove(); + } }).catch(err => { return; }) @@ -326,8 +330,9 @@ export default { async handleDelete(id) { const { code, data } = await this.delete({ id }); + debugger; if (code == 0) { - this.$msgSuccess('成功删除一个工序!'); + this.$modal.msgSuccess('成功删除一个工序!'); return true; } return false; @@ -419,7 +424,7 @@ export default { }; } ).catch(err => { - this.$msgError(err) + this.$modal.msgError(err) }); }, @@ -435,8 +440,11 @@ export default { info(payload) { return this.http(this.infoUrl, 'get', payload); }, - delete(payload) { - return this.http(this.deleteUrl, 'delete', payload); + delete({ id }) { + return this.$axios({ + url: this.deleteUrl + `?id=${id}`, + method: 'delete', + }); }, http(url, method, payload) { return this.$axios({