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({