فهرست منبع

Merge remote-tracking branch 'origin/dev' into dev

Hwf 6 ماه پیش
والد
کامیت
60ad19ee92
1فایلهای تغییر یافته به همراه12 افزوده شده و 2 حذف شده
  1. 12 2
      src/views/dataFilling/fillingManage.vue

+ 12 - 2
src/views/dataFilling/fillingManage.vue

@@ -214,7 +214,17 @@ const handlePagination = ({ page, limit }) => {
 };
 
 const handleIssue = (row) => {
-  // 处理下发逻辑
-  console.log('下发操作:', row);
+  const index = tableData.value.findIndex((item) => item.id === row.id);
+  if (index !== -1) {
+    // 更新前端表格状态
+    tableData.value[index].issued_status = 2;
+    someApiToUpdateStatus(row.id)
+      .then(() => {
+        console.log('状态更新成功');
+      })
+      .catch((error) => {
+        console.error('状态更新失败', error);
+      });
+  }
 };
 </script>