diff --git a/src/api/masterDataManagement/process/processoperation.js b/src/api/masterDataManagement/process/processoperation.js
index a6f6dc3..1893651 100644
--- a/src/api/masterDataManagement/process/processoperation.js
+++ b/src/api/masterDataManagement/process/processoperation.js
@@ -106,9 +106,9 @@ export function addProcessRoutingOperation(data) {
}
//删除
-export function delProcessRoutingOperation(operationId) {
+export function delProcessRoutingOperation(id) {
return request({
- url: 'MasterDataManagement/Process/ProcessOperation/operation_delete_flow',
- method: 'delete/' + operationId,
+ url: 'MasterDataManagement/Process/ProcessOperation/operation_delete_flow/' + id,
+ method: 'delete',
})
}
\ No newline at end of file
diff --git a/src/views/masterDataManagement/Process/ProcessOperation.vue b/src/views/masterDataManagement/Process/ProcessOperation.vue
index a8adea3..217b6e5 100644
--- a/src/views/masterDataManagement/Process/ProcessOperation.vue
+++ b/src/views/masterDataManagement/Process/ProcessOperation.vue
@@ -212,6 +212,8 @@
新增
+
+
@@ -222,7 +224,7 @@
-
+
@@ -309,6 +311,10 @@ const tableData = ref([])
// 新增表格行
function addTableRow() {
+ if (!tableData.value || !Array.isArray(tableData.value)) {
+ tableData.value = []
+ }
+
const newRow = {
flowCode: ``,
flowName: ``,
@@ -322,8 +328,8 @@ function addSubmit() {
// 删除表格行
function deleteTableRow(row) {
- console.log(row, '090909');
- const Ids = row.operationId
+ console.log(row.id, '090909');
+ const Ids = row.id
proxy
.$confirm('是否确认删除参数编号为"' + Ids + '"的数据项?')
.then(function () {
@@ -331,6 +337,11 @@ function deleteTableRow(row) {
})
.then(() => {
proxy.$modal.msgSuccess("删除成功")
+ getProcessOperation(operationIdData.value).then(res => {
+ if (res.code == 200) {
+ tableData.value = res.data.operationFlows
+ }
+ })
})
}
@@ -633,9 +644,11 @@ function handleAdd() {
const fkRoutingCodeData = ref('')
const operationCodeData = ref('')
+const operationIdData = ref('')
function handleView(val) {
fkRoutingCodeData.value = val.fkRoutingCode
operationCodeData.value = val.operationCode
+ operationIdData.value = val.operationId
resetForm1()
drawer.value = true
form1.value = { ...val }