新增舰R脚本
This commit is contained in:
parent
886e3eae6f
commit
ef8d46aa64
@ -54,7 +54,7 @@
|
||||
maxlength: 99999,
|
||||
area: ['800px', '350px'] //自定义文本域宽高
|
||||
}, function (value, index, elem) {
|
||||
$.post("http://127.0.0.1:8002/jianr/task/add.do", {task: value}, function (json) {
|
||||
$.post("/jianr/task/add.do", {task: value}, function (json) {
|
||||
layer.msg(json.msg)
|
||||
})
|
||||
layer.close(index);
|
||||
@ -62,24 +62,24 @@
|
||||
}
|
||||
|
||||
function runTask(name) {
|
||||
$.post("http://127.0.0.1:8002/jianr/run.do", {task: name}, function (json) {
|
||||
$.post("/jianr/run.do", {task: name}, function (json) {
|
||||
layer.msg(json.msg)
|
||||
})
|
||||
}
|
||||
|
||||
function stopTask() {
|
||||
$.post("http://127.0.0.1:8002/jianr/stop.do", function (json) {
|
||||
$.post("/jianr/stop.do", function (json) {
|
||||
layer.msg(json.msg)
|
||||
})
|
||||
}
|
||||
|
||||
function removeTask(name) {
|
||||
$.post("http://127.0.0.1:8002/jianr/task/remove.do", {task: name}, function (json) {
|
||||
$.post("/jianr/task/remove.do", {task: name}, function (json) {
|
||||
layer.msg(json.msg)
|
||||
})
|
||||
}
|
||||
function getStatus() {
|
||||
$.post("http://127.0.0.1:8002/jianr/status.do", function (json) {
|
||||
$.post("/jianr/status.do", function (json) {
|
||||
if(json.data.status){
|
||||
$('#taskStatus')[0].innerHTML="运行"
|
||||
$('#taskStatus').css('color','#5C962C')
|
||||
@ -95,7 +95,7 @@
|
||||
})
|
||||
}
|
||||
window.onload = function init() {
|
||||
$.get("http://127.0.0.1:8002/jianr/task/list.do", function (json) {
|
||||
$.get("/jianr/task/list.do", function (json) {
|
||||
json.data.forEach(function (item) {
|
||||
createCard(item)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user