fix: 模板弹窗click改为显式函数调用

This commit is contained in:
Hermes CI Fix
2026-07-19 18:12:02 +08:00
parent 04ba962b8e
commit 1231640af2
+5 -1
View File
@@ -4,7 +4,7 @@
<div class="page-header">
<h3>KPI字典</h3>
<div class="header-actions">
<el-button @click="showTemplateSelect = true">📋 从模板创建</el-button>
<el-button @click="openTemplateDialog">📋 从模板创建</el-button>
<el-button type="primary" @click="showForm=true; form={}; editMode=false">+ 新建KPI</el-button>
</div>
</div>
@@ -589,6 +589,10 @@ function doDelete(id: number) {
// ── 从模板创建 ──
const showTemplateSelect = ref(false)
function openTemplateDialog() {
showTemplateSelect.value = true
loadTemplates()
}
const templateLoading = ref(false)
const templates = ref<any[]>([])
const templateKeyword = ref('')