|
|
|
@ -85,6 +85,10 @@
|
|
|
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="sub"><a
|
|
|
|
|
class="woo-theme-color">订阅管理</a></span>
|
|
|
|
|
|
|
|
|
|
<i class="woo-tool-text-delimiter"></i>
|
|
|
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="reset"><a
|
|
|
|
|
class="woo-theme-color">密码重置</a></span>
|
|
|
|
|
|
|
|
|
|
<i class="woo-tool-text-delimiter"></i>
|
|
|
|
|
<span class="woo-tool-span woo-tool-text-span selectFile" id="{{d.system_id}}"><a
|
|
|
|
|
class="woo-theme-color">上传文档</a></span>
|
|
|
|
@ -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,
|
|
|
|
|