From 951b0558a6c3990e1c0ca792aed332914228508d Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期二, 13 十月 2026 17:45:08 +0800
Subject: [PATCH] 设备模块调整:档案修订新增保养、核查日期与周期并自动计算下次日期,列表新增核查、保养相关列且到期前一个月标红;设备校准的服务机构改为合格供应商下拉,使用授权的被授权人改为检测员下拉;设备树改为全部/设备/计量器具分类;保养计划明细新增计划保养时间;移除量值溯源计划页签
---
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