From db5b4e89ed15d0b60eb3c9ddc20988cae9fa1750 Mon Sep 17 00:00:00 2001 From: zhengxinonly Date: Thu, 9 Sep 2021 02:52:15 +0800 Subject: [PATCH] =?UTF-8?q?wip(semantic):=E8=B0=83=E6=95=B4=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E6=96=87=E4=BB=B6=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/admin/department/dept.html | 20 ++++++++++---------- templates/admin/file/photo.html | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/templates/admin/department/dept.html b/templates/admin/department/dept.html index eabb70b..1d642a6 100644 --- a/templates/admin/department/dept.html +++ b/templates/admin/department/dept.html @@ -54,11 +54,11 @@ {% endif %} {#操作字段,需要在表格中使用#} - @@ -114,7 +114,7 @@ { field: 'address', title: '详细地址' }, { field: 'status', title: '状态', templet: '#dept-status' }, { field: 'sort', title: '排序', width: 100 }, - { title: '操作', templet: '#tools', width: 120, align: 'center' } + { title: '操作', templet: '#tool', width: 120, align: 'center' } ] ]/*表格渲染的数据*/ }) @@ -155,12 +155,12 @@ /*表格的操作栏*/ table.on('tool(tables)', function (obj) { - if (obj.event === 'tools_remove') { + if (obj.event === 'tool_remove') { /*移出事件*/ - window.tools_remove(obj) - } else if (obj.event === 'tools_edit') { + window.tool_remove(obj) + } else if (obj.event === 'tool_edit') { /*编辑事件*/ - window.tools_edit(obj) + window.tool_edit(obj) } }) @@ -215,7 +215,7 @@ }) } - window.tools_edit = function (obj) { + window.tool_edit = function (obj) { layer.open({ type: 2, @@ -227,7 +227,7 @@ } - window.tools_remove = function (obj) { + window.tool_remove = function (obj) { layer.confirm('确定要删除该部门', { icon: 3, title: '提示' }, function (index) { layer.close(index) let loading = layer.load() diff --git a/templates/admin/file/photo.html b/templates/admin/file/photo.html index fe8ed3d..69c5fcb 100644 --- a/templates/admin/file/photo.html +++ b/templates/admin/file/photo.html @@ -24,8 +24,8 @@ 删除 - @@ -64,7 +64,7 @@ unresize: true, align: 'center', templet: (d) => { - return `` + return `` }, }, @@ -89,7 +89,7 @@ }, { title: '操作', - toolbar: '#tools', + toolbar: '#tool', align: 'center', unresize: true, width: 200,