mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改任务显示
This commit is contained in:
parent
6b7dbe24ee
commit
b95396cf6b
@ -855,9 +855,11 @@ $(function () {
|
||||
that.runCache(code, this.lineIndex, 1), location.href = this.line.message;
|
||||
}
|
||||
}
|
||||
if (ret.data.status > 0) {
|
||||
that.$code.html('<p>' + that.lines.join('</p><p>') + '</p>'), that.$code.animate({scrollTop: that.$code[0].scrollHeight + 'px'}, 200);
|
||||
that.$percent.attr('lay-percent', (parseFloat(ret.data.progress || '0.00').toFixed(2)) + '%'), layui.element.render();
|
||||
if (ret.data.status > 0) that.setState(parseInt(ret.data.status), ret.data.message); else return setTimeout(function () {
|
||||
that.setState(parseInt(ret.data.status), ret.data.message);
|
||||
} else return setTimeout(function () {
|
||||
loadprocess(code);
|
||||
}, Math.floor(Math.random() * 500) + 200), false;
|
||||
if (parseInt(ret.data.status) === 3 || parseInt(ret.data.status) === 4) return false; else return setTimeout(function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user