|
@@ -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>
|