From faa4081b1617f062738bfa0e83b689cbd63d74ec Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期五, 23 十月 2026 18:08:56 +0800
Subject: [PATCH] 设备模块:仪器名称EN字段改为仪器名称,隐藏未实现的数采配置按钮;设备核查计划编辑与新增弹窗改为单列排版并调整宽度;新增核查记录弹窗按编辑表单对齐字段、校验与附件;核查责任人下拉包含admin;新增按设备获取核查计划明细接口
---
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