fix: 模板弹窗click改为显式函数调用
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h3>KPI字典</h3>
|
<h3>KPI字典</h3>
|
||||||
<div class="header-actions">
|
<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>
|
<el-button type="primary" @click="showForm=true; form={}; editMode=false">+ 新建KPI</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -589,6 +589,10 @@ function doDelete(id: number) {
|
|||||||
|
|
||||||
// ── 从模板创建 ──
|
// ── 从模板创建 ──
|
||||||
const showTemplateSelect = ref(false)
|
const showTemplateSelect = ref(false)
|
||||||
|
function openTemplateDialog() {
|
||||||
|
showTemplateSelect.value = true
|
||||||
|
loadTemplates()
|
||||||
|
}
|
||||||
const templateLoading = ref(false)
|
const templateLoading = ref(false)
|
||||||
const templates = ref<any[]>([])
|
const templates = ref<any[]>([])
|
||||||
const templateKeyword = ref('')
|
const templateKeyword = ref('')
|
||||||
|
|||||||
Reference in New Issue
Block a user