fix: 模板弹窗click改为显式函数调用
This commit is contained in:
@@ -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('')
|
||||
|
||||
Reference in New Issue
Block a user