From a98d668fedc0b5053967d33c4d68214d7c365a04 Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Mon, 4 Nov 2024 11:41:58 +0800 Subject: [PATCH] 'commit' --- WebRoot/html/pages/document/document.html | 65 ++++++++++++++++++----- 1 file changed, 53 insertions(+), 12 deletions(-) diff --git a/WebRoot/html/pages/document/document.html b/WebRoot/html/pages/document/document.html index e41228a8..ba47445a 100644 --- a/WebRoot/html/pages/document/document.html +++ b/WebRoot/html/pages/document/document.html @@ -34,7 +34,7 @@ } .layui-card { - margin-bottom: 15px; + margin-bottom: 0; border-radius: 2px; background-color: #fff; box-shadow: none; @@ -44,6 +44,26 @@ +
+
+
+
+ +
+ +
+
+
+ +
+
+
+
+
@@ -54,9 +74,15 @@
@@ -78,9 +104,10 @@ elem: '#data-table', url: '/dsBase/res/getZskPage', where: { - type_id: "1" + type_id: "1", + keyword: $("#docName").val() }, - height: 'full-35', + height: 'full-105', page: { limit: 20 , layout: ['count', 'prev', 'page', 'next', 'skip'] @@ -124,17 +151,17 @@ table.on('tool(data-table)', function (obj) { if (obj.event === 'delete') { - layer.confirm('确定要删除该文件吗?', { + layer.confirm('确定要删除该文档吗?', { icon: 3, title: '提示' }, function (index) { layer.close(index); $.ajax({ - url: "/ZhuQue/wxgzh/delZskDocument", + url: "/dsBase/res/delZskDocument", data: { id: obj.data.id }, type: 'post', - success: function (result) { - if (result.code === 200) { + success: function (res) { + if (res.success) { layer.msg('删除成功!', { icon: 1, time: 1000 @@ -142,7 +169,7 @@ table.reload('data-table'); }); } else { - layer.msg(result.msg, { + layer.msg(res.message, { icon: 2, time: 2000 }); @@ -150,11 +177,25 @@ } }); }); - + } else { + window.location.href = "/dsBase/res/download?id=" + obj.data.id; } }); + form.on('submit(user-query)', function () { + + tableRender(); + + // 阻止表单的默认提交行为 + return false; + }); + + + form.on('input-affix(clear)', function (data) { + tableRender(); + }); +