2261151b by lihua

fix: 策略信息删除问题

1 parent 35acf679
...@@ -595,8 +595,9 @@ const handleConditionDelete = (scope) => { ...@@ -595,8 +595,9 @@ const handleConditionDelete = (scope) => {
595 } else { 595 } else {
596 //同步删除操作行为 596 //同步删除操作行为
597 proxy.$openMessageBox("确定要删除该行为类型和约束条件吗?", () => { 597 proxy.$openMessageBox("确定要删除该行为类型和约束条件吗?", () => {
598 let index = scope.$index; 598 let index = scope.row.index;
599 strategyValueInfo.value.splice(index, 1); 599 let delIndex = strategyValueInfo.value.findIndex(s => s.index == index);
600 strategyValueInfo.value.splice(delIndex, 1);
600 proxy.$ElMessage.success('删除成功'); 601 proxy.$ElMessage.success('删除成功');
601 }, () => { 602 }, () => {
602 proxy.$ElMessage.info("已取消删除"); 603 proxy.$ElMessage.info("已取消删除");
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!