From 56db8e43d14be52192fb462e10044ab3d0b3b6d9 Mon Sep 17 00:00:00 2001 From: zzZ007 <249560690@qq.com> Date: Wed, 30 Dec 2020 17:20:35 +0800 Subject: [PATCH] Update table.vue.tpl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改自动生成代码,当table数据大于50条时,页面会卡死,替换掉 el-popover即可。 --- server/resource/template/web/table.vue.tpl | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/server/resource/template/web/table.vue.tpl b/server/resource/template/web/table.vue.tpl index 247d3fa6..9b39102e 100644 --- a/server/resource/template/web/table.vue.tpl +++ b/server/resource/template/web/table.vue.tpl @@ -68,14 +68,7 @@ @@ -208,6 +201,15 @@ export default { handleSelectionChange(val) { this.multipleSelection = val }, + openComfirm(row){ + this.$confirm('确定要删除吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.delete{{.StructName}}(row); + }); + }, async onDelete() { const ids = [] if(this.multipleSelection.length == 0){ @@ -317,4 +319,4 @@ export default { \ No newline at end of file +