From 5d9a3141d4b3677bf8155da16b435d2a8818793b Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 23 十月 2026 17:44:08 +0800
Subject: [PATCH] feat(report): 引入 SuperDoc 在线编辑器实现报告审核功能 支持审核页面直接编辑报告 - 新增检测报告与检验报告切换功能,切换时自动保存当前编辑内容 - 检测时间从单日选择改为日期范围选择,兼容历史单日数据回显 - 标准模型新增标准要求值字段,复制模板时携带完整表单数据 - 产品委托单下载报告按钮增加可用性状态控制

---
 src/utils/generator/html.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/utils/generator/html.js b/src/utils/generator/html.js
index 4b29841..5bdd3af 100644
--- a/src/utils/generator/html.js
+++ b/src/utils/generator/html.js
@@ -297,10 +297,10 @@
 function buildElInputChild(conf) {
   const children = []
   if (conf.prepend) {
-    children.push(`<template slot="prepend">${conf.prepend}</template>`)
+    children.push(`<template #prepend>${conf.prepend}</template>`)
   }
   if (conf.append) {
-    children.push(`<template slot="append">${conf.append}</template>`)
+    children.push(`<template #append>${conf.append}</template>`)
   }
   return children.join('\n')
 }
@@ -337,7 +337,7 @@
   const list = []
   if (conf['list-type'] === 'picture-card') list.push('<i class="el-icon-plus"></i>')
   else list.push(`<el-button size="small" type="primary" icon="el-icon-upload">${conf.buttonText}</el-button>`)
-  if (conf.showTip) list.push(`<div slot="tip" class="el-upload__tip">鍙兘涓婁紶涓嶈秴杩� ${conf.fileSize}${conf.sizeUnit} 鐨�${conf.accept}鏂囦欢</div>`)
+  if (conf.showTip) list.push(`<template #tip><div class="el-upload__tip">鍙兘涓婁紶涓嶈秴杩� ${conf.fileSize}${conf.sizeUnit} 鐨�${conf.accept}鏂囦欢</div></template>`)
   return list.join('\n')
 }
 

--
Gitblit v1.9.3