|
|
|
@ -212,35 +212,15 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.del = function (obj) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
table.on('toolbar(data-table)', function (obj) {
|
|
|
|
|
if (obj.event === 'createTask') {
|
|
|
|
|
window.createTask();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
window.createTask = function () {
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '选择填报格式',
|
|
|
|
|
shade: 0.1,
|
|
|
|
|
area: ['450px', '250px'],
|
|
|
|
|
content: './format_select.html'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.remove = function (obj) {
|
|
|
|
|
layer.confirm('确定要删除该系统吗?', {
|
|
|
|
|
layer.confirm('确定要删除该任务吗?', {
|
|
|
|
|
icon: 3,
|
|
|
|
|
title: '提示'
|
|
|
|
|
}, function (index) {
|
|
|
|
|
layer.close(index);
|
|
|
|
|
let loading = layer.load();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "/QingLong/dataShare/delSystem",
|
|
|
|
|
data: { system_id: obj.data.system_id },
|
|
|
|
|
url: "/QingLong/collect/delJob",
|
|
|
|
|
data: { job_id: obj.data.job_id },
|
|
|
|
|
type: 'post',
|
|
|
|
|
success: function (result) {
|
|
|
|
|
layer.close(loading);
|
|
|
|
@ -257,15 +237,26 @@
|
|
|
|
|
time: 1000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error: function (xhr, status, error) {
|
|
|
|
|
layer.close(loading);
|
|
|
|
|
console.log('请求出错:' + error + ',' + status);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
table.on('toolbar(data-table)', function (obj) {
|
|
|
|
|
if (obj.event === 'createTask') {
|
|
|
|
|
window.createTask();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
window.createTask = function () {
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '选择填报格式',
|
|
|
|
|
shade: 0.1,
|
|
|
|
|
area: ['450px', '250px'],
|
|
|
|
|
content: './format_select.html'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.refresh = function (param) {
|
|
|
|
|
table.reload('data-table');
|
|
|
|
|