Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
19b86a27
Commit
19b86a27
authored
Aug 06, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
86
parent
774d4d6b
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
12 deletions
+52
-12
index.html
dev/index.html
+1
-1
0.ff0098bd31a13dfcedac.js
dev/static/js/0.ff0098bd31a13dfcedac.js
+20
-0
manifest.b5853fe6794d4d996078.js
dev/static/js/manifest.b5853fe6794d4d996078.js
+1
-0
api.js
src/service/api.js
+30
-11
No files found.
dev/index.html
View file @
19b86a27
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><meta
name=
referrer
content=
never
><link
rel=
stylesheet
href=
https:////at.alicdn.com/t/font_746649_x1rivf5f5.css
><link
rel=
stylesheet
href=
https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title></head><body><script
src=
https://cdn.bootcss.com/vue/2.5.17/vue.js
></script><script
src=
https://unpkg.com/vuex@3.0.1
></script><script
src=
https://cdn.bootcss.com/axios/0.18.0/axios.min.js
></script><script
src=
https://lib.baomitu.com/element-ui/2.7.2/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.
1db929eeb7db60aeb7
78.js
></script><script
type=
text/javascript
src=
/static/js/vendor.6a18832950b1e06cbd55.js
></script><script
type=
text/javascript
src=
/static/js/app.607bd306fb9aee58c3c4.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><meta
name=
referrer
content=
never
><link
rel=
stylesheet
href=
https:////at.alicdn.com/t/font_746649_x1rivf5f5.css
><link
rel=
stylesheet
href=
https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title></head><body><script
src=
https://cdn.bootcss.com/vue/2.5.17/vue.js
></script><script
src=
https://unpkg.com/vuex@3.0.1
></script><script
src=
https://cdn.bootcss.com/axios/0.18.0/axios.min.js
></script><script
src=
https://lib.baomitu.com/element-ui/2.7.2/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.
b5853fe6794d4d9960
78.js
></script><script
type=
text/javascript
src=
/static/js/vendor.6a18832950b1e06cbd55.js
></script><script
type=
text/javascript
src=
/static/js/app.607bd306fb9aee58c3c4.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
el
.
onerror
=
function
(
a
,
b
,
c
){
el
.
onerror
=
function
(
a
,
b
,
c
){
console
.
log
(
'error:'
,
a
,
b
,
c
);
console
.
log
(
'error:'
,
a
,
b
,
c
);
};
};
...
...
dev/static/js/0.ff0098bd31a13dfcedac.js
0 → 100644
View file @
19b86a27
This diff is collapsed.
Click to expand it.
dev/static/js/manifest.b5853fe6794d4d996078.js
0 → 100644
View file @
19b86a27
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
f
.
length
;
i
++
)
t
=
f
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
c
&&
c
(
f
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
f
=
{},
a
=
{
72
:
0
};
function
b
(
c
){
if
(
f
[
c
])
return
f
[
c
].
exports
;
var
a
=
f
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
a
.
exports
,
a
,
a
.
exports
,
b
),
a
.
l
=!
0
,
a
.
exports
}
b
.
e
=
function
(
e
){
var
c
=
a
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
f
=
new
Promise
(
function
(
f
,
b
){
c
=
a
[
e
]
=
[
f
,
b
]});
c
[
2
]
=
f
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"ff0098bd31a13dfcedac"
,
1
:
"4667f1574aa22b84609c"
,
2
:
"e94f60b077910deb18bb"
,
3
:
"c6779c9b3aa0c8780991"
,
4
:
"a4f7f1d7ae5c1cc16528"
,
5
:
"6d1a9f7a2e30dd44d02d"
,
6
:
"f1925ca55ec5c7d41887"
,
7
:
"f0e8b03080b3b4ebf31c"
,
8
:
"9f80bdcf1310ef1f4d40"
,
9
:
"523f6b2142e0b1a59de8"
,
10
:
"4af583c4dd796e3360f9"
,
11
:
"aec2a9fb6041eb630d55"
,
12
:
"2c72155b2154e8815c00"
,
13
:
"af9f03f63888b915fd7f"
,
14
:
"8cd0f3a8b31d5e64931e"
,
15
:
"4bd927c46272193f9e72"
,
16
:
"51a8748901c539c9d7f6"
,
17
:
"c6ca0315d005d11917f2"
,
18
:
"4bc4d53a32507fa89c2d"
,
19
:
"2b43d74d0aa30e036698"
,
20
:
"f42b11252eb62efb59cd"
,
21
:
"574b6484dc28d94bef1f"
,
22
:
"aeadcb935f4215bd1bd5"
,
23
:
"080a8966b3305c3ae15b"
,
24
:
"92cbc050ed71b534294b"
,
25
:
"586027709dea49f5116f"
,
26
:
"d77cdbd1bc2f9789ae81"
,
27
:
"62a380e3075bb9f61234"
,
28
:
"24b6f10c46ca1efeb87a"
,
29
:
"aba6b471e6c95a1907f4"
,
30
:
"0bc70212b94eb5665fff"
,
31
:
"135568f2f6466e39320c"
,
32
:
"24c59027060f0ebec47f"
,
33
:
"489760d45a9fef30bb4a"
,
34
:
"6c63eb8d60c5be1dc2f3"
,
35
:
"974841988630e681632c"
,
36
:
"512280620f6044f06ebd"
,
37
:
"40a0dd48806323a37f8b"
,
38
:
"508b9a742a79cdae432c"
,
39
:
"50ccfca6c1306cff512a"
,
40
:
"7cde0e1c3d8e909777cc"
,
41
:
"23e1be9d61c60e87d43b"
,
42
:
"0e33d8489572470ad249"
,
43
:
"a8d1fc3389fd795b2bce"
,
44
:
"a5af5802ec28b6068e5b"
,
45
:
"fe6e1551696349b29668"
,
46
:
"12a517ba912b03aab935"
,
47
:
"f0665b8c5b8f3af0c10f"
,
48
:
"fb608a4f603e4a31cade"
,
49
:
"f97d79f4daec8f87df42"
,
50
:
"7dd0676cbb72e6f2fd1a"
,
51
:
"939577234b61aded2624"
,
52
:
"b2ed992be8294772a938"
,
53
:
"c3b179b20a856816890a"
,
54
:
"212816b171eafd1488bc"
,
55
:
"f9539545129dd1bad64b"
,
56
:
"501b516cd393780837db"
,
57
:
"aa460a73c9c018520800"
,
58
:
"a08c9ad93f421380be9d"
,
59
:
"4b383cfca408a639edd1"
,
60
:
"9469909bde10400ad51e"
,
61
:
"e058805f6e7edf48bd52"
,
62
:
"95820125712b6f2ace7f"
,
63
:
"b469807b5322df1168f0"
,
64
:
"83207fa7cfec7327665c"
,
65
:
"c1554131ce716a3b677c"
,
66
:
"3b61402de44f86c4ef2a"
,
67
:
"09ced7442ae82f25505e"
,
68
:
"0456ffd7b429ae2463ac"
,
69
:
"1478ab9bf52f6eef71d3"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
a
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
f
},
b
.
m
=
e
,
b
.
c
=
f
,
b
.
d
=
function
(
e
,
c
,
f
){
b
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
b
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
c
,
"a"
,
c
),
c
},
b
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
b
.
p
=
"/"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/service/api.js
View file @
19b86a27
...
@@ -718,7 +718,7 @@ function exportExcel(form) {
...
@@ -718,7 +718,7 @@ function exportExcel(form) {
})
})
// return Vue.prototype.$post(form.url, form.params)
// return Vue.prototype.$post(form.url, form.params)
}
}
export
const
exportExcelApi
=
function
(
url
,
params
,
fname
)
{
export
const
exportExcelApi
=
function
(
url
,
params
,
fname
)
{
url
=
`
${
url
}
`
;
url
=
`
${
url
}
`
;
let
obj
=
{
let
obj
=
{
'url'
:
url
,
'url'
:
url
,
...
@@ -737,6 +737,35 @@ export const exportExcelApi = function (url, params,fname) {
...
@@ -737,6 +737,35 @@ export const exportExcelApi = function (url, params,fname) {
window
.
URL
.
revokeObjectURL
(
blob
);
window
.
URL
.
revokeObjectURL
(
blob
);
})
})
};
};
//按期数导出收货信息
const
exportReceiveInfoUrl
=
`
${
_baseUrl
}
api/admin/order/deliver/periods/export/`
;
export
const
exportReceiveInfoApi
=
function
(
periods_id
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
obj
=
{
'url'
:
`
${
exportReceiveInfoUrl
}${
periods_id
}
`
,
params
:{}
}
exportExcel
(
obj
).
then
(
res
=>
{
// 处理返回的文件流
console
.
log
(
res
)
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
'text/csv'
})
console
.
log
(
res
.
headers
[
'content-disposition'
].
split
(
'filename='
)[
1
])
CommonJs
.
dateFmt
(
new
Date
(),
"yyyy-MM-dd"
)
let
filename
=
'收货信息'
+
CommonJs
.
dateFmt
(
new
Date
(),
"yyyy-MM-dd"
)
+
'.xls'
var
link
=
document
.
createElement
(
'a'
);
link
.
href
=
window
.
URL
.
createObjectURL
(
blob
);
link
.
download
=
filename
;
link
.
click
();
window
.
URL
.
revokeObjectURL
(
blob
);
})
resolve
();
})
// let url = `${exportReceiveInfoUrl}${periods_id}`;
// window.open(url);
// return new Promise((resolve, reject) => {
// resolve();
// })
};
// 来源码列表
// 来源码列表
const
getSourceListUrl
=
'/api/admin/code/rule'
;
const
getSourceListUrl
=
'/api/admin/code/rule'
;
export
const
getSourceListApi
=
function
(
json
)
{
export
const
getSourceListApi
=
function
(
json
)
{
...
@@ -1221,16 +1250,6 @@ export const getPeriodsOtherListApi = function (json) {
...
@@ -1221,16 +1250,6 @@ export const getPeriodsOtherListApi = function (json) {
return
Vue
.
prototype
.
$fetch
(
getPeriodsOtherListUrl
,
json
)
return
Vue
.
prototype
.
$fetch
(
getPeriodsOtherListUrl
,
json
)
};
};
//按期数导出收货信息
const
exportReceiveInfoUrl
=
`
${
_baseUrl
}
api/admin/order/deliver/periods/export/`
;
export
const
exportReceiveInfoApi
=
function
(
periods_id
)
{
let
url
=
`
${
exportReceiveInfoUrl
}${
periods_id
}
`
;
window
.
open
(
url
);
return
new
Promise
((
resolve
,
reject
)
=>
{
resolve
();
})
};
//渠道分商品转化
//渠道分商品转化
const
getChannelGoodsConversionListUrl
=
`
${
_baseUrl
}
api/admin/channel/goods/conversion/list`
;
const
getChannelGoodsConversionListUrl
=
`
${
_baseUrl
}
api/admin/channel/goods/conversion/list`
;
export
const
getChannelGoodsConversionListApi
=
function
(
json
)
{
export
const
getChannelGoodsConversionListApi
=
function
(
json
)
{
...
...
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