-
-
+
+
+
diff --git a/src/views/business/comps/template/comps/gsp/GSP003.vue b/src/views/business/comps/template/comps/gsp/GSP003.vue
index 672b2df..2c1e59b 100644
--- a/src/views/business/comps/template/comps/gsp/GSP003.vue
+++ b/src/views/business/comps/template/comps/gsp/GSP003.vue
@@ -10,8 +10,8 @@
-
-
+
+
-
-
+
+
-
-
+
+
diff --git a/src/views/business/comps/template/comps/gsp/GSP010.vue b/src/views/business/comps/template/comps/gsp/GSP010.vue
index f66495a..d947da1 100644
--- a/src/views/business/comps/template/comps/gsp/GSP010.vue
+++ b/src/views/business/comps/template/comps/gsp/GSP010.vue
@@ -10,8 +10,8 @@
-
-
+
+
diff --git a/src/views/business/comps/template/comps/sp/SP001.vue b/src/views/business/comps/template/comps/sp/SP001.vue
index fabb77a..f4e8766 100644
--- a/src/views/business/comps/template/comps/sp/SP001.vue
+++ b/src/views/business/comps/template/comps/sp/SP001.vue
@@ -8,9 +8,7 @@
-
-
+
-
-
+
diff --git a/src/views/business/comps/template/comps/sp/SP00456.vue b/src/views/business/comps/template/comps/sp/SP00456.vue
index a20ca1d..6b27430 100644
--- a/src/views/business/comps/template/comps/sp/SP00456.vue
+++ b/src/views/business/comps/template/comps/sp/SP00456.vue
@@ -8,8 +8,7 @@
-
-
+
';
- rows.forEach(item => {
- tableHtml += '' + item + ' | ';
- });
- tableHtml += ''; // 正确闭合
-
- // Worksheet 名称
- const worksheet = title ? title : '导入模板';
-
- // 完整的 HTML 模板(包含编码声明和 Excel 兼容命名空间)
- const exportTemplate = `
-
-
-
-
-
-
- ${tableHtml}
-
- `;
-
- // 使用 Blob 生成文件(指定 MIME 类型为 application/vnd.ms-excel)
- const blob = new Blob([exportTemplate], { type: 'application/vnd.ms-excel;charset=utf-8' });
- const link = document.createElement('a');
- link.href = URL.createObjectURL(blob);
- link.download = worksheet + '.xls';
- link.click();
- URL.revokeObjectURL(link.href); // 释放内存
+ const ws = XLSX.utils.aoa_to_sheet([headerArray]);
+ const colWidths = headerArray.map(cell => getStringWidth(cell) + 2);
+ ws['!cols'] = colWidths.map(width => ({ wch: width }));
+ const wb = XLSX.utils.book_new();
+ XLSX.utils.book_append_sheet(wb, ws, 'Sheet1');
+ XLSX.writeFile(wb, `${title}.xlsx`);
this.$modal.closeLoading()
},
+
}
}
diff --git a/src/views/business/form/nonTrial/comp/syffList.vue b/src/views/business/form/nonTrial/comp/syffList.vue
index 463f1d5..96c6941 100644
--- a/src/views/business/form/nonTrial/comp/syffList.vue
+++ b/src/views/business/form/nonTrial/comp/syffList.vue
@@ -40,7 +40,7 @@
-
+
{{
$t('page.business.study.studyMethod.scff') }}
@@ -51,20 +51,30 @@
-
+
{{ $t('page.business.study.studyMethod.yidu') }}
{{ $t('page.business.study.studyMethod.weidu') }}
-
+
+ {{ $t('page.business.study.studyMethod.s') }}
+ {{ $t('page.business.study.studyMethod.f') }}
+
+
+
+
{{
$t('page.business.study.studyMethod.yuedu') }}
{{
$t('page.business.study.studyMethod.daochu') }}
+
+ {{
+ $t('page.business.study.studyMethod.gb') }}
@@ -76,15 +86,18 @@
-
+
+
+