浏览代码

🐛 feat<数据录入>: 保存后按钮禁用问题

xinyan 8 月之前
父节点
当前提交
4bb0d2ed62
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/views/reportManage/dataCenter/normalDisplay/components/TableDataEntry.vue

+ 1 - 2
src/views/reportManage/dataCenter/normalDisplay/components/TableDataEntry.vue

@@ -409,7 +409,6 @@ const editEvent = async (row: RowVO) => {
   taskId = row.task;
   currentId = row.id;
   currentRow.value = row;
-  console.log("=>(TableDataEntry.vue:412) currentRow.value", currentRow.value);
   Object.assign(taskDataForm, row);
   await currentSalesTip();
   dayFormVisible.value = true;
@@ -710,7 +709,6 @@ async function updateMonthData(row: RowVO) {
 }
 
 const editRowEvent = async (row: any) => {
-  activeEditRow.value = false;
   const $grid = xGrid.value;
   if ($grid) {
     if (dateType === 'day') {
@@ -726,6 +724,7 @@ const editRowEvent = async (row: any) => {
       if (!validateNumericFields(row, fieldsToValidate)) return; // 验证字段
       await updateMonthData(row);
     }
+    activeEditRow.value = false;
     await $grid.clearEdit();
   }
 };