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
73badf61
Commit
73badf61
authored
Aug 05, 2020
by
zzrdark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加数据库版本控制
2.增加h2 的 数据库表支持 3.修改权限
parent
86d2bd54
Show whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
759 additions
and
42 deletions
+759
-42
DeviceController.java
...x/cneeds/server/datashow/web/device/DeviceController.java
+131
-8
index.html
cneeds-server-datashow/src/main/resources/statics/index.html
+2
-2
app.67140a03.js
...show/src/main/resources/statics/static/js/app.67140a03.js
+0
-0
chunk-06ed166b.01cbaaaa.js
...in/resources/statics/static/js/chunk-06ed166b.01cbaaaa.js
+2
-2
chunk-18a40ee2.bc415a6d.js
...in/resources/statics/static/js/chunk-18a40ee2.bc415a6d.js
+2
-2
chunk-19adc003.15ae15aa.js
...in/resources/statics/static/js/chunk-19adc003.15ae15aa.js
+0
-2
chunk-19adc003.648a27df.js
...in/resources/statics/static/js/chunk-19adc003.648a27df.js
+2
-0
chunk-2033ddf1.fcf0abf4.js
...in/resources/statics/static/js/chunk-2033ddf1.fcf0abf4.js
+2
-2
chunk-22e5f704.68d5789c.js
...in/resources/statics/static/js/chunk-22e5f704.68d5789c.js
+2
-2
chunk-4913999e.07116979.js
...in/resources/statics/static/js/chunk-4913999e.07116979.js
+2
-2
chunk-5c585ee6.52081191.js
...in/resources/statics/static/js/chunk-5c585ee6.52081191.js
+2
-2
chunk-723f6b88.70adae6b.js
...in/resources/statics/static/js/chunk-723f6b88.70adae6b.js
+2
-2
chunk-7395e3e5.951ab4e1.js
...in/resources/statics/static/js/chunk-7395e3e5.951ab4e1.js
+2
-0
chunk-7395e3e5.bb4e5af7.js
...in/resources/statics/static/js/chunk-7395e3e5.bb4e5af7.js
+0
-2
chunk-77a4bbf0.ad38d337.js
...in/resources/statics/static/js/chunk-77a4bbf0.ad38d337.js
+2
-0
chunk-77a4bbf0.f8132b56.js
...in/resources/statics/static/js/chunk-77a4bbf0.f8132b56.js
+0
-2
chunk-80fe6032.d9f25b2c.js
...in/resources/statics/static/js/chunk-80fe6032.d9f25b2c.js
+2
-2
chunk-adf11d7e.69ecac3b.js
...in/resources/statics/static/js/chunk-adf11d7e.69ecac3b.js
+2
-0
chunk-adf11d7e.da56d39a.js
...in/resources/statics/static/js/chunk-adf11d7e.da56d39a.js
+0
-2
chunk-cbd0fe76.ef24e83f.js
...in/resources/statics/static/js/chunk-cbd0fe76.ef24e83f.js
+2
-2
chunk-e20529e6.f6f80293.js
...in/resources/statics/static/js/chunk-e20529e6.f6f80293.js
+2
-2
chunk-feef4472.0f47d1b3.js
...in/resources/statics/static/js/chunk-feef4472.0f47d1b3.js
+0
-2
chunk-feef4472.a6abc868.js
...in/resources/statics/static/js/chunk-feef4472.a6abc868.js
+2
-0
pom.xml
cneeds-server-user/pom.xml
+9
-2
application-dev.yml
cneeds-server-user/src/main/resources/application-dev.yml
+6
-0
application-prod.yml
cneeds-server-user/src/main/resources/application-prod.yml
+6
-0
db_changelog_master.yaml
.../src/main/resources/db/changelog/db_changelog_master.yaml
+22
-0
changeSet_1.sql
cneeds-server-user/src/main/resources/db/sql/changeSet_1.sql
+63
-0
changeSet_2.sql
cneeds-server-user/src/main/resources/db/sql/changeSet_2.sql
+17
-0
application.yml
cneeds-server-user/src/test/resources/application.yml
+7
-0
db_changelog_master.yaml
.../src/test/resources/db/changelog/db_changelog_master.yaml
+26
-0
changeSet_1.sql
cneeds-server-user/src/test/resources/db/sql/changeSet_1.sql
+63
-0
changeSet_2.sql
cneeds-server-user/src/test/resources/db/sql/changeSet_2.sql
+17
-0
cneeds_server.sql
...s-server-user/src/test/resources/db/sql/cneeds_server.sql
+359
-0
create_sys_dept.sql
...ds-server-user/src/test/resources/sql/create_sys_dept.sql
+1
-0
No files found.
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java
View file @
73badf61
...
...
@@ -200,6 +200,90 @@ public class DeviceController {
}
/**
* 查询设备渠道号管理
* @param page
* @param pageSize
* @param sort
* @param seriesId
* @param imei
* @return
*/
@PreAuthorize
(
"hasRole('deviceManagement:deviceChannel:list') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/list"
)
public
R
deviceChannelList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
String
sort
,
@RequestParam
(
required
=
false
)
Long
seriesId
,
@RequestParam
(
required
=
false
)
String
imei
){
String
orderField
=
null
;
String
order
=
null
;
if
(
page
==
null
||
page
==
0
){
page
=
new
Integer
(
1
);
}
if
(
pageSize
==
null
||
pageSize
==
0
){
pageSize
=
new
Integer
(
10
);
}
if
(
StringUtils
.
isNotEmpty
(
sort
)
&&
StringUtils
.
isNotBlank
(
sort
.
trim
())){
if
(
sort
.
contains
(
"+"
)){
order
=
new
String
(
"asc"
);
}
if
(
sort
.
contains
(
"-"
)){
order
=
new
String
(
"desc"
);
}
orderField
=
sort
.
substring
(
1
);
orderField
=
RequestParamterConverter
.
toLine
(
orderField
);
}
PageDto
pageDto
=
deviceClient
.
deviceList
(
page
,
pageSize
,
orderField
,
order
,
seriesId
,
imei
);
return
new
R
().
put
(
"data"
,
pageDto
);
}
/**
*
* @param page
* @param pageSize
* @param sort
* @param seriesId
* @param imei
* @return
*/
@PreAuthorize
(
"hasRole('deviceStatistical:deviceInfo:list') or hasRole('admin')"
)
@PostMapping
(
"/deviceInfo/list"
)
public
R
deviceInfoList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
String
sort
,
@RequestParam
(
required
=
false
)
Long
seriesId
,
@RequestParam
(
required
=
false
)
String
imei
){
String
orderField
=
null
;
String
order
=
null
;
if
(
page
==
null
||
page
==
0
){
page
=
new
Integer
(
1
);
}
if
(
pageSize
==
null
||
pageSize
==
0
){
pageSize
=
new
Integer
(
10
);
}
if
(
StringUtils
.
isNotEmpty
(
sort
)
&&
StringUtils
.
isNotBlank
(
sort
.
trim
())){
if
(
sort
.
contains
(
"+"
)){
order
=
new
String
(
"asc"
);
}
if
(
sort
.
contains
(
"-"
)){
order
=
new
String
(
"desc"
);
}
orderField
=
sort
.
substring
(
1
);
orderField
=
RequestParamterConverter
.
toLine
(
orderField
);
}
PageDto
pageDto
=
deviceClient
.
deviceList
(
page
,
pageSize
,
orderField
,
order
,
seriesId
,
imei
);
return
new
R
().
put
(
"data"
,
pageDto
);
}
/**
* 导入设备
* @param devicesVo
* @return
...
...
@@ -215,6 +299,11 @@ public class DeviceController {
}
/**
* 适配配置
* @param devicesVo
* @return
*/
@PreAuthorize
(
"hasRole('deviceManagement:device:edit') or hasRole('admin')"
)
@PostMapping
(
"/device/updateDeviceSeriesBatch"
)
public
R
updateDeviceSeriesBatch
(
DevicesVo
devicesVo
){
...
...
@@ -234,6 +323,11 @@ public class DeviceController {
}
/**
* 通过imei查询设备信息
* @param dto
* @return
*/
@PreAuthorize
(
"hasRole('deviceManagement:device:list') or hasRole('admin')"
)
@PostMapping
(
"/device/queryDeviceByImei"
)
public
R
queryDeviceByImei
(
@RequestBody
DeviceInfoDto
dto
){
...
...
@@ -247,8 +341,8 @@ public class DeviceController {
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:list') or hasRole('admin')"
)
@PostMapping
(
"/
deviceC
hannel/list"
)
public
R
deivceC
hannelList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@PostMapping
(
"/
c
hannel/list"
)
public
R
c
hannelList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
String
sort
,
@RequestParam
(
required
=
false
)
String
channelNum
){
...
...
@@ -296,6 +390,11 @@ public class DeviceController {
}
/**
* 修改渠道号
* @param vo
* @return
*/
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:edit') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/edit"
)
public
R
editSeries
(
ChannelVo
vo
){
...
...
@@ -305,6 +404,11 @@ public class DeviceController {
return
R
.
ok
();
}
/**
* 删除渠道号
* @param ids
* @return
*/
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:delete') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/delete"
)
public
R
deleteDeviceChannel
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
...
...
@@ -324,7 +428,7 @@ public class DeviceController {
* @param deviceId
* @return
*/
@PreAuthorize
(
"hasRole('
config
Management:deviceChannel:delete') or hasRole('admin')"
)
@PreAuthorize
(
"hasRole('
device
Management:deviceChannel:delete') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/deleteSettingDeviceChannel"
)
public
R
deleteSettingDeviceChannel
(
Long
deviceId
){
deviceClient
.
deleteSettingDeviceChannel
(
deviceId
);
...
...
@@ -345,7 +449,26 @@ public class DeviceController {
return
R
.
ok
();
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:list') or hasRole('admin')"
)
/**
* 修改设备的渠道号
* @param vo
* @return
*/
@PreAuthorize
(
"hasRole('deviceManagement:deviceChannel:edit') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/updateSettingDeviceChannel1"
)
public
R
updateSettingDeviceChannel1
(
DeviceInfoVo
vo
){
DeviceInfoDto
dto
=
new
DeviceInfoDto
();
BeanUtils
.
copyProperties
(
vo
,
dto
);
deviceClient
.
updateSettingDeviceChannel
(
dto
);
return
R
.
ok
();
}
/**
* 查询设备渠道号统计
* @param channelIds
* @return
*/
@PreAuthorize
(
"hasRole('deviceManagement:deviceChannel:list') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/queryTotalStatisticsDeviceChannel"
)
public
R
queryTotalStatisticsDeviceChannel
(
@RequestParam
(
value
=
"channelIds"
,
required
=
false
)
List
<
Long
>
channelIds
){
...
...
@@ -425,7 +548,7 @@ public class DeviceController {
}
/**
*
*
筛选 该集合里的imei 是否设置过渠道号
* @param imeis
* @return
*/
...
...
@@ -446,7 +569,7 @@ public class DeviceController {
* @param vo
* @return
*/
@PreAuthorize
(
"hasRole('
config
Management:deviceChannel:delete') or hasRole('admin')"
)
@PreAuthorize
(
"hasRole('
device
Management:deviceChannel:delete') or hasRole('admin')"
)
@RequestMapping
(
"/deviceChannel/deleteStatisticsDeviceChannel"
)
public
R
deleteStatisticsDeviceChannel
(
StatisticsDeviceChannelVo
vo
){
if
(
vo
==
null
){
...
...
@@ -509,7 +632,7 @@ public class DeviceController {
* @param seriesId
* @return
*/
@PreAuthorize
(
"hasRole('device
Management:device
:list') or hasRole('admin')"
)
@PreAuthorize
(
"hasRole('device
Statistical:deviceInfoExport
:list') or hasRole('admin')"
)
@PostMapping
(
"/deviceInfoExport/list"
)
public
R
deviceInfoExportList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
...
...
@@ -541,7 +664,7 @@ public class DeviceController {
return
new
R
().
put
(
"data"
,
pageDto
);
}
@PreAuthorize
(
"hasRole('device
Management:device
:list') or hasRole('admin')"
)
@PreAuthorize
(
"hasRole('device
Statistical:deviceInfoExport
:list') or hasRole('admin')"
)
@PostMapping
(
"/deviceInfoExport/uploadDeviceInfoExport"
)
public
R
uploadDeviceInfoExport
(
@RequestBody
UploadDeviceChannelExcelVo
vo
)
throws
IOException
{
...
...
cneeds-server-datashow/src/main/resources/statics/index.html
View file @
73badf61
<!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
c
(
c
){
for
(
var
u
,
a
,
d
=
c
[
0
],
f
=
c
[
1
],
h
=
c
[
2
],
k
=
0
,
o
=
[];
k
<
d
.
length
;
k
++
)
a
=
d
[
k
],
t
[
a
]
&&
o
.
push
(
t
[
a
][
0
]),
t
[
a
]
=
0
;
for
(
u
in
f
)
Object
.
prototype
.
hasOwnProperty
.
call
(
f
,
u
)
&&
(
e
[
u
]
=
f
[
u
]);
b
&&
b
(
c
);
while
(
o
.
length
)
o
.
shift
()();
return
r
.
push
.
apply
(
r
,
h
||
[]),
n
()}
function
n
(){
for
(
var
e
,
c
=
0
;
c
<
r
.
length
;
c
++
){
for
(
var
n
=
r
[
c
],
u
=!
0
,
a
=
1
;
a
<
n
.
length
;
a
++
){
var
d
=
n
[
a
];
0
!==
t
[
d
]
&&
(
u
=!
1
)}
u
&&
(
r
.
splice
(
c
--
,
1
),
e
=
f
(
f
.
s
=
n
[
0
]))}
return
e
}
var
u
=
{},
a
=
{
runtime
:
0
},
t
=
{
runtime
:
0
},
r
=
[];
function
d
(
e
){
return
f
.
p
+
"static/js/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-06aa7494"
:
"f94477a5"
,
"chunk-06ed166b"
:
"9ee75800"
,
"chunk-116c2bab"
:
"bf322429"
,
"chunk-18a40ee2"
:
"1d3fbbfd"
,
"chunk-19adc003"
:
"15ae15aa"
,
"chunk-1a07b08b"
:
"10e51d61"
,
"chunk-218bb4cf"
:
"c4993991"
,
"chunk-22e5f704"
:
"b6092551"
,
"chunk-2b4823a9"
:
"fc10ee76"
,
"chunk-2d2105d3"
:
"c38e1553"
,
"chunk-2d230a36"
:
"8e6ecaab"
,
"chunk-2d230fe7"
:
"8023f254"
,
"chunk-3b59103a"
:
"264a5f41"
,
"chunk-403c80dd"
:
"9f880ecf"
,
"chunk-47af9ee4"
:
"83ad9ebc"
,
"chunk-4a8d06a6"
:
"b96c671c"
,
"chunk-4ab8490a"
:
"022a650a"
,
"chunk-5411756c"
:
"1c5a2af2"
,
"chunk-56d3065a"
:
"f080c714"
,
"chunk-10f36354"
:
"9553a70d"
,
"chunk-5c585ee6"
:
"574971ae"
,
"chunk-636f8118"
:
"12b71630"
,
"chunk-64238bd4"
:
"3abc94a0"
,
"chunk-6e87ca78"
:
"cc2ed628"
,
"chunk-2033ddf1"
:
"fc4ba292"
,
"chunk-4913999e"
:
"2444b29a"
,
"chunk-cbd0fe76"
:
"c7d24319"
,
"chunk-723f6b88"
:
"2d2174ab"
,
"chunk-7395e3e5"
:
"bb4e5af7"
,
"chunk-73bfcbf0"
:
"3ec98a83"
,
"chunk-77a4bbf0"
:
"f8132b56"
,
"chunk-79a85582"
:
"48636675"
,
"chunk-7b66cc0a"
:
"792032ca"
,
"chunk-80fe6032"
:
"e8411099"
,
"chunk-adf11d7e"
:
"da56d39a"
,
"chunk-e20529e6"
:
"265af98f"
,
"chunk-e33fc590"
:
"68e0014d"
,
"chunk-e652b80c"
:
"df7a62a1"
,
"chunk-feef4472"
:
"0f47d1b3"
}[
e
]
+
".js"
}
function
f
(
c
){
if
(
u
[
c
])
return
u
[
c
].
exports
;
var
n
=
u
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
n
.
exports
,
n
,
n
.
exports
,
f
),
n
.
l
=!
0
,
n
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
[],
n
=
{
"chunk-06aa7494"
:
1
,
"chunk-116c2bab"
:
1
,
"chunk-18a40ee2"
:
1
,
"chunk-19adc003"
:
1
,
"chunk-1a07b08b"
:
1
,
"chunk-218bb4cf"
:
1
,
"chunk-2b4823a9"
:
1
,
"chunk-4a8d06a6"
:
1
,
"chunk-4ab8490a"
:
1
,
"chunk-5411756c"
:
1
,
"chunk-10f36354"
:
1
,
"chunk-64238bd4"
:
1
,
"chunk-2033ddf1"
:
1
,
"chunk-4913999e"
:
1
,
"chunk-cbd0fe76"
:
1
,
"chunk-723f6b88"
:
1
,
"chunk-80fe6032"
:
1
,
"chunk-adf11d7e"
:
1
,
"chunk-e33fc590"
:
1
,
"chunk-feef4472"
:
1
};
a
[
e
]?
c
.
push
(
a
[
e
]):
0
!==
a
[
e
]
&&
n
[
e
]
&&
c
.
push
(
a
[
e
]
=
new
Promise
((
function
(
c
,
n
){
for
(
var
u
=
"static/css/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-06aa7494"
:
"9d63d053"
,
"chunk-06ed166b"
:
"31d6cfe0"
,
"chunk-116c2bab"
:
"eedc5334"
,
"chunk-18a40ee2"
:
"9d63d053"
,
"chunk-19adc003"
:
"9d63d053"
,
"chunk-1a07b08b"
:
"830e1851"
,
"chunk-218bb4cf"
:
"9d63d053"
,
"chunk-22e5f704"
:
"31d6cfe0"
,
"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-2033ddf1"
:
"7bcb44ca"
,
"chunk-4913999e"
:
"7bcb44ca"
,
"chunk-cbd0fe76"
:
"7bcb44ca"
,
"chunk-723f6b88"
:
"53ac87fa"
,
"chunk-7395e3e5"
:
"31d6cfe0"
,
"chunk-73bfcbf0"
:
"31d6cfe0"
,
"chunk-77a4bbf0"
:
"31d6cfe0"
,
"chunk-79a85582"
:
"31d6cfe0"
,
"chunk-7b66cc0a"
:
"31d6cfe0"
,
"chunk-80fe6032"
:
"9d63d053"
,
"chunk-adf11d7e"
:
"9d63d053"
,
"chunk-e20529e6"
:
"31d6cfe0"
,
"chunk-e33fc590"
:
"9d63d053"
,
"chunk-e652b80c"
:
"31d6cfe0"
,
"chunk-feef4472"
:
"9d63d053"
}[
e
]
+
".css"
,
t
=
f
.
p
+
u
,
r
=
document
.
getElementsByTagName
(
"link"
),
d
=
0
;
d
<
r
.
length
;
d
++
){
var
h
=
r
[
d
],
k
=
h
.
getAttribute
(
"data-href"
)
||
h
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
h
.
rel
&&
(
k
===
u
||
k
===
t
))
return
c
()}
var
o
=
document
.
getElementsByTagName
(
"style"
);
for
(
d
=
0
;
d
<
o
.
length
;
d
++
){
h
=
o
[
d
],
k
=
h
.
getAttribute
(
"data-href"
);
if
(
k
===
u
||
k
===
t
)
return
c
()}
var
b
=
document
.
createElement
(
"link"
);
b
.
rel
=
"stylesheet"
,
b
.
type
=
"text/css"
,
b
.
onload
=
c
,
b
.
onerror
=
function
(
c
){
var
u
=
c
&&
c
.
target
&&
c
.
target
.
src
||
t
,
r
=
new
Error
(
"Loading CSS chunk "
+
e
+
" failed.
\
n("
+
u
+
")"
);
r
.
request
=
u
,
delete
a
[
e
],
b
.
parentNode
.
removeChild
(
b
),
n
(
r
)},
b
.
href
=
t
;
var
i
=
document
.
getElementsByTagName
(
"head"
)[
0
];
i
.
appendChild
(
b
)})).
then
((
function
(){
a
[
e
]
=
0
})));
var
u
=
t
[
e
];
if
(
0
!==
u
)
if
(
u
)
c
.
push
(
u
[
2
]);
else
{
var
r
=
new
Promise
((
function
(
c
,
n
){
u
=
t
[
e
]
=
[
c
,
n
]}));
c
.
push
(
u
[
2
]
=
r
);
var
h
,
k
=
document
.
createElement
(
"script"
);
k
.
charset
=
"utf-8"
,
k
.
timeout
=
120
,
f
.
nc
&&
k
.
setAttribute
(
"nonce"
,
f
.
nc
),
k
.
src
=
d
(
e
),
h
=
function
(
c
){
k
.
onerror
=
k
.
onload
=
null
,
clearTimeout
(
o
);
var
n
=
t
[
e
];
if
(
0
!==
n
){
if
(
n
){
var
u
=
c
&&
(
"load"
===
c
.
type
?
"missing"
:
c
.
type
),
a
=
c
&&
c
.
target
&&
c
.
target
.
src
,
r
=
new
Error
(
"Loading chunk "
+
e
+
" failed.
\
n("
+
u
+
": "
+
a
+
")"
);
r
.
type
=
u
,
r
.
request
=
a
,
n
[
1
](
r
)}
t
[
e
]
=
void
0
}};
var
o
=
setTimeout
((
function
(){
h
({
type
:
"timeout"
,
target
:
k
})}),
12
e4
);
k
.
onerror
=
k
.
onload
=
h
,
document
.
head
.
appendChild
(
k
)}
return
Promise
.
all
(
c
)},
f
.
m
=
e
,
f
.
c
=
u
,
f
.
d
=
function
(
e
,
c
,
n
){
f
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
enumerable
:
!
0
,
get
:
n
})},
f
.
r
=
function
(
e
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
f
.
t
=
function
(
e
,
c
){
if
(
1
&
c
&&
(
e
=
f
(
e
)),
8
&
c
)
return
e
;
if
(
4
&
c
&&
"object"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
n
=
Object
.
create
(
null
);
if
(
f
.
r
(
n
),
Object
.
defineProperty
(
n
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
c
&&
"string"
!=
typeof
e
)
for
(
var
u
in
e
)
f
.
d
(
n
,
u
,
function
(
c
){
return
e
[
c
]}.
bind
(
null
,
u
));
return
n
},
f
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"default"
]}:
function
(){
return
e
};
return
f
.
d
(
c
,
"a"
,
c
),
c
},
f
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
f
.
p
=
""
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
h
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
k
=
h
.
push
.
bind
(
h
);
h
.
push
=
c
,
h
=
h
.
slice
();
for
(
var
o
=
0
;
o
<
h
.
length
;
o
++
)
c
(
h
[
o
]);
var
b
=
k
;
n
()})([]);
</script><script
src=
static/js/app.53bd0556.js
></script></body></html>
\ No newline at end of file
<!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
c
(
c
){
for
(
var
u
,
a
,
d
=
c
[
0
],
f
=
c
[
1
],
h
=
c
[
2
],
k
=
0
,
o
=
[];
k
<
d
.
length
;
k
++
)
a
=
d
[
k
],
t
[
a
]
&&
o
.
push
(
t
[
a
][
0
]),
t
[
a
]
=
0
;
for
(
u
in
f
)
Object
.
prototype
.
hasOwnProperty
.
call
(
f
,
u
)
&&
(
e
[
u
]
=
f
[
u
]);
b
&&
b
(
c
);
while
(
o
.
length
)
o
.
shift
()();
return
r
.
push
.
apply
(
r
,
h
||
[]),
n
()}
function
n
(){
for
(
var
e
,
c
=
0
;
c
<
r
.
length
;
c
++
){
for
(
var
n
=
r
[
c
],
u
=!
0
,
a
=
1
;
a
<
n
.
length
;
a
++
){
var
d
=
n
[
a
];
0
!==
t
[
d
]
&&
(
u
=!
1
)}
u
&&
(
r
.
splice
(
c
--
,
1
),
e
=
f
(
f
.
s
=
n
[
0
]))}
return
e
}
var
u
=
{},
a
=
{
runtime
:
0
},
t
=
{
runtime
:
0
},
r
=
[];
function
d
(
e
){
return
f
.
p
+
"static/js/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-06aa7494"
:
"f94477a5"
,
"chunk-06ed166b"
:
"01cbaaaa"
,
"chunk-116c2bab"
:
"bf322429"
,
"chunk-18a40ee2"
:
"bc415a6d"
,
"chunk-19adc003"
:
"648a27df"
,
"chunk-1a07b08b"
:
"10e51d61"
,
"chunk-218bb4cf"
:
"c4993991"
,
"chunk-22e5f704"
:
"68d5789c"
,
"chunk-2b4823a9"
:
"fc10ee76"
,
"chunk-2d2105d3"
:
"c38e1553"
,
"chunk-2d230a36"
:
"8e6ecaab"
,
"chunk-2d230fe7"
:
"8023f254"
,
"chunk-3b59103a"
:
"264a5f41"
,
"chunk-403c80dd"
:
"9f880ecf"
,
"chunk-47af9ee4"
:
"83ad9ebc"
,
"chunk-4a8d06a6"
:
"b96c671c"
,
"chunk-4ab8490a"
:
"022a650a"
,
"chunk-5411756c"
:
"1c5a2af2"
,
"chunk-56d3065a"
:
"f080c714"
,
"chunk-10f36354"
:
"9553a70d"
,
"chunk-5c585ee6"
:
"52081191"
,
"chunk-636f8118"
:
"12b71630"
,
"chunk-64238bd4"
:
"3abc94a0"
,
"chunk-6e87ca78"
:
"cc2ed628"
,
"chunk-2033ddf1"
:
"fcf0abf4"
,
"chunk-4913999e"
:
"07116979"
,
"chunk-cbd0fe76"
:
"ef24e83f"
,
"chunk-723f6b88"
:
"70adae6b"
,
"chunk-7395e3e5"
:
"951ab4e1"
,
"chunk-73bfcbf0"
:
"3ec98a83"
,
"chunk-77a4bbf0"
:
"ad38d337"
,
"chunk-79a85582"
:
"48636675"
,
"chunk-7b66cc0a"
:
"792032ca"
,
"chunk-80fe6032"
:
"d9f25b2c"
,
"chunk-adf11d7e"
:
"69ecac3b"
,
"chunk-e20529e6"
:
"f6f80293"
,
"chunk-e33fc590"
:
"68e0014d"
,
"chunk-e652b80c"
:
"df7a62a1"
,
"chunk-feef4472"
:
"a6abc868"
}[
e
]
+
".js"
}
function
f
(
c
){
if
(
u
[
c
])
return
u
[
c
].
exports
;
var
n
=
u
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
n
.
exports
,
n
,
n
.
exports
,
f
),
n
.
l
=!
0
,
n
.
exports
}
f
.
e
=
function
(
e
){
var
c
=
[],
n
=
{
"chunk-06aa7494"
:
1
,
"chunk-116c2bab"
:
1
,
"chunk-18a40ee2"
:
1
,
"chunk-19adc003"
:
1
,
"chunk-1a07b08b"
:
1
,
"chunk-218bb4cf"
:
1
,
"chunk-2b4823a9"
:
1
,
"chunk-4a8d06a6"
:
1
,
"chunk-4ab8490a"
:
1
,
"chunk-5411756c"
:
1
,
"chunk-10f36354"
:
1
,
"chunk-64238bd4"
:
1
,
"chunk-2033ddf1"
:
1
,
"chunk-4913999e"
:
1
,
"chunk-cbd0fe76"
:
1
,
"chunk-723f6b88"
:
1
,
"chunk-80fe6032"
:
1
,
"chunk-adf11d7e"
:
1
,
"chunk-e33fc590"
:
1
,
"chunk-feef4472"
:
1
};
a
[
e
]?
c
.
push
(
a
[
e
]):
0
!==
a
[
e
]
&&
n
[
e
]
&&
c
.
push
(
a
[
e
]
=
new
Promise
((
function
(
c
,
n
){
for
(
var
u
=
"static/css/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-06aa7494"
:
"9d63d053"
,
"chunk-06ed166b"
:
"31d6cfe0"
,
"chunk-116c2bab"
:
"eedc5334"
,
"chunk-18a40ee2"
:
"9d63d053"
,
"chunk-19adc003"
:
"9d63d053"
,
"chunk-1a07b08b"
:
"830e1851"
,
"chunk-218bb4cf"
:
"9d63d053"
,
"chunk-22e5f704"
:
"31d6cfe0"
,
"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-2033ddf1"
:
"7bcb44ca"
,
"chunk-4913999e"
:
"7bcb44ca"
,
"chunk-cbd0fe76"
:
"7bcb44ca"
,
"chunk-723f6b88"
:
"53ac87fa"
,
"chunk-7395e3e5"
:
"31d6cfe0"
,
"chunk-73bfcbf0"
:
"31d6cfe0"
,
"chunk-77a4bbf0"
:
"31d6cfe0"
,
"chunk-79a85582"
:
"31d6cfe0"
,
"chunk-7b66cc0a"
:
"31d6cfe0"
,
"chunk-80fe6032"
:
"9d63d053"
,
"chunk-adf11d7e"
:
"9d63d053"
,
"chunk-e20529e6"
:
"31d6cfe0"
,
"chunk-e33fc590"
:
"9d63d053"
,
"chunk-e652b80c"
:
"31d6cfe0"
,
"chunk-feef4472"
:
"9d63d053"
}[
e
]
+
".css"
,
t
=
f
.
p
+
u
,
r
=
document
.
getElementsByTagName
(
"link"
),
d
=
0
;
d
<
r
.
length
;
d
++
){
var
h
=
r
[
d
],
k
=
h
.
getAttribute
(
"data-href"
)
||
h
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
h
.
rel
&&
(
k
===
u
||
k
===
t
))
return
c
()}
var
o
=
document
.
getElementsByTagName
(
"style"
);
for
(
d
=
0
;
d
<
o
.
length
;
d
++
){
h
=
o
[
d
],
k
=
h
.
getAttribute
(
"data-href"
);
if
(
k
===
u
||
k
===
t
)
return
c
()}
var
b
=
document
.
createElement
(
"link"
);
b
.
rel
=
"stylesheet"
,
b
.
type
=
"text/css"
,
b
.
onload
=
c
,
b
.
onerror
=
function
(
c
){
var
u
=
c
&&
c
.
target
&&
c
.
target
.
src
||
t
,
r
=
new
Error
(
"Loading CSS chunk "
+
e
+
" failed.
\
n("
+
u
+
")"
);
r
.
request
=
u
,
delete
a
[
e
],
b
.
parentNode
.
removeChild
(
b
),
n
(
r
)},
b
.
href
=
t
;
var
i
=
document
.
getElementsByTagName
(
"head"
)[
0
];
i
.
appendChild
(
b
)})).
then
((
function
(){
a
[
e
]
=
0
})));
var
u
=
t
[
e
];
if
(
0
!==
u
)
if
(
u
)
c
.
push
(
u
[
2
]);
else
{
var
r
=
new
Promise
((
function
(
c
,
n
){
u
=
t
[
e
]
=
[
c
,
n
]}));
c
.
push
(
u
[
2
]
=
r
);
var
h
,
k
=
document
.
createElement
(
"script"
);
k
.
charset
=
"utf-8"
,
k
.
timeout
=
120
,
f
.
nc
&&
k
.
setAttribute
(
"nonce"
,
f
.
nc
),
k
.
src
=
d
(
e
),
h
=
function
(
c
){
k
.
onerror
=
k
.
onload
=
null
,
clearTimeout
(
o
);
var
n
=
t
[
e
];
if
(
0
!==
n
){
if
(
n
){
var
u
=
c
&&
(
"load"
===
c
.
type
?
"missing"
:
c
.
type
),
a
=
c
&&
c
.
target
&&
c
.
target
.
src
,
r
=
new
Error
(
"Loading chunk "
+
e
+
" failed.
\
n("
+
u
+
": "
+
a
+
")"
);
r
.
type
=
u
,
r
.
request
=
a
,
n
[
1
](
r
)}
t
[
e
]
=
void
0
}};
var
o
=
setTimeout
((
function
(){
h
({
type
:
"timeout"
,
target
:
k
})}),
12
e4
);
k
.
onerror
=
k
.
onload
=
h
,
document
.
head
.
appendChild
(
k
)}
return
Promise
.
all
(
c
)},
f
.
m
=
e
,
f
.
c
=
u
,
f
.
d
=
function
(
e
,
c
,
n
){
f
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
enumerable
:
!
0
,
get
:
n
})},
f
.
r
=
function
(
e
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
f
.
t
=
function
(
e
,
c
){
if
(
1
&
c
&&
(
e
=
f
(
e
)),
8
&
c
)
return
e
;
if
(
4
&
c
&&
"object"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
n
=
Object
.
create
(
null
);
if
(
f
.
r
(
n
),
Object
.
defineProperty
(
n
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
c
&&
"string"
!=
typeof
e
)
for
(
var
u
in
e
)
f
.
d
(
n
,
u
,
function
(
c
){
return
e
[
c
]}.
bind
(
null
,
u
));
return
n
},
f
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"default"
]}:
function
(){
return
e
};
return
f
.
d
(
c
,
"a"
,
c
),
c
},
f
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
f
.
p
=
""
,
f
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
h
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
k
=
h
.
push
.
bind
(
h
);
h
.
push
=
c
,
h
=
h
.
slice
();
for
(
var
o
=
0
;
o
<
h
.
length
;
o
++
)
c
(
h
[
o
]);
var
b
=
k
;
n
()})([]);
</script><script
src=
static/js/app.67140a03.js
></script></body></html>
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/app.
53bd0556
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/app.
67140a03
.js
View file @
73badf61
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-06ed166b.
9ee75800
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-06ed166b.
01cbaaaa
.js
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-06ed166b"
],{
"0173"
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
r
(
n
);
var
a
=
function
(){
var
e
=
this
,
n
=
e
.
$createElement
,
t
=
e
.
_self
.
_c
||
n
;
return
t
(
"el-container"
,[
t
(
"el-main"
,[
t
(
"el-form"
,{
ref
:
"editChannel"
,
attrs
:{
model
:
e
.
channel
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
t
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesNum"
,
label
:
"渠道号"
}},[
t
(
"el-input"
,{
model
:{
value
:
e
.
channel
.
channelNum
,
callback
:
function
(
n
){
e
.
$set
(
e
.
channel
,
"channelNum"
,
n
)},
expression
:
"channel.channelNum"
}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"品牌描述:"
}},[
t
(
"el-input"
,{
model
:{
value
:
e
.
channel
.
brand
,
callback
:
function
(
n
){
e
.
$set
(
e
.
channel
,
"brand"
,
n
)},
expression
:
"channel.brand"
}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,[
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
t
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceChannelList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
i
=
[],
c
=
(
t
(
"ac6a"
),
t
(
"456d"
),
t
(
"aa98"
)),
r
=
{
channelNum
:
"渠道号"
,
brand
:
"品牌描述"
},
o
=
{
data
:
function
(){
var
e
=
function
(
e
,
n
,
t
){
0
===
n
.
length
?
t
(
new
Error
(
r
[
e
.
field
]
+
"必须填写"
)):
t
()};
return
{
loading
:
!
1
,
channel
:{
channelNum
:
""
,
brand
:
""
},
rules
:{
channelNum
:[{
validator
:
e
}],
brand
:[{
validator
:
e
}]}}},
mounted
:
function
(){
this
.
channel
=
this
.
$route
.
query
.
channel
},
methods
:{
setDefault
:
function
(){
this
.
$refs
.
editChannel
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
editChannel
.
validate
((
function
(
n
,
t
){
if
(
n
)
Object
(
c
[
"n"
])(
e
.
channel
).
then
((
function
(
n
){
var
t
=
n
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
t
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
loading
=!
1
,
e
.
setDefault
(),
e
.
toDeviceChannelList
()})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
t
[
Object
.
keys
(
t
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
handleChange
:
function
(
e
){
var
n
=
e
.
length
;
n
-=
1
,
this
.
dept
.
parentId
=
e
[
n
]},
toDeviceChannelList
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel"
})}}},
u
=
o
,
d
=
t
(
"2877"
),
l
=
Object
(
d
[
"a"
])(
u
,
a
,
i
,
!
1
,
null
,
"1c8c5750"
,
null
);
n
[
"default"
]
=
l
.
exports
},
aa98
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
d
(
n
,
"h"
,(
function
(){
return
i
})),
t
.
d
(
n
,
"g"
,(
function
(){
return
c
})),
t
.
d
(
n
,
"i"
,(
function
(){
return
r
})),
t
.
d
(
n
,
"o"
,(
function
(){
return
o
})),
t
.
d
(
n
,
"b"
,(
function
(){
return
u
})),
t
.
d
(
n
,
"q"
,(
function
(){
return
d
})),
t
.
d
(
n
,
"r"
,(
function
(){
return
l
})),
t
.
d
(
n
,
"s"
,(
function
(){
return
s
})),
t
.
d
(
n
,
"m"
,(
function
(){
return
h
})),
t
.
d
(
n
,
"k"
,(
function
(){
return
p
})),
t
.
d
(
n
,
"f"
,(
function
(){
return
v
})),
t
.
d
(
n
,
"a"
,(
function
(){
return
f
})),
t
.
d
(
n
,
"n"
,(
function
(){
return
m
})),
t
.
d
(
n
,
"j"
,(
function
(){
return
b
})),
t
.
d
(
n
,
"c"
,(
function
(){
return
g
})),
t
.
d
(
n
,
"d"
,(
function
(){
return
C
})),
t
.
d
(
n
,
"p"
,(
function
(){
return
j
})),
t
.
d
(
n
,
"l"
,(
function
(){
return
O
})),
t
.
d
(
n
,
"e"
,(
function
(){
return
D
}));
t
(
"55dd"
);
var
a
=
t
(
"b775"
);
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
b
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
g
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
C
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
j
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
O
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
D
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-06ed166b"
],{
"0173"
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
r
(
n
);
var
a
=
function
(){
var
e
=
this
,
n
=
e
.
$createElement
,
t
=
e
.
_self
.
_c
||
n
;
return
t
(
"el-container"
,[
t
(
"el-main"
,[
t
(
"el-form"
,{
ref
:
"editChannel"
,
attrs
:{
model
:
e
.
channel
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
t
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesNum"
,
label
:
"渠道号"
}},[
t
(
"el-input"
,{
model
:{
value
:
e
.
channel
.
channelNum
,
callback
:
function
(
n
){
e
.
$set
(
e
.
channel
,
"channelNum"
,
n
)},
expression
:
"channel.channelNum"
}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"品牌描述:"
}},[
t
(
"el-input"
,{
model
:{
value
:
e
.
channel
.
brand
,
callback
:
function
(
n
){
e
.
$set
(
e
.
channel
,
"brand"
,
n
)},
expression
:
"channel.brand"
}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,[
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
t
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceChannelList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
i
=
[],
c
=
(
t
(
"ac6a"
),
t
(
"456d"
),
t
(
"aa98"
)),
r
=
{
channelNum
:
"渠道号"
,
brand
:
"品牌描述"
},
o
=
{
data
:
function
(){
var
e
=
function
(
e
,
n
,
t
){
0
===
n
.
length
?
t
(
new
Error
(
r
[
e
.
field
]
+
"必须填写"
)):
t
()};
return
{
loading
:
!
1
,
channel
:{
channelNum
:
""
,
brand
:
""
},
rules
:{
channelNum
:[{
validator
:
e
}],
brand
:[{
validator
:
e
}]}}},
mounted
:
function
(){
this
.
channel
=
this
.
$route
.
query
.
channel
},
methods
:{
setDefault
:
function
(){
this
.
$refs
.
editChannel
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
editChannel
.
validate
((
function
(
n
,
t
){
if
(
n
)
Object
(
c
[
"n"
])(
e
.
channel
).
then
((
function
(
n
){
var
t
=
n
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
t
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
loading
=!
1
,
e
.
setDefault
(),
e
.
toDeviceChannelList
()})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
t
[
Object
.
keys
(
t
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
handleChange
:
function
(
e
){
var
n
=
e
.
length
;
n
-=
1
,
this
.
dept
.
parentId
=
e
[
n
]},
toDeviceChannelList
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel"
})}}},
u
=
o
,
d
=
t
(
"2877"
),
l
=
Object
(
d
[
"a"
])(
u
,
a
,
i
,
!
1
,
null
,
"1c8c5750"
,
null
);
n
[
"default"
]
=
l
.
exports
},
aa98
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
d
(
n
,
"h"
,(
function
(){
return
i
})),
t
.
d
(
n
,
"g"
,(
function
(){
return
c
})),
t
.
d
(
n
,
"i"
,(
function
(){
return
r
})),
t
.
d
(
n
,
"o"
,(
function
(){
return
o
})),
t
.
d
(
n
,
"b"
,(
function
(){
return
u
})),
t
.
d
(
n
,
"q"
,(
function
(){
return
d
})),
t
.
d
(
n
,
"r"
,(
function
(){
return
l
})),
t
.
d
(
n
,
"s"
,(
function
(){
return
s
})),
t
.
d
(
n
,
"m"
,(
function
(){
return
h
})),
t
.
d
(
n
,
"k"
,(
function
(){
return
p
})),
t
.
d
(
n
,
"f"
,(
function
(){
return
f
})),
t
.
d
(
n
,
"a"
,(
function
(){
return
v
})),
t
.
d
(
n
,
"n"
,(
function
(){
return
m
})),
t
.
d
(
n
,
"j"
,(
function
(){
return
b
})),
t
.
d
(
n
,
"c"
,(
function
(){
return
g
})),
t
.
d
(
n
,
"d"
,(
function
(){
return
C
})),
t
.
d
(
n
,
"p"
,(
function
(){
return
j
})),
t
.
d
(
n
,
"l"
,(
function
(){
return
O
})),
t
.
d
(
n
,
"e"
,(
function
(){
return
D
}));
t
(
"55dd"
);
var
a
=
t
(
"b775"
);
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
b
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
g
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
C
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
j
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
O
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
D
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-18a40ee2.
1d3fbbf
d.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-18a40ee2.
bc415a6
d.js
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-18a40ee2"
],{
"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
r
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
e
){
window
.
setTimeout
(
e
,
1
e3
/
60
)}}();
function
o
(
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
);
o
(
c
),
u
<
t
?
r
(
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
},
5163
:
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
.
editPage
}},[
e
.
_v
(
"编辑渠道号"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
deletePage
}},[
e
.
_v
(
"删除"
)]),
e
.
_v
(
" "
),
n
(
"el-input"
,{
staticClass
:
"filter-item"
,
staticStyle
:{
width
:
"200px"
},
attrs
:{
placeholder
:
"渠道号"
,
clearable
:
""
},
on
:{
clear
:
e
.
handleFilter
,
blur
:
e
.
handleFilter
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleFilter
(
t
)}},
model
:{
value
:
e
.
listQuery
.
channelNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"channelNum"
,
t
)},
expression
:
"listQuery.channelNum"
}}),
e
.
_v
(
" "
),
n
(
"el-button"
,{
directives
:[{
name
:
"waves"
,
rawName
:
"v-waves"
}],
staticClass
:
"filter-item"
,
staticStyle
:{
"margin-left"
:
"10px"
},
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
handleFilter
}},[
e
.
_v
(
"
\
n 查询
\
n "
)])],
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
:
"渠道号"
,
prop
:
"channelNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"渠道号详情"
,
prop
:
"brand"
,
width
:
"300"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"更新时间"
,
prop
:
"updateTime"
,
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
=
[],
r
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
o
=
n
(
"c7a7"
),
c
=
n
(
"aa98"
),
l
=
n
(
"ed08"
),
u
=
{
components
:{
Pagination
:
r
[
"a"
]},
directives
:{
waves
:
o
[
"a"
]},
filters
:{
delFlagValueFilter
:
function
(
e
){
return
-
1
===
e
?
e
=
"不可用"
:
0
===
e
&&
(
e
=
"可用"
),
e
},
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
l
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
}},
data
:
function
(){
return
{
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
channel
:{},
channelIds
:[]}},
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
(
c
[
"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
}))},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel"
,
query
:
this
.
listQuery
})},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel/add"
})},
editPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
channel
=
this
.
multipleSelection
[
0
],
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel/edit"
,
query
:{
channel
:
this
.
channel
}});
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
channelIds
.
push
(
t
.
channelId
)})),
this
.
$confirm
(
"此操作将永久删除, 是否继续?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
((
function
(){
Object
(
c
[
"c"
])(
e
.
channelIds
).
then
((
function
(
t
){
e
.
getList
()})),
e
.
channelIds
=
[],
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})})).
catch
((
function
(){
e
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
})}));
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
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
,
"12d9d1cc"
,
null
);
t
[
"default"
]
=
p
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
C
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
w
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
v
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
C
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
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
),
r
=
a
.
ele
;
if
(
r
){
r
.
style
.
position
=
"relative"
,
r
.
style
.
overflow
=
"hidden"
;
var
o
=
r
.
getBoundingClientRect
(),
c
=
r
.
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
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
o
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
o
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
o
.
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
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-18a40ee2"
],{
"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
r
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
e
){
window
.
setTimeout
(
e
,
1
e3
/
60
)}}();
function
o
(
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
);
o
(
c
),
u
<
t
?
r
(
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
},
5163
:
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
.
editPage
}},[
e
.
_v
(
"编辑渠道号"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
deletePage
}},[
e
.
_v
(
"删除"
)]),
e
.
_v
(
" "
),
n
(
"el-input"
,{
staticClass
:
"filter-item"
,
staticStyle
:{
width
:
"200px"
},
attrs
:{
placeholder
:
"渠道号"
,
clearable
:
""
},
on
:{
clear
:
e
.
handleFilter
,
blur
:
e
.
handleFilter
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleFilter
(
t
)}},
model
:{
value
:
e
.
listQuery
.
channelNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"channelNum"
,
t
)},
expression
:
"listQuery.channelNum"
}}),
e
.
_v
(
" "
),
n
(
"el-button"
,{
directives
:[{
name
:
"waves"
,
rawName
:
"v-waves"
}],
staticClass
:
"filter-item"
,
staticStyle
:{
"margin-left"
:
"10px"
},
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
handleFilter
}},[
e
.
_v
(
"
\
n 查询
\
n "
)])],
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
:
"渠道号"
,
prop
:
"channelNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"渠道号详情"
,
prop
:
"brand"
,
width
:
"300"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"更新时间"
,
prop
:
"updateTime"
,
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
=
[],
r
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
o
=
n
(
"c7a7"
),
c
=
n
(
"aa98"
),
l
=
n
(
"ed08"
),
u
=
{
components
:{
Pagination
:
r
[
"a"
]},
directives
:{
waves
:
o
[
"a"
]},
filters
:{
delFlagValueFilter
:
function
(
e
){
return
-
1
===
e
?
e
=
"不可用"
:
0
===
e
&&
(
e
=
"可用"
),
e
},
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
l
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
}},
data
:
function
(){
return
{
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
channel
:{},
channelIds
:[]}},
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
(
c
[
"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
}))},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel"
,
query
:
this
.
listQuery
})},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel/add"
})},
editPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
channel
=
this
.
multipleSelection
[
0
],
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel/edit"
,
query
:{
channel
:
this
.
channel
}});
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
channelIds
.
push
(
t
.
channelId
)})),
this
.
$confirm
(
"此操作将永久删除, 是否继续?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
((
function
(){
Object
(
c
[
"c"
])(
e
.
channelIds
).
then
((
function
(
t
){
e
.
getList
()})),
e
.
channelIds
=
[],
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})})).
catch
((
function
(){
e
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
})}));
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
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
,
"12d9d1cc"
,
null
);
t
[
"default"
]
=
p
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
w
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
C
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
v
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
C
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
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
),
r
=
a
.
ele
;
if
(
r
){
r
.
style
.
position
=
"relative"
,
r
.
style
.
overflow
=
"hidden"
;
var
o
=
r
.
getBoundingClientRect
(),
c
=
r
.
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
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
o
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
o
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
o
.
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-19adc003.15ae15aa.js
deleted
100644 → 0
View file @
86d2bd54
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-19adc003"
],{
"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
r
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
e
){
window
.
setTimeout
(
e
,
1
e3
/
60
)}}();
function
o
(
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
);
o
(
c
),
u
<
t
?
r
(
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
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
l
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
w
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
C
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
C
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
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
),
r
=
a
.
ele
;
if
(
r
){
r
.
style
.
position
=
"relative"
,
r
.
style
.
overflow
=
"hidden"
;
var
o
=
r
.
getBoundingClientRect
(),
c
=
r
.
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
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
o
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
o
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
o
.
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
]}}},
f547
:
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-select"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"请选择系列号"
},
model
:{
value
:
e
.
listQuery
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"seriesId"
,
t
)},
expression
:
"listQuery.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
),
e
.
_v
(
" "
),
n
(
"el-input"
,{
staticClass
:
"filter-item"
,
staticStyle
:{
width
:
"200px"
},
attrs
:{
placeholder
:
"输入imei"
,
clearable
:
""
},
on
:{
clear
:
e
.
handleFilter
,
blur
:
e
.
handleFilter
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleFilter
(
t
)}},
model
:{
value
:
e
.
listQuery
.
imei
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"imei"
,
t
)},
expression
:
"listQuery.imei"
}}),
e
.
_v
(
" "
),
n
(
"el-button"
,{
directives
:[{
name
:
"waves"
,
rawName
:
"v-waves"
}],
staticClass
:
"filter-item"
,
staticStyle
:{
"margin-left"
:
"10px"
},
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
handleFilter
}},[
e
.
_v
(
"
\
n 查询
\
n "
)])],
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
:
"产品系列"
,
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
:
"iccid"
,
prop
:
"iccid"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"sn"
,
prop
:
"sn"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"证书下载状态"
,
prop
:
"caCertificateStatus"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
caCertificateStatus
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"caCertificateStatusFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"版本信息"
,
prop
:
"deviceVersion"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"激活状态"
,
prop
:
"activeStatus"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
activeStatus
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"activeStatusFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"激活时间"
,
prop
:
"activeTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
activeTime
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeFilter"
)(
i
)))])]}}])}),
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
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"更新时间"
,
prop
:
"updateTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
updateTime
;
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
=
[],
r
=
(
n
(
"96cf"
),
n
(
"3b8d"
)),
o
=
n
(
"333d"
),
c
=
n
(
"c7a7"
),
l
=
n
(
"ed08"
),
u
=
n
(
"aa98"
),
s
=
n
(
"7d09"
),
d
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
c
[
"a"
]},
filters
:{
caCertificateStatusFilter
:
function
(
e
){
return
"-1"
===
e
?
"未下载"
:
"0"
===
e
?
"已下载 类型:非量产"
:
"1"
===
e
?
"已下载 类型:量产"
:
"2"
===
e
?
"已下载 类型:非量产,未验证"
:
"3"
===
e
?
"已下载 类型:量产,未验证"
:
e
||
"无信息"
},
activeStatusFilter
:
function
(
e
){
return
"0"
===
e
?
"未激活"
:
"1"
===
e
?
"已激活"
:
e
||
"无信息"
},
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
l
[
"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
:[],
selectSeriesOptions
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
selectSeries
(),
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
:{
exportPage
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceStatistical/deviceInfo/DeviceInfoExport"
})},
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
(
u
[
"h"
])(
this
.
listQuery
).
then
((
function
(
t
){
var
n
=
t
.
data
,
i
=
n
.
list
,
a
=
n
.
totalCount
;
e
.
list
=
i
,
e
.
total
=
a
,
e
.
listLoading
=!
1
}))},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceStatistical/deviceInfo"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()},
selectSeries
:
function
(){
var
e
=
Object
(
r
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
s
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
p
=
d
,
f
=
n
(
"2877"
),
h
=
Object
(
f
[
"a"
])(
p
,
i
,
a
,
!
1
,
null
,
"0824c318"
,
null
);
t
[
"default"
]
=
h
.
exports
}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-19adc003.648a27df.js
0 → 100644
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-19adc003"
],{
"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
r
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
e
){
window
.
setTimeout
(
e
,
1
e3
/
60
)}}();
function
o
(
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
);
o
(
c
),
u
<
t
?
r
(
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
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
l
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
w
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
C
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
C
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
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
),
r
=
a
.
ele
;
if
(
r
){
r
.
style
.
position
=
"relative"
,
r
.
style
.
overflow
=
"hidden"
;
var
o
=
r
.
getBoundingClientRect
(),
c
=
r
.
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
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
o
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
o
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
o
.
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
]}}},
f547
:
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-select"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"请选择系列号"
},
model
:{
value
:
e
.
listQuery
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"seriesId"
,
t
)},
expression
:
"listQuery.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
),
e
.
_v
(
" "
),
n
(
"el-input"
,{
staticClass
:
"filter-item"
,
staticStyle
:{
width
:
"200px"
},
attrs
:{
placeholder
:
"输入imei"
,
clearable
:
""
},
on
:{
clear
:
e
.
handleFilter
,
blur
:
e
.
handleFilter
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleFilter
(
t
)}},
model
:{
value
:
e
.
listQuery
.
imei
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"imei"
,
t
)},
expression
:
"listQuery.imei"
}}),
e
.
_v
(
" "
),
n
(
"el-button"
,{
directives
:[{
name
:
"waves"
,
rawName
:
"v-waves"
}],
staticClass
:
"filter-item"
,
staticStyle
:{
"margin-left"
:
"10px"
},
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
handleFilter
}},[
e
.
_v
(
"
\
n 查询
\
n "
)])],
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
:
"产品系列"
,
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
:
"iccid"
,
prop
:
"iccid"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"sn"
,
prop
:
"sn"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"证书下载状态"
,
prop
:
"caCertificateStatus"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
caCertificateStatus
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"caCertificateStatusFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"版本信息"
,
prop
:
"deviceVersion"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"激活状态"
,
prop
:
"activeStatus"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
activeStatus
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"activeStatusFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"激活时间"
,
prop
:
"activeTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
activeTime
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeFilter"
)(
i
)))])]}}])}),
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
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"更新时间"
,
prop
:
"updateTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
updateTime
;
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
=
[],
r
=
(
n
(
"96cf"
),
n
(
"3b8d"
)),
o
=
n
(
"333d"
),
c
=
n
(
"c7a7"
),
l
=
n
(
"ed08"
),
u
=
n
(
"aa98"
),
s
=
n
(
"7d09"
),
d
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
c
[
"a"
]},
filters
:{
caCertificateStatusFilter
:
function
(
e
){
return
"-1"
===
e
?
"未下载"
:
"0"
===
e
?
"已下载 类型:非量产"
:
"1"
===
e
?
"已下载 类型:量产"
:
"2"
===
e
?
"已下载 类型:非量产,未验证"
:
"3"
===
e
?
"已下载 类型:量产,未验证"
:
e
||
"无信息"
},
activeStatusFilter
:
function
(
e
){
return
"0"
===
e
?
"未激活"
:
"1"
===
e
?
"已激活"
:
e
||
"无信息"
},
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
l
[
"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
:[],
selectSeriesOptions
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
selectSeries
(),
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
:{
exportPage
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceStatistical/deviceInfo/DeviceInfoExport"
})},
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
(
u
[
"h"
])(
this
.
listQuery
).
then
((
function
(
t
){
var
n
=
t
.
data
,
i
=
n
.
list
,
a
=
n
.
totalCount
;
e
.
list
=
i
,
e
.
total
=
a
,
e
.
listLoading
=!
1
}))},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceStatistical/deviceInfo"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()},
selectSeries
:
function
(){
var
e
=
Object
(
r
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
s
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
p
=
d
,
f
=
n
(
"2877"
),
h
=
Object
(
f
[
"a"
])(
p
,
i
,
a
,
!
1
,
null
,
"0824c318"
,
null
);
t
[
"default"
]
=
h
.
exports
}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-2033ddf1.fc
4ba292
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-2033ddf1.fc
f0abf4
.js
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-2033ddf1"
],{
1
:
function
(
e
,
t
){},
2
:
function
(
e
,
t
){},
3
:
function
(
e
,
t
){},
3796
:
function
(
e
,
t
,
n
){
"use strict"
;
var
r
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,[
n
(
"input"
,{
ref
:
"excel-upload-input"
,
staticClass
:
"excel-upload-input"
,
attrs
:{
type
:
"file"
,
accept
:
".xlsx, .xls"
},
on
:{
change
:
e
.
handleClick
}}),
e
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"drop"
,
on
:{
drop
:
e
.
handleDrop
,
dragover
:
e
.
handleDragover
,
dragenter
:
e
.
handleDragover
}},[
e
.
_v
(
"
\
n 点击需要上传信息的Excel文件
\
n "
),
n
(
"el-button"
,{
staticStyle
:{
"margin-left"
:
"16px"
},
attrs
:{
loading
:
e
.
loading
,
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
e
.
handleUpload
}},[
e
.
_v
(
"
\
n 上传
\
n "
)]),
e
.
_v
(
" "
),
n
(
"span"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
resultShow
,
expression
:
"resultShow"
}]},[
e
.
_v
(
"
\
n 上传成功
\
n "
)])],
1
)])},
a
=
[],
i
=
(
n
(
"7f7f"
),
n
(
"1146"
)),
s
=
n
.
n
(
i
),
o
=
{
props
:{
beforeUpload
:
Function
,
onSuccess
:
Function
},
data
:
function
(){
return
{
loading
:
!
1
,
resultShow
:
!
1
,
excelData
:{
header
:
null
,
results
:
null
}}},
methods
:{
generateData
:
function
(
e
){
var
t
=
e
.
header
,
n
=
e
.
results
;
this
.
excelData
.
header
=
t
,
this
.
excelData
.
results
=
n
,
this
.
onSuccess
&&
this
.
onSuccess
(
this
.
excelData
)},
handleDrop
:
function
(
e
){
if
(
e
.
stopPropagation
(),
e
.
preventDefault
(),
!
this
.
loading
){
var
t
=
e
.
dataTransfer
.
files
;
if
(
1
===
t
.
length
){
var
n
=
t
[
0
];
if
(
!
this
.
isExcel
(
n
))
return
this
.
$message
.
error
(
"Only supports upload .xlsx, .xls, .csv suffix files"
),
!
1
;
this
.
upload
(
n
),
e
.
stopPropagation
(),
e
.
preventDefault
()}
else
this
.
$message
.
error
(
"Only support uploading one file!"
)}},
handleDragover
:
function
(
e
){
e
.
stopPropagation
(),
e
.
preventDefault
(),
e
.
dataTransfer
.
dropEffect
=
"copy"
},
handleUpload
:
function
(){
this
.
$refs
[
"excel-upload-input"
].
click
()},
handleClick
:
function
(
e
){
var
t
=
e
.
target
.
files
,
n
=
t
[
0
];
n
&&
this
.
upload
(
n
)},
upload
:
function
(
e
){
if
(
this
.
$refs
[
"excel-upload-input"
].
value
=
null
,
this
.
beforeUpload
){
var
t
=
this
.
beforeUpload
(
e
);
t
&&
this
.
readerData
(
e
),
this
.
resultShow
=!
0
}
else
this
.
readerData
(
e
)},
readerData
:
function
(
e
){
var
t
=
this
;
return
this
.
loading
=!
0
,
new
Promise
((
function
(
n
,
r
){
var
a
=
new
FileReader
;
a
.
onload
=
function
(
e
){
var
r
=
e
.
target
.
result
,
a
=
s
.
a
.
read
(
r
,{
type
:
"array"
}),
i
=
a
.
SheetNames
[
0
],
o
=
a
.
Sheets
[
i
],
c
=
t
.
getHeaderRow
(
o
),
u
=
s
.
a
.
utils
.
sheet_to_json
(
o
);
t
.
generateData
({
header
:
c
,
results
:
u
}),
t
.
loading
=!
1
,
n
()},
a
.
readAsArrayBuffer
(
e
)}))},
getHeaderRow
:
function
(
e
){
var
t
,
n
=
[],
r
=
s
.
a
.
utils
.
decode_range
(
e
[
"!ref"
]),
a
=
r
.
s
.
r
;
for
(
t
=
r
.
s
.
c
;
t
<=
r
.
e
.
c
;
++
t
){
var
i
=
e
[
s
.
a
.
utils
.
encode_cell
({
c
:
t
,
r
:
a
})],
o
=
"UNKNOWN "
+
t
;
i
&&
i
.
t
&&
(
o
=
s
.
a
.
utils
.
format_cell
(
i
)),
n
.
push
(
o
)}
return
n
},
isExcel
:
function
(
e
){
return
/
\.(
xlsx|xls|csv
)
$/
.
test
(
e
.
name
)}}},
c
=
o
,
u
=
(
n
(
"b8e5"
),
n
(
"2877"
)),
d
=
Object
(
u
[
"a"
])(
c
,
r
,
a
,
!
1
,
null
,
"80157758"
,
null
);
t
[
"a"
]
=
d
.
exports
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
c
}));
n
(
"55dd"
);
var
r
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
i
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
c
(){
return
Object
(
r
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
D
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
x
}));
n
(
"55dd"
);
var
r
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
i
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
s
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
O
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
j
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
D
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
x
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
b486
:
function
(
e
,
t
,
n
){},
b8e5
:
function
(
e
,
t
,
n
){
"use strict"
;
var
r
=
n
(
"b486"
),
a
=
n
.
n
(
r
);
a
.
a
},
f96d
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
r
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-main"
,[
n
(
"el-form"
,{
ref
:
"importDeviceChannel"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"upload-excel-component"
,{
attrs
:{
"on-success"
:
e
.
handleSuccess
,
"before-upload"
:
e
.
beforeUpload
}}),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesId"
,
label
:
"所属系列"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
device
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"seriesId"
,
t
)},
expression
:
"device.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属客户"
}},[
n
(
"el-cascader"
,{
attrs
:{
"expand-trigger"
:
"hover"
,
options
:
e
.
options
,
"show-all-levels"
:
!
1
,
"change-on-select"
:
""
},
on
:{
change
:
e
.
handleChange
},
model
:{
value
:
e
.
selectDeptParents
,
callback
:
function
(
t
){
e
.
selectDeptParents
=
t
},
expression
:
"selectDeptParents"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
a
=
[],
i
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
s
=
n
(
"3796"
),
o
=
n
(
"aa98"
),
c
=
n
(
"fe05"
),
u
=
n
(
"7d09"
),
d
=
{
components
:{
UploadExcelComponent
:
s
[
"a"
]},
data
:
function
(){
return
{
loading
:
!
1
,
device
:{
selectChannelNums
:[],
channelNums
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[],
seriesId
:
""
,
deptId
:
""
},
rules
:{},
selectSeriesOptions
:[],
tableData
:
""
,
options
:[],
selectDeptParents
:[]}},
mounted
:
function
(){
this
.
selectSeries
(),
this
.
selectDeptParent
()},
methods
:{
beforeUpload
:
function
(
e
){
var
t
=
e
.
size
/
1024
/
1024
<
1
;
return
!!
t
||
(
this
.
$message
({
message
:
"Please do not upload files larger than 1m in size."
,
type
:
"warning"
}),
!
1
)},
handleSuccess
:
function
(
e
){
var
t
=
e
.
results
;
e
.
header
;
this
.
device
.
infos
=
t
},
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
selectSeries
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
u
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
importDeviceChannel
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
o
[
"r"
])(
JSON
.
stringify
(
e
.
device
)).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
r
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
r
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
})},
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
device
.
deptId
=
e
[
t
]},
selectDeptParent
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
c
[
"e"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
options
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
l
=
d
,
p
=
n
(
"2877"
),
f
=
Object
(
p
[
"a"
])(
l
,
r
,
a
,
!
1
,
null
,
"6f3a33c7"
,
null
);
t
[
"default"
]
=
f
.
exports
},
fe05
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
}));
n
(
"7f7f"
),
n
(
"55dd"
);
var
r
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
name
:
e
.
name
}})}
function
i
(){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
s
(){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
o
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-2033ddf1"
],{
1
:
function
(
e
,
t
){},
2
:
function
(
e
,
t
){},
3
:
function
(
e
,
t
){},
3796
:
function
(
e
,
t
,
n
){
"use strict"
;
var
r
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,[
n
(
"input"
,{
ref
:
"excel-upload-input"
,
staticClass
:
"excel-upload-input"
,
attrs
:{
type
:
"file"
,
accept
:
".xlsx, .xls"
},
on
:{
change
:
e
.
handleClick
}}),
e
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"drop"
,
on
:{
drop
:
e
.
handleDrop
,
dragover
:
e
.
handleDragover
,
dragenter
:
e
.
handleDragover
}},[
e
.
_v
(
"
\
n 点击需要上传信息的Excel文件
\
n "
),
n
(
"el-button"
,{
staticStyle
:{
"margin-left"
:
"16px"
},
attrs
:{
loading
:
e
.
loading
,
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
e
.
handleUpload
}},[
e
.
_v
(
"
\
n 上传
\
n "
)]),
e
.
_v
(
" "
),
n
(
"span"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
resultShow
,
expression
:
"resultShow"
}]},[
e
.
_v
(
"
\
n 上传成功
\
n "
)])],
1
)])},
a
=
[],
i
=
(
n
(
"7f7f"
),
n
(
"1146"
)),
s
=
n
.
n
(
i
),
o
=
{
props
:{
beforeUpload
:
Function
,
onSuccess
:
Function
},
data
:
function
(){
return
{
loading
:
!
1
,
resultShow
:
!
1
,
excelData
:{
header
:
null
,
results
:
null
}}},
methods
:{
generateData
:
function
(
e
){
var
t
=
e
.
header
,
n
=
e
.
results
;
this
.
excelData
.
header
=
t
,
this
.
excelData
.
results
=
n
,
this
.
onSuccess
&&
this
.
onSuccess
(
this
.
excelData
)},
handleDrop
:
function
(
e
){
if
(
e
.
stopPropagation
(),
e
.
preventDefault
(),
!
this
.
loading
){
var
t
=
e
.
dataTransfer
.
files
;
if
(
1
===
t
.
length
){
var
n
=
t
[
0
];
if
(
!
this
.
isExcel
(
n
))
return
this
.
$message
.
error
(
"Only supports upload .xlsx, .xls, .csv suffix files"
),
!
1
;
this
.
upload
(
n
),
e
.
stopPropagation
(),
e
.
preventDefault
()}
else
this
.
$message
.
error
(
"Only support uploading one file!"
)}},
handleDragover
:
function
(
e
){
e
.
stopPropagation
(),
e
.
preventDefault
(),
e
.
dataTransfer
.
dropEffect
=
"copy"
},
handleUpload
:
function
(){
this
.
$refs
[
"excel-upload-input"
].
click
()},
handleClick
:
function
(
e
){
var
t
=
e
.
target
.
files
,
n
=
t
[
0
];
n
&&
this
.
upload
(
n
)},
upload
:
function
(
e
){
if
(
this
.
$refs
[
"excel-upload-input"
].
value
=
null
,
this
.
beforeUpload
){
var
t
=
this
.
beforeUpload
(
e
);
t
&&
this
.
readerData
(
e
),
this
.
resultShow
=!
0
}
else
this
.
readerData
(
e
)},
readerData
:
function
(
e
){
var
t
=
this
;
return
this
.
loading
=!
0
,
new
Promise
((
function
(
n
,
r
){
var
a
=
new
FileReader
;
a
.
onload
=
function
(
e
){
var
r
=
e
.
target
.
result
,
a
=
s
.
a
.
read
(
r
,{
type
:
"array"
}),
i
=
a
.
SheetNames
[
0
],
o
=
a
.
Sheets
[
i
],
c
=
t
.
getHeaderRow
(
o
),
u
=
s
.
a
.
utils
.
sheet_to_json
(
o
);
t
.
generateData
({
header
:
c
,
results
:
u
}),
t
.
loading
=!
1
,
n
()},
a
.
readAsArrayBuffer
(
e
)}))},
getHeaderRow
:
function
(
e
){
var
t
,
n
=
[],
r
=
s
.
a
.
utils
.
decode_range
(
e
[
"!ref"
]),
a
=
r
.
s
.
r
;
for
(
t
=
r
.
s
.
c
;
t
<=
r
.
e
.
c
;
++
t
){
var
i
=
e
[
s
.
a
.
utils
.
encode_cell
({
c
:
t
,
r
:
a
})],
o
=
"UNKNOWN "
+
t
;
i
&&
i
.
t
&&
(
o
=
s
.
a
.
utils
.
format_cell
(
i
)),
n
.
push
(
o
)}
return
n
},
isExcel
:
function
(
e
){
return
/
\.(
xlsx|xls|csv
)
$/
.
test
(
e
.
name
)}}},
c
=
o
,
u
=
(
n
(
"b8e5"
),
n
(
"2877"
)),
d
=
Object
(
u
[
"a"
])(
c
,
r
,
a
,
!
1
,
null
,
"80157758"
,
null
);
t
[
"a"
]
=
d
.
exports
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
c
}));
n
(
"55dd"
);
var
r
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
i
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
c
(){
return
Object
(
r
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
D
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
x
}));
n
(
"55dd"
);
var
r
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
i
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
s
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
O
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
j
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
D
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
x
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
b486
:
function
(
e
,
t
,
n
){},
b8e5
:
function
(
e
,
t
,
n
){
"use strict"
;
var
r
=
n
(
"b486"
),
a
=
n
.
n
(
r
);
a
.
a
},
f96d
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
r
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-main"
,[
n
(
"el-form"
,{
ref
:
"importDeviceChannel"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"upload-excel-component"
,{
attrs
:{
"on-success"
:
e
.
handleSuccess
,
"before-upload"
:
e
.
beforeUpload
}}),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesId"
,
label
:
"所属系列"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
device
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"seriesId"
,
t
)},
expression
:
"device.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属客户"
}},[
n
(
"el-cascader"
,{
attrs
:{
"expand-trigger"
:
"hover"
,
options
:
e
.
options
,
"show-all-levels"
:
!
1
,
"change-on-select"
:
""
},
on
:{
change
:
e
.
handleChange
},
model
:{
value
:
e
.
selectDeptParents
,
callback
:
function
(
t
){
e
.
selectDeptParents
=
t
},
expression
:
"selectDeptParents"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
a
=
[],
i
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
s
=
n
(
"3796"
),
o
=
n
(
"aa98"
),
c
=
n
(
"fe05"
),
u
=
n
(
"7d09"
),
d
=
{
components
:{
UploadExcelComponent
:
s
[
"a"
]},
data
:
function
(){
return
{
loading
:
!
1
,
device
:{
selectChannelNums
:[],
channelNums
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[],
seriesId
:
""
,
deptId
:
""
},
rules
:{},
selectSeriesOptions
:[],
tableData
:
""
,
options
:[],
selectDeptParents
:[]}},
mounted
:
function
(){
this
.
selectSeries
(),
this
.
selectDeptParent
()},
methods
:{
beforeUpload
:
function
(
e
){
var
t
=
e
.
size
/
1024
/
1024
<
1
;
return
!!
t
||
(
this
.
$message
({
message
:
"Please do not upload files larger than 1m in size."
,
type
:
"warning"
}),
!
1
)},
handleSuccess
:
function
(
e
){
var
t
=
e
.
results
;
e
.
header
;
this
.
device
.
infos
=
t
},
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
selectSeries
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
u
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
importDeviceChannel
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
o
[
"r"
])(
JSON
.
stringify
(
e
.
device
)).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
r
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
r
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
})},
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
device
.
deptId
=
e
[
t
]},
selectDeptParent
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
c
[
"e"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
options
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
l
=
d
,
p
=
n
(
"2877"
),
f
=
Object
(
p
[
"a"
])(
l
,
r
,
a
,
!
1
,
null
,
"6f3a33c7"
,
null
);
t
[
"default"
]
=
f
.
exports
},
fe05
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
}));
n
(
"7f7f"
),
n
(
"55dd"
);
var
r
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
name
:
e
.
name
}})}
function
i
(){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
s
(){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
o
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-22e5f704.
b6092551
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-22e5f704.
68d5789c
.js
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-22e5f704"
],{
3304
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-main"
,[
n
(
"el-form"
,{
ref
:
"addChannel"
,
attrs
:{
model
:
e
.
channel
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesNum"
,
label
:
"渠道号"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
channel
.
channelNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
channel
,
"channelNum"
,
t
)},
expression
:
"channel.channelNum"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"品牌车型:"
}},[
n
(
"el-input"
,{
attrs
:{
placeholder
:
"奥迪-车系"
},
model
:{
value
:
e
.
channel
.
brand
,
callback
:
function
(
t
){
e
.
$set
(
e
.
channel
,
"brand"
,
t
)},
expression
:
"channel.brand"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"添加"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toSeriesList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
i
=
[],
r
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"aa98"
)),
c
=
{
channelNum
:
"渠道号"
,
brand
:
"品牌车型"
},
o
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
0
===
t
.
length
?
n
(
new
Error
(
c
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
channel
:{
channelNum
:
""
,
brand
:
""
},
rules
:{
channelNum
:[{
validator
:
e
}],
brand
:[{
validator
:
e
}]}}},
mounted
:
function
(){},
methods
:{
setDefault
:
function
(){
this
.
$refs
.
addSeries
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
addChannel
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
r
[
"a"
])(
e
.
channel
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
loading
=!
1
,
e
.
setDefault
(),
e
.
toSeriesList
()})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toSeriesList
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel"
})}}},
d
=
o
,
u
=
n
(
"2877"
),
l
=
Object
(
u
[
"a"
])(
d
,
a
,
i
,
!
1
,
null
,
"5398e163"
,
null
);
t
[
"default"
]
=
l
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
C
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
S
}));
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
b
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
g
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
j
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
C
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
O
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
S
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-22e5f704"
],{
3304
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-main"
,[
n
(
"el-form"
,{
ref
:
"addChannel"
,
attrs
:{
model
:
e
.
channel
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesNum"
,
label
:
"渠道号"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
channel
.
channelNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
channel
,
"channelNum"
,
t
)},
expression
:
"channel.channelNum"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"品牌车型:"
}},[
n
(
"el-input"
,{
attrs
:{
placeholder
:
"奥迪-车系"
},
model
:{
value
:
e
.
channel
.
brand
,
callback
:
function
(
t
){
e
.
$set
(
e
.
channel
,
"brand"
,
t
)},
expression
:
"channel.brand"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"添加"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toSeriesList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
i
=
[],
r
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"aa98"
)),
c
=
{
channelNum
:
"渠道号"
,
brand
:
"品牌车型"
},
o
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
0
===
t
.
length
?
n
(
new
Error
(
c
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
channel
:{
channelNum
:
""
,
brand
:
""
},
rules
:{
channelNum
:[{
validator
:
e
}],
brand
:[{
validator
:
e
}]}}},
mounted
:
function
(){},
methods
:{
setDefault
:
function
(){
this
.
$refs
.
addSeries
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
addChannel
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
r
[
"a"
])(
e
.
channel
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
loading
=!
1
,
e
.
setDefault
(),
e
.
toSeriesList
()})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toSeriesList
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel"
})}}},
u
=
o
,
d
=
n
(
"2877"
),
l
=
Object
(
d
[
"a"
])(
u
,
a
,
i
,
!
1
,
null
,
"5398e163"
,
null
);
t
[
"default"
]
=
l
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
C
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
S
}));
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
b
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
g
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
j
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
C
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
O
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
S
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-4913999e.
2444b29a
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-4913999e.
07116979
.js
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-4913999e"
],{
"0122"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-main"
,[
n
(
"el-form"
,{
ref
:
"importDeviceChannel"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"upload-excel-component"
,{
attrs
:{
"on-success"
:
e
.
handleSuccess
,
"before-upload"
:
e
.
beforeUpload
}}),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesId"
,
label
:
"所属系列"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
device
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"seriesId"
,
t
)},
expression
:
"device.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属客户"
}},[
n
(
"el-cascader"
,{
attrs
:{
"expand-trigger"
:
"hover"
,
options
:
e
.
options
,
"show-all-levels"
:
!
1
,
"change-on-select"
:
""
},
on
:{
change
:
e
.
handleChange
},
model
:{
value
:
e
.
selectDeptParents
,
callback
:
function
(
t
){
e
.
selectDeptParents
=
t
},
expression
:
"selectDeptParents"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"channelNumsMessage"
,
label
:
"终端提示文字"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
device
.
channelNumsMessage
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelNumsMessage"
,
t
)},
expression
:
"device.channelNumsMessage"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"channelRules"
,
label
:
"规则"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
device
.
channelRules
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelRules"
,
t
)},
expression
:
"device.channelRules"
}},[
n
(
"el-option"
,{
attrs
:{
label
:
"白名单"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
n
(
"el-option"
,{
attrs
:{
label
:
"黑名单"
,
value
:
"1"
}})],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-transfer"
,{
attrs
:{
data
:
e
.
device
.
selectChannelNums
,
titles
:
e
.
transferTitle
},
model
:{
value
:
e
.
device
.
channelNums
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelNums"
,
t
)},
expression
:
"device.channelNums"
}}),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
r
=
[],
i
=
(
n
(
"456d"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
s
=
(
n
(
"ac6a"
),
n
(
"3796"
)),
c
=
n
(
"aa98"
),
o
=
n
(
"7d09"
),
l
=
n
(
"fe05"
),
u
=
{
channelNumsMessage
:
"终端提示文字"
,
channelRules
:
"规则"
},
d
=
{
components
:{
UploadExcelComponent
:
s
[
"a"
]},
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
n
(
new
Error
(
u
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
device
:{
selectChannelNums
:[],
channelNums
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[],
seriesId
:
""
,
deptId
:
""
},
rules
:{
channelNumsMessage
:[{
validator
:
e
}],
channelRules
:[{
validator
:
e
}]},
selectSeriesOptions
:[],
tableData
:
""
,
options
:[],
selectDeptParents
:[],
transferTitle
:[
"渠道号列表"
,
"已选择"
]}},
mounted
:
function
(){
this
.
getTransfer
(),
this
.
selectSeries
(),
this
.
selectDeptParent
()},
methods
:{
beforeUpload
:
function
(
e
){
var
t
=
e
.
size
/
1024
/
1024
<
1
;
return
!!
t
||
(
this
.
$message
({
message
:
"Please do not upload files larger than 1m in size."
,
type
:
"warning"
}),
!
1
)},
handleSuccess
:
function
(
e
){
var
t
=
e
.
results
;
e
.
header
;
this
.
device
.
infos
=
t
},
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
getTransfer
:
function
(){
var
e
=
this
;
Object
(
c
[
"j"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
n
.
forEach
((
function
(
t
){
e
.
device
.
selectChannelNums
.
push
({
key
:
t
.
channelId
,
label
:
t
.
channelNum
+
"_"
+
t
.
brand
})}))}))},
selectSeries
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
o
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
importDeviceChannel
.
validate
((
function
(
t
,
n
){
if
(
console
.
log
(
JSON
.
stringify
(
e
.
device
)),
t
)
Object
(
c
[
"q"
])(
JSON
.
stringify
(
e
.
device
)).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
})},
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
device
.
deptId
=
e
[
t
]},
selectDeptParent
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
l
[
"e"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
options
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
p
=
d
,
f
=
n
(
"2877"
),
h
=
Object
(
f
[
"a"
])(
p
,
a
,
r
,
!
1
,
null
,
"1c8540ad"
,
null
);
t
[
"default"
]
=
h
.
exports
},
1
:
function
(
e
,
t
){},
2
:
function
(
e
,
t
){},
3
:
function
(
e
,
t
){},
3796
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,[
n
(
"input"
,{
ref
:
"excel-upload-input"
,
staticClass
:
"excel-upload-input"
,
attrs
:{
type
:
"file"
,
accept
:
".xlsx, .xls"
},
on
:{
change
:
e
.
handleClick
}}),
e
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"drop"
,
on
:{
drop
:
e
.
handleDrop
,
dragover
:
e
.
handleDragover
,
dragenter
:
e
.
handleDragover
}},[
e
.
_v
(
"
\
n 点击需要上传信息的Excel文件
\
n "
),
n
(
"el-button"
,{
staticStyle
:{
"margin-left"
:
"16px"
},
attrs
:{
loading
:
e
.
loading
,
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
e
.
handleUpload
}},[
e
.
_v
(
"
\
n 上传
\
n "
)]),
e
.
_v
(
" "
),
n
(
"span"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
resultShow
,
expression
:
"resultShow"
}]},[
e
.
_v
(
"
\
n 上传成功
\
n "
)])],
1
)])},
r
=
[],
i
=
(
n
(
"7f7f"
),
n
(
"1146"
)),
s
=
n
.
n
(
i
),
c
=
{
props
:{
beforeUpload
:
Function
,
onSuccess
:
Function
},
data
:
function
(){
return
{
loading
:
!
1
,
resultShow
:
!
1
,
excelData
:{
header
:
null
,
results
:
null
}}},
methods
:{
generateData
:
function
(
e
){
var
t
=
e
.
header
,
n
=
e
.
results
;
this
.
excelData
.
header
=
t
,
this
.
excelData
.
results
=
n
,
this
.
onSuccess
&&
this
.
onSuccess
(
this
.
excelData
)},
handleDrop
:
function
(
e
){
if
(
e
.
stopPropagation
(),
e
.
preventDefault
(),
!
this
.
loading
){
var
t
=
e
.
dataTransfer
.
files
;
if
(
1
===
t
.
length
){
var
n
=
t
[
0
];
if
(
!
this
.
isExcel
(
n
))
return
this
.
$message
.
error
(
"Only supports upload .xlsx, .xls, .csv suffix files"
),
!
1
;
this
.
upload
(
n
),
e
.
stopPropagation
(),
e
.
preventDefault
()}
else
this
.
$message
.
error
(
"Only support uploading one file!"
)}},
handleDragover
:
function
(
e
){
e
.
stopPropagation
(),
e
.
preventDefault
(),
e
.
dataTransfer
.
dropEffect
=
"copy"
},
handleUpload
:
function
(){
this
.
$refs
[
"excel-upload-input"
].
click
()},
handleClick
:
function
(
e
){
var
t
=
e
.
target
.
files
,
n
=
t
[
0
];
n
&&
this
.
upload
(
n
)},
upload
:
function
(
e
){
if
(
this
.
$refs
[
"excel-upload-input"
].
value
=
null
,
this
.
beforeUpload
){
var
t
=
this
.
beforeUpload
(
e
);
t
&&
this
.
readerData
(
e
),
this
.
resultShow
=!
0
}
else
this
.
readerData
(
e
)},
readerData
:
function
(
e
){
var
t
=
this
;
return
this
.
loading
=!
0
,
new
Promise
((
function
(
n
,
a
){
var
r
=
new
FileReader
;
r
.
onload
=
function
(
e
){
var
a
=
e
.
target
.
result
,
r
=
s
.
a
.
read
(
a
,{
type
:
"array"
}),
i
=
r
.
SheetNames
[
0
],
c
=
r
.
Sheets
[
i
],
o
=
t
.
getHeaderRow
(
c
),
l
=
s
.
a
.
utils
.
sheet_to_json
(
c
);
t
.
generateData
({
header
:
o
,
results
:
l
}),
t
.
loading
=!
1
,
n
()},
r
.
readAsArrayBuffer
(
e
)}))},
getHeaderRow
:
function
(
e
){
var
t
,
n
=
[],
a
=
s
.
a
.
utils
.
decode_range
(
e
[
"!ref"
]),
r
=
a
.
s
.
r
;
for
(
t
=
a
.
s
.
c
;
t
<=
a
.
e
.
c
;
++
t
){
var
i
=
e
[
s
.
a
.
utils
.
encode_cell
({
c
:
t
,
r
:
r
})],
c
=
"UNKNOWN "
+
t
;
i
&&
i
.
t
&&
(
c
=
s
.
a
.
utils
.
format_cell
(
i
)),
n
.
push
(
c
)}
return
n
},
isExcel
:
function
(
e
){
return
/
\.(
xlsx|xls|csv
)
$/
.
test
(
e
.
name
)}}},
o
=
c
,
l
=
(
n
(
"b8e5"
),
n
(
"2877"
)),
u
=
Object
(
l
[
"a"
])(
o
,
a
,
r
,
!
1
,
null
,
"80157758"
,
null
);
t
[
"a"
]
=
u
.
exports
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
o
}));
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
o
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
x
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
D
}));
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
O
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
j
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
x
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
D
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
b486
:
function
(
e
,
t
,
n
){},
b8e5
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"b486"
),
r
=
n
.
n
(
a
);
r
.
a
},
fe05
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
}));
n
(
"7f7f"
),
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
name
:
e
.
name
}})}
function
i
(){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
s
(){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-4913999e"
],{
"0122"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-main"
,[
n
(
"el-form"
,{
ref
:
"importDeviceChannel"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"upload-excel-component"
,{
attrs
:{
"on-success"
:
e
.
handleSuccess
,
"before-upload"
:
e
.
beforeUpload
}}),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesId"
,
label
:
"所属系列"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
device
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"seriesId"
,
t
)},
expression
:
"device.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属客户"
}},[
n
(
"el-cascader"
,{
attrs
:{
"expand-trigger"
:
"hover"
,
options
:
e
.
options
,
"show-all-levels"
:
!
1
,
"change-on-select"
:
""
},
on
:{
change
:
e
.
handleChange
},
model
:{
value
:
e
.
selectDeptParents
,
callback
:
function
(
t
){
e
.
selectDeptParents
=
t
},
expression
:
"selectDeptParents"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"channelNumsMessage"
,
label
:
"终端提示文字"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
device
.
channelNumsMessage
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelNumsMessage"
,
t
)},
expression
:
"device.channelNumsMessage"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"channelRules"
,
label
:
"规则"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
device
.
channelRules
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelRules"
,
t
)},
expression
:
"device.channelRules"
}},[
n
(
"el-option"
,{
attrs
:{
label
:
"白名单"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
n
(
"el-option"
,{
attrs
:{
label
:
"黑名单"
,
value
:
"1"
}})],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-transfer"
,{
attrs
:{
data
:
e
.
device
.
selectChannelNums
,
titles
:
e
.
transferTitle
},
model
:{
value
:
e
.
device
.
channelNums
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelNums"
,
t
)},
expression
:
"device.channelNums"
}}),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
r
=
[],
i
=
(
n
(
"456d"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
s
=
(
n
(
"ac6a"
),
n
(
"3796"
)),
c
=
n
(
"aa98"
),
o
=
n
(
"7d09"
),
l
=
n
(
"fe05"
),
u
=
{
channelNumsMessage
:
"终端提示文字"
,
channelRules
:
"规则"
},
d
=
{
components
:{
UploadExcelComponent
:
s
[
"a"
]},
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
n
(
new
Error
(
u
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
device
:{
selectChannelNums
:[],
channelNums
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[],
seriesId
:
""
,
deptId
:
""
},
rules
:{
channelNumsMessage
:[{
validator
:
e
}],
channelRules
:[{
validator
:
e
}]},
selectSeriesOptions
:[],
tableData
:
""
,
options
:[],
selectDeptParents
:[],
transferTitle
:[
"渠道号列表"
,
"已选择"
]}},
mounted
:
function
(){
this
.
getTransfer
(),
this
.
selectSeries
(),
this
.
selectDeptParent
()},
methods
:{
beforeUpload
:
function
(
e
){
var
t
=
e
.
size
/
1024
/
1024
<
1
;
return
!!
t
||
(
this
.
$message
({
message
:
"Please do not upload files larger than 1m in size."
,
type
:
"warning"
}),
!
1
)},
handleSuccess
:
function
(
e
){
var
t
=
e
.
results
;
e
.
header
;
this
.
device
.
infos
=
t
},
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
getTransfer
:
function
(){
var
e
=
this
;
Object
(
c
[
"j"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
n
.
forEach
((
function
(
t
){
e
.
device
.
selectChannelNums
.
push
({
key
:
t
.
channelId
,
label
:
t
.
channelNum
+
"_"
+
t
.
brand
})}))}))},
selectSeries
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
o
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
importDeviceChannel
.
validate
((
function
(
t
,
n
){
if
(
console
.
log
(
JSON
.
stringify
(
e
.
device
)),
t
)
Object
(
c
[
"q"
])(
JSON
.
stringify
(
e
.
device
)).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
})},
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
device
.
deptId
=
e
[
t
]},
selectDeptParent
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
l
[
"e"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
options
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
p
=
d
,
f
=
n
(
"2877"
),
h
=
Object
(
f
[
"a"
])(
p
,
a
,
r
,
!
1
,
null
,
"1c8540ad"
,
null
);
t
[
"default"
]
=
h
.
exports
},
1
:
function
(
e
,
t
){},
2
:
function
(
e
,
t
){},
3
:
function
(
e
,
t
){},
3796
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,[
n
(
"input"
,{
ref
:
"excel-upload-input"
,
staticClass
:
"excel-upload-input"
,
attrs
:{
type
:
"file"
,
accept
:
".xlsx, .xls"
},
on
:{
change
:
e
.
handleClick
}}),
e
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"drop"
,
on
:{
drop
:
e
.
handleDrop
,
dragover
:
e
.
handleDragover
,
dragenter
:
e
.
handleDragover
}},[
e
.
_v
(
"
\
n 点击需要上传信息的Excel文件
\
n "
),
n
(
"el-button"
,{
staticStyle
:{
"margin-left"
:
"16px"
},
attrs
:{
loading
:
e
.
loading
,
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
e
.
handleUpload
}},[
e
.
_v
(
"
\
n 上传
\
n "
)]),
e
.
_v
(
" "
),
n
(
"span"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
resultShow
,
expression
:
"resultShow"
}]},[
e
.
_v
(
"
\
n 上传成功
\
n "
)])],
1
)])},
r
=
[],
i
=
(
n
(
"7f7f"
),
n
(
"1146"
)),
s
=
n
.
n
(
i
),
c
=
{
props
:{
beforeUpload
:
Function
,
onSuccess
:
Function
},
data
:
function
(){
return
{
loading
:
!
1
,
resultShow
:
!
1
,
excelData
:{
header
:
null
,
results
:
null
}}},
methods
:{
generateData
:
function
(
e
){
var
t
=
e
.
header
,
n
=
e
.
results
;
this
.
excelData
.
header
=
t
,
this
.
excelData
.
results
=
n
,
this
.
onSuccess
&&
this
.
onSuccess
(
this
.
excelData
)},
handleDrop
:
function
(
e
){
if
(
e
.
stopPropagation
(),
e
.
preventDefault
(),
!
this
.
loading
){
var
t
=
e
.
dataTransfer
.
files
;
if
(
1
===
t
.
length
){
var
n
=
t
[
0
];
if
(
!
this
.
isExcel
(
n
))
return
this
.
$message
.
error
(
"Only supports upload .xlsx, .xls, .csv suffix files"
),
!
1
;
this
.
upload
(
n
),
e
.
stopPropagation
(),
e
.
preventDefault
()}
else
this
.
$message
.
error
(
"Only support uploading one file!"
)}},
handleDragover
:
function
(
e
){
e
.
stopPropagation
(),
e
.
preventDefault
(),
e
.
dataTransfer
.
dropEffect
=
"copy"
},
handleUpload
:
function
(){
this
.
$refs
[
"excel-upload-input"
].
click
()},
handleClick
:
function
(
e
){
var
t
=
e
.
target
.
files
,
n
=
t
[
0
];
n
&&
this
.
upload
(
n
)},
upload
:
function
(
e
){
if
(
this
.
$refs
[
"excel-upload-input"
].
value
=
null
,
this
.
beforeUpload
){
var
t
=
this
.
beforeUpload
(
e
);
t
&&
this
.
readerData
(
e
),
this
.
resultShow
=!
0
}
else
this
.
readerData
(
e
)},
readerData
:
function
(
e
){
var
t
=
this
;
return
this
.
loading
=!
0
,
new
Promise
((
function
(
n
,
a
){
var
r
=
new
FileReader
;
r
.
onload
=
function
(
e
){
var
a
=
e
.
target
.
result
,
r
=
s
.
a
.
read
(
a
,{
type
:
"array"
}),
i
=
r
.
SheetNames
[
0
],
c
=
r
.
Sheets
[
i
],
o
=
t
.
getHeaderRow
(
c
),
l
=
s
.
a
.
utils
.
sheet_to_json
(
c
);
t
.
generateData
({
header
:
o
,
results
:
l
}),
t
.
loading
=!
1
,
n
()},
r
.
readAsArrayBuffer
(
e
)}))},
getHeaderRow
:
function
(
e
){
var
t
,
n
=
[],
a
=
s
.
a
.
utils
.
decode_range
(
e
[
"!ref"
]),
r
=
a
.
s
.
r
;
for
(
t
=
a
.
s
.
c
;
t
<=
a
.
e
.
c
;
++
t
){
var
i
=
e
[
s
.
a
.
utils
.
encode_cell
({
c
:
t
,
r
:
r
})],
c
=
"UNKNOWN "
+
t
;
i
&&
i
.
t
&&
(
c
=
s
.
a
.
utils
.
format_cell
(
i
)),
n
.
push
(
c
)}
return
n
},
isExcel
:
function
(
e
){
return
/
\.(
xlsx|xls|csv
)
$/
.
test
(
e
.
name
)}}},
o
=
c
,
l
=
(
n
(
"b8e5"
),
n
(
"2877"
)),
u
=
Object
(
l
[
"a"
])(
o
,
a
,
r
,
!
1
,
null
,
"80157758"
,
null
);
t
[
"a"
]
=
u
.
exports
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
o
}));
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
o
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
x
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
D
}));
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
O
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
j
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
x
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
D
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
b486
:
function
(
e
,
t
,
n
){},
b8e5
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"b486"
),
r
=
n
.
n
(
a
);
r
.
a
},
fe05
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
}));
n
(
"7f7f"
),
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
name
:
e
.
name
}})}
function
i
(){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
s
(){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-5c585ee6.5
74971ae
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-5c585ee6.5
2081191
.js
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-5c585ee6"
],{
"3ac7"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-main"
,[
n
(
"el-form"
,{
ref
:
"setChannel"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"channelNumsMessage"
,
label
:
"终端提示文字"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
device
.
channelNumsMessage
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelNumsMessage"
,
t
)},
expression
:
"device.channelNumsMessage"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"channelRules"
,
label
:
"规则"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
device
.
channelRules
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelRules"
,
t
)},
expression
:
"device.channelRules"
}},[
n
(
"el-option"
,{
attrs
:{
label
:
"白名单"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
n
(
"el-option"
,{
attrs
:{
label
:
"黑名单"
,
value
:
"1"
}})],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-transfer"
,{
attrs
:{
data
:
e
.
device
.
selectChannelNums
,
titles
:
e
.
transferTitle
},
model
:{
value
:
e
.
device
.
channelNums
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelNums"
,
t
)},
expression
:
"device.channelNums"
}}),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
i
=
[],
c
=
(
n
(
"456d"
),
n
(
"ac6a"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
o
=
n
(
"aa98"
),
r
=
{
channelNumsMessage
:
"终端提示文字"
,
channelRules
:
"规则"
},
u
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
n
(
new
Error
(
r
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
device
:{
selectChannelNums
:[],
channelNums
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[]},
rules
:{
channelNumsMessage
:[{
validator
:
e
}],
channelRules
:[{
validator
:
e
}]},
selectSeriesOptions
:[],
transferTitle
:[
"渠道号列表"
,
"已选择"
]}},
mounted
:
function
(){
this
.
device
.
imeis
=
this
.
$route
.
query
.
imeis
,
this
.
getFormData
(),
this
.
getTransfer
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
c
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
getTransfer
:
function
(){
var
e
=
this
;
Object
(
o
[
"j"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
n
.
forEach
((
function
(
t
){
e
.
device
.
selectChannelNums
.
push
({
key
:
t
.
channelId
,
label
:
t
.
channelNum
+
"_"
+
t
.
brand
})}))}))},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
setChannel
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
o
[
"k"
])(
e
.
device
.
imeis
).
then
((
function
(
t
){
var
n
=
t
.
data
,
a
=
e
.
$createElement
,
i
=
""
;
n
.
forEach
((
function
(
e
){
i
=
""
===
i
?
e
:
i
+
","
+
e
})),
e
.
$msgbox
({
title
:
"消息"
,
message
:
a
(
"p"
,
null
,[
a
(
"span"
,
null
,
"该imei会导致覆盖 "
),
a
(
"i"
,{
style
:
"color: teal"
},
i
)]),
showCancelButton
:
!
0
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消(则不执行覆盖的imei)"
,
beforeClose
:
function
(
t
,
a
,
i
){
if
(
"confirm"
===
t
)
a
.
confirmButtonLoading
=!
0
,
a
.
confirmButtonText
=
"执行中..."
,
Object
(
o
[
"m"
])(
e
.
device
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
a
.
confirmButtonLoading
=!
1
,
e
.
loading
=!
1
,
i
()})).
catch
((
function
(){
a
.
confirmButtonLoading
=!
1
,
e
.
loading
=!
1
,
i
()}));
else
if
(
"cancel"
===
t
){
a
.
cancelButtonLoading
=!
0
,
a
.
cancelButtonText
=
"执行中..."
;
var
c
=
[];
e
.
device
.
imeis
.
forEach
((
function
(
e
){
n
.
forEach
((
function
(
t
){
t
===
e
&&
c
.
push
(
e
)}))})),
e
.
device
.
imeis
=
c
,
Object
(
o
[
"m"
])(
e
.
device
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
a
.
cancelButtonLoading
=!
1
,
e
.
loading
=!
1
,
i
()})).
catch
((
function
(){
a
.
cancelButtonLoading
=!
1
,
e
.
loading
=!
1
,
i
()})),
a
.
cancelButtonLoading
=!
1
}
else
i
()}}).
then
((
function
(
t
){
"confirm"
===
t
?
e
.
$message
({
type
:
"info"
,
message
:
"全部覆盖选项 执行成功"
}):
"cancel"
===
t
&&
e
.
$message
({
type
:
"info"
,
message
:
"不覆盖选项 执行成功"
})}))})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
})}}},
s
=
u
,
l
=
n
(
"2877"
),
d
=
Object
(
l
[
"a"
])(
s
,
a
,
i
,
!
1
,
null
,
"9225a73a"
,
null
);
t
[
"default"
]
=
d
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
C
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
y
}));
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
j
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
C
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
O
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
y
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-5c585ee6"
],{
"3ac7"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-main"
,[
n
(
"el-form"
,{
ref
:
"setChannel"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"channelNumsMessage"
,
label
:
"终端提示文字"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
device
.
channelNumsMessage
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelNumsMessage"
,
t
)},
expression
:
"device.channelNumsMessage"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"channelRules"
,
label
:
"规则"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
device
.
channelRules
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelRules"
,
t
)},
expression
:
"device.channelRules"
}},[
n
(
"el-option"
,{
attrs
:{
label
:
"白名单"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
n
(
"el-option"
,{
attrs
:{
label
:
"黑名单"
,
value
:
"1"
}})],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-transfer"
,{
attrs
:{
data
:
e
.
device
.
selectChannelNums
,
titles
:
e
.
transferTitle
},
model
:{
value
:
e
.
device
.
channelNums
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"channelNums"
,
t
)},
expression
:
"device.channelNums"
}}),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
i
=
[],
c
=
(
n
(
"456d"
),
n
(
"ac6a"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
o
=
n
(
"aa98"
),
r
=
{
channelNumsMessage
:
"终端提示文字"
,
channelRules
:
"规则"
},
u
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
n
(
new
Error
(
r
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
device
:{
selectChannelNums
:[],
channelNums
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[]},
rules
:{
channelNumsMessage
:[{
validator
:
e
}],
channelRules
:[{
validator
:
e
}]},
selectSeriesOptions
:[],
transferTitle
:[
"渠道号列表"
,
"已选择"
]}},
mounted
:
function
(){
this
.
device
.
imeis
=
this
.
$route
.
query
.
imeis
,
this
.
getFormData
(),
this
.
getTransfer
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
c
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
getTransfer
:
function
(){
var
e
=
this
;
Object
(
o
[
"j"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
n
.
forEach
((
function
(
t
){
e
.
device
.
selectChannelNums
.
push
({
key
:
t
.
channelId
,
label
:
t
.
channelNum
+
"_"
+
t
.
brand
})}))}))},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
setChannel
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
o
[
"k"
])(
e
.
device
.
imeis
).
then
((
function
(
t
){
var
n
=
t
.
data
,
a
=
e
.
$createElement
,
i
=
""
;
n
.
forEach
((
function
(
e
){
i
=
""
===
i
?
e
:
i
+
","
+
e
})),
e
.
$msgbox
({
title
:
"消息"
,
message
:
a
(
"p"
,
null
,[
a
(
"span"
,
null
,
"该imei会导致覆盖 "
),
a
(
"i"
,{
style
:
"color: teal"
},
i
)]),
showCancelButton
:
!
0
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消(则不执行覆盖的imei)"
,
beforeClose
:
function
(
t
,
a
,
i
){
if
(
"confirm"
===
t
)
a
.
confirmButtonLoading
=!
0
,
a
.
confirmButtonText
=
"执行中..."
,
Object
(
o
[
"m"
])(
e
.
device
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
a
.
confirmButtonLoading
=!
1
,
e
.
loading
=!
1
,
i
()})).
catch
((
function
(){
a
.
confirmButtonLoading
=!
1
,
e
.
loading
=!
1
,
i
()}));
else
if
(
"cancel"
===
t
){
a
.
cancelButtonLoading
=!
0
,
a
.
cancelButtonText
=
"执行中..."
;
var
c
=
[];
e
.
device
.
imeis
.
forEach
((
function
(
e
){
n
.
forEach
((
function
(
t
){
t
===
e
&&
c
.
push
(
e
)}))})),
e
.
device
.
imeis
=
c
,
Object
(
o
[
"m"
])(
e
.
device
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
a
.
cancelButtonLoading
=!
1
,
e
.
loading
=!
1
,
i
()})).
catch
((
function
(){
a
.
cancelButtonLoading
=!
1
,
e
.
loading
=!
1
,
i
()})),
a
.
cancelButtonLoading
=!
1
}
else
i
()}}).
then
((
function
(
t
){
"confirm"
===
t
?
e
.
$message
({
type
:
"info"
,
message
:
"全部覆盖选项 执行成功"
}):
"cancel"
===
t
&&
e
.
$message
({
type
:
"info"
,
message
:
"不覆盖选项 执行成功"
})}))})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
})}}},
s
=
u
,
l
=
n
(
"2877"
),
d
=
Object
(
l
[
"a"
])(
s
,
a
,
i
,
!
1
,
null
,
"9225a73a"
,
null
);
t
[
"default"
]
=
d
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
C
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
y
}));
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
j
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
O
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
C
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
y
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-723f6b88.
2d2174a
b.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-723f6b88.
70adae6
b.js
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-723f6b88"
],{
"11c3"
:
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
.
deletePage
}},[
e
.
_v
(
"删除"
)]),
e
.
_v
(
" "
),
n
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择渠道号"
,
multiple
:
"multiple"
},
model
:{
value
:
e
.
selectChannelValue
,
callback
:
function
(
t
){
e
.
selectChannelValue
=
t
},
expression
:
"selectChannelValue"
}},
e
.
_l
(
e
.
selectChannel
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
1
),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
getList
}},[
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
:
"渠道号"
,
prop
:
"channelNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"禁用提示文字"
,
prop
:
"channelNumsMessage"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"渠道号规则"
,
prop
:
"channelRules"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
channelRules
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"channelRulesFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"所属客户"
,
prop
:
"deptName"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"关联设备数量"
,
prop
:
"deviceInfoDtos.length"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
fixed
:
"right"
,
label
:
"操作"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
n
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
n
){
return
e
.
dialogVisibleTrue
(
t
.
row
)}}},[
e
.
_v
(
"查看"
)])]}}])})],
1
),
e
.
_v
(
" "
),
n
(
"el-dialog"
,{
attrs
:{
title
:
e
.
diaTitle
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
e
.
closeDialogVisible
}},[
n
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
diaLogTableData
,
border
:
""
}},[
n
(
"el-table-column"
,{
attrs
:{
fixed
:
""
,
prop
:
"imei"
,
label
:
"imei"
,
width
:
"150"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"seriesNum"
,
label
:
"产品系列"
,
width
:
"120"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"deptName"
,
label
:
"所属客户"
,
width
:
"120"
}})],
1
)],
1
)],
1
)],
1
)},
a
=
[],
l
=
(
n
(
"ac6a"
),
n
(
"c7a7"
)),
o
=
n
(
"ed08"
),
c
=
n
(
"aa98"
),
r
=
{
components
:{},
directives
:{
waves
:
l
[
"a"
]},
filters
:{
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
o
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
},
channelRulesFilter
:
function
(
e
){
return
0
===
e
?
"白名单"
:
"黑名单"
}},
data
:
function
(){
return
{
selectChannel
:[],
selectChannelValue
:
""
,
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
device
:{
imei
:
""
},
deviceIds
:[],
dialogVisible
:
!
1
,
diaTitle
:
""
,
diaLogTableData
:[]}},
mounted
:
function
(){
this
.
getList
(),
this
.
getSelectChannel
()},
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
:{
dialogVisibleTrue
:
function
(
e
){
this
.
dialogVisible
=!
0
,
this
.
diaTitle
=
"详情"
,
this
.
diaLogTableData
=
e
.
deviceInfoDtos
,
this
.
diaLogTableData
.
forEach
((
function
(
t
){
t
.
deptName
=
e
.
deptName
})),
console
.
log
(
this
.
diaLogTableData
)},
closeDialogVisible
:
function
(){
this
.
dialogVisible
=!
1
,
this
.
diaTitle
=
""
,
this
.
diaLogTableData
=
[]},
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
()},
getSelectChannel
:
function
(){
var
e
=
this
;
Object
(
c
[
"j"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
n
.
forEach
((
function
(
t
){
e
.
selectChannel
.
push
({
value
:
t
.
channelId
,
label
:
t
.
channelNum
})}))}))},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
Object
(
c
[
"l"
])(
this
.
selectChannelValue
).
then
((
function
(
t
){
e
.
list
=
t
.
data
,
e
.
listLoading
=!
1
}))},
setChannelPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"不能多选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
{
var
t
=
this
.
multipleSelection
[
0
];
this
.
$router
.
push
({
path
:
"/deviceManagement/device/updateDeviceChannel"
,
query
:{
device
:
t
}}),
console
.
log
(
t
)}
else
{
var
n
=
"必须选一列"
;
this
.
$message
({
message
:
n
,
type
:
"error"
})}},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
t
=
"不能多选"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}
else
this
.
$confirm
(
"此操作将永久删除, 是否继续?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
((
function
(){
Object
(
c
[
"e"
])(
e
.
multipleSelection
[
0
]).
then
((
function
(
t
){
e
.
getList
()})),
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})})).
catch
((
function
(){
e
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
})}));
else
{
var
n
=
"必须选一列"
;
this
.
$message
({
message
:
n
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/deviceChannel"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
s
=
r
,
u
=
n
(
"2877"
),
d
=
Object
(
u
[
"a"
])(
s
,
i
,
a
,
!
1
,
null
,
"6128a766"
,
null
);
t
[
"default"
]
=
d
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
C
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
w
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(
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/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
m
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
C
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
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
),
l
=
a
.
ele
;
if
(
l
){
l
.
style
.
position
=
"relative"
,
l
.
style
.
overflow
=
"hidden"
;
var
o
=
l
.
getBoundingClientRect
(),
c
=
l
.
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
(
o
.
width
,
o
.
height
)
+
"px"
,
l
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
o
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
o
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
o
.
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
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-723f6b88"
],{
"11c3"
:
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
.
deletePage
}},[
e
.
_v
(
"删除"
)]),
e
.
_v
(
" "
),
n
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择渠道号"
,
multiple
:
"multiple"
},
model
:{
value
:
e
.
selectChannelValue
,
callback
:
function
(
t
){
e
.
selectChannelValue
=
t
},
expression
:
"selectChannelValue"
}},
e
.
_l
(
e
.
selectChannel
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
1
),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
getList
}},[
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
:
"渠道号"
,
prop
:
"channelNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"禁用提示文字"
,
prop
:
"channelNumsMessage"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"渠道号规则"
,
prop
:
"channelRules"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
channelRules
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"channelRulesFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"所属客户"
,
prop
:
"deptName"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"关联设备数量"
,
prop
:
"deviceInfoDtos.length"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
fixed
:
"right"
,
label
:
"操作"
,
width
:
"100"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
n
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
n
){
return
e
.
dialogVisibleTrue
(
t
.
row
)}}},[
e
.
_v
(
"查看"
)])]}}])})],
1
),
e
.
_v
(
" "
),
n
(
"el-dialog"
,{
attrs
:{
title
:
e
.
diaTitle
,
visible
:
e
.
dialogVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
close
:
e
.
closeDialogVisible
}},[
n
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
diaLogTableData
,
border
:
""
}},[
n
(
"el-table-column"
,{
attrs
:{
fixed
:
""
,
prop
:
"imei"
,
label
:
"imei"
,
width
:
"150"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"seriesNum"
,
label
:
"产品系列"
,
width
:
"120"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"deptName"
,
label
:
"所属客户"
,
width
:
"120"
}})],
1
)],
1
)],
1
)],
1
)},
a
=
[],
l
=
(
n
(
"ac6a"
),
n
(
"c7a7"
)),
o
=
n
(
"ed08"
),
c
=
n
(
"aa98"
),
r
=
{
components
:{},
directives
:{
waves
:
l
[
"a"
]},
filters
:{
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
o
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
},
channelRulesFilter
:
function
(
e
){
return
0
===
e
?
"白名单"
:
"黑名单"
}},
data
:
function
(){
return
{
selectChannel
:[],
selectChannelValue
:
""
,
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
device
:{
imei
:
""
},
deviceIds
:[],
dialogVisible
:
!
1
,
diaTitle
:
""
,
diaLogTableData
:[]}},
mounted
:
function
(){
this
.
getList
(),
this
.
getSelectChannel
()},
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
:{
dialogVisibleTrue
:
function
(
e
){
this
.
dialogVisible
=!
0
,
this
.
diaTitle
=
"详情"
,
this
.
diaLogTableData
=
e
.
deviceInfoDtos
,
this
.
diaLogTableData
.
forEach
((
function
(
t
){
t
.
deptName
=
e
.
deptName
})),
console
.
log
(
this
.
diaLogTableData
)},
closeDialogVisible
:
function
(){
this
.
dialogVisible
=!
1
,
this
.
diaTitle
=
""
,
this
.
diaLogTableData
=
[]},
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
()},
getSelectChannel
:
function
(){
var
e
=
this
;
Object
(
c
[
"j"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
n
.
forEach
((
function
(
t
){
e
.
selectChannel
.
push
({
value
:
t
.
channelId
,
label
:
t
.
channelNum
})}))}))},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
Object
(
c
[
"l"
])(
this
.
selectChannelValue
).
then
((
function
(
t
){
e
.
list
=
t
.
data
,
e
.
listLoading
=!
1
}))},
setChannelPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"不能多选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
{
var
t
=
this
.
multipleSelection
[
0
];
this
.
$router
.
push
({
path
:
"/deviceManagement/device/updateDeviceChannel"
,
query
:{
device
:
t
}}),
console
.
log
(
t
)}
else
{
var
n
=
"必须选一列"
;
this
.
$message
({
message
:
n
,
type
:
"error"
})}},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
t
=
"不能多选"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}
else
this
.
$confirm
(
"此操作将永久删除, 是否继续?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
((
function
(){
Object
(
c
[
"e"
])(
e
.
multipleSelection
[
0
]).
then
((
function
(
t
){
e
.
getList
()})),
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})})).
catch
((
function
(){
e
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
})}));
else
{
var
n
=
"必须选一列"
;
this
.
$message
({
message
:
n
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/deviceChannel"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
s
=
r
,
u
=
n
(
"2877"
),
d
=
Object
(
u
[
"a"
])(
s
,
i
,
a
,
!
1
,
null
,
"6128a766"
,
null
);
t
[
"default"
]
=
d
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
C
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
w
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(
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/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
m
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
C
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
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
),
l
=
a
.
ele
;
if
(
l
){
l
.
style
.
position
=
"relative"
,
l
.
style
.
overflow
=
"hidden"
;
var
o
=
l
.
getBoundingClientRect
(),
c
=
l
.
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
(
o
.
width
,
o
.
height
)
+
"px"
,
l
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
o
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
o
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
o
.
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-7395e3e5.951ab4e1.js
0 → 100644
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-7395e3e5"
],{
aa98
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
d
(
n
,
"h"
,(
function
(){
return
c
})),
t
.
d
(
n
,
"g"
,(
function
(){
return
i
})),
t
.
d
(
n
,
"i"
,(
function
(){
return
r
})),
t
.
d
(
n
,
"o"
,(
function
(){
return
s
})),
t
.
d
(
n
,
"b"
,(
function
(){
return
u
})),
t
.
d
(
n
,
"q"
,(
function
(){
return
l
})),
t
.
d
(
n
,
"r"
,(
function
(){
return
d
})),
t
.
d
(
n
,
"s"
,(
function
(){
return
o
})),
t
.
d
(
n
,
"m"
,(
function
(){
return
h
})),
t
.
d
(
n
,
"k"
,(
function
(){
return
v
})),
t
.
d
(
n
,
"f"
,(
function
(){
return
p
})),
t
.
d
(
n
,
"a"
,(
function
(){
return
f
})),
t
.
d
(
n
,
"n"
,(
function
(){
return
m
})),
t
.
d
(
n
,
"j"
,(
function
(){
return
b
})),
t
.
d
(
n
,
"c"
,(
function
(){
return
g
})),
t
.
d
(
n
,
"d"
,(
function
(){
return
j
})),
t
.
d
(
n
,
"p"
,(
function
(){
return
O
})),
t
.
d
(
n
,
"l"
,(
function
(){
return
C
})),
t
.
d
(
n
,
"e"
,(
function
(){
return
D
}));
t
(
"55dd"
);
var
a
=
t
(
"b775"
);
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
b
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
g
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
j
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
O
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
C
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
D
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
c10e
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
r
(
n
);
var
a
=
function
(){
var
e
=
this
,
n
=
e
.
$createElement
,
t
=
e
.
_self
.
_c
||
n
;
return
t
(
"el-container"
,[
t
(
"el-main"
,[
t
(
"el-form"
,{
ref
:
"update"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
t
(
"el-form-item"
,{
attrs
:{
prop
:
"channelNumsMessage"
,
label
:
"终端提示文字"
}},[
t
(
"el-input"
,{
model
:{
value
:
e
.
device
.
channelNumsMessage
,
callback
:
function
(
n
){
e
.
$set
(
e
.
device
,
"channelNumsMessage"
,
n
)},
expression
:
"device.channelNumsMessage"
}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
prop
:
"channelRules"
,
label
:
"规则"
}},[
t
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
device
.
channelRules
,
callback
:
function
(
n
){
e
.
$set
(
e
.
device
,
"channelRules"
,
n
)},
expression
:
"device.channelRules"
}},[
t
(
"el-option"
,{
attrs
:{
label
:
"白名单"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
t
(
"el-option"
,{
attrs
:{
label
:
"黑名单"
,
value
:
"1"
}})],
1
)],
1
),
e
.
_v
(
" "
),
t
(
"el-transfer"
,{
attrs
:{
data
:
e
.
selectChannelNumsData
,
titles
:
e
.
transferTitle
},
model
:{
value
:
e
.
device
.
channelIds
,
callback
:
function
(
n
){
e
.
$set
(
e
.
device
,
"channelIds"
,
n
)},
expression
:
"device.channelIds"
}}),
e
.
_v
(
" "
),
t
(
"el-form-item"
,[
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
t
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
c
=
[],
i
=
(
t
(
"456d"
),
t
(
"6762"
),
t
(
"2fdb"
),
t
(
"ac6a"
),
t
(
"28a5"
),
t
(
"96cf"
),
t
(
"3b8d"
)),
r
=
t
(
"aa98"
),
s
=
{
channelNumsMessage
:
"终端提示文字"
,
channelRules
:
"规则"
},
u
=
{
data
:
function
(){
var
e
=
function
(
e
,
n
,
t
){
void
0
===
n
||
null
===
n
||
0
===
n
.
length
?
t
(
new
Error
(
s
[
e
.
field
]
+
"必须填写"
)):
t
()};
return
{
loading
:
!
1
,
device
:{
channelIds
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[]},
rules
:{
channelNumsMessage
:[{
validator
:
e
}],
channelRules
:[{
validator
:
e
}]},
selectSeriesOptions
:[],
transferTitle
:[
"渠道号列表"
,
"已选择"
],
selectChannelNumsData
:[]}},
mounted
:
function
(){
this
.
deviceT
=
this
.
$route
.
query
.
device
,
this
.
getTransfer
()},
methods
:{
selectChannelNums
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
n
){
var
t
,
a
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
1
===
this
.
deviceT
.
channelRules
?
this
.
device
.
channelRules
=
"黑名单"
:
0
===
this
.
deviceT
.
channelRules
&&
(
this
.
device
.
channelRules
=
"白名单"
),
this
.
device
.
channelNumsMessage
=
this
.
deviceT
.
channelNumsMessage
,
this
.
device
.
deviceId
=
this
.
deviceT
.
deviceId
,
t
=
this
.
deviceT
.
channelNums
.
split
(
","
),
t
.
forEach
((
function
(
e
){
n
.
channelNum
.
includes
(
e
)
&&
a
.
device
.
channelIds
.
push
(
n
.
channelId
)}));
case
5
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
n
(
n
){
return
e
.
apply
(
this
,
arguments
)}
return
n
}(),
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
getTransfer
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
n
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
Object
(
r
[
"j"
])().
then
((
function
(
e
){
var
t
=
e
.
data
;
t
.
forEach
((
function
(
e
){
n
.
selectChannelNumsData
.
push
({
key
:
e
.
channelId
,
label
:
e
.
channelNum
+
"_"
+
e
.
brand
}),
n
.
selectChannelNums
(
e
)}))}));
case
1
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
n
(){
return
e
.
apply
(
this
,
arguments
)}
return
n
}(),
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
update
.
validate
((
function
(
n
,
t
){
if
(
n
)
"黑名单"
===
e
.
device
.
channelRules
?
e
.
device
.
channelRules
=
1
:
"白名单"
===
e
.
device
.
channelRules
&&
(
e
.
device
.
channelRules
=
0
),
Object
(
r
[
"p"
])(
e
.
device
).
then
((
function
(
n
){
var
t
=
n
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
t
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
t
[
Object
.
keys
(
t
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/deviceChannel"
})}}},
l
=
u
,
d
=
t
(
"2877"
),
o
=
Object
(
d
[
"a"
])(
l
,
a
,
c
,
!
1
,
null
,
"1999b0f0"
,
null
);
n
[
"default"
]
=
o
.
exports
}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-7395e3e5.bb4e5af7.js
deleted
100644 → 0
View file @
86d2bd54
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-7395e3e5"
],{
aa98
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
d
(
n
,
"h"
,(
function
(){
return
c
})),
t
.
d
(
n
,
"g"
,(
function
(){
return
i
})),
t
.
d
(
n
,
"i"
,(
function
(){
return
r
})),
t
.
d
(
n
,
"o"
,(
function
(){
return
s
})),
t
.
d
(
n
,
"b"
,(
function
(){
return
u
})),
t
.
d
(
n
,
"q"
,(
function
(){
return
l
})),
t
.
d
(
n
,
"r"
,(
function
(){
return
d
})),
t
.
d
(
n
,
"s"
,(
function
(){
return
o
})),
t
.
d
(
n
,
"m"
,(
function
(){
return
h
})),
t
.
d
(
n
,
"k"
,(
function
(){
return
v
})),
t
.
d
(
n
,
"f"
,(
function
(){
return
p
})),
t
.
d
(
n
,
"a"
,(
function
(){
return
f
})),
t
.
d
(
n
,
"n"
,(
function
(){
return
m
})),
t
.
d
(
n
,
"j"
,(
function
(){
return
b
})),
t
.
d
(
n
,
"c"
,(
function
(){
return
g
})),
t
.
d
(
n
,
"d"
,(
function
(){
return
j
})),
t
.
d
(
n
,
"p"
,(
function
(){
return
C
})),
t
.
d
(
n
,
"l"
,(
function
(){
return
O
})),
t
.
d
(
n
,
"e"
,(
function
(){
return
D
}));
t
(
"55dd"
);
var
a
=
t
(
"b775"
);
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
b
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
g
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
j
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
C
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
O
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
D
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
c10e
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
r
(
n
);
var
a
=
function
(){
var
e
=
this
,
n
=
e
.
$createElement
,
t
=
e
.
_self
.
_c
||
n
;
return
t
(
"el-container"
,[
t
(
"el-main"
,[
t
(
"el-form"
,{
ref
:
"update"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
t
(
"el-form-item"
,{
attrs
:{
prop
:
"channelNumsMessage"
,
label
:
"终端提示文字"
}},[
t
(
"el-input"
,{
model
:{
value
:
e
.
device
.
channelNumsMessage
,
callback
:
function
(
n
){
e
.
$set
(
e
.
device
,
"channelNumsMessage"
,
n
)},
expression
:
"device.channelNumsMessage"
}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
prop
:
"channelRules"
,
label
:
"规则"
}},[
t
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
device
.
channelRules
,
callback
:
function
(
n
){
e
.
$set
(
e
.
device
,
"channelRules"
,
n
)},
expression
:
"device.channelRules"
}},[
t
(
"el-option"
,{
attrs
:{
label
:
"白名单"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
t
(
"el-option"
,{
attrs
:{
label
:
"黑名单"
,
value
:
"1"
}})],
1
)],
1
),
e
.
_v
(
" "
),
t
(
"el-transfer"
,{
attrs
:{
data
:
e
.
selectChannelNumsData
,
titles
:
e
.
transferTitle
},
model
:{
value
:
e
.
device
.
channelIds
,
callback
:
function
(
n
){
e
.
$set
(
e
.
device
,
"channelIds"
,
n
)},
expression
:
"device.channelIds"
}}),
e
.
_v
(
" "
),
t
(
"el-form-item"
,[
t
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
t
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
c
=
[],
i
=
(
t
(
"456d"
),
t
(
"6762"
),
t
(
"2fdb"
),
t
(
"ac6a"
),
t
(
"28a5"
),
t
(
"96cf"
),
t
(
"3b8d"
)),
r
=
t
(
"aa98"
),
s
=
{
channelNumsMessage
:
"终端提示文字"
,
channelRules
:
"规则"
},
u
=
{
data
:
function
(){
var
e
=
function
(
e
,
n
,
t
){
void
0
===
n
||
null
===
n
||
0
===
n
.
length
?
t
(
new
Error
(
s
[
e
.
field
]
+
"必须填写"
)):
t
()};
return
{
loading
:
!
1
,
device
:{
channelIds
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[]},
rules
:{
channelNumsMessage
:[{
validator
:
e
}],
channelRules
:[{
validator
:
e
}]},
selectSeriesOptions
:[],
transferTitle
:[
"渠道号列表"
,
"已选择"
],
selectChannelNumsData
:[]}},
mounted
:
function
(){
this
.
deviceT
=
this
.
$route
.
query
.
device
,
this
.
getTransfer
()},
methods
:{
selectChannelNums
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
n
){
var
t
,
a
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
1
===
this
.
deviceT
.
channelRules
?
this
.
device
.
channelRules
=
"黑名单"
:
0
===
this
.
deviceT
.
channelRules
&&
(
this
.
device
.
channelRules
=
"白名单"
),
this
.
device
.
channelNumsMessage
=
this
.
deviceT
.
channelNumsMessage
,
this
.
device
.
deviceId
=
this
.
deviceT
.
deviceId
,
t
=
this
.
deviceT
.
channelNums
.
split
(
","
),
t
.
forEach
((
function
(
e
){
n
.
channelNum
.
includes
(
e
)
&&
a
.
device
.
channelIds
.
push
(
n
.
channelId
)}));
case
5
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
n
(
n
){
return
e
.
apply
(
this
,
arguments
)}
return
n
}(),
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
getTransfer
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
n
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
Object
(
r
[
"j"
])().
then
((
function
(
e
){
var
t
=
e
.
data
;
t
.
forEach
((
function
(
e
){
n
.
selectChannelNumsData
.
push
({
key
:
e
.
channelId
,
label
:
e
.
channelNum
+
"_"
+
e
.
brand
}),
n
.
selectChannelNums
(
e
)}))}));
case
1
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
n
(){
return
e
.
apply
(
this
,
arguments
)}
return
n
}(),
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
update
.
validate
((
function
(
n
,
t
){
if
(
n
)
"黑名单"
===
e
.
device
.
channelRules
?
e
.
device
.
channelRules
=
1
:
"白名单"
===
e
.
device
.
channelRules
&&
(
e
.
device
.
channelRules
=
0
),
Object
(
r
[
"p"
])(
e
.
device
).
then
((
function
(
n
){
var
t
=
n
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
t
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
t
[
Object
.
keys
(
t
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/deviceChannel"
})}}},
l
=
u
,
d
=
t
(
"2877"
),
o
=
Object
(
d
[
"a"
])(
l
,
a
,
c
,
!
1
,
null
,
"1999b0f0"
,
null
);
n
[
"default"
]
=
o
.
exports
}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-77a4bbf0.ad38d337.js
0 → 100644
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-77a4bbf0"
],{
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
s
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
D
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
I
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
b
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
j
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
O
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
D
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
I
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
f24d
:
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-main"
,[
n
(
"el-form"
,{
ref
:
"importDevice"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属客户"
}},[
n
(
"el-cascader"
,{
attrs
:{
"expand-trigger"
:
"hover"
,
options
:
e
.
options
,
"show-all-levels"
:
!
1
,
"change-on-select"
:
""
},
on
:{
change
:
e
.
handleChange
},
model
:{
value
:
e
.
selectDeptParents
,
callback
:
function
(
t
){
e
.
selectDeptParents
=
t
},
expression
:
"selectDeptParents"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesId"
,
label
:
"所属系列"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
device
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"seriesId"
,
t
)},
expression
:
"device.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
)],
1
),
e
.
_v
(
" "
),
e
.
_l
(
e
.
device
.
imeis
,(
function
(
t
,
i
){
return
n
(
"el-form-item"
,{
key
:
i
,
attrs
:{
label
:
"第"
+
(
i
+
1
)
+
"个imei: "
,
prop
:
"imeis."
+
i
+
".value"
,
"label-width"
:
"20"
}},[
n
(
"el-row"
,[
n
(
"el-col"
,{
attrs
:{
span
:
14
}},[
n
(
"el-input"
,{
model
:{
value
:
t
.
value
,
callback
:
function
(
n
){
e
.
$set
(
t
,
"value"
,
n
)},
expression
:
"imei.value"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-col"
,{
attrs
:{
span
:
5
}},[
n
(
"el-button"
,{
on
:{
click
:
function
(
n
){
return
n
.
preventDefault
(),
e
.
removeImeis
(
t
)}}},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)],
1
)],
1
)})),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"添加"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
addImeis
}},[
e
.
_v
(
"新增imei"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
2
)],
1
)],
1
)},
r
=
[],
a
=
(
n
(
"456d"
),
n
(
"ac6a"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
c
=
n
(
"fe05"
),
o
=
n
(
"7d09"
),
s
=
n
(
"aa98"
),
u
=
{
deptId
:
"客户Id"
,
seriesId
:
"系列号"
,
imeis
:
"imeis"
},
d
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
n
(
new
Error
(
u
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
device
:{
deptIdList
:[],
seriesIdList
:[],
imeis
:[{
value
:
""
}]},
rules
:{
deptId
:[{
validator
:
e
}],
seriesId
:[{
validator
:
e
}]},
options
:[],
selectSeriesOptions
:[],
selectDeptParents
:[],
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
mounted
:
function
(){
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
a
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
this
.
selectDeptParent
();
case
2
:
return
e
.
next
=
4
,
this
.
selectSeries
();
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
importDevice
.
validate
((
function
(
t
,
n
){
if
(
t
){
var
i
=
e
.
device
.
imeis
;
e
.
device
.
imeis
=
[],
i
.
forEach
((
function
(
t
){
e
.
device
.
imeis
.
push
(
t
.
value
)})),
Object
(
s
[
"i"
])(
e
.
device
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(
t
){
console
.
log
(
t
),
e
.
loading
=!
1
}))}
else
{
var
r
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
r
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
})},
selectSeries
:
function
(){
var
e
=
Object
(
a
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
o
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParent
:
function
(){
var
e
=
Object
(
a
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
c
[
"e"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
options
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
device
.
deptId
=
e
[
t
]},
addImeis
:
function
(){
this
.
device
.
imeis
.
push
({
value
:
""
})},
removeImeis
:
function
(
e
){
var
t
=
this
.
device
.
imeis
.
indexOf
(
e
);
-
1
!==
t
&&
this
.
device
.
imeis
.
splice
(
t
,
1
)}}},
l
=
d
,
p
=
n
(
"2877"
),
f
=
Object
(
p
[
"a"
])(
l
,
i
,
r
,
!
1
,
null
,
"97bccd40"
,
null
);
t
[
"default"
]
=
f
.
exports
},
fe05
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
}));
n
(
"7f7f"
),
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
name
:
e
.
name
}})}
function
a
(){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
c
(){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-77a4bbf0.f8132b56.js
deleted
100644 → 0
View file @
86d2bd54
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-77a4bbf0"
],{
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
s
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
D
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
I
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
b
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
j
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
O
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
D
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
I
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
f24d
:
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-main"
,[
n
(
"el-form"
,{
ref
:
"importDevice"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属客户"
}},[
n
(
"el-cascader"
,{
attrs
:{
"expand-trigger"
:
"hover"
,
options
:
e
.
options
,
"show-all-levels"
:
!
1
,
"change-on-select"
:
""
},
on
:{
change
:
e
.
handleChange
},
model
:{
value
:
e
.
selectDeptParents
,
callback
:
function
(
t
){
e
.
selectDeptParents
=
t
},
expression
:
"selectDeptParents"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesId"
,
label
:
"所属系列"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
device
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"seriesId"
,
t
)},
expression
:
"device.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
)],
1
),
e
.
_v
(
" "
),
e
.
_l
(
e
.
device
.
imeis
,(
function
(
t
,
i
){
return
n
(
"el-form-item"
,{
key
:
i
,
attrs
:{
label
:
"第"
+
(
i
+
1
)
+
"个imei: "
,
prop
:
"imeis."
+
i
+
".value"
,
"label-width"
:
"20"
}},[
n
(
"el-row"
,[
n
(
"el-col"
,{
attrs
:{
span
:
14
}},[
n
(
"el-input"
,{
model
:{
value
:
t
.
value
,
callback
:
function
(
n
){
e
.
$set
(
t
,
"value"
,
n
)},
expression
:
"imei.value"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-col"
,{
attrs
:{
span
:
5
}},[
n
(
"el-button"
,{
on
:{
click
:
function
(
n
){
return
n
.
preventDefault
(),
e
.
removeImeis
(
t
)}}},[
e
.
_v
(
"
\
n 删除
\
n "
)])],
1
)],
1
)],
1
)})),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"添加"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
addImeis
}},[
e
.
_v
(
"新增imei"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
2
)],
1
)],
1
)},
r
=
[],
a
=
(
n
(
"456d"
),
n
(
"ac6a"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
c
=
n
(
"fe05"
),
o
=
n
(
"7d09"
),
s
=
n
(
"aa98"
),
u
=
{
deptId
:
"客户Id"
,
seriesId
:
"系列号"
,
imeis
:
"imeis"
},
d
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
n
(
new
Error
(
u
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
device
:{
deptIdList
:[],
seriesIdList
:[],
imeis
:[{
value
:
""
}]},
rules
:{
deptId
:[{
validator
:
e
}],
seriesId
:[{
validator
:
e
}]},
options
:[],
selectSeriesOptions
:[],
selectDeptParents
:[],
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
mounted
:
function
(){
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
a
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
this
.
selectDeptParent
();
case
2
:
return
e
.
next
=
4
,
this
.
selectSeries
();
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
importDevice
.
validate
((
function
(
t
,
n
){
if
(
t
){
var
i
=
e
.
device
.
imeis
;
e
.
device
.
imeis
=
[],
i
.
forEach
((
function
(
t
){
e
.
device
.
imeis
.
push
(
t
.
value
)})),
Object
(
s
[
"i"
])(
e
.
device
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(
t
){
console
.
log
(
t
),
e
.
loading
=!
1
}))}
else
{
var
r
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
r
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
})},
selectSeries
:
function
(){
var
e
=
Object
(
a
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
o
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParent
:
function
(){
var
e
=
Object
(
a
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
c
[
"e"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
options
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
device
.
deptId
=
e
[
t
]},
addImeis
:
function
(){
this
.
device
.
imeis
.
push
({
value
:
""
})},
removeImeis
:
function
(
e
){
var
t
=
this
.
device
.
imeis
.
indexOf
(
e
);
-
1
!==
t
&&
this
.
device
.
imeis
.
splice
(
t
,
1
)}}},
l
=
d
,
p
=
n
(
"2877"
),
v
=
Object
(
p
[
"a"
])(
l
,
i
,
r
,
!
1
,
null
,
"97bccd40"
,
null
);
t
[
"default"
]
=
v
.
exports
},
fe05
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
}));
n
(
"7f7f"
),
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
name
:
e
.
name
}})}
function
a
(){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
c
(){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-80fe6032.
e8411099
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-80fe6032.
d9f25b2c
.js
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-80fe6032"
],{
"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
r
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
e
){
window
.
setTimeout
(
e
,
1
e3
/
60
)}}();
function
o
(
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
s
(
e
,
t
,
n
){
var
i
=
c
(),
a
=
e
-
i
,
s
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
l
=
function
e
(){
u
+=
s
;
var
c
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
o
(
c
),
u
<
t
?
r
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
l
()}
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
&&
s
(
0
,
800
)},
handleCurrentChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
e
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
s
(
0
,
800
)}}},
l
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
l
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
s
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
"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
.
importBatchPage
}},[
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
(
"下载模板"
)]),
e
.
_v
(
" "
),
n
(
"el-select"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"请选择系列号"
},
model
:{
value
:
e
.
listQuery
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"seriesId"
,
t
)},
expression
:
"listQuery.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
),
e
.
_v
(
" "
),
n
(
"el-input"
,{
staticClass
:
"filter-item"
,
staticStyle
:{
width
:
"200px"
},
attrs
:{
placeholder
:
"输入imei"
,
clearable
:
""
},
on
:{
clear
:
e
.
handleFilter
,
blur
:
e
.
handleFilter
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleFilter
(
t
)}},
model
:{
value
:
e
.
listQuery
.
imei
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"imei"
,
t
)},
expression
:
"listQuery.imei"
}}),
e
.
_v
(
" "
),
n
(
"el-button"
,{
directives
:[{
name
:
"waves"
,
rawName
:
"v-waves"
}],
staticClass
:
"filter-item"
,
staticStyle
:{
"margin-left"
:
"10px"
},
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
handleFilter
}},[
e
.
_v
(
"
\
n 查询
\
n "
)])],
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
:
"产品系列"
,
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
=
[],
r
=
(
n
(
"96cf"
),
n
(
"3b8d"
)),
o
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
c
=
n
(
"c7a7"
),
s
=
n
(
"ed08"
),
u
=
n
(
"aa98"
),
l
=
n
(
"5f87"
),
d
=
n
(
"7d09"
),
p
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
c
[
"a"
]},
filters
:{
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
s
[
"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
:[],
selectSeriesOptions
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
selectSeries
(),
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
(
u
[
"h"
])(
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"
})},
importBatchPage
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importBatchDevice"
})},
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
)})),
this
.
$confirm
(
"此操作将永久删除该文件, 是否继续?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
((
function
(){
Object
(
u
[
"b"
])(
e
.
deviceIds
).
then
((
function
(
t
){
e
.
getList
()})),
e
.
deviceIds
=
[],
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})})).
catch
((
function
(){
e
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
})})),
Object
(
u
[
"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
(
l
[
"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
()},
selectSeries
:
function
(){
var
e
=
Object
(
r
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
d
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
h
=
p
,
f
=
n
(
"2877"
),
v
=
Object
(
f
[
"a"
])(
h
,
i
,
a
,
!
1
,
null
,
"5d4b74b8"
,
null
);
t
[
"default"
]
=
v
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
w
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
O
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
O
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
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
),
r
=
a
.
ele
;
if
(
r
){
r
.
style
.
position
=
"relative"
,
r
.
style
.
overflow
=
"hidden"
;
var
o
=
r
.
getBoundingClientRect
(),
c
=
r
.
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
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
o
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
o
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
o
.
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
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-80fe6032"
],{
"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
r
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
e
){
window
.
setTimeout
(
e
,
1
e3
/
60
)}}();
function
o
(
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
s
(
e
,
t
,
n
){
var
i
=
c
(),
a
=
e
-
i
,
s
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
l
=
function
e
(){
u
+=
s
;
var
c
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
o
(
c
),
u
<
t
?
r
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
l
()}
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
&&
s
(
0
,
800
)},
handleCurrentChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
e
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
s
(
0
,
800
)}}},
l
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
l
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
s
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
"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
.
importBatchPage
}},[
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
(
"下载模板"
)]),
e
.
_v
(
" "
),
n
(
"el-select"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"请选择系列号"
},
model
:{
value
:
e
.
listQuery
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"seriesId"
,
t
)},
expression
:
"listQuery.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
),
e
.
_v
(
" "
),
n
(
"el-input"
,{
staticClass
:
"filter-item"
,
staticStyle
:{
width
:
"200px"
},
attrs
:{
placeholder
:
"输入imei"
,
clearable
:
""
},
on
:{
clear
:
e
.
handleFilter
,
blur
:
e
.
handleFilter
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleFilter
(
t
)}},
model
:{
value
:
e
.
listQuery
.
imei
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"imei"
,
t
)},
expression
:
"listQuery.imei"
}}),
e
.
_v
(
" "
),
n
(
"el-button"
,{
directives
:[{
name
:
"waves"
,
rawName
:
"v-waves"
}],
staticClass
:
"filter-item"
,
staticStyle
:{
"margin-left"
:
"10px"
},
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
handleFilter
}},[
e
.
_v
(
"
\
n 查询
\
n "
)])],
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
:
"产品系列"
,
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
=
[],
r
=
(
n
(
"96cf"
),
n
(
"3b8d"
)),
o
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
c
=
n
(
"c7a7"
),
s
=
n
(
"ed08"
),
u
=
n
(
"aa98"
),
l
=
n
(
"5f87"
),
d
=
n
(
"7d09"
),
p
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
c
[
"a"
]},
filters
:{
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
s
[
"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
:[],
selectSeriesOptions
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
selectSeries
(),
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
(
u
[
"h"
])(
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"
})},
importBatchPage
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importBatchDevice"
})},
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
)})),
this
.
$confirm
(
"此操作将永久删除该文件, 是否继续?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
((
function
(){
Object
(
u
[
"b"
])(
e
.
deviceIds
).
then
((
function
(
t
){
e
.
getList
()})),
e
.
deviceIds
=
[],
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})})).
catch
((
function
(){
e
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
})})),
Object
(
u
[
"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
(
l
[
"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
()},
selectSeries
:
function
(){
var
e
=
Object
(
r
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
d
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
h
=
p
,
f
=
n
(
"2877"
),
v
=
Object
(
f
[
"a"
])(
h
,
i
,
a
,
!
1
,
null
,
"5d4b74b8"
,
null
);
t
[
"default"
]
=
v
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
w
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
O
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
O
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
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
),
r
=
a
.
ele
;
if
(
r
){
r
.
style
.
position
=
"relative"
,
r
.
style
.
overflow
=
"hidden"
;
var
o
=
r
.
getBoundingClientRect
(),
c
=
r
.
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
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
o
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
o
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
o
.
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-adf11d7e.69ecac3b.js
0 → 100644
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-adf11d7e"
],{
"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
r
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
e
){
window
.
setTimeout
(
e
,
1
e3
/
60
)}}();
function
o
(
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
,
s
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
u
=
function
e
(){
s
+=
l
;
var
c
=
Math
.
easeInOutQuad
(
s
,
i
,
a
,
t
);
o
(
c
),
s
<
t
?
r
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
u
()}
var
s
=
{
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
)}}},
u
=
s
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
u
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
l
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
w
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
O
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(
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/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
O
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
b2dd
:
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
.
setChannelPage
}},[
e
.
_v
(
"变更"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
deletePage
}},[
e
.
_v
(
"删除"
)]),
e
.
_v
(
" "
),
n
(
"el-select"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"请选择系列号"
},
model
:{
value
:
e
.
listQuery
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"seriesId"
,
t
)},
expression
:
"listQuery.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
),
e
.
_v
(
" "
),
n
(
"el-input"
,{
staticClass
:
"filter-item"
,
staticStyle
:{
width
:
"200px"
},
attrs
:{
placeholder
:
"imei"
,
clearable
:
""
},
on
:{
clear
:
e
.
handleFilter
,
blur
:
e
.
handleFilter
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleFilter
(
t
)}},
model
:{
value
:
e
.
listQuery
.
imei
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"imei"
,
t
)},
expression
:
"listQuery.imei"
}}),
e
.
_v
(
" "
),
n
(
"el-button"
,{
directives
:[{
name
:
"waves"
,
rawName
:
"v-waves"
}],
staticClass
:
"filter-item"
,
staticStyle
:{
"margin-left"
:
"10px"
},
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
handleFilter
}},[
e
.
_v
(
"
\
n 查询
\
n "
)])],
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
:
"产品系列"
,
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
:
"channelRules"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
channelRules
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"channelRulesFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"渠道号"
,
prop
:
"channelNums"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"禁用提示文字"
,
prop
:
"channelNumsMessage"
,
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
=
[],
r
=
(
n
(
"96cf"
),
n
(
"3b8d"
)),
o
=
n
(
"333d"
),
c
=
n
(
"c7a7"
),
l
=
n
(
"ed08"
),
s
=
n
(
"aa98"
),
u
=
n
(
"7d09"
),
d
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
c
[
"a"
]},
filters
:{
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
l
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
},
channelRulesFilter
:
function
(
e
){
return
0
===
e
?
"白名单"
:
"黑名单"
}},
data
:
function
(){
return
{
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
device
:{
imei
:
""
},
deviceIds
:[],
selectSeriesOptions
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
selectSeries
(),
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
(
s
[
"h"
])(
this
.
listQuery
).
then
((
function
(
t
){
var
n
=
t
.
data
,
i
=
n
.
list
,
a
=
n
.
totalCount
;
e
.
list
=
i
,
e
.
total
=
a
,
e
.
listLoading
=!
1
}))},
setChannelPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"不能多选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
{
var
t
=
this
.
multipleSelection
[
0
];
this
.
$router
.
push
({
path
:
"/deviceManagement/device/updateDeviceChannel"
,
query
:{
device
:
t
}})}
else
{
var
n
=
"必须选一列"
;
this
.
$message
({
message
:
n
,
type
:
"error"
})}},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
t
=
"不能多选"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}
else
this
.
$confirm
(
"此操作将永久删除, 是否继续?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
((
function
(){
Object
(
s
[
"d"
])(
e
.
multipleSelection
[
0
].
deviceId
).
then
((
function
(
t
){
e
.
getList
()})),
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})})).
catch
((
function
(){
e
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
})}));
else
{
var
n
=
"必须选一列"
;
this
.
$message
({
message
:
n
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/deviceChannel"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()},
selectSeries
:
function
(){
var
e
=
Object
(
r
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
u
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
p
=
d
,
h
=
n
(
"2877"
),
f
=
Object
(
h
[
"a"
])(
p
,
i
,
a
,
!
1
,
null
,
"cd90c57c"
,
null
);
t
[
"default"
]
=
f
.
exports
},
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
),
r
=
a
.
ele
;
if
(
r
){
r
.
style
.
position
=
"relative"
,
r
.
style
.
overflow
=
"hidden"
;
var
o
=
r
.
getBoundingClientRect
(),
c
=
r
.
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
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
o
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
o
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
o
.
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-adf11d7e.da56d39a.js
deleted
100644 → 0
View file @
86d2bd54
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-adf11d7e"
],{
"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
r
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
e
){
window
.
setTimeout
(
e
,
1
e3
/
60
)}}();
function
o
(
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
,
s
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
u
=
function
e
(){
s
+=
l
;
var
c
=
Math
.
easeInOutQuad
(
s
,
i
,
a
,
t
);
o
(
c
),
s
<
t
?
r
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
u
()}
var
s
=
{
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
)}}},
u
=
s
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
u
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
l
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
w
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
C
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(
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/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
C
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
b2dd
:
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
.
setChannelPage
}},[
e
.
_v
(
"变更"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
deletePage
}},[
e
.
_v
(
"删除"
)]),
e
.
_v
(
" "
),
n
(
"el-select"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"请选择系列号"
},
model
:{
value
:
e
.
listQuery
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"seriesId"
,
t
)},
expression
:
"listQuery.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
),
e
.
_v
(
" "
),
n
(
"el-input"
,{
staticClass
:
"filter-item"
,
staticStyle
:{
width
:
"200px"
},
attrs
:{
placeholder
:
"imei"
,
clearable
:
""
},
on
:{
clear
:
e
.
handleFilter
,
blur
:
e
.
handleFilter
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"key"
)
&&
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
null
:
e
.
handleFilter
(
t
)}},
model
:{
value
:
e
.
listQuery
.
imei
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"imei"
,
t
)},
expression
:
"listQuery.imei"
}}),
e
.
_v
(
" "
),
n
(
"el-button"
,{
directives
:[{
name
:
"waves"
,
rawName
:
"v-waves"
}],
staticClass
:
"filter-item"
,
staticStyle
:{
"margin-left"
:
"10px"
},
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
},
on
:{
click
:
e
.
handleFilter
}},[
e
.
_v
(
"
\
n 查询
\
n "
)])],
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
:
"产品系列"
,
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
:
"channelRules"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
channelRules
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"channelRulesFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"渠道号"
,
prop
:
"channelNums"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"禁用提示文字"
,
prop
:
"channelNumsMessage"
,
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
=
[],
r
=
(
n
(
"96cf"
),
n
(
"3b8d"
)),
o
=
n
(
"333d"
),
c
=
n
(
"c7a7"
),
l
=
n
(
"ed08"
),
s
=
n
(
"aa98"
),
u
=
n
(
"7d09"
),
d
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
c
[
"a"
]},
filters
:{
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
l
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
},
channelRulesFilter
:
function
(
e
){
return
0
===
e
?
"白名单"
:
"黑名单"
}},
data
:
function
(){
return
{
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
device
:{
imei
:
""
},
deviceIds
:[],
selectSeriesOptions
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
selectSeries
(),
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
(
s
[
"h"
])(
this
.
listQuery
).
then
((
function
(
t
){
var
n
=
t
.
data
,
i
=
n
.
list
,
a
=
n
.
totalCount
;
e
.
list
=
i
,
e
.
total
=
a
,
e
.
listLoading
=!
1
}))},
setChannelPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"不能多选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
{
var
t
=
this
.
multipleSelection
[
0
];
this
.
$router
.
push
({
path
:
"/deviceManagement/device/updateDeviceChannel"
,
query
:{
device
:
t
}})}
else
{
var
n
=
"必须选一列"
;
this
.
$message
({
message
:
n
,
type
:
"error"
})}},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
t
=
"不能多选"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}
else
this
.
$confirm
(
"此操作将永久删除, 是否继续?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
((
function
(){
Object
(
s
[
"d"
])(
e
.
multipleSelection
[
0
].
deviceId
).
then
((
function
(
t
){
e
.
getList
()})),
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})})).
catch
((
function
(){
e
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
})}));
else
{
var
n
=
"必须选一列"
;
this
.
$message
({
message
:
n
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/deviceChannel"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()},
selectSeries
:
function
(){
var
e
=
Object
(
r
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
u
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
p
=
d
,
h
=
n
(
"2877"
),
f
=
Object
(
h
[
"a"
])(
p
,
i
,
a
,
!
1
,
null
,
"cd90c57c"
,
null
);
t
[
"default"
]
=
f
.
exports
},
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
),
r
=
a
.
ele
;
if
(
r
){
r
.
style
.
position
=
"relative"
,
r
.
style
.
overflow
=
"hidden"
;
var
o
=
r
.
getBoundingClientRect
(),
c
=
r
.
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
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
o
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
o
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
o
.
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-cbd0fe76.
c7d24319
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-cbd0fe76.
ef24e83f
.js
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-cbd0fe76"
],{
1
:
function
(
e
,
t
){},
2
:
function
(
e
,
t
){},
3
:
function
(
e
,
t
){},
3796
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,[
n
(
"input"
,{
ref
:
"excel-upload-input"
,
staticClass
:
"excel-upload-input"
,
attrs
:{
type
:
"file"
,
accept
:
".xlsx, .xls"
},
on
:{
change
:
e
.
handleClick
}}),
e
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"drop"
,
on
:{
drop
:
e
.
handleDrop
,
dragover
:
e
.
handleDragover
,
dragenter
:
e
.
handleDragover
}},[
e
.
_v
(
"
\
n 点击需要上传信息的Excel文件
\
n "
),
n
(
"el-button"
,{
staticStyle
:{
"margin-left"
:
"16px"
},
attrs
:{
loading
:
e
.
loading
,
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
e
.
handleUpload
}},[
e
.
_v
(
"
\
n 上传
\
n "
)]),
e
.
_v
(
" "
),
n
(
"span"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
resultShow
,
expression
:
"resultShow"
}]},[
e
.
_v
(
"
\
n 上传成功
\
n "
)])],
1
)])},
i
=
[],
r
=
(
n
(
"7f7f"
),
n
(
"1146"
)),
o
=
n
.
n
(
r
),
c
=
{
props
:{
beforeUpload
:
Function
,
onSuccess
:
Function
},
data
:
function
(){
return
{
loading
:
!
1
,
resultShow
:
!
1
,
excelData
:{
header
:
null
,
results
:
null
}}},
methods
:{
generateData
:
function
(
e
){
var
t
=
e
.
header
,
n
=
e
.
results
;
this
.
excelData
.
header
=
t
,
this
.
excelData
.
results
=
n
,
this
.
onSuccess
&&
this
.
onSuccess
(
this
.
excelData
)},
handleDrop
:
function
(
e
){
if
(
e
.
stopPropagation
(),
e
.
preventDefault
(),
!
this
.
loading
){
var
t
=
e
.
dataTransfer
.
files
;
if
(
1
===
t
.
length
){
var
n
=
t
[
0
];
if
(
!
this
.
isExcel
(
n
))
return
this
.
$message
.
error
(
"Only supports upload .xlsx, .xls, .csv suffix files"
),
!
1
;
this
.
upload
(
n
),
e
.
stopPropagation
(),
e
.
preventDefault
()}
else
this
.
$message
.
error
(
"Only support uploading one file!"
)}},
handleDragover
:
function
(
e
){
e
.
stopPropagation
(),
e
.
preventDefault
(),
e
.
dataTransfer
.
dropEffect
=
"copy"
},
handleUpload
:
function
(){
this
.
$refs
[
"excel-upload-input"
].
click
()},
handleClick
:
function
(
e
){
var
t
=
e
.
target
.
files
,
n
=
t
[
0
];
n
&&
this
.
upload
(
n
)},
upload
:
function
(
e
){
if
(
this
.
$refs
[
"excel-upload-input"
].
value
=
null
,
this
.
beforeUpload
){
var
t
=
this
.
beforeUpload
(
e
);
t
&&
this
.
readerData
(
e
),
this
.
resultShow
=!
0
}
else
this
.
readerData
(
e
)},
readerData
:
function
(
e
){
var
t
=
this
;
return
this
.
loading
=!
0
,
new
Promise
((
function
(
n
,
a
){
var
i
=
new
FileReader
;
i
.
onload
=
function
(
e
){
var
a
=
e
.
target
.
result
,
i
=
o
.
a
.
read
(
a
,{
type
:
"array"
}),
r
=
i
.
SheetNames
[
0
],
c
=
i
.
Sheets
[
r
],
s
=
t
.
getHeaderRow
(
c
),
u
=
o
.
a
.
utils
.
sheet_to_json
(
c
);
t
.
generateData
({
header
:
s
,
results
:
u
}),
t
.
loading
=!
1
,
n
()},
i
.
readAsArrayBuffer
(
e
)}))},
getHeaderRow
:
function
(
e
){
var
t
,
n
=
[],
a
=
o
.
a
.
utils
.
decode_range
(
e
[
"!ref"
]),
i
=
a
.
s
.
r
;
for
(
t
=
a
.
s
.
c
;
t
<=
a
.
e
.
c
;
++
t
){
var
r
=
e
[
o
.
a
.
utils
.
encode_cell
({
c
:
t
,
r
:
i
})],
c
=
"UNKNOWN "
+
t
;
r
&&
r
.
t
&&
(
c
=
o
.
a
.
utils
.
format_cell
(
r
)),
n
.
push
(
c
)}
return
n
},
isExcel
:
function
(
e
){
return
/
\.(
xlsx|xls|csv
)
$/
.
test
(
e
.
name
)}}},
s
=
c
,
u
=
(
n
(
"b8e5"
),
n
(
"2877"
)),
l
=
Object
(
u
[
"a"
])(
s
,
a
,
i
,
!
1
,
null
,
"80157758"
,
null
);
t
[
"a"
]
=
l
.
exports
},
"6d7b"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-main"
,[
n
(
"el-form"
,{
ref
:
"importDeviceChannel"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"upload-excel-component"
,{
attrs
:{
"on-success"
:
e
.
handleSuccess
,
"before-upload"
:
e
.
beforeUpload
}}),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"确定"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
i
=
[],
r
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"3796"
)),
o
=
n
(
"aa98"
),
c
=
{
components
:{
UploadExcelComponent
:
r
[
"a"
]},
data
:
function
(){
return
{
loading
:
!
1
,
device
:{
selectChannelNums
:[],
channelNums
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[],
seriesId
:
""
,
deptId
:
""
},
rules
:{},
selectSeriesOptions
:[],
tableData
:
""
,
options
:[],
selectDeptParents
:[]}},
mounted
:
function
(){},
methods
:{
beforeUpload
:
function
(
e
){
var
t
=
e
.
size
/
1024
/
1024
<
1
;
return
!!
t
||
(
this
.
$message
({
message
:
"Please do not upload files larger than 1m in size."
,
type
:
"warning"
}),
!
1
)},
handleSuccess
:
function
(
e
){
var
t
=
e
.
results
;
e
.
header
;
this
.
device
.
infos
=
t
},
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
importDeviceChannel
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
o
[
"s"
])(
JSON
.
stringify
(
e
.
device
)).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceStatistical/deviceInfo/DeviceInfoExport"
})},
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
device
.
deptId
=
e
[
t
]}}},
s
=
c
,
u
=
n
(
"2877"
),
l
=
Object
(
u
[
"a"
])(
s
,
a
,
i
,
!
1
,
null
,
"607f3dff"
,
null
);
t
[
"default"
]
=
l
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
D
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
x
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
C
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
S
}));
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
D
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
x
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
C
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
S
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
b486
:
function
(
e
,
t
,
n
){},
b8e5
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"b486"
),
i
=
n
.
n
(
a
);
i
.
a
}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-cbd0fe76"
],{
1
:
function
(
e
,
t
){},
2
:
function
(
e
,
t
){},
3
:
function
(
e
,
t
){},
3796
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,[
n
(
"input"
,{
ref
:
"excel-upload-input"
,
staticClass
:
"excel-upload-input"
,
attrs
:{
type
:
"file"
,
accept
:
".xlsx, .xls"
},
on
:{
change
:
e
.
handleClick
}}),
e
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"drop"
,
on
:{
drop
:
e
.
handleDrop
,
dragover
:
e
.
handleDragover
,
dragenter
:
e
.
handleDragover
}},[
e
.
_v
(
"
\
n 点击需要上传信息的Excel文件
\
n "
),
n
(
"el-button"
,{
staticStyle
:{
"margin-left"
:
"16px"
},
attrs
:{
loading
:
e
.
loading
,
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
e
.
handleUpload
}},[
e
.
_v
(
"
\
n 上传
\
n "
)]),
e
.
_v
(
" "
),
n
(
"span"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
resultShow
,
expression
:
"resultShow"
}]},[
e
.
_v
(
"
\
n 上传成功
\
n "
)])],
1
)])},
i
=
[],
r
=
(
n
(
"7f7f"
),
n
(
"1146"
)),
o
=
n
.
n
(
r
),
c
=
{
props
:{
beforeUpload
:
Function
,
onSuccess
:
Function
},
data
:
function
(){
return
{
loading
:
!
1
,
resultShow
:
!
1
,
excelData
:{
header
:
null
,
results
:
null
}}},
methods
:{
generateData
:
function
(
e
){
var
t
=
e
.
header
,
n
=
e
.
results
;
this
.
excelData
.
header
=
t
,
this
.
excelData
.
results
=
n
,
this
.
onSuccess
&&
this
.
onSuccess
(
this
.
excelData
)},
handleDrop
:
function
(
e
){
if
(
e
.
stopPropagation
(),
e
.
preventDefault
(),
!
this
.
loading
){
var
t
=
e
.
dataTransfer
.
files
;
if
(
1
===
t
.
length
){
var
n
=
t
[
0
];
if
(
!
this
.
isExcel
(
n
))
return
this
.
$message
.
error
(
"Only supports upload .xlsx, .xls, .csv suffix files"
),
!
1
;
this
.
upload
(
n
),
e
.
stopPropagation
(),
e
.
preventDefault
()}
else
this
.
$message
.
error
(
"Only support uploading one file!"
)}},
handleDragover
:
function
(
e
){
e
.
stopPropagation
(),
e
.
preventDefault
(),
e
.
dataTransfer
.
dropEffect
=
"copy"
},
handleUpload
:
function
(){
this
.
$refs
[
"excel-upload-input"
].
click
()},
handleClick
:
function
(
e
){
var
t
=
e
.
target
.
files
,
n
=
t
[
0
];
n
&&
this
.
upload
(
n
)},
upload
:
function
(
e
){
if
(
this
.
$refs
[
"excel-upload-input"
].
value
=
null
,
this
.
beforeUpload
){
var
t
=
this
.
beforeUpload
(
e
);
t
&&
this
.
readerData
(
e
),
this
.
resultShow
=!
0
}
else
this
.
readerData
(
e
)},
readerData
:
function
(
e
){
var
t
=
this
;
return
this
.
loading
=!
0
,
new
Promise
((
function
(
n
,
a
){
var
i
=
new
FileReader
;
i
.
onload
=
function
(
e
){
var
a
=
e
.
target
.
result
,
i
=
o
.
a
.
read
(
a
,{
type
:
"array"
}),
r
=
i
.
SheetNames
[
0
],
c
=
i
.
Sheets
[
r
],
s
=
t
.
getHeaderRow
(
c
),
u
=
o
.
a
.
utils
.
sheet_to_json
(
c
);
t
.
generateData
({
header
:
s
,
results
:
u
}),
t
.
loading
=!
1
,
n
()},
i
.
readAsArrayBuffer
(
e
)}))},
getHeaderRow
:
function
(
e
){
var
t
,
n
=
[],
a
=
o
.
a
.
utils
.
decode_range
(
e
[
"!ref"
]),
i
=
a
.
s
.
r
;
for
(
t
=
a
.
s
.
c
;
t
<=
a
.
e
.
c
;
++
t
){
var
r
=
e
[
o
.
a
.
utils
.
encode_cell
({
c
:
t
,
r
:
i
})],
c
=
"UNKNOWN "
+
t
;
r
&&
r
.
t
&&
(
c
=
o
.
a
.
utils
.
format_cell
(
r
)),
n
.
push
(
c
)}
return
n
},
isExcel
:
function
(
e
){
return
/
\.(
xlsx|xls|csv
)
$/
.
test
(
e
.
name
)}}},
s
=
c
,
u
=
(
n
(
"b8e5"
),
n
(
"2877"
)),
l
=
Object
(
u
[
"a"
])(
s
,
a
,
i
,
!
1
,
null
,
"80157758"
,
null
);
t
[
"a"
]
=
l
.
exports
},
"6d7b"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-main"
,[
n
(
"el-form"
,{
ref
:
"importDeviceChannel"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"upload-excel-component"
,{
attrs
:{
"on-success"
:
e
.
handleSuccess
,
"before-upload"
:
e
.
beforeUpload
}}),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"确定"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
i
=
[],
r
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"3796"
)),
o
=
n
(
"aa98"
),
c
=
{
components
:{
UploadExcelComponent
:
r
[
"a"
]},
data
:
function
(){
return
{
loading
:
!
1
,
device
:{
selectChannelNums
:[],
channelNums
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[],
seriesId
:
""
,
deptId
:
""
},
rules
:{},
selectSeriesOptions
:[],
tableData
:
""
,
options
:[],
selectDeptParents
:[]}},
mounted
:
function
(){},
methods
:{
beforeUpload
:
function
(
e
){
var
t
=
e
.
size
/
1024
/
1024
<
1
;
return
!!
t
||
(
this
.
$message
({
message
:
"Please do not upload files larger than 1m in size."
,
type
:
"warning"
}),
!
1
)},
handleSuccess
:
function
(
e
){
var
t
=
e
.
results
;
e
.
header
;
this
.
device
.
infos
=
t
},
setDefault
:
function
(){
this
.
$refs
.
device
=
[]},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
importDeviceChannel
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
o
[
"s"
])(
JSON
.
stringify
(
e
.
device
)).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceStatistical/deviceInfo/DeviceInfoExport"
})},
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
device
.
deptId
=
e
[
t
]}}},
s
=
c
,
u
=
n
(
"2877"
),
l
=
Object
(
u
[
"a"
])(
s
,
a
,
i
,
!
1
,
null
,
"607f3dff"
,
null
);
t
[
"default"
]
=
l
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
D
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
x
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
j
}));
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
r
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
g
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
D
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
x
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
S
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
j
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
b486
:
function
(
e
,
t
,
n
){},
b8e5
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"b486"
),
i
=
n
.
n
(
a
);
i
.
a
}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e20529e6.
265af98f
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e20529e6.
f6f80293
.js
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-e20529e6"
],{
4983
:
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-main"
,[
n
(
"el-form"
,{
ref
:
"editSeries"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesId"
,
label
:
"所属系列"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
device
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"seriesId"
,
t
)},
expression
:
"device.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
r
=
[],
c
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
a
=
n
(
"7d09"
),
o
=
n
(
"aa98"
),
u
=
{
seriesId
:
"选择系列"
,
imeis
:
"要选择设备"
},
d
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
n
(
new
Error
(
u
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
device
:{
seriesIdList
:[],
imeis
:[]},
rules
:{
seriesId
:[{
validator
:
e
}],
imeis
:[{
validator
:
e
}]},
selectSeriesOptions
:[]}},
mounted
:
function
(){
this
.
device
.
imeis
=
this
.
$route
.
query
.
imeis
,
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
c
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
this
.
selectSeries
();
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
editSeries
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
editSeries
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
o
[
"o"
])(
e
.
device
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
i
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
i
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
})},
selectSeries
:
function
(){
var
e
=
Object
(
c
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
a
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
device
.
deptId
=
e
[
t
]}}},
s
=
d
,
l
=
n
(
"2877"
),
p
=
Object
(
l
[
"a"
])(
s
,
i
,
r
,
!
1
,
null
,
"d29db6dc"
,
null
);
t
[
"default"
]
=
p
.
exports
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
u
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
C
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
b
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
j
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
O
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
C
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-e20529e6"
],{
4983
:
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-main"
,[
n
(
"el-form"
,{
ref
:
"editSeries"
,
attrs
:{
model
:
e
.
device
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"seriesId"
,
label
:
"所属系列"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
device
.
seriesId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
device
,
"seriesId"
,
t
)},
expression
:
"device.seriesId"
}},
e
.
_l
(
e
.
selectSeriesOptions
,(
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
seriesId
,
attrs
:{
label
:
e
.
seriesNum
,
value
:
e
.
seriesId
}})})),
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
toDeviceList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
r
=
[],
c
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
a
=
n
(
"7d09"
),
o
=
n
(
"aa98"
),
u
=
{
seriesId
:
"选择系列"
,
imeis
:
"要选择设备"
},
d
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
n
(
new
Error
(
u
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
device
:{
seriesIdList
:[],
imeis
:[]},
rules
:{
seriesId
:[{
validator
:
e
}],
imeis
:[{
validator
:
e
}]},
selectSeriesOptions
:[]}},
mounted
:
function
(){
this
.
device
.
imeis
=
this
.
$route
.
query
.
imeis
,
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
c
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
this
.
selectSeries
();
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
editSeries
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
editSeries
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
o
[
"o"
])(
e
.
device
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toDeviceList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
i
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
i
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeviceList
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
})},
selectSeries
:
function
(){
var
e
=
Object
(
c
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
=
this
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
Object
(
a
[
"d"
])().
then
((
function
(
e
){
var
n
=
e
.
data
;
t
.
selectSeriesOptions
=
n
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
device
.
deptId
=
e
[
t
]}}},
s
=
d
,
l
=
n
(
"2877"
),
p
=
Object
(
l
[
"a"
])(
s
,
i
,
r
,
!
1
,
null
,
"d29db6dc"
,
null
);
t
[
"default"
]
=
p
.
exports
},
"7d09"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"e"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
u
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesNum
:
e
.
seriesNum
}})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/edit"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
j
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
O
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
C
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
b
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
j
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
O
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
C
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-feef4472.0f47d1b3.js
deleted
100644 → 0
View file @
86d2bd54
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-feef4472"
],{
"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
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
w
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
O
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
m
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
O
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
beec
:
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"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
exportDevice
}},[
e
.
_v
(
"导入"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
download
}},[
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
:
"名字"
,
prop
:
"name"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
,
prop
:
"status"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
status
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"statusFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"更新时间"
,
prop
:
"updateTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
updateTime
;
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
(
"28a5"
),
n
(
"333d"
)),
r
=
n
(
"c7a7"
),
c
=
n
(
"ed08"
),
l
=
n
(
"aa98"
),
u
=
n
(
"5f87"
),
s
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
r
[
"a"
]},
filters
:{
statusFilter
:
function
(
e
){
return
0
===
e
?
"正在导出中"
:
1
===
e
?
"成功"
:
-
1
===
e
?
"失败"
:
void
0
},
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
:[],
selectSeriesOptions
:[]}},
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
:{
download
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>=
2
){
var
e
=
"只能单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
{
var
t
=
this
.
multipleSelection
[
0
],
n
=
t
.
filepath
.
split
(
"/"
),
i
=
n
.
length
-
2
,
a
=
t
.
filepath
.
substring
(
t
.
filepath
.
lastIndexOf
(
"/"
)
+
1
,
t
.
filepath
.
length
),
o
=
""
.
concat
(
"http://server.cneeds.com.cn:9000"
)
+
"/deviceFile/deviceFileDownload/"
+
n
[
i
]
+
"/"
+
a
,
r
=
new
XMLHttpRequest
;
r
.
open
(
"GET"
,
o
,
!
0
),
r
.
setRequestHeader
(
"Authorization"
,
Object
(
u
[
"a"
])()),
r
.
responseType
=
"blob"
,
r
.
onload
=
function
(){
if
(
200
===
this
.
status
){
var
e
=
this
.
response
;
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
navigator
.
msSaveBlob
(
e
,
a
);
else
{
var
t
=
document
.
createElement
(
"a"
),
n
=
window
.
URL
?
window
.
URL
.
createObjectURL
(
e
):
window
.
webkitURL
.
createObjectURL
(
e
);
t
.
href
=
n
,
t
.
download
=
a
,
document
.
body
.
appendChild
(
t
),
t
.
click
(),
window
.
URL
.
revokeObjectURL
(
n
)}
this
.
refresh
()}},
r
.
send
()}
else
{
var
c
=
"一定要选择一个,如果没得选择请先导入"
;
this
.
$message
({
message
:
c
,
type
:
"error"
})}},
exportDevice
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceStatistical/deviceInfo/DeviceInfoExportUploadExcel"
})},
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
[
"g"
])(
this
.
listQuery
).
then
((
function
(
t
){
var
n
=
t
.
data
,
i
=
n
.
list
,
a
=
n
.
totalCount
;
e
.
list
=
i
,
e
.
total
=
a
,
e
.
listLoading
=!
1
}))},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceStatistical/deviceInfo/DeviceInfoExport"
,
query
:
this
.
listQuery
})},
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
,
"18078240"
,
null
);
t
[
"default"
]
=
h
.
exports
},
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-feef4472.a6abc868.js
0 → 100644
View file @
73badf61
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-feef4472"
],{
"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
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"q"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"r"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"s"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
w
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
S
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
O
}));
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
,
seriesId
:
e
.
seriesId
,
imei
:
e
.
imei
}})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceInfoExport/uploadDeviceInfoExport"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/channel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
channelNum
:
e
.
channelNum
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
m
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
w
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:
e
})}
function
S
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
O
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
beec
:
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"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
exportDevice
}},[
e
.
_v
(
"导入"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
download
}},[
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
:
"名字"
,
prop
:
"name"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
,
prop
:
"status"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
status
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"statusFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"更新时间"
,
prop
:
"updateTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
updateTime
;
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
(
"28a5"
),
n
(
"333d"
)),
r
=
n
(
"c7a7"
),
c
=
n
(
"ed08"
),
l
=
n
(
"aa98"
),
u
=
n
(
"5f87"
),
s
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
r
[
"a"
]},
filters
:{
statusFilter
:
function
(
e
){
return
0
===
e
?
"正在导出中"
:
1
===
e
?
"成功"
:
-
1
===
e
?
"失败"
:
void
0
},
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
:[],
selectSeriesOptions
:[]}},
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
:{
download
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>=
2
){
var
e
=
"只能单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
{
var
t
=
this
.
multipleSelection
[
0
],
n
=
t
.
filepath
.
split
(
"/"
),
i
=
n
.
length
-
2
,
a
=
t
.
filepath
.
substring
(
t
.
filepath
.
lastIndexOf
(
"/"
)
+
1
,
t
.
filepath
.
length
),
o
=
""
.
concat
(
"http://server.cneeds.com.cn:9000"
)
+
"/deviceFile/deviceFileDownload/"
+
n
[
i
]
+
"/"
+
a
,
r
=
new
XMLHttpRequest
;
r
.
open
(
"GET"
,
o
,
!
0
),
r
.
setRequestHeader
(
"Authorization"
,
Object
(
u
[
"a"
])()),
r
.
responseType
=
"blob"
,
r
.
onload
=
function
(){
if
(
200
===
this
.
status
){
var
e
=
this
.
response
;
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
navigator
.
msSaveBlob
(
e
,
a
);
else
{
var
t
=
document
.
createElement
(
"a"
),
n
=
window
.
URL
?
window
.
URL
.
createObjectURL
(
e
):
window
.
webkitURL
.
createObjectURL
(
e
);
t
.
href
=
n
,
t
.
download
=
a
,
document
.
body
.
appendChild
(
t
),
t
.
click
(),
window
.
URL
.
revokeObjectURL
(
n
)}
this
.
refresh
()}},
r
.
send
()}
else
{
var
c
=
"一定要选择一个,如果没得选择请先导入"
;
this
.
$message
({
message
:
c
,
type
:
"error"
})}},
exportDevice
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceStatistical/deviceInfo/DeviceInfoExportUploadExcel"
})},
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
[
"g"
])(
this
.
listQuery
).
then
((
function
(
t
){
var
n
=
t
.
data
,
i
=
n
.
list
,
a
=
n
.
totalCount
;
e
.
list
=
i
,
e
.
total
=
a
,
e
.
listLoading
=!
1
}))},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceStatistical/deviceInfo/DeviceInfoExport"
,
query
:
this
.
listQuery
})},
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
,
"18078240"
,
null
);
t
[
"default"
]
=
h
.
exports
},
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-user/pom.xml
View file @
73badf61
...
...
@@ -46,20 +46,27 @@
<version>
${mysql.version}
</version>
</dependency>
<!--
方便等会写
单元测试 -->
<!-- 单元测试 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<!-- 单元测试,我们采用 H2 作为数据库 -->
<dependency>
<groupId>
com.h2database
</groupId>
<!-- 单元测试,我们采用 H2 作为数据库 -->
<groupId>
com.h2database
</groupId>
<artifactId>
h2
</artifactId>
<scope>
test
</scope>
</dependency>
<!-- 数据库版本 Liquibase 依赖 -->
<dependency>
<groupId>
org.liquibase
</groupId>
<artifactId>
liquibase-core
</artifactId>
</dependency>
<!-- mqtt integration -->
<dependency>
<groupId>
org.springframework.integration
</groupId>
<artifactId>
spring-integration-mqtt
</artifactId>
...
...
cneeds-server-user/src/main/resources/application-dev.yml
View file @
73badf61
...
...
@@ -42,6 +42,12 @@ spring:
# wall:
# config:
# multi-statement-allow: true
liquibase
:
enabled
:
true
# 开启 Liquibase 功能。默认为 true 。
change-log
:
classpath:/db/changelog/db_changelog_master.yaml
# Liquibase 配置文件地址
url
:
jdbc:mysql://192.168.2.244:3306/cneeds_server?useUnicode=true&characterEncoding=UTF-8&useSSL=false
# 数据库地址
user
:
root
# 数据库账号
password
:
cneeds!QAZ1qaz
# 数据库密码
mqtt
:
username
:
admin
password
:
public
...
...
cneeds-server-user/src/main/resources/application-prod.yml
View file @
73badf61
...
...
@@ -4,6 +4,12 @@ spring:
url
:
jdbc:mysql://127.0.0.1:3306/cneeds_server?useUnicode=true&characterEncoding=UTF-8&useSSL=false
password
:
cneeds!QAZ1qaz
username
:
root
liquibase
:
enabled
:
true
# 开启 Liquibase 功能。默认为 true 。
change-log
:
classpath:db/changelog/db_changelog_master.yaml
# Liquibase 配置文件地址
url
:
jdbc:mysql://127.0.0.1:3306/cneeds_server?useUnicode=true&characterEncoding=UTF-8&useSSL=false
# 数据库地址
user
:
root
# 数据库账号
password
:
cneeds!QAZ1qaz
# 数据库密码
mqtt
:
username
:
admin
password
:
public
...
...
cneeds-server-user/src/main/resources/db/changelog/db_changelog_master.yaml
0 → 100644
View file @
73badf61
databaseChangeLog
:
-
changeSet
:
# 对应一个 ChangeSet 对象
id
:
0
# ChangeSet 编号
author
:
zzr
# 作者
comments
:
frist init
# 备注
-
changeSet
:
id
:
1
author
:
zzr
comments
:
修改权限表信息
changes
:
-
sqlFile
:
encoding
:
utf8
path
:
classpath:/db/sql/changeSet_1.sql
-
changeSet
:
id
:
2
author
:
zzr
comments
:
修改权限表信息
changes
:
-
sqlFile
:
encoding
:
utf8
path
:
classpath:/db/sql/changeSet_2.sql
\ No newline at end of file
cneeds-server-user/src/main/resources/db/sql/changeSet_1.sql
0 → 100644
View file @
73badf61
delete
from
`sys_func`
;
delete
from
`sys_role_func`
;
delete
from
`sys_user_func`
;
INSERT
INTO
`sys_func`
VALUES
(
1
,
0
,
'系统管理'
,
NULL
,
'sys'
,
0
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
2
,
1
,
'用户管理'
,
'modules/sys/user.html'
,
'sys:module:list'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
3
,
1
,
'角色管理'
,
'modules/sys/role.html'
,
'sys:role:list'
,
1
,
2
);
INSERT
INTO
`sys_func`
VALUES
(
4
,
1
,
'菜单管理'
,
'modules/sys/menu.html'
,
'sys:module:list'
,
1
,
3
);
INSERT
INTO
`sys_func`
VALUES
(
15
,
2
,
'查看'
,
NULL
,
'sys:user:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
16
,
2
,
'新增'
,
NULL
,
'sys:user:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
17
,
2
,
'修改'
,
NULL
,
'sys:user:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
18
,
2
,
'删除'
,
NULL
,
'sys:user:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
19
,
3
,
'查看'
,
NULL
,
'sys:role:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
20
,
3
,
'新增'
,
NULL
,
'sys:role:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
21
,
3
,
'修改'
,
NULL
,
'sys:role:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
22
,
3
,
'删除'
,
NULL
,
'sys:role:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
23
,
4
,
'查看'
,
NULL
,
'sys:module:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
31
,
1
,
'部门管理'
,
'modules/sys/dept.html'
,
'sys:dept:list'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
32
,
31
,
'查看'
,
NULL
,
'sys:dept:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
33
,
31
,
'新增'
,
NULL
,
'sys:dept:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
34
,
31
,
'修改'
,
NULL
,
'sys:dept:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
35
,
31
,
'删除'
,
NULL
,
'sys:dept:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
36
,
0
,
'配置管理'
,
NULL
,
'configManagement'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
37
,
36
,
'产品系列管理'
,
NULL
,
'configManagement:productSeries'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
38
,
37
,
'查询产品系列'
,
NULL
,
'configManagement:productSeries:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
39
,
37
,
'添加产品系列'
,
NULL
,
'configManagement:productSeries:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
40
,
37
,
'修改产品系列'
,
NULL
,
'configManagement:productSeries:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
41
,
37
,
'删除产品系列'
,
NULL
,
'configManagement:productSeries:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
42
,
36
,
'渠道号管理'
,
NULL
,
'configManagement:deviceChannel'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
43
,
42
,
'查询渠道号'
,
NULL
,
'configManagement:deviceChannel:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
44
,
42
,
'添加渠道号'
,
NULL
,
'configManagement:deviceChannel:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
45
,
42
,
'修改渠道号'
,
NULL
,
'configManagement:deviceChannel:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
46
,
42
,
'删除渠道号'
,
NULL
,
'configManagement:deviceChannel:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
47
,
0
,
'设备管理'
,
NULL
,
'deviceManagement'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
48
,
47
,
'设备控制'
,
NULL
,
'deviceManagement:device'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
49
,
48
,
'查询设备'
,
NULL
,
'deviceManagement:device:list'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
50
,
48
,
'导入设备,批量导入,批量配置'
,
NULL
,
'deviceManagement:device:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
51
,
48
,
'适配配置'
,
NULL
,
'deviceManagement:device:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
52
,
48
,
'删除设备'
,
NULL
,
'deviceManagement:device:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
53
,
47
,
'设备渠道号统计,设备渠道号管理'
,
NULL
,
'deviceManagement:deviceChannel'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
54
,
53
,
'查询设备渠道号统计,设备渠道号管理'
,
NULL
,
'deviceManagement:deviceChannel:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
55
,
0
,
'远程日志'
,
NULL
,
'remotelog'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
56
,
0
,
'日志列表'
,
NULL
,
'remotelog:logfile'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
57
,
0
,
'查询日志'
,
NULL
,
'remotelog:logfile:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
58
,
46
,
'修改日志'
,
NULL
,
'remotelog:logfile:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
59
,
46
,
'删除日志'
,
NULL
,
'remotelog:logfile:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
60
,
46
,
'设备控制'
,
NULL
,
'remotelog:controlDevice'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
61
,
46
,
'查询状态'
,
NULL
,
'remotelog:controlDevice:list'
,
2
,
0
);
cneeds-server-user/src/main/resources/db/sql/changeSet_2.sql
0 → 100644
View file @
73badf61
delete
from
`sys_func`
where
func_id
=
38
;
INSERT
INTO
`sys_func`
VALUES
(
62
,
0
,
'设备统计'
,
NULL
,
'deviceStatistical'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
63
,
62
,
'设备信息'
,
NULL
,
'deviceStatistical:deviceInfo'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
64
,
63
,
'查询设备信息'
,
NULL
,
'deviceStatistical:deviceInfo:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
65
,
62
,
'设备信息导出'
,
NULL
,
'deviceStatistical:deviceInfoExport'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
66
,
62
,
'查询设备信息导出(默认拥有下载导出权限)'
,
NULL
,
'deviceStatistical:deviceInfoExport:list'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
67
,
53
,
'修改设备渠道号管理'
,
NULL
,
'deviceManagement:deviceChannel:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
68
,
53
,
'删除设备渠道号管理、设备渠道号统计'
,
NULL
,
'deviceManagement:deviceChannel:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
38
,
37
,
'查询产品系列'
,
NULL
,
'configManagement:productSeries:list'
,
2
,
0
);
cneeds-server-user/src/test/resources/application.yml
View file @
73badf61
...
...
@@ -5,6 +5,13 @@ spring:
driver-class-name
:
org.h2.Driver
username
:
sa
password
:
liquibase
:
enabled
:
true
# 开启 Liquibase 功能。默认为 true 。
change-log
:
classpath:/db/changelog/db_changelog_master.yaml
# Liquibase 配置文件地址
url
:
jdbc:h2:mem:testdb
# 数据库地址
user
:
sa
# 数据库账号
password
:
# 数据库密码
mqtt
:
username
:
admin
...
...
cneeds-server-user/src/test/resources/db/changelog/db_changelog_master.yaml
0 → 100644
View file @
73badf61
databaseChangeLog
:
-
changeSet
:
# 对应一个 ChangeSet 对象
id
:
0
# ChangeSet 编号
author
:
zzr
# 作者
comments
:
frist init
# 备注
changes
:
-
sqlFile
:
encoding
:
utf8
path
:
classpath:/db/sql/cneeds_server.sql
-
changeSet
:
id
:
1
author
:
zzr
comments
:
修改权限表信息
changes
:
-
sqlFile
:
encoding
:
utf8
path
:
classpath:/db/sql/changeSet_1.sql
-
changeSet
:
id
:
2
author
:
zzr
comments
:
修改权限表信息
changes
:
-
sqlFile
:
encoding
:
utf8
path
:
classpath:/db/sql/changeSet_2.sql
\ No newline at end of file
cneeds-server-user/src/test/resources/db/sql/changeSet_1.sql
0 → 100644
View file @
73badf61
delete
from
`sys_func`
;
delete
from
`sys_role_func`
;
delete
from
`sys_user_func`
;
INSERT
INTO
`sys_func`
VALUES
(
1
,
0
,
'系统管理'
,
NULL
,
'sys'
,
0
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
2
,
1
,
'用户管理'
,
'modules/sys/user.html'
,
'sys:module:list'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
3
,
1
,
'角色管理'
,
'modules/sys/role.html'
,
'sys:role:list'
,
1
,
2
);
INSERT
INTO
`sys_func`
VALUES
(
4
,
1
,
'菜单管理'
,
'modules/sys/menu.html'
,
'sys:module:list'
,
1
,
3
);
INSERT
INTO
`sys_func`
VALUES
(
15
,
2
,
'查看'
,
NULL
,
'sys:user:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
16
,
2
,
'新增'
,
NULL
,
'sys:user:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
17
,
2
,
'修改'
,
NULL
,
'sys:user:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
18
,
2
,
'删除'
,
NULL
,
'sys:user:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
19
,
3
,
'查看'
,
NULL
,
'sys:role:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
20
,
3
,
'新增'
,
NULL
,
'sys:role:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
21
,
3
,
'修改'
,
NULL
,
'sys:role:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
22
,
3
,
'删除'
,
NULL
,
'sys:role:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
23
,
4
,
'查看'
,
NULL
,
'sys:module:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
31
,
1
,
'部门管理'
,
'modules/sys/dept.html'
,
'sys:dept:list'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
32
,
31
,
'查看'
,
NULL
,
'sys:dept:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
33
,
31
,
'新增'
,
NULL
,
'sys:dept:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
34
,
31
,
'修改'
,
NULL
,
'sys:dept:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
35
,
31
,
'删除'
,
NULL
,
'sys:dept:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
36
,
0
,
'配置管理'
,
NULL
,
'configManagement'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
37
,
36
,
'产品系列管理'
,
NULL
,
'configManagement:productSeries'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
38
,
37
,
'查询产品系列'
,
NULL
,
'configManagement:productSeries:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
39
,
37
,
'添加产品系列'
,
NULL
,
'configManagement:productSeries:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
40
,
37
,
'修改产品系列'
,
NULL
,
'configManagement:productSeries:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
41
,
37
,
'删除产品系列'
,
NULL
,
'configManagement:productSeries:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
42
,
36
,
'渠道号管理'
,
NULL
,
'configManagement:deviceChannel'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
43
,
42
,
'查询渠道号'
,
NULL
,
'configManagement:deviceChannel:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
44
,
42
,
'添加渠道号'
,
NULL
,
'configManagement:deviceChannel:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
45
,
42
,
'修改渠道号'
,
NULL
,
'configManagement:deviceChannel:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
46
,
42
,
'删除渠道号'
,
NULL
,
'configManagement:deviceChannel:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
47
,
0
,
'设备管理'
,
NULL
,
'deviceManagement'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
48
,
47
,
'设备控制'
,
NULL
,
'deviceManagement:device'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
49
,
48
,
'查询设备'
,
NULL
,
'deviceManagement:device:list'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
50
,
48
,
'导入设备,批量导入,批量配置'
,
NULL
,
'deviceManagement:device:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
51
,
48
,
'适配配置'
,
NULL
,
'deviceManagement:device:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
52
,
48
,
'删除设备'
,
NULL
,
'deviceManagement:device:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
53
,
47
,
'设备渠道号统计,设备渠道号管理'
,
NULL
,
'deviceManagement:deviceChannel'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
54
,
53
,
'查询设备渠道号统计,设备渠道号管理'
,
NULL
,
'deviceManagement:deviceChannel:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
55
,
0
,
'远程日志'
,
NULL
,
'remotelog'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
56
,
0
,
'日志列表'
,
NULL
,
'remotelog:logfile'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
57
,
0
,
'查询日志'
,
NULL
,
'remotelog:logfile:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
58
,
46
,
'修改日志'
,
NULL
,
'remotelog:logfile:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
59
,
46
,
'删除日志'
,
NULL
,
'remotelog:logfile:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
60
,
46
,
'设备控制'
,
NULL
,
'remotelog:controlDevice'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
61
,
46
,
'查询状态'
,
NULL
,
'remotelog:controlDevice:list'
,
2
,
0
);
cneeds-server-user/src/test/resources/db/sql/changeSet_2.sql
0 → 100644
View file @
73badf61
delete
from
`sys_func`
where
func_id
=
38
;
INSERT
INTO
`sys_func`
VALUES
(
62
,
0
,
'设备统计'
,
NULL
,
'deviceStatistical'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
63
,
62
,
'设备信息'
,
NULL
,
'deviceStatistical:deviceInfo'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
64
,
63
,
'查询设备信息'
,
NULL
,
'deviceStatistical:deviceInfo:list'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
65
,
62
,
'设备信息导出'
,
NULL
,
'deviceStatistical:deviceInfoExport'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
66
,
62
,
'查询设备信息导出(默认拥有下载导出权限)'
,
NULL
,
'deviceStatistical:deviceInfoExport:list'
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
67
,
53
,
'修改设备渠道号管理'
,
NULL
,
'deviceManagement:deviceChannel:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
68
,
53
,
'删除设备渠道号管理、设备渠道号统计'
,
NULL
,
'deviceManagement:deviceChannel:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
38
,
37
,
'查询产品系列'
,
NULL
,
'configManagement:productSeries:list'
,
2
,
0
);
cneeds-server-user/src/test/resources/db/sql/cneeds_server.sql
0 → 100644
View file @
73badf61
/*
Navicat Premium Data Transfer
Source Server : linux_testmysql
Source Server Type : MySQL
Source Server Version : 50726
Source Host : 192.168.2.244:3306
Source Schema : cneeds_server
Target Server Type : MySQL
Target Server Version : 50726
File Encoding : 65001
Date: 18/03/2020 15:13:38
*/
-- ----------------------------
-- Table structure for device_info
-- 设备信息表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`device_info`
;
CREATE
TABLE
`device_info`
(
`device_id`
int
AUTO_INCREMENT
PRIMARY
KEY
,
`dept_id`
int
,
`imei`
varchar
,
`iccid`
varchar
,
`status`
varchar
,
`device_version`
varchar
,
`product_set`
varchar
,
`create_time`
datetime
,
`active_time`
datetime
,
`channel_nums`
varchar
,
`channel_nums_message`
varchar
,
`channel_rules`
int
);
-- ----------------------------
-- Table structure for device_log
-- 设备日志表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`device_log`
;
CREATE
TABLE
`device_log`
(
`log_id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`log_name`
varchar
,
`create_time`
datetime
,
`device_id`
int
,
`status`
int
,
`create_username`
varchar
,
`user_id`
int
,
`repetition_steps`
varchar
,
`logfile_url`
varchar
,
`logfile_size`
int
,
`logfile_status`
int
,
`log_accept_id`
varchar
)
;
-- ----------------------------
-- Table structure for device_logmedia
-- 设备日志音频文件表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`device_logmedia`
;
CREATE
TABLE
`device_logmedia`
(
`logmedia_id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`location_url`
varchar
,
`log_id`
int
,
`type`
varchar
,
`file_size`
int
)
;
-- ----------------------------
-- Table structure for device_logsetting
-- 暂时用不上,设备日志设置信息表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`device_logsetting`
;
CREATE
TABLE
`device_logsetting`
(
`logsetting_id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`log_size`
int
,
`device_id`
int
)
;
-- ----------------------------
-- Table structure for product_series
-- 设备产品系列表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`product_series`
;
CREATE
TABLE
`product_series`
(
`series_id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`series_num`
varchar
,
`remark`
varchar
,
`create_time`
datetime
)
;
-- ----------------------------
-- Table structure for sys_dept
-- 系统-部门(客户)表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sys_dept`
;
CREATE
TABLE
`sys_dept`
(
`dept_id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`parent_id`
int
,
`name`
varchar
,
`del_flag`
int
,
`distributor_num`
varchar
,
`remark`
varchar
)
;
-- ----------------------------
-- Records of sys_dept
-- ----------------------------
INSERT
INTO
`sys_dept`
VALUES
(
0
,
NULL
,
'根'
,
0
,
NULL
,
NULL
);
INSERT
INTO
`sys_dept`
VALUES
(
1
,
0
,
'美行集团'
,
0
,
NULL
,
NULL
);
INSERT
INTO
`sys_dept`
VALUES
(
2
,
1
,
'长沙分公司'
,
0
,
NULL
,
NULL
);
INSERT
INTO
`sys_dept`
VALUES
(
3
,
1
,
'上海分公司'
,
0
,
NULL
,
NULL
);
INSERT
INTO
`sys_dept`
VALUES
(
4
,
3
,
'技术部'
,
0
,
NULL
,
NULL
);
INSERT
INTO
`sys_dept`
VALUES
(
5
,
3
,
'销售部'
,
0
,
NULL
,
NULL
);
-- ----------------------------
-- Table structure for sys_func
-- 系统 - 功能表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sys_func`
;
CREATE
TABLE
`sys_func`
(
`func_id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`parent_id`
int
,
`name`
varchar
,
`url`
varchar
,
`perms`
varchar
,
`type`
int
,
`order_num`
int
)
;
-- ----------------------------
-- Records of sys_func
-- ----------------------------
INSERT
INTO
`sys_func`
VALUES
(
1
,
0
,
'系统管理'
,
NULL
,
NULL
,
0
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
2
,
1
,
'用户管理'
,
'modules/sys/user.html'
,
NULL
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
3
,
1
,
'角色管理'
,
'modules/sys/role.html'
,
NULL
,
1
,
2
);
INSERT
INTO
`sys_func`
VALUES
(
4
,
1
,
'菜单管理'
,
'modules/sys/menu.html'
,
NULL
,
1
,
3
);
INSERT
INTO
`sys_func`
VALUES
(
15
,
2
,
'查看'
,
NULL
,
'sys:user:list,sys:user:info'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
16
,
2
,
'新增'
,
NULL
,
'sys:user:save,sys:role:select'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
17
,
2
,
'修改'
,
NULL
,
'sys:user:update,sys:role:select'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
18
,
2
,
'删除'
,
NULL
,
'sys:user:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
19
,
3
,
'查看'
,
NULL
,
'sys:role:list,sys:role:info'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
20
,
3
,
'新增'
,
NULL
,
'sys:role:save,sys:menu:perms'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
21
,
3
,
'修改'
,
NULL
,
'sys:role:update,sys:menu:perms'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
22
,
3
,
'删除'
,
NULL
,
'sys:role:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
23
,
4
,
'查看'
,
NULL
,
'sys:menu:list,sys:menu:info'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
24
,
4
,
'新增'
,
NULL
,
'sys:menu:save,sys:menu:select'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
25
,
4
,
'修改'
,
NULL
,
'sys:menu:update,sys:menu:select'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
26
,
4
,
'删除'
,
NULL
,
'sys:menu:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
31
,
1
,
'部门管理'
,
'modules/sys/dept.html'
,
NULL
,
1
,
1
);
INSERT
INTO
`sys_func`
VALUES
(
32
,
31
,
'查看'
,
NULL
,
'sys:dept:list,sys:dept:info'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
33
,
31
,
'新增'
,
NULL
,
'sys:dept:save,sys:dept:select'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
34
,
31
,
'修改'
,
NULL
,
'sys:dept:update,sys:dept:select'
,
2
,
0
);
INSERT
INTO
`sys_func`
VALUES
(
35
,
31
,
'删除'
,
NULL
,
'sys:dept:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
36
,
1
,
'产品系列管理'
,
NULL
,
'configManagement:productSeries:list'
,
1
,
1
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
37
,
36
,
'添加产品系列'
,
NULL
,
'configManagement:productSeries:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
38
,
36
,
'修改产品系列'
,
NULL
,
'configManagement:productSeries:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
39
,
1
,
'渠道号管理'
,
NULL
,
'configManagement:deviceChannel:list'
,
1
,
2
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
40
,
39
,
'添加渠道号'
,
NULL
,
'configManagement:deviceChannel:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
41
,
39
,
'修改渠道号'
,
NULL
,
'configManagement:deviceChannel:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
42
,
1
,
'设备控制,设备渠道号统计'
,
NULL
,
'deviceManagement:device:list'
,
1
,
1
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
43
,
42
,
'导入设备'
,
NULL
,
'deviceManagement:device:add'
,
2
,
0
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
44
,
42
,
'变更产品系列,适配配置,批量配置'
,
NULL
,
'deviceManagement:device:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
46
,
1
,
'日志列表'
,
NULL
,
'remotelog:logfile:list'
,
1
,
1
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
47
,
36
,
'删除产品系列'
,
NULL
,
'configManagement:productSeries:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
48
,
42
,
'删除设备'
,
NULL
,
'deviceManagement:device:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
49
,
39
,
'删除渠道号'
,
NULL
,
'configManagement:deviceChannel:delete'
,
2
,
0
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
50
,
46
,
'修改日志'
,
NULL
,
'remotelog:logfile:edit'
,
2
,
0
);
INSERT
INTO
`sys_func`
(
`func_id`
,
`parent_id`
,
`name`
,
`url`
,
`perms`
,
`type`
,
`order_num`
)
VALUES
(
51
,
46
,
'删除日志'
,
NULL
,
'remotelog:logfile:delete'
,
2
,
0
);
-- ----------------------------
-- Table structure for sys_role
-- 系统 - 角色表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sys_role`
;
CREATE
TABLE
`sys_role`
(
`role_id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`role_name`
varchar
,
`remark`
varchar
,
`dept_id`
int
,
`create_time`
datetime
)
;
-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT
INTO
`sys_role`
VALUES
(
1
,
'管理员'
,
'描述'
,
1
,
'2020-03-10 12:06:37'
);
INSERT
INTO
`sys_role`
VALUES
(
26
,
'zzzzzzzzzz'
,
'zzzzzzzzzzzzzzz'
,
0
,
'2020-03-13 04:51:20'
);
-- ----------------------------
-- Table structure for sys_role_dept
-- 系统 - 角色部门关系表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sys_role_dept`
;
CREATE
TABLE
`sys_role_dept`
(
`id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`role_id`
int
,
`dept_id`
int
)
;
-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------
INSERT
INTO
`sys_role_dept`
VALUES
(
463
,
26
,
3
);
INSERT
INTO
`sys_role_dept`
VALUES
(
464
,
26
,
4
);
INSERT
INTO
`sys_role_dept`
VALUES
(
465
,
26
,
5
);
-- ----------------------------
-- Table structure for sys_role_func
-- 系统 - 角色功能表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sys_role_func`
;
CREATE
TABLE
`sys_role_func`
(
`id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`role_id`
int
,
`func_id`
int
)
;
-- ----------------------------
-- Records of sys_role_func
-- ----------------------------
INSERT
INTO
`sys_role_func`
VALUES
(
484
,
26
,
2
);
INSERT
INTO
`sys_role_func`
VALUES
(
485
,
26
,
15
);
INSERT
INTO
`sys_role_func`
VALUES
(
486
,
26
,
16
);
INSERT
INTO
`sys_role_func`
VALUES
(
487
,
26
,
17
);
INSERT
INTO
`sys_role_func`
VALUES
(
488
,
26
,
18
);
-- ----------------------------
-- Table structure for sys_user
-- 系统 - 用户(账户)表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sys_user`
;
CREATE
TABLE
`sys_user`
(
`user_id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`username`
varchar
,
`password`
varchar
,
`email`
varchar
,
`remark`
varchar
,
`mobile`
varchar
,
`status`
int
,
`create_time`
datetime
,
`dept_id`
int
)
COMMENT
=
'用户信息表'
ROW_FORMAT
=
Dynamic
;
-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT
INTO
`sys_user`
VALUES
(
0
,
'admin'
,
'$2a$10$/uKcZ27sVZSWRRzSx9PEQ.ggLriOfc6AqILEyOYauVQQt5akh4YEm'
,
'YzcmCZNvbXocrsz9dm8e'
,
'root@cneeds.com.cn'
,
'13612345678'
,
1
,
'2016-11-11'
,
0
);
-- ----------------------------
-- Table structure for sys_user_role
-- 系统 - 用户角色关系表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sys_user_role`
;
CREATE
TABLE
`sys_user_role`
(
`id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`user_id`
int
,
`role_id`
int
)
;
SET
FOREIGN_KEY_CHECKS
=
1
;
-- ----------------------------
-- Table structure for sys_user_dept
-- 系统 - 用户部门关系表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sys_user_dept`
;
CREATE
TABLE
`sys_user_dept`
(
`id`
int
AUTO_INCREMENT
PRIMARY
KEY
,
`user_id`
int
,
`dept_id`
int
)
;
-- ----------------------------
-- Table structure for sys_user_func
-- 系统 - 用户功能关系表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sys_user_func`
;
CREATE
TABLE
`sys_user_func`
(
`id`
int
AUTO_INCREMENT
PRIMARY
KEY
,
`user_id`
int
,
`func_id`
int
)
;
-- 202-05-09
-- ----------------------------
-- Table structure for device_channel
-- 渠道号表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`device_channel`
;
CREATE
TABLE
`device_channel`
(
`channel_id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`channel_num`
varchar
,
`brand`
varchar
,
`update_time`
datetime
)
;
-- ----------------------------
-- Table structure for device_info_channel
-- 设备信息 - 渠道号 映射表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`device_info_channel`
;
CREATE
TABLE
`device_info_channel`
(
`id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`device_id`
int
,
`channel_id`
int
)
;
-- 2020-05-13
ALTER
TABLE
`device_info`
DROP
COLUMN
`channel_nums`
;
-- 2020-05-14
ALTER
TABLE
`device_log`
ADD
COLUMN
`device_version`
varchar
;
-- 2020-06-29
ALTER
TABLE
`device_info`
ADD
COLUMN
`sn`
varchar
;
ALTER
TABLE
`device_info`
ADD
COLUMN
`ca_certificate_status`
varchar
;
ALTER
TABLE
`device_info`
CHANGE
COLUMN
`status`
`active_status`
varchar
;
-- 2020-07-14
ALTER
TABLE
`device_info`
MODIFY
COLUMN
`active_status`
varchar
;
ALTER
TABLE
`device_info`
MODIFY
COLUMN
`channel_rules`
int
;
ALTER
TABLE
`device_info`
MODIFY
COLUMN
`ca_certificate_status`
varchar
;
-- 2020-07-27
DROP
TABLE
IF
EXISTS
`device_info_export`
;
CREATE
TABLE
`device_info_export`
(
`device_info_export_id`
int
PRIMARY
KEY
AUTO_INCREMENT
,
`name`
varchar
,
`filepath`
varchar
,
`status`
int
(
10
)
,
`update_time`
datetime
)
;
-- 2020-07-31
ALTER
TABLE
`device_info`
ADD
COLUMN
`update_time`
datetime
;
\ No newline at end of file
cneeds-server-user/src/test/resources/sql/create_sys_dept.sql
View file @
73badf61
DROP
TABLE
IF
EXISTS
`sys_dept`
;
CREATE
TABLE
sys_dept
(
dept_id
int
AUTO_INCREMENT
PRIMARY
KEY
,
parent_id
int
DEFAULT
NULL
COMMENT
'上级部门ID,一级部门为0'
,
...
...
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