From ad5096fde40fd6b77ee05dc4a5ea56dde7155198 Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Wed, 24 Jul 2024 08:21:00 +0800 Subject: [PATCH] 'commit' --- WebRoot/view/jrgl/xtgl/index.html | 41 ++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/WebRoot/view/jrgl/xtgl/index.html b/WebRoot/view/jrgl/xtgl/index.html index f8a0769d..12a56235 100644 --- a/WebRoot/view/jrgl/xtgl/index.html +++ b/WebRoot/view/jrgl/xtgl/index.html @@ -85,6 +85,10 @@ 订阅管理 + + 密码重置 + 上传文档 @@ -195,6 +199,8 @@ window.edit(obj); } else if (obj.event === 'download') { window.download(obj); + } else if (obj.event === 'reset') { + window.reset(obj); } }); @@ -236,7 +242,7 @@ window.sub = function (obj) { layer.open({ type: 2, - title: '订阅', + title: '订阅管理', shade: 0.1, area: ['650px', '400px'], content: './subscribe.html?system_id=' + obj.data.system_id @@ -246,7 +252,7 @@ window.share = function (obj) { layer.open({ type: 2, - title: '共享', + title: '共享管理', shade: 0.1, area: ['650px', '400px'], content: './share.html?system_id=' + obj.data.system_id @@ -254,10 +260,39 @@ } window.download = function (obj) { - console.log(obj.data.system_id); window.location.href = '/QingLong/dataShare/downloadXlsx?system_id=' + obj.data.system_id; } + window.reset = function (obj) { + $.ajax({ + url: "/QingLong/dataShare/changePwd", + data: { system_id: obj.data.system_id }, + type: 'post', + success: function (result) { + if (result.success) { + layer.msg('密码重置成功!', { + icon: 1, + time: 1000 + }, function () { + table.reload('data-table'); + }); + } else { + layer.msg(result.message, { + icon: 2, + time: 1000 + }); + } + }, + error: function (xhr, status, error) { + layer.close(loading); + console.log('请求出错:' + error + ',' + status); + } + }) + + } + + + window.edit = function (obj) { layer.open({ type: 2,