更新联营物料

parent 51a370f9
......@@ -191,9 +191,11 @@ class ApiController extends Controller
$res = (new ServerFoostoneModel($request->appid,$request->key))->uploadComSkulog([$request->input("id")],2);
$status = @$res['data']['list'][0]['status'];
if($status == 2){ //成功
Export(0,'成功');
Export(0,$res['data']['list'][0]['file_name']['down']);
}elseif ($status == 3){ //失败
Export(1,"任务失败:".implode(',',@$res['data']['list'][0]['log']));
}else{
Export(2,"没完成");
}
}
......
......@@ -109,8 +109,8 @@
if(res.code == 0){
window.clearInterval(t2)
layer.closeAll();
alert_succ("导入成功",function () {
window.location.reload()
alert_succ('上传成功,点击确定下载上传结果...',function () {
window.location.href = res.msg
})
}
if(res.code == 1){
......
......@@ -25,7 +25,7 @@
,cols: [[ //
{field:'id', title: 'ID',align:'center'}
,{field:'create_name', title: '上传人',align:'center'}
,{field:'status', title: '状态',align:'center'}
,{field:'status', title: '上传状态',align:'center'}
,{field:'log', title: '日志',align:'center'}
,{field:'create_time', title: '上传时间',align:'center'}
,{field:'', title: '操作',fixed: 'right',align:'center',templet: function(d){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment