jiaxing.zhou

fix(editReportingData): 修复行数据保存后未及时刷新的问题

- 移除了不必要的 console.log语句
- 在保存行数据后,通过 $nextTick确保数据更新后执行刷新逻辑
- 更新了 lastItemValid标志位的逻辑判断
...@@ -545,6 +545,7 @@ ...@@ -545,6 +545,7 @@
545 import RowDataEditForm from "./RowDataEditForm.vue"; 545 import RowDataEditForm from "./RowDataEditForm.vue";
546 import { getCustomerList, getPortList, getDeclareData, updateDeclareData } from "@/api/declareData-api.js"; 546 import { getCustomerList, getPortList, getDeclareData, updateDeclareData } from "@/api/declareData-api.js";
547 import { getDictData } from '@/api/system/dict-api.js' 547 import { getDictData } from '@/api/system/dict-api.js'
548 + import item from "@/layout/components/Sidebar/Item.vue";
548 export default { 549 export default {
549 name: "", 550 name: "",
550 components: { RowDataEditForm }, 551 components: { RowDataEditForm },
...@@ -924,7 +925,6 @@ ...@@ -924,7 +925,6 @@
924 925
925 this.$nextTick(() => { 926 this.$nextTick(() => {
926 this.expandRowKeys = [orderNum]; 927 this.expandRowKeys = [orderNum];
927 - console.log("next:",this.lastItemValid)
928 this.lastItemValid = true; // 重置标志位 928 this.lastItemValid = true; // 重置标志位
929 }); 929 });
930 }, 930 },
...@@ -965,6 +965,8 @@ ...@@ -965,6 +965,8 @@
965 this.$nextTick(()=>{ 965 this.$nextTick(()=>{
966 this.getTotalNumber() 966 this.getTotalNumber()
967 this.expandRowKeys = [] 967 this.expandRowKeys = []
968 + this.detailData.length
969 + this.lastItemValid = this.detailData.length === row.index;
968 }) 970 })
969 }, 971 },
970 rowFormDataSave(props){ 972 rowFormDataSave(props){
......