Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
yunxin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e321e137
authored
May 17, 2019
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新联营物料
parent
51a370f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
app/Http/Controllers/ApiController.php
public/pc/js/controller/GoodsComList.js
public/pc/js/controller/UploadLogList.js
app/Http/Controllers/ApiController.php
View file @
e321e137
...
...
@@ -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
,
"没完成"
);
}
}
...
...
public/pc/js/controller/GoodsComList.js
View file @
e321e137
...
...
@@ -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
){
...
...
public/pc/js/controller/UploadLogList.js
View file @
e321e137
...
...
@@ -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
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment