From ffe106598cb2def7e7e905695f5d6893eddcf3fd Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 27 十月 2025 19:35:03 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev-auto-sign'
---
 src/fabric-editor/hooks/context.ts |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/fabric-editor/hooks/context.ts b/src/fabric-editor/hooks/context.ts
index b989b5e..21a9a99 100644
--- a/src/fabric-editor/hooks/context.ts
+++ b/src/fabric-editor/hooks/context.ts
@@ -12,6 +12,7 @@
   checkTemplateParamObjectListNotNull,
   convertJsonMapToTemplateParamObjectList,
 } from '../utils';
+import { CanvasHeight, CanvasWidth } from '../constants';
 
 export interface TemplateDetailContext {
   templateDetail: Ref<API.GetContractTemplateQueryResult>;
@@ -166,6 +167,7 @@
 
   async function saveCustomerTemplateParam() {
     try {
+      console.log('templateEditState: ', templateEditState);
       const templateParamObjectList = convertJsonMapToTemplateParamObjectList(
         templateEditState.jsonMap
       );
@@ -185,6 +187,9 @@
               recorder: x.recorder,
               userType: x.userType,
               bindProperty: x.bindProperty,
+              x: x.left / CanvasWidth,
+              y: x.top / CanvasHeight,
+              page: x.pageNum + 1,
             } as API.SaveContractTemplateValuesCommandItem)
         ),
         templateJsonData: JSON.stringify(templateEditState.jsonMap),
--
Gitblit v1.9.1