|
|
|
@ -87,7 +87,7 @@
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
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
|
|
|
|
@ -264,30 +264,36 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
});
|
|
|
|
|
layer.confirm('确定要重置密码吗?', {
|
|
|
|
|
icon: 3,
|
|
|
|
|
title: '提示'
|
|
|
|
|
}, function (index) {
|
|
|
|
|
$.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);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error: function (xhr, status, error) {
|
|
|
|
|
layer.close(loading);
|
|
|
|
|
console.log('请求出错:' + error + ',' + status);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|