src/SSCMS.Web/wwwroot/sitefiles/assets/js/admin/settings/logsError.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var $url = '/settings/logsError';
var $urlDelete = $url + '/actions/delete';
var data = utils.init({
items: null,
count: null,
categories: null,
pluginIds: null,
formInline: {
dateFrom: '',
dateTo: '',
category: '',
pluginId: '',
keyword: '',
currentPage: 1,
offset: 0,
limit: 30
}
});
var methods = {
getConfig: function () {
var $this = this;
$api.post($url, this.formInline).then(function (response) {
var res = response.data;
$this.items = res.items;
$this.count = res.count;
$this.categories = res.categories;
$this.pluginIds = res.pluginIds;
}).catch(function (error) {
utils.error(error);
}).then(function () {
utils.loading($this, false);
});
},
apiDelete: function () {
var $this = this;
utils.loading(this, true);
$api.post($urlDelete).then(function (response) {
var res = response.data;
$this.items = [];
$this.count = 0;
}).catch(function (error) {
utils.error(error);
}).then(function () {
utils.loading($this, false);
});
},
btnDeleteClick: function () {
var $this = this;
utils.alertDelete({
title: '清空系统错误日志',
text: '此操作将会清空系统错误日志,确定吗?',
后面还有 67 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
