From 43c5f55acde13b7f8d79b2aeaa28dd7f0f800bde Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 10 十一月 2025 14:41:59 +0800
Subject: [PATCH] fix: bug
---
src/views/ProtocolManage/EditTemplate.vue | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/views/ProtocolManage/EditTemplate.vue b/src/views/ProtocolManage/EditTemplate.vue
index d99ffb6..691ff38 100644
--- a/src/views/ProtocolManage/EditTemplate.vue
+++ b/src/views/ProtocolManage/EditTemplate.vue
@@ -181,6 +181,10 @@
showDownloadBtn: false,
formatter: (row: API.GetEnterpriseContractTemplatesQueryResultItem) => setOSSLink(row.file),
},
+ isAutoSign: {
+ formatter: (row: API.GetEnterpriseContractTemplatesQueryResultItem) =>
+ row.isAutoSign ? '鏄�' : '鍚�',
+ },
},
}
);
@@ -200,6 +204,8 @@
enterpriseId: '',
isAutoSign: false,
autoSignPowerAttorneyUrl: [] as UploadUserFile[],
+
+ customContents: [] as string[],
},
closeAfterConfirm: false,
});
@@ -220,6 +226,8 @@
isAutoSign: detail.isAutoSign ?? false,
autoSignPowerAttorneyUrl: convertApi2FormUrlOnlyOne(detail.autoSignPowerAttorneyUrl),
enterpriseId: enterpriseId,
+
+ customContents: detail.customContents.map((x) => x.name),
});
} else {
handleAdd();
@@ -238,7 +246,6 @@
code: editForm.code,
access: editForm.access,
templateId: editForm.templateId,
- isAutoSign: editForm.isAutoSign,
autoSignPowerAttorneyUrl: editForm.autoSignPowerAttorneyUrl?.[0]?.path ?? '',
templateEditData: JSON.stringify(
pdfToImage.map(
@@ -250,7 +257,13 @@
} as TemplateEditDataItem)
)
),
+ customContents: editForm.customContents,
};
+ if (editForm.access === EnumElectronSignAccess.BestSign) {
+ params.isAutoSign = editForm.isAutoSign;
+ } else {
+ params.isAutoSign = false;
+ }
if (isEdit) {
params.id = editForm.id;
}
--
Gitblit v1.9.1