Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cneeds-server
Overview
Overview
Details
Activity
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
zhangzr
cneeds-server
Commits
574e7177
Commit
574e7177
authored
May 26, 2020
by
zzrdark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加下载模板
2.修复其他接口请求问题
parent
9fb6c8cc
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
6 deletions
+40
-6
DeviceController.java
...x/cneeds/server/datashow/web/device/DeviceController.java
+35
-2
LogFlieController.java
.../cneeds/server/datashow/web/device/LogFlieController.java
+1
-0
index.html
cneeds-server-datashow/src/main/resources/statics/index.html
+2
-2
app.0eafa615.js
...show/src/main/resources/statics/static/js/app.0eafa615.js
+0
-0
chunk-1a86e192.485ba7db.js
...in/resources/statics/static/js/chunk-1a86e192.485ba7db.js
+2
-0
chunk-1a86e192.a55f8fd2.js
...in/resources/statics/static/js/chunk-1a86e192.a55f8fd2.js
+0
-2
chunk-libs.ddf89aa7.js
...c/main/resources/statics/static/js/chunk-libs.ddf89aa7.js
+0
-0
order-Info.xlsx
...rver-datashow/src/main/resources/template/order-Info.xlsx
+0
-0
No files found.
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java
View file @
574e7177
...
@@ -9,12 +9,18 @@ import com.mx.cneeds.server.datashow.client.DeviceClient;
...
@@ -9,12 +9,18 @@ import com.mx.cneeds.server.datashow.client.DeviceClient;
import
com.mx.cneeds.server.datashow.client.UserClient
;
import
com.mx.cneeds.server.datashow.client.UserClient
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.core.io.ClassPathResource
;
import
org.springframework.core.io.InputStreamResource
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.io.FileNotFoundException
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.util.LinkedList
;
import
java.util.LinkedList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -318,4 +324,31 @@ public class DeviceController {
...
@@ -318,4 +324,31 @@ public class DeviceController {
return
R
.
ok
();
return
R
.
ok
();
}
}
@RequestMapping
(
value
=
"/device/downloadDeviceUploadFile"
,
method
=
RequestMethod
.
GET
)
public
ResponseEntity
<
InputStreamResource
>
downloadDeviceUploadFile
(){
ResponseEntity
<
InputStreamResource
>
response
=
null
;
try
{
ClassPathResource
classPathResource
=
new
ClassPathResource
(
"template/order-Info.xlsx"
);
InputStream
inputStream
=
classPathResource
.
getInputStream
();
//File file = new File(path);
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
add
(
"Cache-Control"
,
"no-cache, no-store, must-revalidate"
);
headers
.
add
(
"Content-Disposition"
,
"attachment; filename = 模板文件.xlsx"
);
headers
.
add
(
"Pragma"
,
"no-cache"
);
headers
.
add
(
"Expires"
,
"0"
);
response
=
ResponseEntity
.
ok
().
headers
(
headers
)
.
contentType
(
MediaType
.
parseMediaType
(
"application/octet-stream"
))
.
body
(
new
InputStreamResource
(
inputStream
));
}
catch
(
FileNotFoundException
e1
)
{
log
.
error
(
"找不到指定的文件"
,
e1
);
}
catch
(
IOException
e
)
{
log
.
error
(
"获取不到文件流"
,
e
);
}
return
response
;
}
}
}
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/LogFlieController.java
View file @
574e7177
...
@@ -209,4 +209,5 @@ public class LogFlieController {
...
@@ -209,4 +209,5 @@ public class LogFlieController {
}
}
}
}
cneeds-server-datashow/src/main/resources/statics/index.html
View file @
574e7177
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge,chrome=1"
><meta
name=
renderer
content=
webkit
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
><link
rel=
icon
href=
./favicon.ico
><title>
springSecurity登陆demo
</title><link
href=
static/css/chunk-libs.3dfb7769.css
rel=
stylesheet
><link
href=
static/css/app.826c7dc3.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
static/js/chunk-elementUI.a6c12691.js
></script><script
src=
static/js/chunk-libs.618b7945.js
></script><script>
(
function
(
e
){
function
n
(
n
){
for
(
var
u
,
t
,
f
=
n
[
0
],
d
=
n
[
1
],
h
=
n
[
2
],
o
=
0
,
k
=
[];
o
<
f
.
length
;
o
++
)
t
=
f
[
o
],
a
[
t
]
&&
k
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
u
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
u
)
&&
(
e
[
u
]
=
d
[
u
]);
b
&&
b
(
n
);
while
(
k
.
length
)
k
.
shift
()();
return
r
.
push
.
apply
(
r
,
h
||
[]),
c
()}
function
c
(){
for
(
var
e
,
n
=
0
;
n
<
r
.
length
;
n
++
){
for
(
var
c
=
r
[
n
],
u
=!
0
,
t
=
1
;
t
<
c
.
length
;
t
++
){
var
f
=
c
[
t
];
0
!==
a
[
f
]
&&
(
u
=!
1
)}
u
&&
(
r
.
splice
(
n
--
,
1
),
e
=
d
(
d
.
s
=
c
[
0
]))}
return
e
}
var
u
=
{},
t
=
{
runtime
:
0
},
a
=
{
runtime
:
0
},
r
=
[];
function
f
(
e
){
return
d
.
p
+
"static/js/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-06aa7494"
:
"79f5e602"
,
"chunk-06ed166b"
:
"1d90bf2b"
,
"chunk-116c2bab"
:
"26f3ae67"
,
"chunk-18a40ee2"
:
"ffdf7a79"
,
"chunk-1a07b08b"
:
"8495daf0"
,
"chunk-1a86e192"
:
"a55f8fd2"
,
"chunk-218bb4cf"
:
"0b4035d6"
,
"chunk-22e5f704"
:
"9d2df095"
,
"chunk-25a34ff8"
:
"bff415f7"
,
"chunk-2b4823a9"
:
"51b17cc9"
,
"chunk-2d2105d3"
:
"c38e1553"
,
"chunk-2d230a36"
:
"77c3129c"
,
"chunk-2d230fe7"
:
"8023f254"
,
"chunk-3b59103a"
:
"8d86d081"
,
"chunk-403c80dd"
:
"94c0ac41"
,
"chunk-47af9ee4"
:
"a003a3e1"
,
"chunk-4a8d06a6"
:
"81dbed13"
,
"chunk-4ab8490a"
:
"52ceb2fb"
,
"chunk-5411756c"
:
"d9f1a004"
,
"chunk-56d3065a"
:
"f080c714"
,
"chunk-10f36354"
:
"7f6359fa"
,
"chunk-5c585ee6"
:
"b80a6682"
,
"chunk-636f8118"
:
"2d5d0784"
,
"chunk-64238bd4"
:
"b5c58bf5"
,
"chunk-6e87ca78"
:
"cc2ed628"
,
"chunk-e6a30210"
:
"3b0b2fc2"
,
"chunk-723f6b88"
:
"5001c100"
,
"chunk-7395e3e5"
:
"8b34158c"
,
"chunk-73bfcbf0"
:
"a5fec1ff"
,
"chunk-77a4bbf0"
:
"60171fb8"
,
"chunk-79a85582"
:
"dd8d44e5"
,
"chunk-7b66cc0a"
:
"d0fee21d"
,
"chunk-e20529e6"
:
"555d7fdb"
,
"chunk-e33fc590"
:
"32c81d22"
,
"chunk-e652b80c"
:
"323c7f1f"
}[
e
]
+
".js"
}
function
d
(
n
){
if
(
u
[
n
])
return
u
[
n
].
exports
;
var
c
=
u
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
c
.
exports
,
c
,
c
.
exports
,
d
),
c
.
l
=!
0
,
c
.
exports
}
d
.
e
=
function
(
e
){
var
n
=
[],
c
=
{
"chunk-06aa7494"
:
1
,
"chunk-116c2bab"
:
1
,
"chunk-18a40ee2"
:
1
,
"chunk-1a07b08b"
:
1
,
"chunk-1a86e192"
:
1
,
"chunk-218bb4cf"
:
1
,
"chunk-25a34ff8"
:
1
,
"chunk-2b4823a9"
:
1
,
"chunk-4a8d06a6"
:
1
,
"chunk-4ab8490a"
:
1
,
"chunk-5411756c"
:
1
,
"chunk-10f36354"
:
1
,
"chunk-64238bd4"
:
1
,
"chunk-e6a30210"
:
1
,
"chunk-723f6b88"
:
1
,
"chunk-e33fc590"
:
1
};
t
[
e
]?
n
.
push
(
t
[
e
]):
0
!==
t
[
e
]
&&
c
[
e
]
&&
n
.
push
(
t
[
e
]
=
new
Promise
((
function
(
n
,
c
){
for
(
var
u
=
"static/css/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-06aa7494"
:
"9d63d053"
,
"chunk-06ed166b"
:
"31d6cfe0"
,
"chunk-116c2bab"
:
"eedc5334"
,
"chunk-18a40ee2"
:
"9d63d053"
,
"chunk-1a07b08b"
:
"830e1851"
,
"chunk-1a86e192"
:
"9d63d053"
,
"chunk-218bb4cf"
:
"9d63d053"
,
"chunk-22e5f704"
:
"31d6cfe0"
,
"chunk-25a34ff8"
:
"9d63d053"
,
"chunk-2b4823a9"
:
"9d63d053"
,
"chunk-2d2105d3"
:
"31d6cfe0"
,
"chunk-2d230a36"
:
"31d6cfe0"
,
"chunk-2d230fe7"
:
"31d6cfe0"
,
"chunk-3b59103a"
:
"31d6cfe0"
,
"chunk-403c80dd"
:
"31d6cfe0"
,
"chunk-47af9ee4"
:
"31d6cfe0"
,
"chunk-4a8d06a6"
:
"e9a4618c"
,
"chunk-4ab8490a"
:
"9d63d053"
,
"chunk-5411756c"
:
"9d63d053"
,
"chunk-56d3065a"
:
"31d6cfe0"
,
"chunk-10f36354"
:
"129625a4"
,
"chunk-5c585ee6"
:
"31d6cfe0"
,
"chunk-636f8118"
:
"31d6cfe0"
,
"chunk-64238bd4"
:
"70564041"
,
"chunk-6e87ca78"
:
"31d6cfe0"
,
"chunk-e6a30210"
:
"8e02d1a5"
,
"chunk-723f6b88"
:
"53ac87fa"
,
"chunk-7395e3e5"
:
"31d6cfe0"
,
"chunk-73bfcbf0"
:
"31d6cfe0"
,
"chunk-77a4bbf0"
:
"31d6cfe0"
,
"chunk-79a85582"
:
"31d6cfe0"
,
"chunk-7b66cc0a"
:
"31d6cfe0"
,
"chunk-e20529e6"
:
"31d6cfe0"
,
"chunk-e33fc590"
:
"9d63d053"
,
"chunk-e652b80c"
:
"31d6cfe0"
}[
e
]
+
".css"
,
a
=
d
.
p
+
u
,
r
=
document
.
getElementsByTagName
(
"link"
),
f
=
0
;
f
<
r
.
length
;
f
++
){
var
h
=
r
[
f
],
o
=
h
.
getAttribute
(
"data-href"
)
||
h
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
h
.
rel
&&
(
o
===
u
||
o
===
a
))
return
n
()}
var
k
=
document
.
getElementsByTagName
(
"style"
);
for
(
f
=
0
;
f
<
k
.
length
;
f
++
){
h
=
k
[
f
],
o
=
h
.
getAttribute
(
"data-href"
);
if
(
o
===
u
||
o
===
a
)
return
n
()}
var
b
=
document
.
createElement
(
"link"
);
b
.
rel
=
"stylesheet"
,
b
.
type
=
"text/css"
,
b
.
onload
=
n
,
b
.
onerror
=
function
(
n
){
var
u
=
n
&&
n
.
target
&&
n
.
target
.
src
||
a
,
r
=
new
Error
(
"Loading CSS chunk "
+
e
+
" failed.
\
n("
+
u
+
")"
);
r
.
request
=
u
,
delete
t
[
e
],
b
.
parentNode
.
removeChild
(
b
),
c
(
r
)},
b
.
href
=
a
;
var
i
=
document
.
getElementsByTagName
(
"head"
)[
0
];
i
.
appendChild
(
b
)})).
then
((
function
(){
t
[
e
]
=
0
})));
var
u
=
a
[
e
];
if
(
0
!==
u
)
if
(
u
)
n
.
push
(
u
[
2
]);
else
{
var
r
=
new
Promise
((
function
(
n
,
c
){
u
=
a
[
e
]
=
[
n
,
c
]}));
n
.
push
(
u
[
2
]
=
r
);
var
h
,
o
=
document
.
createElement
(
"script"
);
o
.
charset
=
"utf-8"
,
o
.
timeout
=
120
,
d
.
nc
&&
o
.
setAttribute
(
"nonce"
,
d
.
nc
),
o
.
src
=
f
(
e
),
h
=
function
(
n
){
o
.
onerror
=
o
.
onload
=
null
,
clearTimeout
(
k
);
var
c
=
a
[
e
];
if
(
0
!==
c
){
if
(
c
){
var
u
=
n
&&
(
"load"
===
n
.
type
?
"missing"
:
n
.
type
),
t
=
n
&&
n
.
target
&&
n
.
target
.
src
,
r
=
new
Error
(
"Loading chunk "
+
e
+
" failed.
\
n("
+
u
+
": "
+
t
+
")"
);
r
.
type
=
u
,
r
.
request
=
t
,
c
[
1
](
r
)}
a
[
e
]
=
void
0
}};
var
k
=
setTimeout
((
function
(){
h
({
type
:
"timeout"
,
target
:
o
})}),
12
e4
);
o
.
onerror
=
o
.
onload
=
h
,
document
.
head
.
appendChild
(
o
)}
return
Promise
.
all
(
n
)},
d
.
m
=
e
,
d
.
c
=
u
,
d
.
d
=
function
(
e
,
n
,
c
){
d
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
enumerable
:
!
0
,
get
:
c
})},
d
.
r
=
function
(
e
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
d
.
t
=
function
(
e
,
n
){
if
(
1
&
n
&&
(
e
=
d
(
e
)),
8
&
n
)
return
e
;
if
(
4
&
n
&&
"object"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
c
=
Object
.
create
(
null
);
if
(
d
.
r
(
c
),
Object
.
defineProperty
(
c
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
n
&&
"string"
!=
typeof
e
)
for
(
var
u
in
e
)
d
.
d
(
c
,
u
,
function
(
n
){
return
e
[
n
]}.
bind
(
null
,
u
));
return
c
},
d
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"default"
]}:
function
(){
return
e
};
return
d
.
d
(
n
,
"a"
,
n
),
n
},
d
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
d
.
p
=
""
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
h
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
o
=
h
.
push
.
bind
(
h
);
h
.
push
=
n
,
h
=
h
.
slice
();
for
(
var
k
=
0
;
k
<
h
.
length
;
k
++
)
n
(
h
[
k
]);
var
b
=
o
;
c
()})([]);
</script><script
src=
static/js/app.2180a617.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge,chrome=1"
><meta
name=
renderer
content=
webkit
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
><link
rel=
icon
href=
./favicon.ico
><title>
springSecurity登陆demo
</title><link
href=
static/css/chunk-libs.3dfb7769.css
rel=
stylesheet
><link
href=
static/css/app.826c7dc3.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
static/js/chunk-elementUI.a6c12691.js
></script><script
src=
static/js/chunk-libs.ddf89aa7.js
></script><script>
(
function
(
e
){
function
n
(
n
){
for
(
var
u
,
t
,
f
=
n
[
0
],
d
=
n
[
1
],
h
=
n
[
2
],
o
=
0
,
k
=
[];
o
<
f
.
length
;
o
++
)
t
=
f
[
o
],
a
[
t
]
&&
k
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
u
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
u
)
&&
(
e
[
u
]
=
d
[
u
]);
b
&&
b
(
n
);
while
(
k
.
length
)
k
.
shift
()();
return
r
.
push
.
apply
(
r
,
h
||
[]),
c
()}
function
c
(){
for
(
var
e
,
n
=
0
;
n
<
r
.
length
;
n
++
){
for
(
var
c
=
r
[
n
],
u
=!
0
,
t
=
1
;
t
<
c
.
length
;
t
++
){
var
f
=
c
[
t
];
0
!==
a
[
f
]
&&
(
u
=!
1
)}
u
&&
(
r
.
splice
(
n
--
,
1
),
e
=
d
(
d
.
s
=
c
[
0
]))}
return
e
}
var
u
=
{},
t
=
{
runtime
:
0
},
a
=
{
runtime
:
0
},
r
=
[];
function
f
(
e
){
return
d
.
p
+
"static/js/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-06aa7494"
:
"79f5e602"
,
"chunk-06ed166b"
:
"1d90bf2b"
,
"chunk-116c2bab"
:
"26f3ae67"
,
"chunk-18a40ee2"
:
"ffdf7a79"
,
"chunk-1a07b08b"
:
"8495daf0"
,
"chunk-1a86e192"
:
"485ba7db"
,
"chunk-218bb4cf"
:
"0b4035d6"
,
"chunk-22e5f704"
:
"9d2df095"
,
"chunk-25a34ff8"
:
"bff415f7"
,
"chunk-2b4823a9"
:
"51b17cc9"
,
"chunk-2d2105d3"
:
"c38e1553"
,
"chunk-2d230a36"
:
"77c3129c"
,
"chunk-2d230fe7"
:
"8023f254"
,
"chunk-3b59103a"
:
"8d86d081"
,
"chunk-403c80dd"
:
"94c0ac41"
,
"chunk-47af9ee4"
:
"a003a3e1"
,
"chunk-4a8d06a6"
:
"81dbed13"
,
"chunk-4ab8490a"
:
"52ceb2fb"
,
"chunk-5411756c"
:
"d9f1a004"
,
"chunk-56d3065a"
:
"f080c714"
,
"chunk-10f36354"
:
"7f6359fa"
,
"chunk-5c585ee6"
:
"b80a6682"
,
"chunk-636f8118"
:
"2d5d0784"
,
"chunk-64238bd4"
:
"b5c58bf5"
,
"chunk-6e87ca78"
:
"cc2ed628"
,
"chunk-e6a30210"
:
"3b0b2fc2"
,
"chunk-723f6b88"
:
"5001c100"
,
"chunk-7395e3e5"
:
"8b34158c"
,
"chunk-73bfcbf0"
:
"a5fec1ff"
,
"chunk-77a4bbf0"
:
"60171fb8"
,
"chunk-79a85582"
:
"dd8d44e5"
,
"chunk-7b66cc0a"
:
"d0fee21d"
,
"chunk-e20529e6"
:
"555d7fdb"
,
"chunk-e33fc590"
:
"32c81d22"
,
"chunk-e652b80c"
:
"323c7f1f"
}[
e
]
+
".js"
}
function
d
(
n
){
if
(
u
[
n
])
return
u
[
n
].
exports
;
var
c
=
u
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
c
.
exports
,
c
,
c
.
exports
,
d
),
c
.
l
=!
0
,
c
.
exports
}
d
.
e
=
function
(
e
){
var
n
=
[],
c
=
{
"chunk-06aa7494"
:
1
,
"chunk-116c2bab"
:
1
,
"chunk-18a40ee2"
:
1
,
"chunk-1a07b08b"
:
1
,
"chunk-1a86e192"
:
1
,
"chunk-218bb4cf"
:
1
,
"chunk-25a34ff8"
:
1
,
"chunk-2b4823a9"
:
1
,
"chunk-4a8d06a6"
:
1
,
"chunk-4ab8490a"
:
1
,
"chunk-5411756c"
:
1
,
"chunk-10f36354"
:
1
,
"chunk-64238bd4"
:
1
,
"chunk-e6a30210"
:
1
,
"chunk-723f6b88"
:
1
,
"chunk-e33fc590"
:
1
};
t
[
e
]?
n
.
push
(
t
[
e
]):
0
!==
t
[
e
]
&&
c
[
e
]
&&
n
.
push
(
t
[
e
]
=
new
Promise
((
function
(
n
,
c
){
for
(
var
u
=
"static/css/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-06aa7494"
:
"9d63d053"
,
"chunk-06ed166b"
:
"31d6cfe0"
,
"chunk-116c2bab"
:
"eedc5334"
,
"chunk-18a40ee2"
:
"9d63d053"
,
"chunk-1a07b08b"
:
"830e1851"
,
"chunk-1a86e192"
:
"9d63d053"
,
"chunk-218bb4cf"
:
"9d63d053"
,
"chunk-22e5f704"
:
"31d6cfe0"
,
"chunk-25a34ff8"
:
"9d63d053"
,
"chunk-2b4823a9"
:
"9d63d053"
,
"chunk-2d2105d3"
:
"31d6cfe0"
,
"chunk-2d230a36"
:
"31d6cfe0"
,
"chunk-2d230fe7"
:
"31d6cfe0"
,
"chunk-3b59103a"
:
"31d6cfe0"
,
"chunk-403c80dd"
:
"31d6cfe0"
,
"chunk-47af9ee4"
:
"31d6cfe0"
,
"chunk-4a8d06a6"
:
"e9a4618c"
,
"chunk-4ab8490a"
:
"9d63d053"
,
"chunk-5411756c"
:
"9d63d053"
,
"chunk-56d3065a"
:
"31d6cfe0"
,
"chunk-10f36354"
:
"129625a4"
,
"chunk-5c585ee6"
:
"31d6cfe0"
,
"chunk-636f8118"
:
"31d6cfe0"
,
"chunk-64238bd4"
:
"70564041"
,
"chunk-6e87ca78"
:
"31d6cfe0"
,
"chunk-e6a30210"
:
"8e02d1a5"
,
"chunk-723f6b88"
:
"53ac87fa"
,
"chunk-7395e3e5"
:
"31d6cfe0"
,
"chunk-73bfcbf0"
:
"31d6cfe0"
,
"chunk-77a4bbf0"
:
"31d6cfe0"
,
"chunk-79a85582"
:
"31d6cfe0"
,
"chunk-7b66cc0a"
:
"31d6cfe0"
,
"chunk-e20529e6"
:
"31d6cfe0"
,
"chunk-e33fc590"
:
"9d63d053"
,
"chunk-e652b80c"
:
"31d6cfe0"
}[
e
]
+
".css"
,
a
=
d
.
p
+
u
,
r
=
document
.
getElementsByTagName
(
"link"
),
f
=
0
;
f
<
r
.
length
;
f
++
){
var
h
=
r
[
f
],
o
=
h
.
getAttribute
(
"data-href"
)
||
h
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
h
.
rel
&&
(
o
===
u
||
o
===
a
))
return
n
()}
var
k
=
document
.
getElementsByTagName
(
"style"
);
for
(
f
=
0
;
f
<
k
.
length
;
f
++
){
h
=
k
[
f
],
o
=
h
.
getAttribute
(
"data-href"
);
if
(
o
===
u
||
o
===
a
)
return
n
()}
var
b
=
document
.
createElement
(
"link"
);
b
.
rel
=
"stylesheet"
,
b
.
type
=
"text/css"
,
b
.
onload
=
n
,
b
.
onerror
=
function
(
n
){
var
u
=
n
&&
n
.
target
&&
n
.
target
.
src
||
a
,
r
=
new
Error
(
"Loading CSS chunk "
+
e
+
" failed.
\
n("
+
u
+
")"
);
r
.
request
=
u
,
delete
t
[
e
],
b
.
parentNode
.
removeChild
(
b
),
c
(
r
)},
b
.
href
=
a
;
var
i
=
document
.
getElementsByTagName
(
"head"
)[
0
];
i
.
appendChild
(
b
)})).
then
((
function
(){
t
[
e
]
=
0
})));
var
u
=
a
[
e
];
if
(
0
!==
u
)
if
(
u
)
n
.
push
(
u
[
2
]);
else
{
var
r
=
new
Promise
((
function
(
n
,
c
){
u
=
a
[
e
]
=
[
n
,
c
]}));
n
.
push
(
u
[
2
]
=
r
);
var
h
,
o
=
document
.
createElement
(
"script"
);
o
.
charset
=
"utf-8"
,
o
.
timeout
=
120
,
d
.
nc
&&
o
.
setAttribute
(
"nonce"
,
d
.
nc
),
o
.
src
=
f
(
e
),
h
=
function
(
n
){
o
.
onerror
=
o
.
onload
=
null
,
clearTimeout
(
k
);
var
c
=
a
[
e
];
if
(
0
!==
c
){
if
(
c
){
var
u
=
n
&&
(
"load"
===
n
.
type
?
"missing"
:
n
.
type
),
t
=
n
&&
n
.
target
&&
n
.
target
.
src
,
r
=
new
Error
(
"Loading chunk "
+
e
+
" failed.
\
n("
+
u
+
": "
+
t
+
")"
);
r
.
type
=
u
,
r
.
request
=
t
,
c
[
1
](
r
)}
a
[
e
]
=
void
0
}};
var
k
=
setTimeout
((
function
(){
h
({
type
:
"timeout"
,
target
:
o
})}),
12
e4
);
o
.
onerror
=
o
.
onload
=
h
,
document
.
head
.
appendChild
(
o
)}
return
Promise
.
all
(
n
)},
d
.
m
=
e
,
d
.
c
=
u
,
d
.
d
=
function
(
e
,
n
,
c
){
d
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
enumerable
:
!
0
,
get
:
c
})},
d
.
r
=
function
(
e
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
d
.
t
=
function
(
e
,
n
){
if
(
1
&
n
&&
(
e
=
d
(
e
)),
8
&
n
)
return
e
;
if
(
4
&
n
&&
"object"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
c
=
Object
.
create
(
null
);
if
(
d
.
r
(
c
),
Object
.
defineProperty
(
c
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
n
&&
"string"
!=
typeof
e
)
for
(
var
u
in
e
)
d
.
d
(
c
,
u
,
function
(
n
){
return
e
[
n
]}.
bind
(
null
,
u
));
return
c
},
d
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"default"
]}:
function
(){
return
e
};
return
d
.
d
(
n
,
"a"
,
n
),
n
},
d
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
d
.
p
=
""
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
h
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
o
=
h
.
push
.
bind
(
h
);
h
.
push
=
n
,
h
=
h
.
slice
();
for
(
var
k
=
0
;
k
<
h
.
length
;
k
++
)
n
(
h
[
k
]);
var
b
=
o
;
c
()})([]);
</script><script
src=
static/js/app.0eafa615.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/app.
2180a617
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/app.
0eafa615
.js
View file @
574e7177
This source diff could not be displayed because it is too large. You can
view the blob
instead.
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-1a86e192.485ba7db.js
0 → 100644
View file @
574e7177
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-1a86e192"
],{
"1c64"
:
function
(
e
,
t
,
n
){},
"1cc6"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
i
=
n
(
"1c64"
),
a
=
n
.
n
(
i
);
a
.
a
},
"333d"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
i
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"pagination-container"
,
class
:{
hidden
:
e
.
hidden
}},[
n
(
"el-pagination"
,
e
.
_b
({
attrs
:{
background
:
e
.
background
,
"current-page"
:
e
.
currentPage
,
"page-size"
:
e
.
pageSize
,
layout
:
e
.
layout
,
"page-sizes"
:
e
.
pageSizes
,
total
:
e
.
total
},
on
:{
"update:currentPage"
:
function
(
t
){
e
.
currentPage
=
t
},
"update:current-page"
:
function
(
t
){
e
.
currentPage
=
t
},
"update:pageSize"
:
function
(
t
){
e
.
pageSize
=
t
},
"update:page-size"
:
function
(
t
){
e
.
pageSize
=
t
},
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}},
"el-pagination"
,
e
.
$attrs
,
!
1
))],
1
)},
a
=
[];
n
(
"c5f6"
);
Math
.
easeInOutQuad
=
function
(
e
,
t
,
n
,
i
){
return
e
/=
i
/
2
,
e
<
1
?
n
/
2
*
e
*
e
+
t
:(
e
--
,
-
n
/
2
*
(
e
*
(
e
-
2
)
-
1
)
+
t
)};
var
o
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
e
){
window
.
setTimeout
(
e
,
1
e3
/
60
)}}();
function
r
(
e
){
document
.
documentElement
.
scrollTop
=
e
,
document
.
body
.
parentNode
.
scrollTop
=
e
,
document
.
body
.
scrollTop
=
e
}
function
c
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
l
(
e
,
t
,
n
){
var
i
=
c
(),
a
=
e
-
i
,
l
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
s
=
function
e
(){
u
+=
l
;
var
c
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
r
(
c
),
u
<
t
?
o
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
s
()}
var
u
=
{
name
:
"Pagination"
,
props
:{
total
:{
required
:
!
0
,
type
:
Number
},
page
:{
type
:
Number
,
default
:
1
},
limit
:{
type
:
Number
,
default
:
20
},
pageSizes
:{
type
:
Array
,
default
:
function
(){
return
[
10
,
20
,
30
,
50
]}},
layout
:{
type
:
String
,
default
:
"total, sizes, prev, pager, next, jumper"
},
background
:{
type
:
Boolean
,
default
:
!
0
},
autoScroll
:{
type
:
Boolean
,
default
:
!
0
},
hidden
:{
type
:
Boolean
,
default
:
!
1
}},
computed
:{
currentPage
:{
get
:
function
(){
return
this
.
page
},
set
:
function
(
e
){
this
.
$emit
(
"update:page"
,
e
)}},
pageSize
:{
get
:
function
(){
return
this
.
limit
},
set
:
function
(
e
){
this
.
$emit
(
"update:limit"
,
e
)}}},
methods
:{
handleSizeChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
this
.
currentPage
,
limit
:
e
}),
this
.
autoScroll
&&
l
(
0
,
800
)},
handleCurrentChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
e
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
l
(
0
,
800
)}}},
s
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
s
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
"99b8"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
i
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-header"
,[
n
(
"div"
,{
staticStyle
:{
margin
:
"20px 0"
}},[
n
(
"el-button"
,{
on
:{
click
:
e
.
addPage
}},[
e
.
_v
(
"导入设备"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
editSeriesPage
}},[
e
.
_v
(
"变更产品系列"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
setChannelPage
}},[
e
.
_v
(
"适配配置"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
importDeviceChannel
}},[
e
.
_v
(
"批量配置"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
deletePage
}},[
e
.
_v
(
"删除设备"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
downloadLogFile
}},[
e
.
_v
(
"下载模板"
)])],
1
)]),
e
.
_v
(
" "
),
n
(
"el-main"
,[
n
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
listLoading
,
expression
:
"listLoading"
}],
key
:
e
.
tableKey
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
list
,
border
:
""
,
fit
:
""
,
"highlight-current-row"
:
""
,
"default-sort"
:
e
.
defaultSort
},
on
:{
"sort-change"
:
e
.
sortChange
,
"selection-change"
:
e
.
handleSelectionChange
}},[
n
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"设备ID"
,
prop
:
"deviceId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列"
,
prop
:
"seriesNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"imei"
,
prop
:
"imei"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"创建时间"
,
prop
:
"createTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
createTime
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeFilter"
)(
i
)))])]}}])})],
1
),
e
.
_v
(
" "
),
n
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
e
.
total
,
page
:
e
.
listQuery
.
page
,
limit
:
e
.
listQuery
.
pageSize
},
on
:{
"update:page"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"page"
,
t
)},
"update:limit"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"pageSize"
,
t
)},
pagination
:
e
.
refresh
}})],
1
)],
1
)},
a
=
[],
o
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
r
=
n
(
"c7a7"
),
c
=
n
(
"ed08"
),
l
=
n
(
"aa98"
),
u
=
n
(
"5f87"
),
s
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
r
[
"a"
]},
filters
:{
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
c
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
}},
data
:
function
(){
return
{
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
device
:{
imei
:
""
},
deviceIds
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
getList
()},
beforeRouteUpdate
:
function
(
e
,
t
,
n
){
if
(
e
.
path
===
t
.
path
){
var
i
=
Object
.
assign
({},
e
.
query
),
a
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
i
)
!==
JSON
.
stringify
(
a
)
&&
this
.
getList
()}
n
()},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
sortChange
:
function
(
e
){
console
.
log
(
"sortChange"
,
e
);
var
t
=
e
.
prop
,
n
=
e
.
order
;
this
.
sortBy
(
t
,
n
)},
sortBy
:
function
(
e
,
t
){
this
.
listQuery
.
sort
=
"ascending"
===
t
?
"+"
.
concat
(
e
):
"-"
.
concat
(
e
),
this
.
handleFilter
()},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
Object
(
l
[
"f"
])(
this
.
listQuery
).
then
((
function
(
t
){
var
n
=
t
.
data
,
i
=
n
.
list
,
a
=
n
.
totalCount
;
e
.
list
=
i
,
e
.
total
=
a
,
e
.
listLoading
=!
1
}))},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importDevice"
})},
editSeriesPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
){
var
e
=
[];
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
push
(
t
.
imei
)})),
this
.
$router
.
push
({
path
:
"/deviceManagement/device/editSeries"
,
query
:{
imeis
:
e
}})}
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
setChannelPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
){
var
e
=
[];
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
push
(
t
.
imei
)})),
this
.
$router
.
push
({
path
:
"/deviceManagement/device/setChannelNum"
,
query
:{
imeis
:
e
}})}
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
importDeviceChannel
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importDeviceChannel"
})},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
deviceIds
.
push
(
t
.
deviceId
)})),
Object
(
l
[
"b"
])(
this
.
deviceIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
deviceIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
,
query
:
this
.
listQuery
})},
downloadLogFile
:
function
(){
var
e
=
""
.
concat
(
"http://server.cneeds.com.cn:9000"
)
+
"/device/device/downloadDeviceUploadFile"
,
t
=
new
XMLHttpRequest
;
t
.
open
(
"GET"
,
e
,
!
0
),
t
.
setRequestHeader
(
"Authorization"
,
Object
(
u
[
"a"
])()),
t
.
responseType
=
"blob"
,
t
.
onload
=
function
(){
if
(
200
===
this
.
status
){
var
e
=
this
.
response
;
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
navigator
.
msSaveBlob
(
e
,
"模板文件.xlsx"
);
else
{
var
t
=
document
.
createElement
(
"a"
),
n
=
window
.
URL
?
window
.
URL
.
createObjectURL
(
e
):
window
.
webkitURL
.
createObjectURL
(
e
);
t
.
href
=
n
,
t
.
download
=
"模板文件.xlsx"
,
document
.
body
.
appendChild
(
t
),
t
.
click
(),
window
.
URL
.
revokeObjectURL
(
n
)}}},
t
.
send
()},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
d
=
s
,
p
=
n
(
"2877"
),
h
=
Object
(
p
[
"a"
])(
d
,
i
,
a
,
!
1
,
null
,
"5216733c"
,
null
);
t
[
"default"
]
=
h
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"f"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
m
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
h
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}},
c7a7
:
function
(
e
,
t
,
n
){
"use strict"
;
n
(
"8d41"
);
var
i
=
"@@wavesContext"
;
function
a
(
e
,
t
){
function
n
(
n
){
var
i
=
Object
.
assign
({},
t
.
value
),
a
=
Object
.
assign
({
ele
:
e
,
type
:
"hit"
,
color
:
"rgba(0, 0, 0, 0.15)"
},
i
),
o
=
a
.
ele
;
if
(
o
){
o
.
style
.
position
=
"relative"
,
o
.
style
.
overflow
=
"hidden"
;
var
r
=
o
.
getBoundingClientRect
(),
c
=
o
.
querySelector
(
".waves-ripple"
);
switch
(
c
?
c
.
className
=
"waves-ripple"
:(
c
=
document
.
createElement
(
"span"
),
c
.
className
=
"waves-ripple"
,
c
.
style
.
height
=
c
.
style
.
width
=
Math
.
max
(
r
.
width
,
r
.
height
)
+
"px"
,
o
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
r
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
r
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
r
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
r
.
left
-
c
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
c
.
style
.
backgroundColor
=
a
.
color
,
c
.
className
=
"waves-ripple z-active"
,
!
1
}}
return
e
[
i
]?
e
[
i
].
removeHandle
=
n
:
e
[
i
]
=
{
removeHandle
:
n
},
n
}
t
[
"a"
]
=
{
bind
:
function
(
e
,
t
){
e
.
addEventListener
(
"click"
,
a
(
e
,
t
),
!
1
)},
update
:
function
(
e
,
t
){
e
.
removeEventListener
(
"click"
,
e
[
i
].
removeHandle
,
!
1
),
e
.
addEventListener
(
"click"
,
a
(
e
,
t
),
!
1
)},
unbind
:
function
(
e
){
e
.
removeEventListener
(
"click"
,
e
[
i
].
removeHandle
,
!
1
),
e
[
i
]
=
null
,
delete
e
[
i
]}}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-1a86e192.a55f8fd2.js
deleted
100644 → 0
View file @
9fb6c8cc
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-1a86e192"
],{
"1c64"
:
function
(
e
,
t
,
n
){},
"1cc6"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
i
=
n
(
"1c64"
),
a
=
n
.
n
(
i
);
a
.
a
},
"333d"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
i
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"pagination-container"
,
class
:{
hidden
:
e
.
hidden
}},[
n
(
"el-pagination"
,
e
.
_b
({
attrs
:{
background
:
e
.
background
,
"current-page"
:
e
.
currentPage
,
"page-size"
:
e
.
pageSize
,
layout
:
e
.
layout
,
"page-sizes"
:
e
.
pageSizes
,
total
:
e
.
total
},
on
:{
"update:currentPage"
:
function
(
t
){
e
.
currentPage
=
t
},
"update:current-page"
:
function
(
t
){
e
.
currentPage
=
t
},
"update:pageSize"
:
function
(
t
){
e
.
pageSize
=
t
},
"update:page-size"
:
function
(
t
){
e
.
pageSize
=
t
},
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}},
"el-pagination"
,
e
.
$attrs
,
!
1
))],
1
)},
a
=
[];
n
(
"c5f6"
);
Math
.
easeInOutQuad
=
function
(
e
,
t
,
n
,
i
){
return
e
/=
i
/
2
,
e
<
1
?
n
/
2
*
e
*
e
+
t
:(
e
--
,
-
n
/
2
*
(
e
*
(
e
-
2
)
-
1
)
+
t
)};
var
o
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
e
){
window
.
setTimeout
(
e
,
1
e3
/
60
)}}();
function
r
(
e
){
document
.
documentElement
.
scrollTop
=
e
,
document
.
body
.
parentNode
.
scrollTop
=
e
,
document
.
body
.
scrollTop
=
e
}
function
c
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
l
(
e
,
t
,
n
){
var
i
=
c
(),
a
=
e
-
i
,
l
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
s
=
function
e
(){
u
+=
l
;
var
c
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
r
(
c
),
u
<
t
?
o
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
s
()}
var
u
=
{
name
:
"Pagination"
,
props
:{
total
:{
required
:
!
0
,
type
:
Number
},
page
:{
type
:
Number
,
default
:
1
},
limit
:{
type
:
Number
,
default
:
20
},
pageSizes
:{
type
:
Array
,
default
:
function
(){
return
[
10
,
20
,
30
,
50
]}},
layout
:{
type
:
String
,
default
:
"total, sizes, prev, pager, next, jumper"
},
background
:{
type
:
Boolean
,
default
:
!
0
},
autoScroll
:{
type
:
Boolean
,
default
:
!
0
},
hidden
:{
type
:
Boolean
,
default
:
!
1
}},
computed
:{
currentPage
:{
get
:
function
(){
return
this
.
page
},
set
:
function
(
e
){
this
.
$emit
(
"update:page"
,
e
)}},
pageSize
:{
get
:
function
(){
return
this
.
limit
},
set
:
function
(
e
){
this
.
$emit
(
"update:limit"
,
e
)}}},
methods
:{
handleSizeChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
this
.
currentPage
,
limit
:
e
}),
this
.
autoScroll
&&
l
(
0
,
800
)},
handleCurrentChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
e
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
l
(
0
,
800
)}}},
s
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
s
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
"99b8"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
i
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-header"
,[
n
(
"div"
,{
staticStyle
:{
margin
:
"20px 0"
}},[
n
(
"el-button"
,{
on
:{
click
:
e
.
addPage
}},[
e
.
_v
(
"导入设备"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
editSeriesPage
}},[
e
.
_v
(
"变更产品系列"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
setChannelPage
}},[
e
.
_v
(
"适配配置"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
importDeviceChannel
}},[
e
.
_v
(
"批量配置"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
deletePage
}},[
e
.
_v
(
"删除设备"
)])],
1
)]),
e
.
_v
(
" "
),
n
(
"el-main"
,[
n
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
listLoading
,
expression
:
"listLoading"
}],
key
:
e
.
tableKey
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
list
,
border
:
""
,
fit
:
""
,
"highlight-current-row"
:
""
,
"default-sort"
:
e
.
defaultSort
},
on
:{
"sort-change"
:
e
.
sortChange
,
"selection-change"
:
e
.
handleSelectionChange
}},[
n
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"设备ID"
,
prop
:
"deviceId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列"
,
prop
:
"seriesNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"imei"
,
prop
:
"imei"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"创建时间"
,
prop
:
"createTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
createTime
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeFilter"
)(
i
)))])]}}])})],
1
),
e
.
_v
(
" "
),
n
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
e
.
total
,
page
:
e
.
listQuery
.
page
,
limit
:
e
.
listQuery
.
pageSize
},
on
:{
"update:page"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"page"
,
t
)},
"update:limit"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"pageSize"
,
t
)},
pagination
:
e
.
refresh
}})],
1
)],
1
)},
a
=
[],
o
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
r
=
n
(
"c7a7"
),
c
=
n
(
"ed08"
),
l
=
n
(
"aa98"
),
u
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
r
[
"a"
]},
filters
:{
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
c
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
}},
data
:
function
(){
return
{
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
device
:{
imei
:
""
},
deviceIds
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
getList
()},
beforeRouteUpdate
:
function
(
e
,
t
,
n
){
if
(
e
.
path
===
t
.
path
){
var
i
=
Object
.
assign
({},
e
.
query
),
a
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
i
)
!==
JSON
.
stringify
(
a
)
&&
this
.
getList
()}
n
()},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
sortChange
:
function
(
e
){
console
.
log
(
"sortChange"
,
e
);
var
t
=
e
.
prop
,
n
=
e
.
order
;
this
.
sortBy
(
t
,
n
)},
sortBy
:
function
(
e
,
t
){
this
.
listQuery
.
sort
=
"ascending"
===
t
?
"+"
.
concat
(
e
):
"-"
.
concat
(
e
),
this
.
handleFilter
()},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
Object
(
l
[
"f"
])(
this
.
listQuery
).
then
((
function
(
t
){
var
n
=
t
.
data
,
i
=
n
.
list
,
a
=
n
.
totalCount
;
e
.
list
=
i
,
e
.
total
=
a
,
e
.
listLoading
=!
1
}))},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importDevice"
})},
editSeriesPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
){
var
e
=
[];
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
push
(
t
.
imei
)})),
this
.
$router
.
push
({
path
:
"/deviceManagement/device/editSeries"
,
query
:{
imeis
:
e
}})}
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
setChannelPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
){
var
e
=
[];
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
push
(
t
.
imei
)})),
this
.
$router
.
push
({
path
:
"/deviceManagement/device/setChannelNum"
,
query
:{
imeis
:
e
}})}
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
importDeviceChannel
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importDeviceChannel"
})},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
deviceIds
.
push
(
t
.
deviceId
)})),
Object
(
l
[
"b"
])(
this
.
deviceIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
deviceIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
s
=
u
,
d
=
n
(
"2877"
),
p
=
Object
(
d
[
"a"
])(
s
,
i
,
a
,
!
1
,
null
,
"21a2babb"
,
null
);
t
[
"default"
]
=
p
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"f"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
m
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
h
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}},
c7a7
:
function
(
e
,
t
,
n
){
"use strict"
;
n
(
"8d41"
);
var
i
=
"@@wavesContext"
;
function
a
(
e
,
t
){
function
n
(
n
){
var
i
=
Object
.
assign
({},
t
.
value
),
a
=
Object
.
assign
({
ele
:
e
,
type
:
"hit"
,
color
:
"rgba(0, 0, 0, 0.15)"
},
i
),
o
=
a
.
ele
;
if
(
o
){
o
.
style
.
position
=
"relative"
,
o
.
style
.
overflow
=
"hidden"
;
var
r
=
o
.
getBoundingClientRect
(),
c
=
o
.
querySelector
(
".waves-ripple"
);
switch
(
c
?
c
.
className
=
"waves-ripple"
:(
c
=
document
.
createElement
(
"span"
),
c
.
className
=
"waves-ripple"
,
c
.
style
.
height
=
c
.
style
.
width
=
Math
.
max
(
r
.
width
,
r
.
height
)
+
"px"
,
o
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
r
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
r
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
r
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
r
.
left
-
c
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
c
.
style
.
backgroundColor
=
a
.
color
,
c
.
className
=
"waves-ripple z-active"
,
!
1
}}
return
e
[
i
]?
e
[
i
].
removeHandle
=
n
:
e
[
i
]
=
{
removeHandle
:
n
},
n
}
t
[
"a"
]
=
{
bind
:
function
(
e
,
t
){
e
.
addEventListener
(
"click"
,
a
(
e
,
t
),
!
1
)},
update
:
function
(
e
,
t
){
e
.
removeEventListener
(
"click"
,
e
[
i
].
removeHandle
,
!
1
),
e
.
addEventListener
(
"click"
,
a
(
e
,
t
),
!
1
)},
unbind
:
function
(
e
){
e
.
removeEventListener
(
"click"
,
e
[
i
].
removeHandle
,
!
1
),
e
[
i
]
=
null
,
delete
e
[
i
]}}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-libs.
618b7945
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-libs.
ddf89aa7
.js
View file @
574e7177
File moved
cneeds-server-datashow/src/main/resources/template/order-Info.xlsx
0 → 100644
View file @
574e7177
File added
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