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
2c3f0dc6
Commit
2c3f0dc6
authored
Jun 03, 2020
by
zzrdark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加系统模块查询
2.添加页面
parent
b37a8bf6
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
184 additions
and
62 deletions
+184
-62
SysDeptDao.xml
cneeds-common-data/src/main/resources/mapper/SysDeptDao.xml
+3
-0
UserClient.java
...java/com/mx/cneeds/server/datashow/client/UserClient.java
+6
-3
SystemController.java
...x/cneeds/server/datashow/web/system/SystemController.java
+104
-6
application.yml
cneeds-server-datashow/src/main/resources/application.yml
+1
-1
index.html
cneeds-server-datashow/src/main/resources/statics/index.html
+2
-2
chunk-42656c84.8e02d1a5.css
.../resources/statics/static/css/chunk-42656c84.8e02d1a5.css
+0
-0
chunk-80fe6032.9d63d053.css
.../resources/statics/static/css/chunk-80fe6032.9d63d053.css
+0
-0
chunk-adf11d7e.9d63d053.css
.../resources/statics/static/css/chunk-adf11d7e.9d63d053.css
+0
-0
app.73eee235.js
...show/src/main/resources/statics/static/js/app.73eee235.js
+0
-0
chunk-06ed166b.1d90bf2b.js
...in/resources/statics/static/js/chunk-06ed166b.1d90bf2b.js
+0
-2
chunk-06ed166b.8d91a5ab.js
...in/resources/statics/static/js/chunk-06ed166b.8d91a5ab.js
+2
-0
chunk-18a40ee2.7a0c7ee0.js
...in/resources/statics/static/js/chunk-18a40ee2.7a0c7ee0.js
+2
-0
chunk-18a40ee2.ffdf7a79.js
...in/resources/statics/static/js/chunk-18a40ee2.ffdf7a79.js
+0
-2
chunk-1a86e192.485ba7db.js
...in/resources/statics/static/js/chunk-1a86e192.485ba7db.js
+0
-2
chunk-218bb4cf.0b4035d6.js
...in/resources/statics/static/js/chunk-218bb4cf.0b4035d6.js
+0
-2
chunk-218bb4cf.985ea374.js
...in/resources/statics/static/js/chunk-218bb4cf.985ea374.js
+2
-0
chunk-22e5f704.9d2df095.js
...in/resources/statics/static/js/chunk-22e5f704.9d2df095.js
+0
-2
chunk-22e5f704.cbc4478d.js
...in/resources/statics/static/js/chunk-22e5f704.cbc4478d.js
+2
-0
chunk-25a34ff8.bff415f7.js
...in/resources/statics/static/js/chunk-25a34ff8.bff415f7.js
+0
-2
chunk-2b4823a9.36c8772f.js
...in/resources/statics/static/js/chunk-2b4823a9.36c8772f.js
+2
-0
chunk-2b4823a9.51b17cc9.js
...in/resources/statics/static/js/chunk-2b4823a9.51b17cc9.js
+0
-2
chunk-3b59103a.b9c0582c.js
...in/resources/statics/static/js/chunk-3b59103a.b9c0582c.js
+2
-2
chunk-403c80dd.28998573.js
...in/resources/statics/static/js/chunk-403c80dd.28998573.js
+2
-2
chunk-42656c84.10a9358d.js
...in/resources/statics/static/js/chunk-42656c84.10a9358d.js
+2
-2
chunk-4ab8490a.52ceb2fb.js
...in/resources/statics/static/js/chunk-4ab8490a.52ceb2fb.js
+0
-2
chunk-4ab8490a.77e41b2a.js
...in/resources/statics/static/js/chunk-4ab8490a.77e41b2a.js
+2
-0
chunk-5411756c.d9f1a004.js
...in/resources/statics/static/js/chunk-5411756c.d9f1a004.js
+0
-2
chunk-5411756c.fa0e91a2.js
...in/resources/statics/static/js/chunk-5411756c.fa0e91a2.js
+2
-0
chunk-5c585ee6.b80a6682.js
...in/resources/statics/static/js/chunk-5c585ee6.b80a6682.js
+0
-2
chunk-5c585ee6.ddab2785.js
...in/resources/statics/static/js/chunk-5c585ee6.ddab2785.js
+2
-0
chunk-723f6b88.5001c100.js
...in/resources/statics/static/js/chunk-723f6b88.5001c100.js
+0
-2
chunk-723f6b88.7adc2c4b.js
...in/resources/statics/static/js/chunk-723f6b88.7adc2c4b.js
+2
-0
chunk-7395e3e5.8b34158c.js
...in/resources/statics/static/js/chunk-7395e3e5.8b34158c.js
+0
-2
chunk-7395e3e5.af343f0f.js
...in/resources/statics/static/js/chunk-7395e3e5.af343f0f.js
+2
-0
chunk-73bfcbf0.ced69420.js
...in/resources/statics/static/js/chunk-73bfcbf0.ced69420.js
+2
-2
chunk-77a4bbf0.4cec9fa4.js
...in/resources/statics/static/js/chunk-77a4bbf0.4cec9fa4.js
+2
-0
chunk-77a4bbf0.60171fb8.js
...in/resources/statics/static/js/chunk-77a4bbf0.60171fb8.js
+0
-2
chunk-79a85582.fb8ba583.js
...in/resources/statics/static/js/chunk-79a85582.fb8ba583.js
+2
-2
chunk-7b66cc0a.f9404d66.js
...in/resources/statics/static/js/chunk-7b66cc0a.f9404d66.js
+2
-2
chunk-80fe6032.8a673c3e.js
...in/resources/statics/static/js/chunk-80fe6032.8a673c3e.js
+2
-0
chunk-adf11d7e.db9f3b05.js
...in/resources/statics/static/js/chunk-adf11d7e.db9f3b05.js
+2
-0
chunk-e20529e6.c5d46126.js
...in/resources/statics/static/js/chunk-e20529e6.c5d46126.js
+2
-2
chunk-e33fc590.32c81d22.js
...in/resources/statics/static/js/chunk-e33fc590.32c81d22.js
+0
-2
chunk-e33fc590.e6ed0a9b.js
...in/resources/statics/static/js/chunk-e33fc590.e6ed0a9b.js
+2
-0
chunk-e652b80c.323c7f1f.js
...in/resources/statics/static/js/chunk-e652b80c.323c7f1f.js
+0
-2
chunk-e652b80c.e885a8a3.js
...in/resources/statics/static/js/chunk-e652b80c.e885a8a3.js
+2
-0
application.yml
cneeds-server-device/src/main/resources/application.yml
+1
-1
application.yml
cneeds-server-logupload/src/main/resources/application.yml
+1
-1
SysRoleServiceImpl.java
...x/cneeds/server/user/service/impl/SysRoleServiceImpl.java
+9
-1
SysUserServiceImpl.java
...x/cneeds/server/user/service/impl/SysUserServiceImpl.java
+9
-2
SysDeptController.java
...java/com/mx/cneeds/server/user/web/SysDeptController.java
+3
-0
application.yml
cneeds-server-user/src/main/resources/application.yml
+1
-1
No files found.
cneeds-common-data/src/main/resources/mapper/SysDeptDao.xml
View file @
2c3f0dc6
...
...
@@ -16,6 +16,9 @@
<select
id=
"queryListByPage"
resultType=
"com.mx.cneeds.server.entity.SysDeptEntity"
>
select t1.* from sys_dept t1 where
t1.del_flag = 0
<if
test=
"name != null and name != ''"
>
and t1.name like '${name}'
</if>
<if
test=
"sql_filter != null"
>
and ${sql_filter}
</if>
...
...
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/client/UserClient.java
View file @
2c3f0dc6
...
...
@@ -43,7 +43,8 @@ public interface UserClient {
PageDto
deptList
(
@RequestParam
Integer
page
,
@RequestParam
(
"limit"
)
Integer
pageSize
,
@RequestParam
(
"sidx"
)
String
orderField
,
@RequestParam
(
"order"
)
String
order
);
@RequestParam
(
"order"
)
String
order
,
@RequestParam
(
"name"
)
String
name
);
/**
* 获取部门列表
...
...
@@ -76,7 +77,8 @@ public interface UserClient {
PageDto
roleList
(
@RequestParam
Integer
page
,
@RequestParam
(
"limit"
)
Integer
pageSize
,
@RequestParam
(
"sidx"
)
String
orderField
,
@RequestParam
(
"order"
)
String
order
);
@RequestParam
(
"order"
)
String
order
,
@RequestParam
(
"roleName"
)
String
roleName
);
@PostMapping
(
"/sys/role/info"
)
RoleDto
infoRole
(
@RequestParam
Long
roleId
);
...
...
@@ -106,7 +108,8 @@ public interface UserClient {
PageDto
userList
(
@RequestParam
Integer
page
,
@RequestParam
(
"limit"
)
Integer
pageSize
,
@RequestParam
(
"sidx"
)
String
orderField
,
@RequestParam
(
"order"
)
String
order
);
@RequestParam
(
"order"
)
String
order
,
@RequestParam
(
"username"
)
String
username
);
@PostMapping
(
"/sys/user/userinfo"
)
...
...
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/SystemController.java
View file @
2c3f0dc6
...
...
@@ -35,6 +35,14 @@ public class SystemController {
@Autowired
private
BCryptPasswordEncoder
bCryptPasswordEncoder
;
/**
* 模块查询
* @param page
* @param pageSize
* @param sort
* @return
*/
@PostMapping
(
"/module/list"
)
public
R
funcList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
...
...
@@ -117,10 +125,19 @@ public class SystemController {
return
new
R
().
put
(
"data"
,
result
);
}
/**
* 部门查询
* @param page
* @param pageSize
* @param sort
* @return
*/
@PostMapping
(
"/dept/list"
)
public
R
deptList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
String
sort
){
@RequestParam
(
required
=
false
)
String
sort
,
@RequestParam
(
required
=
false
)
String
name
){
String
orderField
=
null
;
String
order
=
null
;
...
...
@@ -144,7 +161,7 @@ public class SystemController {
}
PageDto
pageDto
=
userClient
.
deptList
(
page
,
pageSize
,
orderField
,
order
);
PageDto
pageDto
=
userClient
.
deptList
(
page
,
pageSize
,
orderField
,
order
,
name
);
return
new
R
().
put
(
"data"
,
pageDto
);
}
...
...
@@ -159,6 +176,11 @@ public class SystemController {
}
/**
* 编辑部门
* @param departmentVo
* @return
*/
@PostMapping
(
"/dept/edit"
)
public
R
editDept
(
DepartmentVo
departmentVo
){
...
...
@@ -170,6 +192,12 @@ public class SystemController {
}
/**
* 删除部门
* @param ids
* @return
*/
@PostMapping
(
"/dept/delete"
)
public
R
deleteDept
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
userClient
.
deleteDept
(
ids
);
...
...
@@ -177,6 +205,10 @@ public class SystemController {
}
/**
* 获取部门下拉框列表
* @return 返回树形的列表
*/
@PostMapping
(
"/dept/listAll"
)
public
R
selectDeptParent
(){
UserDto
userDto
=
userClient
.
userInfo
(
UserUtils
.
getUserName
());
...
...
@@ -205,6 +237,10 @@ public class SystemController {
return
new
R
().
put
(
"data"
,
result
);
}
/**
* 获取部门下拉框列表
* @return 返回树形的列表
*/
@PostMapping
(
"/dept/listAllTree"
)
public
R
selectTreeDeptParent
(){
UserDto
userDto
=
userClient
.
userInfo
(
UserUtils
.
getUserName
());
...
...
@@ -256,10 +292,18 @@ public class SystemController {
}
/**
* 查询角色
* @param page
* @param pageSize
* @param sort
* @return
*/
@PostMapping
(
"/role/list"
)
public
R
roleList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
String
sort
){
@RequestParam
(
required
=
false
)
String
sort
,
@RequestParam
(
required
=
false
)
String
roleName
){
String
orderField
=
null
;
...
...
@@ -283,11 +327,16 @@ public class SystemController {
orderField
=
RequestParamterConverter
.
toLine
(
orderField
);
}
PageDto
pageDto
=
userClient
.
roleList
(
page
,
pageSize
,
orderField
,
order
);
PageDto
pageDto
=
userClient
.
roleList
(
page
,
pageSize
,
orderField
,
order
,
roleName
);
return
new
R
().
put
(
"data"
,
pageDto
);
}
/**
* 查询角色信息
* @param roleId
* @return
*/
@RequestMapping
(
"/role/info"
)
public
R
infoRole
(
Long
roleId
){
RoleDto
dto
=
userClient
.
infoRole
(
roleId
);
...
...
@@ -295,6 +344,11 @@ public class SystemController {
return
R
.
ok
().
put
(
"data"
,
dto
);
}
/**
* 增加角色
* @param vo
* @return
*/
@PostMapping
(
"/role/add"
)
public
R
roleAdd
(
RoleVo
vo
){
RoleDto
dto
=
new
RoleDto
();
...
...
@@ -303,6 +357,12 @@ public class SystemController {
return
R
.
ok
();
}
/**
* 编辑角色
* @param vo
* @return
*/
@PostMapping
(
"/role/edit"
)
public
R
editRole
(
RoleVo
vo
){
...
...
@@ -312,12 +372,22 @@ public class SystemController {
return
R
.
ok
();
}
/**
* 删除角色
* @param ids
* @return
*/
@PostMapping
(
"/role/delete"
)
public
R
deleteRole
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
userClient
.
deleteRole
(
ids
);
return
R
.
ok
();
}
/**
* 查询出角色的下拉框
* @return
*/
@PostMapping
(
"/role/listAll"
)
public
R
selectRole
(){
List
<
RoleDto
>
roleDtos
=
userClient
.
roleListAll
();
...
...
@@ -325,10 +395,18 @@ public class SystemController {
return
new
R
().
put
(
"data"
,
roleDtos
);
}
/**
* 查询用户
* @param page
* @param pageSize
* @param sort
* @return
*/
@PostMapping
(
"/user/list"
)
public
R
userList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
String
sort
){
@RequestParam
(
required
=
false
)
String
sort
,
@RequestParam
(
required
=
false
)
String
username
){
String
orderField
=
null
;
String
order
=
null
;
...
...
@@ -351,16 +429,26 @@ public class SystemController {
orderField
=
RequestParamterConverter
.
toLine
(
orderField
);
}
PageDto
pageDto
=
userClient
.
userList
(
page
,
pageSize
,
orderField
,
order
);
PageDto
pageDto
=
userClient
.
userList
(
page
,
pageSize
,
orderField
,
order
,
username
);
return
new
R
().
put
(
"data"
,
pageDto
);
}
/**
* 查询用户信息
* @param username
* @return
*/
@RequestMapping
(
"/user/info"
)
public
R
infoRole
(
String
username
){
UserDto
dto
=
userClient
.
userInfo
(
username
);
return
R
.
ok
().
put
(
"data"
,
dto
);
}
/**
* 增加用户
* @param vo
* @return
*/
@RequestMapping
(
"/user/add"
)
public
R
addUser
(
UserVo
vo
){
UserDto
dto
=
new
UserDto
();
...
...
@@ -370,6 +458,11 @@ public class SystemController {
return
R
.
ok
();
}
/**
* 编辑用户
* @param vo
* @return
*/
@PostMapping
(
"/user/update"
)
public
R
editUser
(
UserVo
vo
){
UserDto
dto
=
new
UserDto
();
...
...
@@ -382,6 +475,11 @@ public class SystemController {
return
R
.
ok
();
}
/**
* 删除用户
* @param ids
* @return
*/
@PostMapping
(
"/user/delete"
)
public
R
deleteUser
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
userClient
.
deleteUser
(
ids
);
...
...
cneeds-server-datashow/src/main/resources/application.yml
View file @
2c3f0dc6
spring
:
profiles
:
active
:
dev
active
:
prod
application
:
name
:
cneeds-server-datashow
server
:
...
...
cneeds-server-datashow/src/main/resources/statics/index.html
View file @
2c3f0dc6
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge,chrome=1"
><meta
name=
renderer
content=
webkit
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
><link
rel=
icon
href=
./favicon.ico
><title>
springSecurity登陆demo
</title><link
href=
static/css/chunk-libs.3dfb7769.css
rel=
stylesheet
><link
href=
static/css/app.826c7dc3.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
static/js/chunk-elementUI.a6c12691.js
></script><script
src=
static/js/chunk-libs.ddf89aa7.js
></script><script>
(
function
(
e
){
function
n
(
n
){
for
(
var
u
,
t
,
f
=
n
[
0
],
d
=
n
[
1
],
h
=
n
[
2
],
o
=
0
,
k
=
[];
o
<
f
.
length
;
o
++
)
t
=
f
[
o
],
a
[
t
]
&&
k
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
u
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
u
)
&&
(
e
[
u
]
=
d
[
u
]);
b
&&
b
(
n
);
while
(
k
.
length
)
k
.
shift
()();
return
r
.
push
.
apply
(
r
,
h
||
[]),
c
()}
function
c
(){
for
(
var
e
,
n
=
0
;
n
<
r
.
length
;
n
++
){
for
(
var
c
=
r
[
n
],
u
=!
0
,
t
=
1
;
t
<
c
.
length
;
t
++
){
var
f
=
c
[
t
];
0
!==
a
[
f
]
&&
(
u
=!
1
)}
u
&&
(
r
.
splice
(
n
--
,
1
),
e
=
d
(
d
.
s
=
c
[
0
]))}
return
e
}
var
u
=
{},
t
=
{
runtime
:
0
},
a
=
{
runtime
:
0
},
r
=
[];
function
f
(
e
){
return
d
.
p
+
"static/js/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-06aa7494"
:
"79f5e602"
,
"chunk-06ed166b"
:
"1d90bf2b"
,
"chunk-116c2bab"
:
"26f3ae67"
,
"chunk-18a40ee2"
:
"ffdf7a79"
,
"chunk-1a07b08b"
:
"8495daf0"
,
"chunk-1a86e192"
:
"485ba7db"
,
"chunk-218bb4cf"
:
"0b4035d6"
,
"chunk-22e5f704"
:
"9d2df095"
,
"chunk-25a34ff8"
:
"bff415f7"
,
"chunk-2b4823a9"
:
"51b17cc9"
,
"chunk-2d2105d3"
:
"c38e1553"
,
"chunk-2d230a36"
:
"77c3129c"
,
"chunk-2d230fe7"
:
"8023f254"
,
"chunk-3b59103a"
:
"8d86d081"
,
"chunk-403c80dd"
:
"94c0ac41"
,
"chunk-47af9ee4"
:
"a003a3e1"
,
"chunk-4a8d06a6"
:
"81dbed13"
,
"chunk-4ab8490a"
:
"52ceb2fb"
,
"chunk-5411756c"
:
"d9f1a004"
,
"chunk-56d3065a"
:
"f080c714"
,
"chunk-10f36354"
:
"7f6359fa"
,
"chunk-5c585ee6"
:
"b80a6682"
,
"chunk-636f8118"
:
"2d5d0784"
,
"chunk-64238bd4"
:
"b5c58bf5"
,
"chunk-6e87ca78"
:
"cc2ed628"
,
"chunk-e6a30210"
:
"3b0b2fc2"
,
"chunk-723f6b88"
:
"5001c100"
,
"chunk-7395e3e5"
:
"8b34158c"
,
"chunk-73bfcbf0"
:
"a5fec1ff"
,
"chunk-77a4bbf0"
:
"60171fb8"
,
"chunk-79a85582"
:
"dd8d44e5"
,
"chunk-7b66cc0a"
:
"d0fee21d"
,
"chunk-e20529e6"
:
"555d7fdb"
,
"chunk-e33fc590"
:
"32c81d22"
,
"chunk-e652b80c"
:
"323c7f1f"
}[
e
]
+
".js"
}
function
d
(
n
){
if
(
u
[
n
])
return
u
[
n
].
exports
;
var
c
=
u
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
c
.
exports
,
c
,
c
.
exports
,
d
),
c
.
l
=!
0
,
c
.
exports
}
d
.
e
=
function
(
e
){
var
n
=
[],
c
=
{
"chunk-06aa7494"
:
1
,
"chunk-116c2bab"
:
1
,
"chunk-18a40ee2"
:
1
,
"chunk-1a07b08b"
:
1
,
"chunk-1a86e192"
:
1
,
"chunk-218bb4cf"
:
1
,
"chunk-25a34ff8"
:
1
,
"chunk-2b4823a9"
:
1
,
"chunk-4a8d06a6"
:
1
,
"chunk-4ab8490a"
:
1
,
"chunk-5411756c"
:
1
,
"chunk-10f36354"
:
1
,
"chunk-64238bd4"
:
1
,
"chunk-e6a30210"
:
1
,
"chunk-723f6b88"
:
1
,
"chunk-e33fc590"
:
1
};
t
[
e
]?
n
.
push
(
t
[
e
]):
0
!==
t
[
e
]
&&
c
[
e
]
&&
n
.
push
(
t
[
e
]
=
new
Promise
((
function
(
n
,
c
){
for
(
var
u
=
"static/css/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-06aa7494"
:
"9d63d053"
,
"chunk-06ed166b"
:
"31d6cfe0"
,
"chunk-116c2bab"
:
"eedc5334"
,
"chunk-18a40ee2"
:
"9d63d053"
,
"chunk-1a07b08b"
:
"830e1851"
,
"chunk-1a86e192"
:
"9d63d053"
,
"chunk-218bb4cf"
:
"9d63d053"
,
"chunk-22e5f704"
:
"31d6cfe0"
,
"chunk-25a34ff8"
:
"9d63d053"
,
"chunk-2b4823a9"
:
"9d63d053"
,
"chunk-2d2105d3"
:
"31d6cfe0"
,
"chunk-2d230a36"
:
"31d6cfe0"
,
"chunk-2d230fe7"
:
"31d6cfe0"
,
"chunk-3b59103a"
:
"31d6cfe0"
,
"chunk-403c80dd"
:
"31d6cfe0"
,
"chunk-47af9ee4"
:
"31d6cfe0"
,
"chunk-4a8d06a6"
:
"e9a4618c"
,
"chunk-4ab8490a"
:
"9d63d053"
,
"chunk-5411756c"
:
"9d63d053"
,
"chunk-56d3065a"
:
"31d6cfe0"
,
"chunk-10f36354"
:
"129625a4"
,
"chunk-5c585ee6"
:
"31d6cfe0"
,
"chunk-636f8118"
:
"31d6cfe0"
,
"chunk-64238bd4"
:
"70564041"
,
"chunk-6e87ca78"
:
"31d6cfe0"
,
"chunk-e6a30210"
:
"8e02d1a5"
,
"chunk-723f6b88"
:
"53ac87fa"
,
"chunk-7395e3e5"
:
"31d6cfe0"
,
"chunk-73bfcbf0"
:
"31d6cfe0"
,
"chunk-77a4bbf0"
:
"31d6cfe0"
,
"chunk-79a85582"
:
"31d6cfe0"
,
"chunk-7b66cc0a"
:
"31d6cfe0"
,
"chunk-e20529e6"
:
"31d6cfe0"
,
"chunk-e33fc590"
:
"9d63d053"
,
"chunk-e652b80c"
:
"31d6cfe0"
}[
e
]
+
".css"
,
a
=
d
.
p
+
u
,
r
=
document
.
getElementsByTagName
(
"link"
),
f
=
0
;
f
<
r
.
length
;
f
++
){
var
h
=
r
[
f
],
o
=
h
.
getAttribute
(
"data-href"
)
||
h
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
h
.
rel
&&
(
o
===
u
||
o
===
a
))
return
n
()}
var
k
=
document
.
getElementsByTagName
(
"style"
);
for
(
f
=
0
;
f
<
k
.
length
;
f
++
){
h
=
k
[
f
],
o
=
h
.
getAttribute
(
"data-href"
);
if
(
o
===
u
||
o
===
a
)
return
n
()}
var
b
=
document
.
createElement
(
"link"
);
b
.
rel
=
"stylesheet"
,
b
.
type
=
"text/css"
,
b
.
onload
=
n
,
b
.
onerror
=
function
(
n
){
var
u
=
n
&&
n
.
target
&&
n
.
target
.
src
||
a
,
r
=
new
Error
(
"Loading CSS chunk "
+
e
+
" failed.
\
n("
+
u
+
")"
);
r
.
request
=
u
,
delete
t
[
e
],
b
.
parentNode
.
removeChild
(
b
),
c
(
r
)},
b
.
href
=
a
;
var
i
=
document
.
getElementsByTagName
(
"head"
)[
0
];
i
.
appendChild
(
b
)})).
then
((
function
(){
t
[
e
]
=
0
})));
var
u
=
a
[
e
];
if
(
0
!==
u
)
if
(
u
)
n
.
push
(
u
[
2
]);
else
{
var
r
=
new
Promise
((
function
(
n
,
c
){
u
=
a
[
e
]
=
[
n
,
c
]}));
n
.
push
(
u
[
2
]
=
r
);
var
h
,
o
=
document
.
createElement
(
"script"
);
o
.
charset
=
"utf-8"
,
o
.
timeout
=
120
,
d
.
nc
&&
o
.
setAttribute
(
"nonce"
,
d
.
nc
),
o
.
src
=
f
(
e
),
h
=
function
(
n
){
o
.
onerror
=
o
.
onload
=
null
,
clearTimeout
(
k
);
var
c
=
a
[
e
];
if
(
0
!==
c
){
if
(
c
){
var
u
=
n
&&
(
"load"
===
n
.
type
?
"missing"
:
n
.
type
),
t
=
n
&&
n
.
target
&&
n
.
target
.
src
,
r
=
new
Error
(
"Loading chunk "
+
e
+
" failed.
\
n("
+
u
+
": "
+
t
+
")"
);
r
.
type
=
u
,
r
.
request
=
t
,
c
[
1
](
r
)}
a
[
e
]
=
void
0
}};
var
k
=
setTimeout
((
function
(){
h
({
type
:
"timeout"
,
target
:
o
})}),
12
e4
);
o
.
onerror
=
o
.
onload
=
h
,
document
.
head
.
appendChild
(
o
)}
return
Promise
.
all
(
n
)},
d
.
m
=
e
,
d
.
c
=
u
,
d
.
d
=
function
(
e
,
n
,
c
){
d
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
enumerable
:
!
0
,
get
:
c
})},
d
.
r
=
function
(
e
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
d
.
t
=
function
(
e
,
n
){
if
(
1
&
n
&&
(
e
=
d
(
e
)),
8
&
n
)
return
e
;
if
(
4
&
n
&&
"object"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
c
=
Object
.
create
(
null
);
if
(
d
.
r
(
c
),
Object
.
defineProperty
(
c
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
n
&&
"string"
!=
typeof
e
)
for
(
var
u
in
e
)
d
.
d
(
c
,
u
,
function
(
n
){
return
e
[
n
]}.
bind
(
null
,
u
));
return
c
},
d
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"default"
]}:
function
(){
return
e
};
return
d
.
d
(
n
,
"a"
,
n
),
n
},
d
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
d
.
p
=
""
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
h
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
o
=
h
.
push
.
bind
(
h
);
h
.
push
=
n
,
h
=
h
.
slice
();
for
(
var
k
=
0
;
k
<
h
.
length
;
k
++
)
n
(
h
[
k
]);
var
b
=
o
;
c
()})([]);
</script><script
src=
static/js/app.0eafa615.js
></script></body></html>
\ No newline at end of file
<!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
,
t
,
d
=
c
[
0
],
f
=
c
[
1
],
h
=
c
[
2
],
o
=
0
,
k
=
[];
o
<
d
.
length
;
o
++
)
t
=
d
[
o
],
a
[
t
]
&&
k
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
u
in
f
)
Object
.
prototype
.
hasOwnProperty
.
call
(
f
,
u
)
&&
(
e
[
u
]
=
f
[
u
]);
b
&&
b
(
c
);
while
(
k
.
length
)
k
.
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
,
t
=
1
;
t
<
n
.
length
;
t
++
){
var
d
=
n
[
t
];
0
!==
a
[
d
]
&&
(
u
=!
1
)}
u
&&
(
r
.
splice
(
c
--
,
1
),
e
=
f
(
f
.
s
=
n
[
0
]))}
return
e
}
var
u
=
{},
t
=
{
runtime
:
0
},
a
=
{
runtime
:
0
},
r
=
[];
function
d
(
e
){
return
f
.
p
+
"static/js/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-06aa7494"
:
"79f5e602"
,
"chunk-06ed166b"
:
"8d91a5ab"
,
"chunk-116c2bab"
:
"26f3ae67"
,
"chunk-18a40ee2"
:
"7a0c7ee0"
,
"chunk-1a07b08b"
:
"8495daf0"
,
"chunk-218bb4cf"
:
"985ea374"
,
"chunk-22e5f704"
:
"cbc4478d"
,
"chunk-2b4823a9"
:
"36c8772f"
,
"chunk-2d2105d3"
:
"c38e1553"
,
"chunk-2d230a36"
:
"77c3129c"
,
"chunk-2d230fe7"
:
"8023f254"
,
"chunk-3b59103a"
:
"b9c0582c"
,
"chunk-403c80dd"
:
"28998573"
,
"chunk-47af9ee4"
:
"a003a3e1"
,
"chunk-4a8d06a6"
:
"81dbed13"
,
"chunk-4ab8490a"
:
"77e41b2a"
,
"chunk-5411756c"
:
"fa0e91a2"
,
"chunk-56d3065a"
:
"f080c714"
,
"chunk-10f36354"
:
"7f6359fa"
,
"chunk-5c585ee6"
:
"ddab2785"
,
"chunk-636f8118"
:
"2d5d0784"
,
"chunk-64238bd4"
:
"b5c58bf5"
,
"chunk-6e87ca78"
:
"cc2ed628"
,
"chunk-42656c84"
:
"10a9358d"
,
"chunk-723f6b88"
:
"7adc2c4b"
,
"chunk-7395e3e5"
:
"af343f0f"
,
"chunk-73bfcbf0"
:
"ced69420"
,
"chunk-77a4bbf0"
:
"4cec9fa4"
,
"chunk-79a85582"
:
"fb8ba583"
,
"chunk-7b66cc0a"
:
"f9404d66"
,
"chunk-80fe6032"
:
"8a673c3e"
,
"chunk-adf11d7e"
:
"db9f3b05"
,
"chunk-e20529e6"
:
"c5d46126"
,
"chunk-e33fc590"
:
"e6ed0a9b"
,
"chunk-e652b80c"
:
"e885a8a3"
}[
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-1a07b08b"
:
1
,
"chunk-218bb4cf"
:
1
,
"chunk-2b4823a9"
:
1
,
"chunk-4a8d06a6"
:
1
,
"chunk-4ab8490a"
:
1
,
"chunk-5411756c"
:
1
,
"chunk-10f36354"
:
1
,
"chunk-64238bd4"
:
1
,
"chunk-42656c84"
:
1
,
"chunk-723f6b88"
:
1
,
"chunk-80fe6032"
:
1
,
"chunk-adf11d7e"
:
1
,
"chunk-e33fc590"
:
1
};
t
[
e
]?
c
.
push
(
t
[
e
]):
0
!==
t
[
e
]
&&
n
[
e
]
&&
c
.
push
(
t
[
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-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-42656c84"
:
"8e02d1a5"
,
"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"
}[
e
]
+
".css"
,
a
=
f
.
p
+
u
,
r
=
document
.
getElementsByTagName
(
"link"
),
d
=
0
;
d
<
r
.
length
;
d
++
){
var
h
=
r
[
d
],
o
=
h
.
getAttribute
(
"data-href"
)
||
h
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
h
.
rel
&&
(
o
===
u
||
o
===
a
))
return
c
()}
var
k
=
document
.
getElementsByTagName
(
"style"
);
for
(
d
=
0
;
d
<
k
.
length
;
d
++
){
h
=
k
[
d
],
o
=
h
.
getAttribute
(
"data-href"
);
if
(
o
===
u
||
o
===
a
)
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
||
a
,
r
=
new
Error
(
"Loading CSS chunk "
+
e
+
" failed.
\
n("
+
u
+
")"
);
r
.
request
=
u
,
delete
t
[
e
],
b
.
parentNode
.
removeChild
(
b
),
n
(
r
)},
b
.
href
=
a
;
var
i
=
document
.
getElementsByTagName
(
"head"
)[
0
];
i
.
appendChild
(
b
)})).
then
((
function
(){
t
[
e
]
=
0
})));
var
u
=
a
[
e
];
if
(
0
!==
u
)
if
(
u
)
c
.
push
(
u
[
2
]);
else
{
var
r
=
new
Promise
((
function
(
c
,
n
){
u
=
a
[
e
]
=
[
c
,
n
]}));
c
.
push
(
u
[
2
]
=
r
);
var
h
,
o
=
document
.
createElement
(
"script"
);
o
.
charset
=
"utf-8"
,
o
.
timeout
=
120
,
f
.
nc
&&
o
.
setAttribute
(
"nonce"
,
f
.
nc
),
o
.
src
=
d
(
e
),
h
=
function
(
c
){
o
.
onerror
=
o
.
onload
=
null
,
clearTimeout
(
k
);
var
n
=
a
[
e
];
if
(
0
!==
n
){
if
(
n
){
var
u
=
c
&&
(
"load"
===
c
.
type
?
"missing"
:
c
.
type
),
t
=
c
&&
c
.
target
&&
c
.
target
.
src
,
r
=
new
Error
(
"Loading chunk "
+
e
+
" failed.
\
n("
+
u
+
": "
+
t
+
")"
);
r
.
type
=
u
,
r
.
request
=
t
,
n
[
1
](
r
)}
a
[
e
]
=
void
0
}};
var
k
=
setTimeout
((
function
(){
h
({
type
:
"timeout"
,
target
:
o
})}),
12
e4
);
o
.
onerror
=
o
.
onload
=
h
,
document
.
head
.
appendChild
(
o
)}
return
Promise
.
all
(
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"
]
||
[],
o
=
h
.
push
.
bind
(
h
);
h
.
push
=
c
,
h
=
h
.
slice
();
for
(
var
k
=
0
;
k
<
h
.
length
;
k
++
)
c
(
h
[
k
]);
var
b
=
o
;
n
()})([]);
</script><script
src=
static/js/app.73eee235.js
></script></body></html>
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/css/chunk-
e6a30210
.8e02d1a5.css
→
cneeds-server-datashow/src/main/resources/statics/static/css/chunk-
42656c84
.8e02d1a5.css
View file @
2c3f0dc6
File moved
cneeds-server-datashow/src/main/resources/statics/static/css/chunk-
1a86e19
2.9d63d053.css
→
cneeds-server-datashow/src/main/resources/statics/static/css/chunk-
80fe603
2.9d63d053.css
View file @
2c3f0dc6
File moved
cneeds-server-datashow/src/main/resources/statics/static/css/chunk-
25a34ff8
.9d63d053.css
→
cneeds-server-datashow/src/main/resources/statics/static/css/chunk-
adf11d7e
.9d63d053.css
View file @
2c3f0dc6
File moved
cneeds-server-datashow/src/main/resources/statics/static/js/app.
0eafa61
5.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/app.
73eee23
5.js
View file @
2c3f0dc6
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.1d90bf2b.js
deleted
100644 → 0
View file @
b37a8bf6
(
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
:
"品牌描述"
},
u
=
{
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
[
"k"
])(
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"
})}}},
o
=
u
,
d
=
t
(
"2877"
),
l
=
Object
(
d
[
"a"
])(
o
,
a
,
i
,
!
1
,
null
,
"1c8c5750"
,
null
);
n
[
"default"
]
=
l
.
exports
},
aa98
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
d
(
n
,
"f"
,(
function
(){
return
i
})),
t
.
d
(
n
,
"g"
,(
function
(){
return
c
})),
t
.
d
(
n
,
"l"
,(
function
(){
return
r
})),
t
.
d
(
n
,
"b"
,(
function
(){
return
u
})),
t
.
d
(
n
,
"n"
,(
function
(){
return
o
})),
t
.
d
(
n
,
"j"
,(
function
(){
return
d
})),
t
.
d
(
n
,
"e"
,(
function
(){
return
l
})),
t
.
d
(
n
,
"a"
,(
function
(){
return
s
})),
t
.
d
(
n
,
"k"
,(
function
(){
return
h
})),
t
.
d
(
n
,
"h"
,(
function
(){
return
v
})),
t
.
d
(
n
,
"c"
,(
function
(){
return
f
})),
t
.
d
(
n
,
"d"
,(
function
(){
return
p
})),
t
.
d
(
n
,
"m"
,(
function
(){
return
m
})),
t
.
d
(
n
,
"i"
,(
function
(){
return
b
}));
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
}})}
function
c
(
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
o
(
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
v
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-06ed166b.8d91a5ab.js
0 → 100644
View file @
2c3f0dc6
(
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
:
"品牌描述"
},
u
=
{
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
[
"m"
])(
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"
})}}},
d
=
u
,
o
=
t
(
"2877"
),
l
=
Object
(
o
[
"a"
])(
d
,
a
,
i
,
!
1
,
null
,
"1c8c5750"
,
null
);
n
[
"default"
]
=
l
.
exports
},
aa98
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
d
(
n
,
"g"
,(
function
(){
return
i
})),
t
.
d
(
n
,
"h"
,(
function
(){
return
c
})),
t
.
d
(
n
,
"n"
,(
function
(){
return
r
})),
t
.
d
(
n
,
"b"
,(
function
(){
return
u
})),
t
.
d
(
n
,
"p"
,(
function
(){
return
d
})),
t
.
d
(
n
,
"l"
,(
function
(){
return
o
})),
t
.
d
(
n
,
"j"
,(
function
(){
return
l
})),
t
.
d
(
n
,
"f"
,(
function
(){
return
s
})),
t
.
d
(
n
,
"a"
,(
function
(){
return
h
})),
t
.
d
(
n
,
"m"
,(
function
(){
return
v
})),
t
.
d
(
n
,
"i"
,(
function
(){
return
f
})),
t
.
d
(
n
,
"c"
,(
function
(){
return
p
})),
t
.
d
(
n
,
"d"
,(
function
(){
return
m
})),
t
.
d
(
n
,
"o"
,(
function
(){
return
b
})),
t
.
d
(
n
,
"k"
,(
function
(){
return
g
})),
t
.
d
(
n
,
"e"
,(
function
(){
return
C
}));
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
}})}
function
c
(
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
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
f
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
g
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
C
(
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.7a0c7ee0.js
0 → 100644
View file @
2c3f0dc6
(
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
l
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
c
(
e
,
t
,
n
){
var
i
=
l
(),
a
=
e
-
i
,
c
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
s
=
function
e
(){
u
+=
c
;
var
l
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
o
(
l
),
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
&&
c
(
0
,
800
)},
handleCurrentChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
e
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
c
(
0
,
800
)}}},
s
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
h
=
Object
(
d
[
"a"
])(
s
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
h
.
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
:
"channelId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
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"
),
l
=
n
(
"aa98"
),
c
=
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
(
c
[
"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
(
l
[
"f"
])(
this
.
listQuery
).
then
((
function
(
t
){
var
n
=
t
.
data
,
i
=
n
.
list
,
a
=
n
.
totalCount
;
e
.
list
=
i
,
e
.
total
=
a
,
e
.
listLoading
=!
1
}))},
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
)})),
Object
(
l
[
"c"
])(
this
.
channelIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
channelIds
=
[];
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"
),
h
=
Object
(
d
[
"a"
])(
s
,
i
,
a
,
!
1
,
null
,
"80ba49c2"
,
null
);
t
[
"default"
]
=
h
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"g"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
y
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
b
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
r
(
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
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
f
(){
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
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
y
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
b
(
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
(),
l
=
r
.
querySelector
(
".waves-ripple"
);
switch
(
l
?
l
.
className
=
"waves-ripple"
:(
l
=
document
.
createElement
(
"span"
),
l
.
className
=
"waves-ripple"
,
l
.
style
.
height
=
l
.
style
.
width
=
Math
.
max
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
l
)),
a
.
type
){
case
"center"
:
l
.
style
.
top
=
o
.
height
/
2
-
l
.
offsetHeight
/
2
+
"px"
,
l
.
style
.
left
=
o
.
width
/
2
-
l
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
l
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
l
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
l
.
style
.
left
=
(
n
.
pageX
-
o
.
left
-
l
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
l
.
style
.
backgroundColor
=
a
.
color
,
l
.
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-18a40ee2.ffdf7a79.js
deleted
100644 → 0
View file @
b37a8bf6
(
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
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
l
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
c
(
e
,
t
,
n
){
var
i
=
l
(),
a
=
e
-
i
,
c
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
s
=
function
e
(){
u
+=
c
;
var
l
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
r
(
l
),
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
&&
c
(
0
,
800
)},
handleCurrentChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
e
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
c
(
0
,
800
)}}},
s
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
h
=
Object
(
d
[
"a"
])(
s
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
h
.
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
(
"删除"
)])],
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
:
"channelId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
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
=
[],
o
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
r
=
n
(
"c7a7"
),
l
=
n
(
"aa98"
),
c
=
n
(
"ed08"
),
u
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
r
[
"a"
]},
filters
:{
delFlagValueFilter
:
function
(
e
){
return
-
1
===
e
?
e
=
"不可用"
:
0
===
e
&&
(
e
=
"可用"
),
e
},
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
:[],
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
(
l
[
"e"
])(
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
)})),
Object
(
l
[
"c"
])(
this
.
channelIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
channelIds
=
[];
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"
),
h
=
Object
(
d
[
"a"
])(
s
,
i
,
a
,
!
1
,
null
,
"7cdc71f2"
,
null
);
t
[
"default"
]
=
h
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"f"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
v
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
p
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}},
c7a7
:
function
(
e
,
t
,
n
){
"use strict"
;
n
(
"8d41"
);
var
i
=
"@@wavesContext"
;
function
a
(
e
,
t
){
function
n
(
n
){
var
i
=
Object
.
assign
({},
t
.
value
),
a
=
Object
.
assign
({
ele
:
e
,
type
:
"hit"
,
color
:
"rgba(0, 0, 0, 0.15)"
},
i
),
o
=
a
.
ele
;
if
(
o
){
o
.
style
.
position
=
"relative"
,
o
.
style
.
overflow
=
"hidden"
;
var
r
=
o
.
getBoundingClientRect
(),
l
=
o
.
querySelector
(
".waves-ripple"
);
switch
(
l
?
l
.
className
=
"waves-ripple"
:(
l
=
document
.
createElement
(
"span"
),
l
.
className
=
"waves-ripple"
,
l
.
style
.
height
=
l
.
style
.
width
=
Math
.
max
(
r
.
width
,
r
.
height
)
+
"px"
,
o
.
appendChild
(
l
)),
a
.
type
){
case
"center"
:
l
.
style
.
top
=
r
.
height
/
2
-
l
.
offsetHeight
/
2
+
"px"
,
l
.
style
.
left
=
r
.
width
/
2
-
l
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
l
.
style
.
top
=
(
n
.
pageY
-
r
.
top
-
l
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
l
.
style
.
left
=
(
n
.
pageX
-
r
.
left
-
l
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
l
.
style
.
backgroundColor
=
a
.
color
,
l
.
className
=
"waves-ripple z-active"
,
!
1
}}
return
e
[
i
]?
e
[
i
].
removeHandle
=
n
:
e
[
i
]
=
{
removeHandle
:
n
},
n
}
t
[
"a"
]
=
{
bind
:
function
(
e
,
t
){
e
.
addEventListener
(
"click"
,
a
(
e
,
t
),
!
1
)},
update
:
function
(
e
,
t
){
e
.
removeEventListener
(
"click"
,
e
[
i
].
removeHandle
,
!
1
),
e
.
addEventListener
(
"click"
,
a
(
e
,
t
),
!
1
)},
unbind
:
function
(
e
){
e
.
removeEventListener
(
"click"
,
e
[
i
].
removeHandle
,
!
1
),
e
[
i
]
=
null
,
delete
e
[
i
]}}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-1a86e192.485ba7db.js
deleted
100644 → 0
View file @
b37a8bf6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-1a86e192"
],{
"1c64"
:
function
(
e
,
t
,
n
){},
"1cc6"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
i
=
n
(
"1c64"
),
a
=
n
.
n
(
i
);
a
.
a
},
"333d"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
i
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"pagination-container"
,
class
:{
hidden
:
e
.
hidden
}},[
n
(
"el-pagination"
,
e
.
_b
({
attrs
:{
background
:
e
.
background
,
"current-page"
:
e
.
currentPage
,
"page-size"
:
e
.
pageSize
,
layout
:
e
.
layout
,
"page-sizes"
:
e
.
pageSizes
,
total
:
e
.
total
},
on
:{
"update:currentPage"
:
function
(
t
){
e
.
currentPage
=
t
},
"update:current-page"
:
function
(
t
){
e
.
currentPage
=
t
},
"update:pageSize"
:
function
(
t
){
e
.
pageSize
=
t
},
"update:page-size"
:
function
(
t
){
e
.
pageSize
=
t
},
"size-change"
:
e
.
handleSizeChange
,
"current-change"
:
e
.
handleCurrentChange
}},
"el-pagination"
,
e
.
$attrs
,
!
1
))],
1
)},
a
=
[];
n
(
"c5f6"
);
Math
.
easeInOutQuad
=
function
(
e
,
t
,
n
,
i
){
return
e
/=
i
/
2
,
e
<
1
?
n
/
2
*
e
*
e
+
t
:(
e
--
,
-
n
/
2
*
(
e
*
(
e
-
2
)
-
1
)
+
t
)};
var
o
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
e
){
window
.
setTimeout
(
e
,
1
e3
/
60
)}}();
function
r
(
e
){
document
.
documentElement
.
scrollTop
=
e
,
document
.
body
.
parentNode
.
scrollTop
=
e
,
document
.
body
.
scrollTop
=
e
}
function
c
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
l
(
e
,
t
,
n
){
var
i
=
c
(),
a
=
e
-
i
,
l
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
s
=
function
e
(){
u
+=
l
;
var
c
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
r
(
c
),
u
<
t
?
o
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
s
()}
var
u
=
{
name
:
"Pagination"
,
props
:{
total
:{
required
:
!
0
,
type
:
Number
},
page
:{
type
:
Number
,
default
:
1
},
limit
:{
type
:
Number
,
default
:
20
},
pageSizes
:{
type
:
Array
,
default
:
function
(){
return
[
10
,
20
,
30
,
50
]}},
layout
:{
type
:
String
,
default
:
"total, sizes, prev, pager, next, jumper"
},
background
:{
type
:
Boolean
,
default
:
!
0
},
autoScroll
:{
type
:
Boolean
,
default
:
!
0
},
hidden
:{
type
:
Boolean
,
default
:
!
1
}},
computed
:{
currentPage
:{
get
:
function
(){
return
this
.
page
},
set
:
function
(
e
){
this
.
$emit
(
"update:page"
,
e
)}},
pageSize
:{
get
:
function
(){
return
this
.
limit
},
set
:
function
(
e
){
this
.
$emit
(
"update:limit"
,
e
)}}},
methods
:{
handleSizeChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
this
.
currentPage
,
limit
:
e
}),
this
.
autoScroll
&&
l
(
0
,
800
)},
handleCurrentChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
e
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
l
(
0
,
800
)}}},
s
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
s
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
"99b8"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
i
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-header"
,[
n
(
"div"
,{
staticStyle
:{
margin
:
"20px 0"
}},[
n
(
"el-button"
,{
on
:{
click
:
e
.
addPage
}},[
e
.
_v
(
"导入设备"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
editSeriesPage
}},[
e
.
_v
(
"变更产品系列"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
setChannelPage
}},[
e
.
_v
(
"适配配置"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
importDeviceChannel
}},[
e
.
_v
(
"批量配置"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
deletePage
}},[
e
.
_v
(
"删除设备"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
downloadLogFile
}},[
e
.
_v
(
"下载模板"
)])],
1
)]),
e
.
_v
(
" "
),
n
(
"el-main"
,[
n
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
listLoading
,
expression
:
"listLoading"
}],
key
:
e
.
tableKey
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
list
,
border
:
""
,
fit
:
""
,
"highlight-current-row"
:
""
,
"default-sort"
:
e
.
defaultSort
},
on
:{
"sort-change"
:
e
.
sortChange
,
"selection-change"
:
e
.
handleSelectionChange
}},[
n
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"设备ID"
,
prop
:
"deviceId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列"
,
prop
:
"seriesNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"imei"
,
prop
:
"imei"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"创建时间"
,
prop
:
"createTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
createTime
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeFilter"
)(
i
)))])]}}])})],
1
),
e
.
_v
(
" "
),
n
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
e
.
total
,
page
:
e
.
listQuery
.
page
,
limit
:
e
.
listQuery
.
pageSize
},
on
:{
"update:page"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"page"
,
t
)},
"update:limit"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"pageSize"
,
t
)},
pagination
:
e
.
refresh
}})],
1
)],
1
)},
a
=
[],
o
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
r
=
n
(
"c7a7"
),
c
=
n
(
"ed08"
),
l
=
n
(
"aa98"
),
u
=
n
(
"5f87"
),
s
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
r
[
"a"
]},
filters
:{
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
c
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
}},
data
:
function
(){
return
{
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
device
:{
imei
:
""
},
deviceIds
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
getList
()},
beforeRouteUpdate
:
function
(
e
,
t
,
n
){
if
(
e
.
path
===
t
.
path
){
var
i
=
Object
.
assign
({},
e
.
query
),
a
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
i
)
!==
JSON
.
stringify
(
a
)
&&
this
.
getList
()}
n
()},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
sortChange
:
function
(
e
){
console
.
log
(
"sortChange"
,
e
);
var
t
=
e
.
prop
,
n
=
e
.
order
;
this
.
sortBy
(
t
,
n
)},
sortBy
:
function
(
e
,
t
){
this
.
listQuery
.
sort
=
"ascending"
===
t
?
"+"
.
concat
(
e
):
"-"
.
concat
(
e
),
this
.
handleFilter
()},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
Object
(
l
[
"f"
])(
this
.
listQuery
).
then
((
function
(
t
){
var
n
=
t
.
data
,
i
=
n
.
list
,
a
=
n
.
totalCount
;
e
.
list
=
i
,
e
.
total
=
a
,
e
.
listLoading
=!
1
}))},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importDevice"
})},
editSeriesPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
){
var
e
=
[];
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
push
(
t
.
imei
)})),
this
.
$router
.
push
({
path
:
"/deviceManagement/device/editSeries"
,
query
:{
imeis
:
e
}})}
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
setChannelPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
){
var
e
=
[];
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
push
(
t
.
imei
)})),
this
.
$router
.
push
({
path
:
"/deviceManagement/device/setChannelNum"
,
query
:{
imeis
:
e
}})}
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
importDeviceChannel
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importDeviceChannel"
})},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
deviceIds
.
push
(
t
.
deviceId
)})),
Object
(
l
[
"b"
])(
this
.
deviceIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
deviceIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
,
query
:
this
.
listQuery
})},
downloadLogFile
:
function
(){
var
e
=
""
.
concat
(
"http://server.cneeds.com.cn:9000"
)
+
"/device/device/downloadDeviceUploadFile"
,
t
=
new
XMLHttpRequest
;
t
.
open
(
"GET"
,
e
,
!
0
),
t
.
setRequestHeader
(
"Authorization"
,
Object
(
u
[
"a"
])()),
t
.
responseType
=
"blob"
,
t
.
onload
=
function
(){
if
(
200
===
this
.
status
){
var
e
=
this
.
response
;
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
navigator
.
msSaveBlob
(
e
,
"模板文件.xlsx"
);
else
{
var
t
=
document
.
createElement
(
"a"
),
n
=
window
.
URL
?
window
.
URL
.
createObjectURL
(
e
):
window
.
webkitURL
.
createObjectURL
(
e
);
t
.
href
=
n
,
t
.
download
=
"模板文件.xlsx"
,
document
.
body
.
appendChild
(
t
),
t
.
click
(),
window
.
URL
.
revokeObjectURL
(
n
)}}},
t
.
send
()},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
d
=
s
,
p
=
n
(
"2877"
),
h
=
Object
(
p
[
"a"
])(
d
,
i
,
a
,
!
1
,
null
,
"5216733c"
,
null
);
t
[
"default"
]
=
h
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"f"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
m
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
h
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}},
c7a7
:
function
(
e
,
t
,
n
){
"use strict"
;
n
(
"8d41"
);
var
i
=
"@@wavesContext"
;
function
a
(
e
,
t
){
function
n
(
n
){
var
i
=
Object
.
assign
({},
t
.
value
),
a
=
Object
.
assign
({
ele
:
e
,
type
:
"hit"
,
color
:
"rgba(0, 0, 0, 0.15)"
},
i
),
o
=
a
.
ele
;
if
(
o
){
o
.
style
.
position
=
"relative"
,
o
.
style
.
overflow
=
"hidden"
;
var
r
=
o
.
getBoundingClientRect
(),
c
=
o
.
querySelector
(
".waves-ripple"
);
switch
(
c
?
c
.
className
=
"waves-ripple"
:(
c
=
document
.
createElement
(
"span"
),
c
.
className
=
"waves-ripple"
,
c
.
style
.
height
=
c
.
style
.
width
=
Math
.
max
(
r
.
width
,
r
.
height
)
+
"px"
,
o
.
appendChild
(
c
)),
a
.
type
){
case
"center"
:
c
.
style
.
top
=
r
.
height
/
2
-
c
.
offsetHeight
/
2
+
"px"
,
c
.
style
.
left
=
r
.
width
/
2
-
c
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
c
.
style
.
top
=
(
n
.
pageY
-
r
.
top
-
c
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
c
.
style
.
left
=
(
n
.
pageX
-
r
.
left
-
c
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
c
.
style
.
backgroundColor
=
a
.
color
,
c
.
className
=
"waves-ripple z-active"
,
!
1
}}
return
e
[
i
]?
e
[
i
].
removeHandle
=
n
:
e
[
i
]
=
{
removeHandle
:
n
},
n
}
t
[
"a"
]
=
{
bind
:
function
(
e
,
t
){
e
.
addEventListener
(
"click"
,
a
(
e
,
t
),
!
1
)},
update
:
function
(
e
,
t
){
e
.
removeEventListener
(
"click"
,
e
[
i
].
removeHandle
,
!
1
),
e
.
addEventListener
(
"click"
,
a
(
e
,
t
),
!
1
)},
unbind
:
function
(
e
){
e
.
removeEventListener
(
"click"
,
e
[
i
].
removeHandle
,
!
1
),
e
[
i
]
=
null
,
delete
e
[
i
]}}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-218bb4cf.0b4035d6.js
deleted
100644 → 0
View file @
b37a8bf6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-218bb4cf"
],{
"1c64"
:
function
(
e
,
t
,
n
){},
"1cc6"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
i
=
n
(
"1c64"
),
a
=
n
.
n
(
i
);
a
.
a
},
"2bee"
:
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
(
"删除产品系列"
)])],
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
:
"seriesId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列号"
,
prop
:
"seriesNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列详情"
,
prop
:
"remark"
,
width
:
"300"
,
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
(
"ac6a"
),
n
(
"333d"
)),
o
=
n
(
"c7a7"
),
s
=
n
(
"7d09"
),
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
:[],
series
:{},
seriesIds
:[]}},
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
(
s
[
"e"
])(
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/productSeries"
,
query
:
this
.
listQuery
})},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/productSeries/add"
})},
editPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
series
=
this
.
multipleSelection
[
0
],
this
.
$router
.
push
({
path
:
"/configManagement/productSeries/edit"
,
query
:{
series
:
this
.
series
}});
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
.
seriesIds
.
push
(
t
.
seriesId
)})),
Object
(
s
[
"b"
])(
this
.
seriesIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
seriesIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
c
=
u
,
d
=
n
(
"2877"
),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"110ffac1"
,
null
);
t
[
"default"
]
=
p
.
exports
},
"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
s
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
l
(
e
,
t
,
n
){
var
i
=
s
(),
a
=
e
-
i
,
l
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
c
=
function
e
(){
u
+=
l
;
var
s
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
o
(
s
),
u
<
t
?
r
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
c
()}
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
)}}},
c
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
c
,
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
s
})),
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
}})}
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
s
(
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
){},
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
(),
s
=
r
.
querySelector
(
".waves-ripple"
);
switch
(
s
?
s
.
className
=
"waves-ripple"
:(
s
=
document
.
createElement
(
"span"
),
s
.
className
=
"waves-ripple"
,
s
.
style
.
height
=
s
.
style
.
width
=
Math
.
max
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
s
)),
a
.
type
){
case
"center"
:
s
.
style
.
top
=
o
.
height
/
2
-
s
.
offsetHeight
/
2
+
"px"
,
s
.
style
.
left
=
o
.
width
/
2
-
s
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
s
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
s
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
s
.
style
.
left
=
(
n
.
pageX
-
o
.
left
-
s
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
s
.
style
.
backgroundColor
=
a
.
color
,
s
.
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-218bb4cf.985ea374.js
0 → 100644
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-218bb4cf"
],{
"1c64"
:
function
(
e
,
t
,
n
){},
"1cc6"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
i
=
n
(
"1c64"
),
a
=
n
.
n
(
i
);
a
.
a
},
"2bee"
:
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
.
seriesNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"seriesNum"
,
t
)},
expression
:
"listQuery.seriesNum"
}}),
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
:
"seriesId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列号"
,
prop
:
"seriesNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列详情"
,
prop
:
"remark"
,
width
:
"300"
,
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
(
"ac6a"
),
n
(
"333d"
)),
o
=
n
(
"c7a7"
),
s
=
n
(
"7d09"
),
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
:[],
series
:{},
seriesIds
:[]}},
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
(
s
[
"e"
])(
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/productSeries"
,
query
:
this
.
listQuery
})},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/productSeries/add"
})},
editPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
series
=
this
.
multipleSelection
[
0
],
this
.
$router
.
push
({
path
:
"/configManagement/productSeries/edit"
,
query
:{
series
:
this
.
series
}});
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
.
seriesIds
.
push
(
t
.
seriesId
)})),
Object
(
s
[
"b"
])(
this
.
seriesIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
seriesIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
c
=
u
,
d
=
n
(
"2877"
),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"2576366e"
,
null
);
t
[
"default"
]
=
p
.
exports
},
"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
s
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
l
(
e
,
t
,
n
){
var
i
=
s
(),
a
=
e
-
i
,
l
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
c
=
function
e
(){
u
+=
l
;
var
s
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
o
(
s
),
u
<
t
?
r
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
c
()}
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
)}}},
c
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
c
,
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
s
})),
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
}})}
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
s
(
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
){},
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
(),
s
=
r
.
querySelector
(
".waves-ripple"
);
switch
(
s
?
s
.
className
=
"waves-ripple"
:(
s
=
document
.
createElement
(
"span"
),
s
.
className
=
"waves-ripple"
,
s
.
style
.
height
=
s
.
style
.
width
=
Math
.
max
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
s
)),
a
.
type
){
case
"center"
:
s
.
style
.
top
=
o
.
height
/
2
-
s
.
offsetHeight
/
2
+
"px"
,
s
.
style
.
left
=
o
.
width
/
2
-
s
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
s
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
s
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
s
.
style
.
left
=
(
n
.
pageX
-
o
.
left
-
s
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
s
.
style
.
backgroundColor
=
a
.
color
,
s
.
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-22e5f704.9d2df095.js
deleted
100644 → 0
View file @
b37a8bf6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-22e5f704"
],{
3304
:
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
:
"addChannel"
,
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"
,{
attrs
:{
placeholder
:
"奥迪-车系"
},
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
.
toSeriesList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
i
=
[],
r
=
(
t
(
"ac6a"
),
t
(
"456d"
),
t
(
"aa98"
)),
c
=
{
channelNum
:
"渠道号"
,
brand
:
"品牌车型"
},
d
=
{
data
:
function
(){
var
e
=
function
(
e
,
n
,
t
){
0
===
n
.
length
?
t
(
new
Error
(
c
[
e
.
field
]
+
"必须填写"
)):
t
()};
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
(
n
,
t
){
if
(
n
)
Object
(
r
[
"a"
])(
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
.
toSeriesList
()})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
t
[
Object
.
keys
(
t
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toSeriesList
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel"
})}}},
o
=
d
,
u
=
t
(
"2877"
),
l
=
Object
(
u
[
"a"
])(
o
,
a
,
i
,
!
1
,
null
,
"5398e163"
,
null
);
n
[
"default"
]
=
l
.
exports
},
aa98
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
d
(
n
,
"f"
,(
function
(){
return
i
})),
t
.
d
(
n
,
"g"
,(
function
(){
return
r
})),
t
.
d
(
n
,
"l"
,(
function
(){
return
c
})),
t
.
d
(
n
,
"b"
,(
function
(){
return
d
})),
t
.
d
(
n
,
"n"
,(
function
(){
return
o
})),
t
.
d
(
n
,
"j"
,(
function
(){
return
u
})),
t
.
d
(
n
,
"e"
,(
function
(){
return
l
})),
t
.
d
(
n
,
"a"
,(
function
(){
return
s
})),
t
.
d
(
n
,
"k"
,(
function
(){
return
h
})),
t
.
d
(
n
,
"h"
,(
function
(){
return
f
})),
t
.
d
(
n
,
"c"
,(
function
(){
return
v
})),
t
.
d
(
n
,
"d"
,(
function
(){
return
p
})),
t
.
d
(
n
,
"m"
,(
function
(){
return
m
})),
t
.
d
(
n
,
"i"
,(
function
(){
return
b
}));
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
}})}
function
r
(
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
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
o
(
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
f
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-22e5f704.cbc4478d.js
0 → 100644
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-22e5f704"
],{
3304
:
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
:
"addChannel"
,
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"
,{
attrs
:{
placeholder
:
"奥迪-车系"
},
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
.
toSeriesList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
i
=
[],
r
=
(
t
(
"ac6a"
),
t
(
"456d"
),
t
(
"aa98"
)),
c
=
{
channelNum
:
"渠道号"
,
brand
:
"品牌车型"
},
d
=
{
data
:
function
(){
var
e
=
function
(
e
,
n
,
t
){
0
===
n
.
length
?
t
(
new
Error
(
c
[
e
.
field
]
+
"必须填写"
)):
t
()};
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
(
n
,
t
){
if
(
n
)
Object
(
r
[
"a"
])(
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
.
toSeriesList
()})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
t
[
Object
.
keys
(
t
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toSeriesList
:
function
(){
this
.
$router
.
push
({
path
:
"/configManagement/deviceChannel"
})}}},
u
=
d
,
o
=
t
(
"2877"
),
l
=
Object
(
o
[
"a"
])(
u
,
a
,
i
,
!
1
,
null
,
"5398e163"
,
null
);
n
[
"default"
]
=
l
.
exports
},
aa98
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
d
(
n
,
"g"
,(
function
(){
return
i
})),
t
.
d
(
n
,
"h"
,(
function
(){
return
r
})),
t
.
d
(
n
,
"n"
,(
function
(){
return
c
})),
t
.
d
(
n
,
"b"
,(
function
(){
return
d
})),
t
.
d
(
n
,
"p"
,(
function
(){
return
u
})),
t
.
d
(
n
,
"l"
,(
function
(){
return
o
})),
t
.
d
(
n
,
"j"
,(
function
(){
return
l
})),
t
.
d
(
n
,
"f"
,(
function
(){
return
s
})),
t
.
d
(
n
,
"a"
,(
function
(){
return
h
})),
t
.
d
(
n
,
"m"
,(
function
(){
return
f
})),
t
.
d
(
n
,
"i"
,(
function
(){
return
v
})),
t
.
d
(
n
,
"c"
,(
function
(){
return
p
})),
t
.
d
(
n
,
"d"
,(
function
(){
return
m
})),
t
.
d
(
n
,
"o"
,(
function
(){
return
b
})),
t
.
d
(
n
,
"k"
,(
function
(){
return
g
})),
t
.
d
(
n
,
"e"
,(
function
(){
return
j
}));
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
}})}
function
r
(
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
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
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
v
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
g
(
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
})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-25a34ff8.bff415f7.js
deleted
100644 → 0
View file @
b37a8bf6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-25a34ff8"
],{
"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
l
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
c
(
e
,
t
,
n
){
var
i
=
l
(),
a
=
e
-
i
,
c
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
s
=
function
e
(){
u
+=
c
;
var
l
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
o
(
l
),
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
&&
c
(
0
,
800
)},
handleCurrentChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
e
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
c
(
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
,
"f"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
v
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
r
(
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
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
h
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
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
(
"删除"
)])],
1
)]),
e
.
_v
(
" "
),
n
(
"el-main"
,[
n
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
listLoading
,
expression
:
"listLoading"
}],
key
:
e
.
tableKey
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
list
,
border
:
""
,
fit
:
""
,
"highlight-current-row"
:
""
,
"default-sort"
:
e
.
defaultSort
},
on
:{
"sort-change"
:
e
.
sortChange
,
"selection-change"
:
e
.
handleSelectionChange
}},[
n
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"设备ID"
,
prop
:
"deviceId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列"
,
prop
:
"seriesNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"imei"
,
prop
:
"imei"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"规则"
,
prop
:
"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
(
"333d"
),
o
=
n
(
"c7a7"
),
l
=
n
(
"ed08"
),
c
=
n
(
"aa98"
),
u
=
{
components
:{
Pagination
:
r
[
"a"
]},
directives
:{
waves
:
o
[
"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
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
getList
()},
beforeRouteUpdate
:
function
(
e
,
t
,
n
){
if
(
e
.
path
===
t
.
path
){
var
i
=
Object
.
assign
({},
e
.
query
),
a
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
i
)
!==
JSON
.
stringify
(
a
)
&&
this
.
getList
()}
n
()},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
sortChange
:
function
(
e
){
console
.
log
(
"sortChange"
,
e
);
var
t
=
e
.
prop
,
n
=
e
.
order
;
this
.
sortBy
(
t
,
n
)},
sortBy
:
function
(
e
,
t
){
this
.
listQuery
.
sort
=
"ascending"
===
t
?
"+"
.
concat
(
e
):
"-"
.
concat
(
e
),
this
.
handleFilter
()},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
Object
(
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
}))},
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
Object
(
c
[
"d"
])(
this
.
multipleSelection
[
0
].
deviceId
).
then
((
function
(
t
){
e
.
getList
()}));
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
=
u
,
d
=
n
(
"2877"
),
p
=
Object
(
d
[
"a"
])(
s
,
i
,
a
,
!
1
,
null
,
"64678976"
,
null
);
t
[
"default"
]
=
p
.
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
(),
l
=
r
.
querySelector
(
".waves-ripple"
);
switch
(
l
?
l
.
className
=
"waves-ripple"
:(
l
=
document
.
createElement
(
"span"
),
l
.
className
=
"waves-ripple"
,
l
.
style
.
height
=
l
.
style
.
width
=
Math
.
max
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
l
)),
a
.
type
){
case
"center"
:
l
.
style
.
top
=
o
.
height
/
2
-
l
.
offsetHeight
/
2
+
"px"
,
l
.
style
.
left
=
o
.
width
/
2
-
l
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
l
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
l
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
l
.
style
.
left
=
(
n
.
pageX
-
o
.
left
-
l
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
l
.
style
.
backgroundColor
=
a
.
color
,
l
.
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-2b4823a9.36c8772f.js
0 → 100644
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-2b4823a9"
],{
"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
l
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
s
(
e
,
t
,
n
){
var
i
=
l
(),
a
=
e
-
i
,
s
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
c
=
function
e
(){
u
+=
s
;
var
l
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
o
(
l
),
u
<
t
?
r
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
c
()}
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
)}}},
c
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"7f67"
:
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
.
roleName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"roleName"
,
t
)},
expression
:
"listQuery.roleName"
}}),
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
:
"角色ID"
,
prop
:
"roleId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"角色名称"
,
prop
:
"roleName"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"描述"
,
prop
:
"remark"
,
width
:
"300"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"所属客户"
,
prop
:
"deptName"
,
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
(
"ac6a"
),
n
(
"333d"
)),
o
=
n
(
"c7a7"
),
l
=
n
(
"cc5e"
),
s
=
n
(
"ed08"
),
u
=
{
components
:{
Pagination
:
r
[
"a"
]},
directives
:{
waves
:
o
[
"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
:[],
role
:{},
roleIds
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
getList
()},
beforeRouteUpdate
:
function
(
e
,
t
,
n
){
if
(
e
.
path
===
t
.
path
){
var
i
=
Object
.
assign
({},
e
.
query
),
a
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
i
)
!==
JSON
.
stringify
(
a
)
&&
this
.
getList
()}
n
()},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
sortChange
:
function
(
e
){
console
.
log
(
"sortChange"
,
e
);
var
t
=
e
.
prop
,
n
=
e
.
order
;
this
.
sortBy
(
t
,
n
)},
sortBy
:
function
(
e
,
t
){
this
.
listQuery
.
sort
=
"ascending"
===
t
?
"+"
.
concat
(
e
):
"-"
.
concat
(
e
),
this
.
handleFilter
()},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
Object
(
l
[
"d"
])(
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
:
"/system/role/add"
})},
editPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
role
=
this
.
multipleSelection
[
0
],
this
.
$router
.
push
({
path
:
"/system/role/edit"
,
query
:{
roleId
:
this
.
role
.
roleId
}});
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
.
roleIds
.
push
(
t
.
roleId
)})),
Object
(
l
[
"b"
])(
this
.
roleIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
roleIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/system/role"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
c
=
u
,
d
=
n
(
"2877"
),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"1e1ccbe0"
,
null
);
t
[
"default"
]
=
p
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
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
(),
l
=
r
.
querySelector
(
".waves-ripple"
);
switch
(
l
?
l
.
className
=
"waves-ripple"
:(
l
=
document
.
createElement
(
"span"
),
l
.
className
=
"waves-ripple"
,
l
.
style
.
height
=
l
.
style
.
width
=
Math
.
max
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
l
)),
a
.
type
){
case
"center"
:
l
.
style
.
top
=
o
.
height
/
2
-
l
.
offsetHeight
/
2
+
"px"
,
l
.
style
.
left
=
o
.
width
/
2
-
l
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
l
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
l
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
l
.
style
.
left
=
(
n
.
pageX
-
o
.
left
-
l
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
l
.
style
.
backgroundColor
=
a
.
color
,
l
.
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
]}}},
cc5e
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
u
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/info"
,
method
:
"post"
,
data
:{
roleId
:
e
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/edit"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
roleName
:
e
.
roleName
}})}
function
u
(){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/listAll"
,
method
:
"post"
})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-2b4823a9.51b17cc9.js
deleted
100644 → 0
View file @
b37a8bf6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-2b4823a9"
],{
"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
l
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
s
(
e
,
t
,
n
){
var
i
=
l
(),
a
=
e
-
i
,
s
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
c
=
function
e
(){
u
+=
s
;
var
l
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
r
(
l
),
u
<
t
?
o
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
c
()}
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
)}}},
c
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"7f67"
:
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
(
"删除角色"
)])],
1
)]),
e
.
_v
(
" "
),
n
(
"el-main"
,[
n
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
listLoading
,
expression
:
"listLoading"
}],
key
:
e
.
tableKey
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
list
,
border
:
""
,
fit
:
""
,
"highlight-current-row"
:
""
,
"default-sort"
:
e
.
defaultSort
},
on
:{
"sort-change"
:
e
.
sortChange
,
"selection-change"
:
e
.
handleSelectionChange
}},[
n
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"角色ID"
,
prop
:
"roleId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"角色名称"
,
prop
:
"roleName"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"描述"
,
prop
:
"remark"
,
width
:
"300"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"所属客户"
,
prop
:
"deptName"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"时间"
,
prop
:
"createTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
createTime
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeFilter"
)(
i
)))])]}}])})],
1
),
e
.
_v
(
" "
),
n
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
e
.
total
,
page
:
e
.
listQuery
.
page
,
limit
:
e
.
listQuery
.
pageSize
},
on
:{
"update:page"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"page"
,
t
)},
"update:limit"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"pageSize"
,
t
)},
pagination
:
e
.
refresh
}})],
1
)],
1
)},
a
=
[],
o
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
r
=
n
(
"c7a7"
),
l
=
n
(
"cc5e"
),
s
=
n
(
"ed08"
),
u
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
r
[
"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
:[],
role
:{},
roleIds
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
getList
()},
beforeRouteUpdate
:
function
(
e
,
t
,
n
){
if
(
e
.
path
===
t
.
path
){
var
i
=
Object
.
assign
({},
e
.
query
),
a
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
i
)
!==
JSON
.
stringify
(
a
)
&&
this
.
getList
()}
n
()},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
sortChange
:
function
(
e
){
console
.
log
(
"sortChange"
,
e
);
var
t
=
e
.
prop
,
n
=
e
.
order
;
this
.
sortBy
(
t
,
n
)},
sortBy
:
function
(
e
,
t
){
this
.
listQuery
.
sort
=
"ascending"
===
t
?
"+"
.
concat
(
e
):
"-"
.
concat
(
e
),
this
.
handleFilter
()},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
Object
(
l
[
"d"
])(
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
:
"/system/role/add"
})},
editPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
role
=
this
.
multipleSelection
[
0
],
this
.
$router
.
push
({
path
:
"/system/role/edit"
,
query
:{
roleId
:
this
.
role
.
roleId
}});
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
.
roleIds
.
push
(
t
.
roleId
)})),
Object
(
l
[
"b"
])(
this
.
roleIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
roleIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/system/role"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
c
=
u
,
d
=
n
(
"2877"
),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"79e7dbfe"
,
null
);
t
[
"default"
]
=
p
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
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
(),
l
=
o
.
querySelector
(
".waves-ripple"
);
switch
(
l
?
l
.
className
=
"waves-ripple"
:(
l
=
document
.
createElement
(
"span"
),
l
.
className
=
"waves-ripple"
,
l
.
style
.
height
=
l
.
style
.
width
=
Math
.
max
(
r
.
width
,
r
.
height
)
+
"px"
,
o
.
appendChild
(
l
)),
a
.
type
){
case
"center"
:
l
.
style
.
top
=
r
.
height
/
2
-
l
.
offsetHeight
/
2
+
"px"
,
l
.
style
.
left
=
r
.
width
/
2
-
l
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
l
.
style
.
top
=
(
n
.
pageY
-
r
.
top
-
l
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
l
.
style
.
left
=
(
n
.
pageX
-
r
.
left
-
l
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
l
.
style
.
backgroundColor
=
a
.
color
,
l
.
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
]}}},
cc5e
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
u
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/info"
,
method
:
"post"
,
data
:{
roleId
:
e
}})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/add"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/edit"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
u
(){
return
Object
(
i
[
"a"
])({
url
:
"/sys/role/listAll"
,
method
:
"post"
})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-3b59103a.
8d86d081
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-3b59103a.
b9c0582c
.js
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-3b59103a"
],{
"21f1"
:
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
:
"addDept"
,
attrs
:{
model
:
e
.
dept
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"parentId"
,
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
:
"name"
,
label
:
"客户名称"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"name"
,
t
)},
expression
:
"dept.name"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"delFlag"
,
label
:
"可用"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
dept
.
delFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"delFlag"
,
t
)},
expression
:
"dept.delFlag"
}},[
n
(
"el-option"
,{
attrs
:{
label
:
"可用"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
n
(
"el-option"
,{
attrs
:{
label
:
"不可用"
,
value
:
"1"
}})],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"distributorNum"
,
label
:
"渠道商"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
distributorNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"distributorNum"
,
t
)},
expression
:
"dept.distributorNum"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"描述"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"remark"
,
t
)},
expression
:
"dept.remark"
}})],
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
.
toDeptList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
r
=
[],
l
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"fe05"
)),
s
=
{
parentId
:
"选择父级"
,
name
:
"客户名称"
,
delFlag
:
"可用"
,
distributorNum
:
"渠道商号"
,
remark
:
"描述"
},
o
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
0
===
t
.
length
?
n
(
new
Error
(
s
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
dept
:{
deptId
:
""
,
parentId
:
""
,
name
:
""
,
delFlag
:
""
,
distributorNum
:
""
,
remark
:
""
},
rules
:{
name
:[{
validator
:
e
}],
delFlag
:[{
validator
:
e
}]},
options
:[],
selectDeptParents
:[]}},
mounted
:
function
(){
this
.
selectDeptParent
()},
methods
:{
setDefault
:
function
(){
this
.
$refs
.
addDept
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
addDept
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
l
[
"a"
])(
e
.
dept
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
loading
=!
1
,
e
.
setDefault
(),
e
.
toDeptList
()})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeptList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/dept"
})},
selectDeptParent
:
function
(){
var
e
=
this
;
Object
(
l
[
"e"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
e
.
options
=
n
}))},
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
dept
.
parentId
=
e
[
t
]}}},
i
=
o
,
d
=
n
(
"2877"
),
u
=
Object
(
d
[
"a"
])(
i
,
a
,
r
,
!
1
,
null
,
"624cd64e"
,
null
);
t
[
"default"
]
=
u
.
exports
},
fe05
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
d
}));
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
}})}
function
l
(){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
s
(){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
d
(
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-3b59103a"
],{
"21f1"
:
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
:
"addDept"
,
attrs
:{
model
:
e
.
dept
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"parentId"
,
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
:
"name"
,
label
:
"客户名称"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"name"
,
t
)},
expression
:
"dept.name"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"delFlag"
,
label
:
"可用"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
dept
.
delFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"delFlag"
,
t
)},
expression
:
"dept.delFlag"
}},[
n
(
"el-option"
,{
attrs
:{
label
:
"可用"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
n
(
"el-option"
,{
attrs
:{
label
:
"不可用"
,
value
:
"1"
}})],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"distributorNum"
,
label
:
"渠道商"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
distributorNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"distributorNum"
,
t
)},
expression
:
"dept.distributorNum"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"描述"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"remark"
,
t
)},
expression
:
"dept.remark"
}})],
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
.
toDeptList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
r
=
[],
l
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"fe05"
)),
s
=
{
parentId
:
"选择父级"
,
name
:
"客户名称"
,
delFlag
:
"可用"
,
distributorNum
:
"渠道商号"
,
remark
:
"描述"
},
o
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
0
===
t
.
length
?
n
(
new
Error
(
s
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
dept
:{
deptId
:
""
,
parentId
:
""
,
name
:
""
,
delFlag
:
""
,
distributorNum
:
""
,
remark
:
""
},
rules
:{
name
:[{
validator
:
e
}],
delFlag
:[{
validator
:
e
}]},
options
:[],
selectDeptParents
:[]}},
mounted
:
function
(){
this
.
selectDeptParent
()},
methods
:{
setDefault
:
function
(){
this
.
$refs
.
addDept
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
addDept
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
l
[
"a"
])(
e
.
dept
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
loading
=!
1
,
e
.
setDefault
(),
e
.
toDeptList
()})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
a
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
a
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toDeptList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/dept"
})},
selectDeptParent
:
function
(){
var
e
=
this
;
Object
(
l
[
"e"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
e
.
options
=
n
}))},
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
dept
.
parentId
=
e
[
t
]}}},
i
=
o
,
d
=
n
(
"2877"
),
u
=
Object
(
d
[
"a"
])(
i
,
a
,
r
,
!
1
,
null
,
"624cd64e"
,
null
);
t
[
"default"
]
=
u
.
exports
},
fe05
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
d
}));
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
l
(){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
s
(){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
d
(
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-403c80dd.
94c0ac41
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-403c80dd.
28998573
.js
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-403c80dd"
],{
"2c98"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
o
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/module/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/func/listAll"
,
method
:
"post"
})}},
"9e63"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"el-container"
,[
r
(
"el-main"
,[
r
(
"el-form"
,{
ref
:
"editRole"
,
attrs
:{
model
:
e
.
role
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属部门"
}},[
r
(
"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
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
prop
:
"roleName"
,
label
:
"角色名称"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
role
.
roleName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
role
,
"roleName"
,
t
)},
expression
:
"role.roleName"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"角色描述"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
role
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
role
,
"remark"
,
t
)},
expression
:
"role.remark"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"权限设置"
}},[
r
(
"el-tree"
,{
ref
:
"funcTree"
,
attrs
:{
data
:
e
.
funcTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"数据权限"
}},[
r
(
"el-tree"
,{
ref
:
"deptTree"
,
attrs
:{
data
:
e
.
deptTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"添加"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
on
:{
click
:
e
.
toRoleList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
a
=
[],
o
=
(
r
(
"ac6a"
),
r
(
"456d"
),
r
(
"96cf"
),
r
(
"3b8d"
)),
s
=
r
(
"fe05"
),
i
=
r
(
"cc5e"
),
u
=
r
(
"2c98"
),
c
=
r
(
"f62d"
),
l
=
r
(
"ed08"
),
d
=
{
roleName
:
"角色名称"
,
remark
:
"描述"
},
f
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
r
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
r
(
new
Error
(
d
[
e
.
field
]
+
"必须填写"
)):
r
()};
return
{
loading
:
!
1
,
role
:{
roleId
:
""
,
deptIdList
:[],
funcIdList
:[],
createTime
:
""
},
rules
:{
roleName
:[{
validator
:
e
}],
remark
:[{
validator
:
e
}]},
funcTreeData
:[],
deptTreeData
:[],
options
:[],
selectDeptParents
:[],
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
mounted
:
function
(){
this
.
role
.
roleId
=
this
.
$route
.
query
.
roleId
,
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
o
[
"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
.
selectDeptParentTree
();
case
4
:
return
e
.
next
=
6
,
this
.
selectFuncTree
();
case
6
:
this
.
getRoleInfo
();
case
7
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
editRole
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
editRole
.
validate
((
function
(
t
,
r
){
if
(
t
)
e
.
handleDeptChange
(),
e
.
handleFuncChange
(),
e
.
role
.
createTime
=
Object
(
l
[
"d"
])(
e
.
role
.
createTime
,
"{y}-{m}-{d} {h}:{i}:{s}"
),
Object
(
i
[
"f"
])(
e
.
role
).
then
((
function
(
t
){
var
r
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
r
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toRoleList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
n
=
r
[
Object
.
keys
(
r
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
n
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toRoleList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/role"
})},
selectDeptParent
:
function
(){
var
e
=
Object
(
o
[
"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
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
options
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParentTree
:
function
(){
var
e
=
Object
(
o
[
"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
[
"f"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
deptTreeData
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectFuncTree
:
function
(){
var
e
=
Object
(
o
[
"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
[
"b"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
funcTreeData
=
r
}));
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
.
role
.
deptId
=
e
[
t
]},
handleFuncChange
:
function
(){
var
e
=
[];
this
.
$refs
.
funcTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
role
.
funcIdList
=
e
},
handleDeptChange
:
function
(){
var
e
=
[];
this
.
$refs
.
deptTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
role
.
deptIdList
=
e
},
getRoleInfo
:
function
(){
var
e
=
Object
(
o
[
"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
(
i
[
"c"
])(
this
.
role
.
roleId
).
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
role
=
r
,
t
.
setFuncTree
(
t
.
role
.
funcIdList
),
t
.
setDeptTree
(
t
.
role
.
deptIdList
),
t
.
setSelectCas
()}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setFuncTree
:
function
(){
var
e
=
Object
(
o
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
t
){
var
r
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
r
=
[],
e
.
next
=
3
,
t
.
forEach
((
function
(
e
){
r
.
push
({
id
:
e
})}));
case
3
:
this
.
$refs
.
funcTree
.
setCheckedNodes
(
r
);
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(
t
){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDeptTree
:
function
(){
var
e
=
Object
(
o
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
t
){
var
r
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
r
=
[],
e
.
next
=
3
,
t
.
forEach
((
function
(
e
){
r
.
push
({
id
:
e
})}));
case
3
:
this
.
$refs
.
deptTree
.
setCheckedNodes
(
r
);
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(
t
){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setSelectCas
:
function
(){
var
e
=
Object
(
o
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
t
=
[],
e
.
next
=
3
,
Object
(
c
[
"a"
])(
t
,
this
.
options
,
this
.
role
.
deptId
);
case
3
:
this
.
selectDeptParents
=
t
;
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
p
=
f
,
h
=
r
(
"2877"
),
m
=
Object
(
h
[
"a"
])(
p
,
n
,
a
,
!
1
,
null
,
"0d82c9a8"
,
null
);
t
[
"default"
]
=
m
.
exports
},
cc5e
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
c
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/info"
,
method
:
"post"
,
data
:{
roleId
:
e
}})}
function
o
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/add"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/edit"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
c
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/listAll"
,
method
:
"post"
})}},
f62d
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
a
}));
r
(
"96cf"
);
var
n
=
r
(
"3b8d"
);
r
(
"ac6a"
);
function
a
(
e
,
t
,
r
){
return
o
.
apply
(
this
,
arguments
)}
function
o
(){
return
o
=
Object
(
n
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
t
,
r
,
n
){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
r
.
forEach
((
function
(
e
){
return
e
.
value
===
n
?(
t
.
unshift
(
e
.
value
),
t
):
0
===
e
.
children
.
length
?
null
:
void
a
(
t
,
e
.
children
,
n
).
then
((
function
(){
t
.
unshift
(
e
.
value
)}))}));
case
1
:
case
"end"
:
return
e
.
stop
()}}),
e
)}))),
o
.
apply
(
this
,
arguments
)}},
fe05
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
c
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
s
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-403c80dd"
],{
"2c98"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
o
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/module/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/func/listAll"
,
method
:
"post"
})}},
"9e63"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"el-container"
,[
r
(
"el-main"
,[
r
(
"el-form"
,{
ref
:
"editRole"
,
attrs
:{
model
:
e
.
role
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属部门"
}},[
r
(
"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
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
prop
:
"roleName"
,
label
:
"角色名称"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
role
.
roleName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
role
,
"roleName"
,
t
)},
expression
:
"role.roleName"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"角色描述"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
role
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
role
,
"remark"
,
t
)},
expression
:
"role.remark"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"权限设置"
}},[
r
(
"el-tree"
,{
ref
:
"funcTree"
,
attrs
:{
data
:
e
.
funcTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"数据权限"
}},[
r
(
"el-tree"
,{
ref
:
"deptTree"
,
attrs
:{
data
:
e
.
deptTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"添加"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
on
:{
click
:
e
.
toRoleList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
a
=
[],
o
=
(
r
(
"ac6a"
),
r
(
"456d"
),
r
(
"96cf"
),
r
(
"3b8d"
)),
s
=
r
(
"fe05"
),
i
=
r
(
"cc5e"
),
u
=
r
(
"2c98"
),
c
=
r
(
"f62d"
),
l
=
r
(
"ed08"
),
d
=
{
roleName
:
"角色名称"
,
remark
:
"描述"
},
f
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
r
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
r
(
new
Error
(
d
[
e
.
field
]
+
"必须填写"
)):
r
()};
return
{
loading
:
!
1
,
role
:{
roleId
:
""
,
deptIdList
:[],
funcIdList
:[],
createTime
:
""
},
rules
:{
roleName
:[{
validator
:
e
}],
remark
:[{
validator
:
e
}]},
funcTreeData
:[],
deptTreeData
:[],
options
:[],
selectDeptParents
:[],
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
mounted
:
function
(){
this
.
role
.
roleId
=
this
.
$route
.
query
.
roleId
,
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
o
[
"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
.
selectDeptParentTree
();
case
4
:
return
e
.
next
=
6
,
this
.
selectFuncTree
();
case
6
:
this
.
getRoleInfo
();
case
7
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
editRole
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
editRole
.
validate
((
function
(
t
,
r
){
if
(
t
)
e
.
handleDeptChange
(),
e
.
handleFuncChange
(),
e
.
role
.
createTime
=
Object
(
l
[
"d"
])(
e
.
role
.
createTime
,
"{y}-{m}-{d} {h}:{i}:{s}"
),
Object
(
i
[
"f"
])(
e
.
role
).
then
((
function
(
t
){
var
r
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
r
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toRoleList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
n
=
r
[
Object
.
keys
(
r
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
n
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toRoleList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/role"
})},
selectDeptParent
:
function
(){
var
e
=
Object
(
o
[
"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
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
options
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParentTree
:
function
(){
var
e
=
Object
(
o
[
"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
[
"f"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
deptTreeData
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectFuncTree
:
function
(){
var
e
=
Object
(
o
[
"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
[
"b"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
funcTreeData
=
r
}));
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
.
role
.
deptId
=
e
[
t
]},
handleFuncChange
:
function
(){
var
e
=
[];
this
.
$refs
.
funcTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
role
.
funcIdList
=
e
},
handleDeptChange
:
function
(){
var
e
=
[];
this
.
$refs
.
deptTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
role
.
deptIdList
=
e
},
getRoleInfo
:
function
(){
var
e
=
Object
(
o
[
"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
(
i
[
"c"
])(
this
.
role
.
roleId
).
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
role
=
r
,
t
.
setFuncTree
(
t
.
role
.
funcIdList
),
t
.
setDeptTree
(
t
.
role
.
deptIdList
),
t
.
setSelectCas
()}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setFuncTree
:
function
(){
var
e
=
Object
(
o
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
t
){
var
r
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
r
=
[],
e
.
next
=
3
,
t
.
forEach
((
function
(
e
){
r
.
push
({
id
:
e
})}));
case
3
:
this
.
$refs
.
funcTree
.
setCheckedNodes
(
r
);
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(
t
){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDeptTree
:
function
(){
var
e
=
Object
(
o
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
t
){
var
r
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
r
=
[],
e
.
next
=
3
,
t
.
forEach
((
function
(
e
){
r
.
push
({
id
:
e
})}));
case
3
:
this
.
$refs
.
deptTree
.
setCheckedNodes
(
r
);
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(
t
){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setSelectCas
:
function
(){
var
e
=
Object
(
o
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
t
=
[],
e
.
next
=
3
,
Object
(
c
[
"a"
])(
t
,
this
.
options
,
this
.
role
.
deptId
);
case
3
:
this
.
selectDeptParents
=
t
;
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
p
=
f
,
h
=
r
(
"2877"
),
m
=
Object
(
h
[
"a"
])(
p
,
n
,
a
,
!
1
,
null
,
"0d82c9a8"
,
null
);
t
[
"default"
]
=
m
.
exports
},
cc5e
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
c
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/info"
,
method
:
"post"
,
data
:{
roleId
:
e
}})}
function
o
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/add"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/edit"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
roleName
:
e
.
roleName
}})}
function
c
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/listAll"
,
method
:
"post"
})}},
f62d
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
a
}));
r
(
"96cf"
);
var
n
=
r
(
"3b8d"
);
r
(
"ac6a"
);
function
a
(
e
,
t
,
r
){
return
o
.
apply
(
this
,
arguments
)}
function
o
(){
return
o
=
Object
(
n
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
t
,
r
,
n
){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
r
.
forEach
((
function
(
e
){
return
e
.
value
===
n
?(
t
.
unshift
(
e
.
value
),
t
):
0
===
e
.
children
.
length
?
null
:
void
a
(
t
,
e
.
children
,
n
).
then
((
function
(){
t
.
unshift
(
e
.
value
)}))}));
case
1
:
case
"end"
:
return
e
.
stop
()}}),
e
)}))),
o
.
apply
(
this
,
arguments
)}},
fe05
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
c
}));
r
(
"7f7f"
),
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
name
:
e
.
name
}})}
function
o
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
s
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
n
[
"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-
e6a30210.3b0b2fc2
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-
42656c84.10a9358d
.js
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-e6a30210"
],{
"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
},
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"
),
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 Drop excel file here or
\
n "
),
n
(
"el-button"
,{
staticStyle
:{
"margin-left"
:
"16px"
},
attrs
:{
loading
:
e
.
loading
,
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
e
.
handleUpload
}},[
e
.
_v
(
"
\
n Browse
\
n "
)])],
1
)])}),
c
=
[],
o
=
(
n
(
"7f7f"
),
n
(
"1146"
)),
l
=
n
.
n
(
o
),
u
=
{
props
:{
beforeUpload
:
Function
,
onSuccess
:
Function
},
data
:
function
(){
return
{
loading
:
!
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
)}
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
=
l
.
a
.
read
(
a
,{
type
:
"array"
}),
i
=
r
.
SheetNames
[
0
],
s
=
r
.
Sheets
[
i
],
c
=
t
.
getHeaderRow
(
s
),
o
=
l
.
a
.
utils
.
sheet_to_json
(
s
);
t
.
generateData
({
header
:
c
,
results
:
o
}),
t
.
loading
=!
1
,
n
()},
r
.
readAsArrayBuffer
(
e
)}))},
getHeaderRow
:
function
(
e
){
var
t
,
n
=
[],
a
=
l
.
a
.
utils
.
decode_range
(
e
[
"!ref"
]),
r
=
a
.
s
.
r
;
for
(
t
=
a
.
s
.
c
;
t
<=
a
.
e
.
c
;
++
t
){
var
i
=
e
[
l
.
a
.
utils
.
encode_cell
({
c
:
t
,
r
:
r
})],
s
=
"UNKNOWN "
+
t
;
i
&&
i
.
t
&&
(
s
=
l
.
a
.
utils
.
format_cell
(
i
)),
n
.
push
(
s
)}
return
n
},
isExcel
:
function
(
e
){
return
/
\.(
xlsx|xls|csv
)
$/
.
test
(
e
.
name
)}}},
d
=
u
,
p
=
(
n
(
"a0e0"
),
n
(
"2877"
)),
f
=
Object
(
p
[
"a"
])(
d
,
s
,
c
,
!
1
,
null
,
"bad043b2"
,
null
),
h
=
f
.
exports
,
v
=
n
(
"aa98"
),
m
=
n
(
"7d09"
),
g
=
n
(
"fe05"
),
b
=
{
channelNumsMessage
:
"终端提示文字"
,
channelRules
:
"规则"
},
O
=
{
components
:{
UploadExcelComponent
:
h
},
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
n
(
new
Error
(
b
[
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
:[]}},
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
(
v
[
"h"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
n
.
forEach
((
function
(
t
){
e
.
device
.
selectChannelNums
.
push
({
key
:
t
.
channelId
,
label
:
t
.
channelNum
})}))}))},
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
(
m
[
"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
(
v
[
"n"
])(
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
(
g
[
"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
}()}},
D
=
O
,
x
=
Object
(
p
[
"a"
])(
D
,
a
,
r
,
!
1
,
null
,
"dcb652d8"
,
null
);
t
[
"default"
]
=
x
.
exports
},
1
:
function
(
e
,
t
){},
2
:
function
(
e
,
t
){},
3
:
function
(
e
,
t
){},
"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
}})}
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"
})}},
a0e0
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"a8b4"
),
r
=
n
.
n
(
a
);
r
.
a
},
a8b4
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"f"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
g
}));
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
}})}
function
i
(
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
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
o
(
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
d
(
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
f
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
g
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}},
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
(
"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
}})}
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-42656c84"
],{
"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
},
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"
),
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 Drop excel file here or
\
n "
),
n
(
"el-button"
,{
staticStyle
:{
"margin-left"
:
"16px"
},
attrs
:{
loading
:
e
.
loading
,
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
e
.
handleUpload
}},[
e
.
_v
(
"
\
n Browse
\
n "
)])],
1
)])}),
c
=
[],
o
=
(
n
(
"7f7f"
),
n
(
"1146"
)),
l
=
n
.
n
(
o
),
u
=
{
props
:{
beforeUpload
:
Function
,
onSuccess
:
Function
},
data
:
function
(){
return
{
loading
:
!
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
)}
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
=
l
.
a
.
read
(
a
,{
type
:
"array"
}),
i
=
r
.
SheetNames
[
0
],
s
=
r
.
Sheets
[
i
],
c
=
t
.
getHeaderRow
(
s
),
o
=
l
.
a
.
utils
.
sheet_to_json
(
s
);
t
.
generateData
({
header
:
c
,
results
:
o
}),
t
.
loading
=!
1
,
n
()},
r
.
readAsArrayBuffer
(
e
)}))},
getHeaderRow
:
function
(
e
){
var
t
,
n
=
[],
a
=
l
.
a
.
utils
.
decode_range
(
e
[
"!ref"
]),
r
=
a
.
s
.
r
;
for
(
t
=
a
.
s
.
c
;
t
<=
a
.
e
.
c
;
++
t
){
var
i
=
e
[
l
.
a
.
utils
.
encode_cell
({
c
:
t
,
r
:
r
})],
s
=
"UNKNOWN "
+
t
;
i
&&
i
.
t
&&
(
s
=
l
.
a
.
utils
.
format_cell
(
i
)),
n
.
push
(
s
)}
return
n
},
isExcel
:
function
(
e
){
return
/
\.(
xlsx|xls|csv
)
$/
.
test
(
e
.
name
)}}},
d
=
u
,
p
=
(
n
(
"a0e0"
),
n
(
"2877"
)),
f
=
Object
(
p
[
"a"
])(
d
,
s
,
c
,
!
1
,
null
,
"bad043b2"
,
null
),
h
=
f
.
exports
,
v
=
n
(
"aa98"
),
m
=
n
(
"7d09"
),
g
=
n
(
"fe05"
),
b
=
{
channelNumsMessage
:
"终端提示文字"
,
channelRules
:
"规则"
},
O
=
{
components
:{
UploadExcelComponent
:
h
},
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
n
(
new
Error
(
b
[
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
:[]}},
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
(
v
[
"i"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
n
.
forEach
((
function
(
t
){
e
.
device
.
selectChannelNums
.
push
({
key
:
t
.
channelId
,
label
:
t
.
channelNum
})}))}))},
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
(
m
[
"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
(
v
[
"p"
])(
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
(
g
[
"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
}()}},
D
=
O
,
j
=
Object
(
p
[
"a"
])(
D
,
a
,
r
,
!
1
,
null
,
"dcb652d8"
,
null
);
t
[
"default"
]
=
j
.
exports
},
1
:
function
(
e
,
t
){},
2
:
function
(
e
,
t
){},
3
:
function
(
e
,
t
){},
"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
}})}
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"
})}},
a0e0
:
function
(
e
,
t
,
n
){
"use strict"
;
var
a
=
n
(
"a8b4"
),
r
=
n
.
n
(
a
);
r
.
a
},
a8b4
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
O
}));
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
}})}
function
i
(
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
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
o
(
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
h
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
g
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
O
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteStatisticsDeviceChannel"
,
method
:
"post"
,
data
:
e
})}},
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-4ab8490a.52ceb2fb.js
deleted
100644 → 0
View file @
b37a8bf6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-4ab8490a"
],{
"1c64"
:
function
(
e
,
t
,
n
){},
"1cc6"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
i
=
n
(
"1c64"
),
a
=
n
.
n
(
i
);
a
.
a
},
"1db2"
:
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
(
"删除部门"
)])],
1
)]),
e
.
_v
(
" "
),
n
(
"el-main"
,[
n
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
listLoading
,
expression
:
"listLoading"
}],
key
:
e
.
tableKey
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
list
,
border
:
""
,
fit
:
""
,
"highlight-current-row"
:
""
,
"default-sort"
:
e
.
defaultSort
},
on
:{
"sort-change"
:
e
.
sortChange
,
"selection-change"
:
e
.
handleSelectionChange
}},[
n
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"部门ID"
,
prop
:
"deptId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"上级ID"
,
prop
:
"parentId"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"部门名称"
,
prop
:
"name"
,
width
:
"300"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"可用"
,
prop
:
"delFlag"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
delFlag
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"delFlagValueFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"渠道商号"
,
prop
:
"distributorNum"
,
width
:
"100"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"描述"
,
prop
:
"remark"
,
width
:
"100"
,
align
:
"center"
}})],
1
),
e
.
_v
(
" "
),
n
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
e
.
total
,
page
:
e
.
listQuery
.
page
,
limit
:
e
.
listQuery
.
pageSize
},
on
:{
"update:page"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"page"
,
t
)},
"update:limit"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"pageSize"
,
t
)},
pagination
:
e
.
refresh
}})],
1
)],
1
)},
a
=
[],
o
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
r
=
n
(
"c7a7"
),
l
=
n
(
"fe05"
),
s
=
n
(
"ed08"
),
u
=
{
components
:{
Pagination
:
o
[
"a"
]},
directives
:{
waves
:
r
[
"a"
]},
filters
:{
delFlagValueFilter
:
function
(
e
){
return
-
1
===
e
?
e
=
"不可用"
:
0
===
e
&&
(
e
=
"可用"
),
e
},
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
:[],
dept
:{},
deptIds
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
getList
()},
beforeRouteUpdate
:
function
(
e
,
t
,
n
){
if
(
e
.
path
===
t
.
path
){
var
i
=
Object
.
assign
({},
e
.
query
),
a
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
i
)
!==
JSON
.
stringify
(
a
)
&&
this
.
getList
()}
n
()},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
sortChange
:
function
(
e
){
console
.
log
(
"sortChange"
,
e
);
var
t
=
e
.
prop
,
n
=
e
.
order
;
this
.
sortBy
(
t
,
n
)},
sortBy
:
function
(
e
,
t
){
this
.
listQuery
.
sort
=
"ascending"
===
t
?
"+"
.
concat
(
e
):
"-"
.
concat
(
e
),
this
.
handleFilter
()},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
Object
(
l
[
"c"
])(
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
:
"/system/dept"
,
query
:
this
.
listQuery
})},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/system/dept/add"
})},
editPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
dept
=
this
.
multipleSelection
[
0
],
console
.
log
(
this
.
dept
),
this
.
$router
.
push
({
path
:
"/system/dept/edit"
,
query
:{
dept
:
this
.
dept
}});
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
.
deptIds
.
push
(
t
.
deptId
)})),
Object
(
l
[
"b"
])(
this
.
deptIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
deptIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
c
=
u
,
d
=
n
(
"2877"
),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"3fcf4482"
,
null
);
t
[
"default"
]
=
p
.
exports
},
"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
l
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
s
(
e
,
t
,
n
){
var
i
=
l
(),
a
=
e
-
i
,
s
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
c
=
function
e
(){
u
+=
s
;
var
l
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
r
(
l
),
u
<
t
?
o
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
c
()}
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
)}}},
c
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
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
(),
l
=
o
.
querySelector
(
".waves-ripple"
);
switch
(
l
?
l
.
className
=
"waves-ripple"
:(
l
=
document
.
createElement
(
"span"
),
l
.
className
=
"waves-ripple"
,
l
.
style
.
height
=
l
.
style
.
width
=
Math
.
max
(
r
.
width
,
r
.
height
)
+
"px"
,
o
.
appendChild
(
l
)),
a
.
type
){
case
"center"
:
l
.
style
.
top
=
r
.
height
/
2
-
l
.
offsetHeight
/
2
+
"px"
,
l
.
style
.
left
=
r
.
width
/
2
-
l
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
l
.
style
.
top
=
(
n
.
pageY
-
r
.
top
-
l
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
l
.
style
.
left
=
(
n
.
pageX
-
r
.
left
-
l
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
l
.
style
.
backgroundColor
=
a
.
color
,
l
.
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
]}}},
fe05
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
r
(){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
l
(
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-4ab8490a.77e41b2a.js
0 → 100644
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-4ab8490a"
],{
"1c64"
:
function
(
e
,
t
,
n
){},
"1cc6"
:
function
(
e
,
t
,
n
){
"use strict"
;
var
i
=
n
(
"1c64"
),
a
=
n
.
n
(
i
);
a
.
a
},
"1db2"
:
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
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"name"
,
t
)},
expression
:
"listQuery.name"
}}),
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
:
"部门ID"
,
prop
:
"deptId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"上级ID"
,
prop
:
"parentId"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"部门名称"
,
prop
:
"name"
,
width
:
"300"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"可用"
,
prop
:
"delFlag"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
delFlag
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"delFlagValueFilter"
)(
i
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"渠道商号"
,
prop
:
"distributorNum"
,
width
:
"100"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"描述"
,
prop
:
"remark"
,
width
:
"100"
,
align
:
"center"
}})],
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
=
[],
l
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
r
=
n
(
"c7a7"
),
o
=
n
(
"fe05"
),
s
=
n
(
"ed08"
),
u
=
{
components
:{
Pagination
:
l
[
"a"
]},
directives
:{
waves
:
r
[
"a"
]},
filters
:{
delFlagValueFilter
:
function
(
e
){
return
-
1
===
e
?
e
=
"不可用"
:
0
===
e
&&
(
e
=
"可用"
),
e
},
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
:[],
dept
:{},
deptIds
:[]}},
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
,
console
.
log
(
this
.
listQuery
),
Object
(
o
[
"c"
])(
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
:
"/system/dept"
,
query
:
this
.
listQuery
})},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/system/dept/add"
})},
editPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
dept
=
this
.
multipleSelection
[
0
],
console
.
log
(
this
.
dept
),
this
.
$router
.
push
({
path
:
"/system/dept/edit"
,
query
:{
dept
:
this
.
dept
}});
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
.
deptIds
.
push
(
t
.
deptId
)})),
Object
(
o
[
"b"
])(
this
.
deptIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
deptIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
handleFilter
:
function
(){
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
c
=
u
,
d
=
n
(
"2877"
),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"79fc17e9"
,
null
);
t
[
"default"
]
=
p
.
exports
},
"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
l
=
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
o
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
s
(
e
,
t
,
n
){
var
i
=
o
(),
a
=
e
-
i
,
s
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
c
=
function
e
(){
u
+=
s
;
var
o
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
r
(
o
),
u
<
t
?
l
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
c
()}
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
)}}},
c
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
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
r
=
l
.
getBoundingClientRect
(),
o
=
l
.
querySelector
(
".waves-ripple"
);
switch
(
o
?
o
.
className
=
"waves-ripple"
:(
o
=
document
.
createElement
(
"span"
),
o
.
className
=
"waves-ripple"
,
o
.
style
.
height
=
o
.
style
.
width
=
Math
.
max
(
r
.
width
,
r
.
height
)
+
"px"
,
l
.
appendChild
(
o
)),
a
.
type
){
case
"center"
:
o
.
style
.
top
=
r
.
height
/
2
-
o
.
offsetHeight
/
2
+
"px"
,
o
.
style
.
left
=
r
.
width
/
2
-
o
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
o
.
style
.
top
=
(
n
.
pageY
-
r
.
top
-
o
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
o
.
style
.
left
=
(
n
.
pageX
-
r
.
left
-
o
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
o
.
style
.
backgroundColor
=
a
.
color
,
o
.
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
]}}},
fe05
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
r
})),
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
a
(
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
l
(){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
r
(){
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-5411756c.d9f1a004.js
deleted
100644 → 0
View file @
b37a8bf6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-5411756c"
],{
"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
l
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
s
(
e
,
t
,
n
){
var
i
=
l
(),
a
=
e
-
i
,
s
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
c
=
function
e
(){
u
+=
s
;
var
l
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
o
(
l
),
u
<
t
?
r
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
c
()}
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
)}}},
c
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
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
(),
l
=
r
.
querySelector
(
".waves-ripple"
);
switch
(
l
?
l
.
className
=
"waves-ripple"
:(
l
=
document
.
createElement
(
"span"
),
l
.
className
=
"waves-ripple"
,
l
.
style
.
height
=
l
.
style
.
width
=
Math
.
max
(
o
.
width
,
o
.
height
)
+
"px"
,
r
.
appendChild
(
l
)),
a
.
type
){
case
"center"
:
l
.
style
.
top
=
o
.
height
/
2
-
l
.
offsetHeight
/
2
+
"px"
,
l
.
style
.
left
=
o
.
width
/
2
-
l
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
l
.
style
.
top
=
(
n
.
pageY
-
o
.
top
-
l
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
l
.
style
.
left
=
(
n
.
pageX
-
o
.
left
-
l
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
l
.
style
.
backgroundColor
=
a
.
color
,
l
.
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
]}}},
ffa1
:
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
(
"删除角色"
)])],
1
)]),
e
.
_v
(
" "
),
n
(
"el-main"
,[
n
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
listLoading
,
expression
:
"listLoading"
}],
key
:
e
.
tableKey
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
list
,
border
:
""
,
fit
:
""
,
"highlight-current-row"
:
""
,
"default-sort"
:
e
.
defaultSort
},
on
:{
"sort-change"
:
e
.
sortChange
,
"selection-change"
:
e
.
handleSelectionChange
}},[
n
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"用户ID"
,
prop
:
"userId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"用户名"
,
prop
:
"username"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"email"
,
prop
:
"email"
,
width
:
"300"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"mobile"
,
prop
:
"mobile"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"可用"
,
prop
:
"status"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
status
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"statusValueFilter"
)(
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
)))])]}}])})],
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"
),
l
=
n
(
"c24f"
),
s
=
n
(
"ed08"
),
u
=
{
components
:{
Pagination
:
r
[
"a"
]},
directives
:{
waves
:
o
[
"a"
]},
filters
:{
statusValueFilter
:
function
(
e
){
return
0
===
e
?
e
=
"禁用"
:
1
===
e
&&
(
e
=
"正常"
),
e
},
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
:[],
user
:{},
userIds
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
getList
()},
beforeRouteUpdate
:
function
(
e
,
t
,
n
){
if
(
e
.
path
===
t
.
path
){
var
i
=
Object
.
assign
({},
e
.
query
),
a
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
i
)
!==
JSON
.
stringify
(
a
)
&&
this
.
getList
()}
n
()},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
sortChange
:
function
(
e
){
console
.
log
(
"sortChange"
,
e
);
var
t
=
e
.
prop
,
n
=
e
.
order
;
this
.
sortBy
(
t
,
n
)},
sortBy
:
function
(
e
,
t
){
this
.
listQuery
.
sort
=
"ascending"
===
t
?
"+"
.
concat
(
e
):
"-"
.
concat
(
e
),
this
.
handleFilter
()},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
Object
(
l
[
"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
}))},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/system/user/add"
})},
editPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
user
=
this
.
multipleSelection
[
0
],
this
.
$router
.
push
({
path
:
"/system/user/edit"
,
query
:{
userId
:
this
.
user
.
userId
,
username
:
this
.
user
.
username
}});
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
.
userIds
.
push
(
t
.
userId
)})),
Object
(
l
[
"b"
])(
this
.
userIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
userIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/system/user"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
c
=
u
,
d
=
n
(
"2877"
),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"0c325604"
,
null
);
t
[
"default"
]
=
p
.
exports
}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-5411756c.fa0e91a2.js
0 → 100644
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-5411756c"
],{
"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
l
=
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
s
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
o
(
e
,
t
,
n
){
var
i
=
s
(),
a
=
e
-
i
,
o
=
20
,
u
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
c
=
function
e
(){
u
+=
o
;
var
s
=
Math
.
easeInOutQuad
(
u
,
i
,
a
,
t
);
r
(
s
),
u
<
t
?
l
(
e
):
n
&&
"function"
===
typeof
n
&&
n
()};
c
()}
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
&&
o
(
0
,
800
)},
handleCurrentChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
e
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
o
(
0
,
800
)}}},
c
=
u
,
d
=
(
n
(
"1cc6"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
p
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
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
r
=
l
.
getBoundingClientRect
(),
s
=
l
.
querySelector
(
".waves-ripple"
);
switch
(
s
?
s
.
className
=
"waves-ripple"
:(
s
=
document
.
createElement
(
"span"
),
s
.
className
=
"waves-ripple"
,
s
.
style
.
height
=
s
.
style
.
width
=
Math
.
max
(
r
.
width
,
r
.
height
)
+
"px"
,
l
.
appendChild
(
s
)),
a
.
type
){
case
"center"
:
s
.
style
.
top
=
r
.
height
/
2
-
s
.
offsetHeight
/
2
+
"px"
,
s
.
style
.
left
=
r
.
width
/
2
-
s
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
s
.
style
.
top
=
(
n
.
pageY
-
r
.
top
-
s
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
s
.
style
.
left
=
(
n
.
pageX
-
r
.
left
-
s
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
s
.
style
.
backgroundColor
=
a
.
color
,
s
.
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
]}}},
ffa1
:
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
.
username
,
callback
:
function
(
t
){
e
.
$set
(
e
.
listQuery
,
"username"
,
t
)},
expression
:
"listQuery.username"
}}),
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
:
"用户ID"
,
prop
:
"userId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"用户名"
,
prop
:
"username"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"email"
,
prop
:
"email"
,
width
:
"300"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"mobile"
,
prop
:
"mobile"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"可用"
,
prop
:
"status"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
status
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"statusValueFilter"
)(
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
)))])]}}])})],
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
=
[],
l
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
r
=
n
(
"c7a7"
),
s
=
n
(
"c24f"
),
o
=
n
(
"ed08"
),
u
=
{
components
:{
Pagination
:
l
[
"a"
]},
directives
:{
waves
:
r
[
"a"
]},
filters
:{
statusValueFilter
:
function
(
e
){
return
0
===
e
?
e
=
"禁用"
:
1
===
e
&&
(
e
=
"正常"
),
e
},
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
o
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
}},
data
:
function
(){
return
{
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
user
:{},
userIds
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
getList
()},
beforeRouteUpdate
:
function
(
e
,
t
,
n
){
if
(
e
.
path
===
t
.
path
){
var
i
=
Object
.
assign
({},
e
.
query
),
a
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
i
)
!==
JSON
.
stringify
(
a
)
&&
this
.
getList
()}
n
()},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
sortChange
:
function
(
e
){
console
.
log
(
"sortChange"
,
e
);
var
t
=
e
.
prop
,
n
=
e
.
order
;
this
.
sortBy
(
t
,
n
)},
sortBy
:
function
(
e
,
t
){
this
.
listQuery
.
sort
=
"ascending"
===
t
?
"+"
.
concat
(
e
):
"-"
.
concat
(
e
),
this
.
handleFilter
()},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
Object
(
s
[
"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
}))},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/system/user/add"
})},
editPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>
1
){
var
e
=
"单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
user
=
this
.
multipleSelection
[
0
],
this
.
$router
.
push
({
path
:
"/system/user/edit"
,
query
:{
userId
:
this
.
user
.
userId
,
username
:
this
.
user
.
username
}});
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
.
userIds
.
push
(
t
.
userId
)})),
Object
(
s
[
"b"
])(
this
.
userIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
userIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/system/user"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
c
=
u
,
d
=
n
(
"2877"
),
p
=
Object
(
d
[
"a"
])(
c
,
i
,
a
,
!
1
,
null
,
"142c04ba"
,
null
);
t
[
"default"
]
=
p
.
exports
}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-5c585ee6.b80a6682.js
deleted
100644 → 0
View file @
b37a8bf6
(
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
},
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
)},
c
=
[],
i
=
(
n
(
"456d"
),
n
(
"ac6a"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
r
=
n
(
"aa98"
),
u
=
{
channelNumsMessage
:
"终端提示文字"
,
channelRules
:
"规则"
},
s
=
{
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
:[]},
rules
:{
channelNumsMessage
:[{
validator
:
e
}],
channelRules
:[{
validator
:
e
}]},
selectSeriesOptions
:[]}},
mounted
:
function
(){
this
.
device
.
imeis
=
this
.
$route
.
query
.
imeis
,
this
.
getFormData
(),
this
.
getTransfer
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
i
[
"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
(
r
[
"h"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
n
.
forEach
((
function
(
t
){
e
.
device
.
selectChannelNums
.
push
({
key
:
t
.
channelId
,
label
:
t
.
channelNum
})}))}))},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
setChannel
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
r
[
"j"
])(
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"
})}}},
l
=
s
,
o
=
n
(
"2877"
),
d
=
Object
(
o
[
"a"
])(
l
,
a
,
c
,
!
1
,
null
,
"de43a3f8"
,
null
);
t
[
"default"
]
=
d
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"f"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
b
}));
n
(
"55dd"
);
var
a
=
n
(
"b775"
);
function
c
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
i
(
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
v
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-5c585ee6.ddab2785.js
0 → 100644
View file @
2c3f0dc6
(
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
},
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
:[]}},
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
[
"i"
])().
then
((
function
(
t
){
var
n
=
t
.
data
;
n
.
forEach
((
function
(
t
){
e
.
device
.
selectChannelNums
.
push
({
key
:
t
.
channelId
,
label
:
t
.
channelNum
})}))}))},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
setChannel
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
o
[
"j"
])(
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
[
"l"
])(
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
[
"l"
])(
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"
})}}},
l
=
u
,
s
=
n
(
"2877"
),
d
=
Object
(
s
[
"a"
])(
l
,
a
,
i
,
!
1
,
null
,
"53a18f4b"
,
null
);
t
[
"default"
]
=
d
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"g"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
b
})),
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
}})}
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
r
(
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
v
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
g
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
b
(
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
})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-723f6b88.5001c100.js
deleted
100644 → 0
View file @
b37a8bf6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-723f6b88"
],{
"11c3"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
l
=
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
:{
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
l
=
t
.
row
.
channelRules
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"channelRulesFilter"
)(
l
)))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"所属客户"
,
prop
:
"deptName"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"关联设备数量"
,
prop
:
"channelNumsMessage"
,
width
:
"150"
,
align
:
"center"
}})],
1
)],
1
)],
1
)},
i
=
[],
a
=
(
n
(
"ac6a"
),
n
(
"c7a7"
)),
c
=
n
(
"ed08"
),
r
=
n
(
"aa98"
),
o
=
{
components
:{},
directives
:{
waves
:
a
[
"a"
]},
filters
:{
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
c
[
"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
:[]}},
mounted
:
function
(){
this
.
getList
(),
this
.
getSelectChannel
()},
beforeRouteUpdate
:
function
(
e
,
t
,
n
){
if
(
e
.
path
===
t
.
path
){
var
l
=
Object
.
assign
({},
e
.
query
),
i
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
l
)
!==
JSON
.
stringify
(
i
)
&&
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
()},
getSelectChannel
:
function
(){
var
e
=
this
;
Object
(
r
[
"h"
])().
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
,
console
.
log
(
this
.
selectChannelValue
),
Object
(
r
[
"i"
])(
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
Object
(
r
[
"d"
])(
this
.
multipleSelection
[
0
].
deviceId
).
then
((
function
(
t
){
e
.
getList
()}));
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
=
o
,
u
=
n
(
"2877"
),
d
=
Object
(
u
[
"a"
])(
s
,
l
,
i
,
!
1
,
null
,
"0a34bc1c"
,
null
);
t
[
"default"
]
=
d
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"f"
,(
function
(){
return
i
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
m
}));
n
(
"55dd"
);
var
l
=
n
(
"b775"
);
function
i
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
a
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
r
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
o
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
d
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
p
(){
return
Object
(
l
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
v
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
f
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
g
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
m
(
e
){
return
Object
(
l
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}},
c7a7
:
function
(
e
,
t
,
n
){
"use strict"
;
n
(
"8d41"
);
var
l
=
"@@wavesContext"
;
function
i
(
e
,
t
){
function
n
(
n
){
var
l
=
Object
.
assign
({},
t
.
value
),
i
=
Object
.
assign
({
ele
:
e
,
type
:
"hit"
,
color
:
"rgba(0, 0, 0, 0.15)"
},
l
),
a
=
i
.
ele
;
if
(
a
){
a
.
style
.
position
=
"relative"
,
a
.
style
.
overflow
=
"hidden"
;
var
c
=
a
.
getBoundingClientRect
(),
r
=
a
.
querySelector
(
".waves-ripple"
);
switch
(
r
?
r
.
className
=
"waves-ripple"
:(
r
=
document
.
createElement
(
"span"
),
r
.
className
=
"waves-ripple"
,
r
.
style
.
height
=
r
.
style
.
width
=
Math
.
max
(
c
.
width
,
c
.
height
)
+
"px"
,
a
.
appendChild
(
r
)),
i
.
type
){
case
"center"
:
r
.
style
.
top
=
c
.
height
/
2
-
r
.
offsetHeight
/
2
+
"px"
,
r
.
style
.
left
=
c
.
width
/
2
-
r
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
r
.
style
.
top
=
(
n
.
pageY
-
c
.
top
-
r
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
r
.
style
.
left
=
(
n
.
pageX
-
c
.
left
-
r
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
r
.
style
.
backgroundColor
=
i
.
color
,
r
.
className
=
"waves-ripple z-active"
,
!
1
}}
return
e
[
l
]?
e
[
l
].
removeHandle
=
n
:
e
[
l
]
=
{
removeHandle
:
n
},
n
}
t
[
"a"
]
=
{
bind
:
function
(
e
,
t
){
e
.
addEventListener
(
"click"
,
i
(
e
,
t
),
!
1
)},
update
:
function
(
e
,
t
){
e
.
removeEventListener
(
"click"
,
e
[
l
].
removeHandle
,
!
1
),
e
.
addEventListener
(
"click"
,
i
(
e
,
t
),
!
1
)},
unbind
:
function
(
e
){
e
.
removeEventListener
(
"click"
,
e
[
l
].
removeHandle
,
!
1
),
e
[
l
]
=
null
,
delete
e
[
l
]}}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-723f6b88.7adc2c4b.js
0 → 100644
View file @
2c3f0dc6
(
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
:
"channelNumsMessage"
,
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
)},
l
=
[],
a
=
(
n
(
"ac6a"
),
n
(
"c7a7"
)),
o
=
n
(
"ed08"
),
c
=
n
(
"aa98"
),
r
=
{
components
:{},
directives
:{
waves
:
a
[
"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
),
l
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
i
)
!==
JSON
.
stringify
(
l
)
&&
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
[
"i"
])().
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
[
"k"
])(
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
Object
(
c
[
"e"
])(
this
.
multipleSelection
[
0
]).
then
((
function
(
t
){
e
.
getList
()}));
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
,
l
,
!
1
,
null
,
"3a2612e8"
,
null
);
t
[
"default"
]
=
d
.
exports
},
"8d41"
:
function
(
e
,
t
,
n
){},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"g"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
y
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
r
(
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
v
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
y
(
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
l
(
e
,
t
){
function
n
(
n
){
var
i
=
Object
.
assign
({},
t
.
value
),
l
=
Object
.
assign
({
ele
:
e
,
type
:
"hit"
,
color
:
"rgba(0, 0, 0, 0.15)"
},
i
),
a
=
l
.
ele
;
if
(
a
){
a
.
style
.
position
=
"relative"
,
a
.
style
.
overflow
=
"hidden"
;
var
o
=
a
.
getBoundingClientRect
(),
c
=
a
.
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"
,
a
.
appendChild
(
c
)),
l
.
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
=
l
.
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"
,
l
(
e
,
t
),
!
1
)},
update
:
function
(
e
,
t
){
e
.
removeEventListener
(
"click"
,
e
[
i
].
removeHandle
,
!
1
),
e
.
addEventListener
(
"click"
,
l
(
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.8b34158c.js
deleted
100644 → 0
View file @
b37a8bf6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-7395e3e5"
],{
aa98
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
d
(
n
,
"f"
,(
function
(){
return
c
})),
t
.
d
(
n
,
"g"
,(
function
(){
return
i
})),
t
.
d
(
n
,
"l"
,(
function
(){
return
r
})),
t
.
d
(
n
,
"b"
,(
function
(){
return
s
})),
t
.
d
(
n
,
"n"
,(
function
(){
return
u
})),
t
.
d
(
n
,
"j"
,(
function
(){
return
l
})),
t
.
d
(
n
,
"e"
,(
function
(){
return
d
})),
t
.
d
(
n
,
"a"
,(
function
(){
return
o
})),
t
.
d
(
n
,
"k"
,(
function
(){
return
h
})),
t
.
d
(
n
,
"h"
,(
function
(){
return
v
})),
t
.
d
(
n
,
"c"
,(
function
(){
return
f
})),
t
.
d
(
n
,
"d"
,(
function
(){
return
p
})),
t
.
d
(
n
,
"m"
,(
function
(){
return
m
})),
t
.
d
(
n
,
"i"
,(
function
(){
return
g
}));
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
}})}
function
i
(
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
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
v
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
f
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
g
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
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
.
device
.
selectChannelNums
},
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
(
"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
:{
selectChannelNums
:[],
channelIds
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[]},
rules
:{
channelNumsMessage
:[{
validator
:
e
}],
channelRules
:[{
validator
:
e
}]},
selectSeriesOptions
:[]}},
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
:
this
.
device
.
channelRules
=
this
.
deviceT
.
channelRules
,
this
.
device
.
channelNumsMessage
=
this
.
deviceT
.
channelNumsMessage
,
t
=
this
.
deviceT
.
channelNums
.
split
(
","
),
t
.
forEach
((
function
(
e
){
n
.
channelNum
===
e
&&
a
.
device
.
channelIds
.
push
(
n
.
channelId
)}));
case
4
:
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
[
"h"
])().
then
((
function
(
e
){
var
t
=
e
.
data
;
t
.
forEach
((
function
(
e
){
n
.
device
.
selectChannelNums
.
push
({
key
:
e
.
channelId
,
label
:
e
.
channelNum
}),
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
)
Object
(
r
[
"m"
])(
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
,
"8d63709c"
,
null
);
n
[
"default"
]
=
o
.
exports
}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-7395e3e5.af343f0f.js
0 → 100644
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-7395e3e5"
],{
aa98
:
function
(
e
,
n
,
t
){
"use strict"
;
t
.
d
(
n
,
"g"
,(
function
(){
return
c
})),
t
.
d
(
n
,
"h"
,(
function
(){
return
i
})),
t
.
d
(
n
,
"n"
,(
function
(){
return
r
})),
t
.
d
(
n
,
"b"
,(
function
(){
return
u
})),
t
.
d
(
n
,
"p"
,(
function
(){
return
s
})),
t
.
d
(
n
,
"l"
,(
function
(){
return
l
})),
t
.
d
(
n
,
"j"
,(
function
(){
return
d
})),
t
.
d
(
n
,
"f"
,(
function
(){
return
o
})),
t
.
d
(
n
,
"a"
,(
function
(){
return
h
})),
t
.
d
(
n
,
"m"
,(
function
(){
return
v
})),
t
.
d
(
n
,
"i"
,(
function
(){
return
f
})),
t
.
d
(
n
,
"c"
,(
function
(){
return
p
})),
t
.
d
(
n
,
"d"
,(
function
(){
return
m
})),
t
.
d
(
n
,
"o"
,(
function
(){
return
b
})),
t
.
d
(
n
,
"k"
,(
function
(){
return
g
})),
t
.
d
(
n
,
"e"
,(
function
(){
return
j
}));
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
}})}
function
i
(
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
d
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
h
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
v
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
f
(){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
p
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
m
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
b
(
e
){
return
Object
(
a
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
g
(
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
})}},
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
.
device
.
selectChannelNums
},
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
(
"ac6a"
),
t
(
"28a5"
),
t
(
"96cf"
),
t
(
"3b8d"
)),
r
=
t
(
"aa98"
),
u
=
{
channelNumsMessage
:
"终端提示文字"
,
channelRules
:
"规则"
},
s
=
{
data
:
function
(){
var
e
=
function
(
e
,
n
,
t
){
void
0
===
n
||
null
===
n
||
0
===
n
.
length
?
t
(
new
Error
(
u
[
e
.
field
]
+
"必须填写"
)):
t
()};
return
{
loading
:
!
1
,
device
:{
selectChannelNums
:[],
channelIds
:[],
channelNumsMessage
:
""
,
channelRules
:
""
,
imeis
:[]},
rules
:{
channelNumsMessage
:[{
validator
:
e
}],
channelRules
:[{
validator
:
e
}]},
selectSeriesOptions
:[]}},
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
:
this
.
device
.
channelRules
=
this
.
deviceT
.
channelRules
,
this
.
device
.
channelNumsMessage
=
this
.
deviceT
.
channelNumsMessage
,
t
=
this
.
deviceT
.
channelNums
.
split
(
","
),
t
.
forEach
((
function
(
e
){
n
.
channelNum
===
e
&&
a
.
device
.
channelIds
.
push
(
n
.
channelId
)}));
case
4
:
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
[
"i"
])().
then
((
function
(
e
){
var
t
=
e
.
data
;
t
.
forEach
((
function
(
e
){
n
.
device
.
selectChannelNums
.
push
({
key
:
e
.
channelId
,
label
:
e
.
channelNum
}),
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
)
Object
(
r
[
"o"
])(
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
=
s
,
d
=
t
(
"2877"
),
o
=
Object
(
d
[
"a"
])(
l
,
a
,
c
,
!
1
,
null
,
"8d63709c"
,
null
);
n
[
"default"
]
=
o
.
exports
}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-73bfcbf0.
a5fec1ff
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-73bfcbf0.
ced69420
.js
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-73bfcbf0"
],{
"0be0"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"el-container"
,[
r
(
"el-main"
,[
r
(
"el-form"
,{
ref
:
"addUser"
,
attrs
:{
model
:
e
.
user
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属部门"
}},[
r
(
"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
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"roleId"
,
label
:
"所属角色"
}},[
r
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
user
.
roleId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"roleId"
,
t
)},
expression
:
"user.roleId"
}},
e
.
_l
(
e
.
selectoptions
,(
function
(
e
){
return
r
(
"el-option"
,{
key
:
e
.
roleId
,
attrs
:{
label
:
e
.
roleName
,
value
:
e
.
roleId
}})})),
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"username"
,
label
:
"账户名"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
username
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"username"
,
t
)},
expression
:
"user.username"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"password"
,
label
:
"初始密码"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
password
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"password"
,
t
)},
expression
:
"user.password"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"mobile"
,
label
:
"手机号"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
mobile
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"mobile"
,
t
)},
expression
:
"user.mobile"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"email"
,
label
:
"邮箱"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
email
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"email"
,
t
)},
expression
:
"user.email"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"介绍"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"remark"
,
t
)},
expression
:
"user.remark"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"status"
,
label
:
"账户状态"
}},[
r
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
user
.
status
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"status"
,
t
)},
expression
:
"user.status"
}},[
r
(
"el-option"
,{
attrs
:{
label
:
"禁用"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
r
(
"el-option"
,{
attrs
:{
label
:
"可用"
,
value
:
"1"
}})],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"权限设置"
}},[
r
(
"el-tree"
,{
ref
:
"funcTree"
,
attrs
:{
data
:
e
.
funcTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"数据权限"
}},[
r
(
"el-tree"
,{
ref
:
"deptTree"
,
attrs
:{
data
:
e
.
deptTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"添加"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
on
:{
click
:
e
.
toUserList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
a
=
[],
s
=
(
r
(
"ac6a"
),
r
(
"456d"
),
r
(
"96cf"
),
r
(
"3b8d"
)),
o
=
r
(
"fe05"
),
l
=
r
(
"c24f"
),
u
=
r
(
"2c98"
),
i
=
r
(
"cc5e"
),
c
=
{
roleId
:
"选择角色"
,
remark
:
"描述"
,
deptId
:
"选择部门"
,
username
:
"用户名"
,
mobile
:
"手机"
,
email
:
"邮箱"
,
status
:
"状态"
,
userDeptIdList
:
"数据权限"
,
userFuncIdList
:
"模块权限"
},
d
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
r
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
r
(
new
Error
(
c
[
e
.
field
]
+
"必须填写"
)):
r
()};
return
{
loading
:
!
1
,
user
:{
userDeptIdList
:[],
userFuncIdList
:[]},
rules
:{
roleId
:[{
validator
:
e
}],
remark
:[{
validator
:
e
}],
deptId
:[{
validator
:
e
}],
username
:[{
validator
:
e
}],
mobile
:[{
validator
:
e
}],
email
:[{
validator
:
e
}],
status
:[{
validator
:
e
}],
userDeptIdList
:[{
validator
:
e
}]},
options
:[],
selectoptions
:[],
selectDeptParents
:[],
funcTreeData
:[],
deptTreeData
:[],
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
mounted
:
function
(){
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
s
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
this
.
selectRole
();
case
2
:
return
e
.
next
=
4
,
this
.
selectDeptParent
();
case
4
:
return
e
.
next
=
6
,
this
.
selectDeptParentTree
();
case
6
:
return
e
.
next
=
8
,
this
.
selectFuncTree
();
case
8
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
addUser
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
addUser
.
validate
((
function
(
t
,
r
){
if
(
t
)
e
.
handleDeptChange
(),
e
.
handleFuncChange
(),
Object
(
l
[
"a"
])(
e
.
user
).
then
((
function
(
t
){
var
r
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
r
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toUserList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
n
=
r
[
Object
.
keys
(
r
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
n
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toUserList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/user"
})},
selectRole
:
function
(){
var
e
=
Object
(
s
[
"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
(
i
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
selectoptions
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParent
:
function
(){
var
e
=
Object
(
s
[
"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
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
options
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParentTree
:
function
(){
var
e
=
Object
(
s
[
"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
[
"f"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
deptTreeData
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectFuncTree
:
function
(){
var
e
=
Object
(
s
[
"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
[
"b"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
funcTreeData
=
r
}));
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
.
user
.
deptId
=
e
[
t
]},
handleFuncChange
:
function
(){
var
e
=
[];
this
.
$refs
.
funcTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
user
.
userFuncIdList
=
e
},
handleDeptChange
:
function
(){
var
e
=
[];
this
.
$refs
.
deptTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
user
.
userDeptIdList
=
e
}}},
p
=
d
,
f
=
r
(
"2877"
),
m
=
Object
(
f
[
"a"
])(
p
,
n
,
a
,
!
1
,
null
,
"36917084"
,
null
);
t
[
"default"
]
=
m
.
exports
},
"2c98"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
s
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/module/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
s
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/func/listAll"
,
method
:
"post"
})}},
cc5e
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
i
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/info"
,
method
:
"post"
,
data
:{
roleId
:
e
}})}
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/edit"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
i
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/listAll"
,
method
:
"post"
})}},
fe05
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
l
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
i
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
s
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
o
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
l
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-73bfcbf0"
],{
"0be0"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"el-container"
,[
r
(
"el-main"
,[
r
(
"el-form"
,{
ref
:
"addUser"
,
attrs
:{
model
:
e
.
user
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属部门"
}},[
r
(
"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
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"roleId"
,
label
:
"所属角色"
}},[
r
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
user
.
roleId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"roleId"
,
t
)},
expression
:
"user.roleId"
}},
e
.
_l
(
e
.
selectoptions
,(
function
(
e
){
return
r
(
"el-option"
,{
key
:
e
.
roleId
,
attrs
:{
label
:
e
.
roleName
,
value
:
e
.
roleId
}})})),
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"username"
,
label
:
"账户名"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
username
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"username"
,
t
)},
expression
:
"user.username"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"password"
,
label
:
"初始密码"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
password
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"password"
,
t
)},
expression
:
"user.password"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"mobile"
,
label
:
"手机号"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
mobile
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"mobile"
,
t
)},
expression
:
"user.mobile"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"email"
,
label
:
"邮箱"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
email
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"email"
,
t
)},
expression
:
"user.email"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"介绍"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"remark"
,
t
)},
expression
:
"user.remark"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"status"
,
label
:
"账户状态"
}},[
r
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
user
.
status
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"status"
,
t
)},
expression
:
"user.status"
}},[
r
(
"el-option"
,{
attrs
:{
label
:
"禁用"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
r
(
"el-option"
,{
attrs
:{
label
:
"可用"
,
value
:
"1"
}})],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"权限设置"
}},[
r
(
"el-tree"
,{
ref
:
"funcTree"
,
attrs
:{
data
:
e
.
funcTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"数据权限"
}},[
r
(
"el-tree"
,{
ref
:
"deptTree"
,
attrs
:{
data
:
e
.
deptTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"添加"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
on
:{
click
:
e
.
toUserList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
a
=
[],
s
=
(
r
(
"ac6a"
),
r
(
"456d"
),
r
(
"96cf"
),
r
(
"3b8d"
)),
o
=
r
(
"fe05"
),
l
=
r
(
"c24f"
),
u
=
r
(
"2c98"
),
i
=
r
(
"cc5e"
),
c
=
{
roleId
:
"选择角色"
,
remark
:
"描述"
,
deptId
:
"选择部门"
,
username
:
"用户名"
,
mobile
:
"手机"
,
email
:
"邮箱"
,
status
:
"状态"
,
userDeptIdList
:
"数据权限"
,
userFuncIdList
:
"模块权限"
},
d
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
r
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
r
(
new
Error
(
c
[
e
.
field
]
+
"必须填写"
)):
r
()};
return
{
loading
:
!
1
,
user
:{
userDeptIdList
:[],
userFuncIdList
:[]},
rules
:{
roleId
:[{
validator
:
e
}],
remark
:[{
validator
:
e
}],
deptId
:[{
validator
:
e
}],
username
:[{
validator
:
e
}],
mobile
:[{
validator
:
e
}],
email
:[{
validator
:
e
}],
status
:[{
validator
:
e
}],
userDeptIdList
:[{
validator
:
e
}]},
options
:[],
selectoptions
:[],
selectDeptParents
:[],
funcTreeData
:[],
deptTreeData
:[],
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
mounted
:
function
(){
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
s
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
this
.
selectRole
();
case
2
:
return
e
.
next
=
4
,
this
.
selectDeptParent
();
case
4
:
return
e
.
next
=
6
,
this
.
selectDeptParentTree
();
case
6
:
return
e
.
next
=
8
,
this
.
selectFuncTree
();
case
8
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
addUser
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
addUser
.
validate
((
function
(
t
,
r
){
if
(
t
)
e
.
handleDeptChange
(),
e
.
handleFuncChange
(),
Object
(
l
[
"a"
])(
e
.
user
).
then
((
function
(
t
){
var
r
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
r
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toUserList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
n
=
r
[
Object
.
keys
(
r
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
n
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toUserList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/user"
})},
selectRole
:
function
(){
var
e
=
Object
(
s
[
"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
(
i
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
selectoptions
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParent
:
function
(){
var
e
=
Object
(
s
[
"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
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
options
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParentTree
:
function
(){
var
e
=
Object
(
s
[
"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
[
"f"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
deptTreeData
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectFuncTree
:
function
(){
var
e
=
Object
(
s
[
"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
[
"b"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
funcTreeData
=
r
}));
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
.
user
.
deptId
=
e
[
t
]},
handleFuncChange
:
function
(){
var
e
=
[];
this
.
$refs
.
funcTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
user
.
userFuncIdList
=
e
},
handleDeptChange
:
function
(){
var
e
=
[];
this
.
$refs
.
deptTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
user
.
userDeptIdList
=
e
}}},
p
=
d
,
f
=
r
(
"2877"
),
m
=
Object
(
f
[
"a"
])(
p
,
n
,
a
,
!
1
,
null
,
"36917084"
,
null
);
t
[
"default"
]
=
m
.
exports
},
"2c98"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
s
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/module/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
s
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/func/listAll"
,
method
:
"post"
})}},
cc5e
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
l
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
i
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/info"
,
method
:
"post"
,
data
:{
roleId
:
e
}})}
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/edit"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
roleName
:
e
.
roleName
}})}
function
i
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/listAll"
,
method
:
"post"
})}},
fe05
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
l
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
i
}));
r
(
"7f7f"
),
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
name
:
e
.
name
}})}
function
s
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
o
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
l
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
n
[
"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.4cec9fa4.js
0 → 100644
View file @
2c3f0dc6
(
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
}})}
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
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
O
}));
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
}})}
function
a
(
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
o
(
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
p
(
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
f
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
g
(
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
})}},
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
[
"h"
])(
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
,
"78d0fb6c"
,
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-77a4bbf0.60171fb8.js
deleted
100644 → 0
View file @
b37a8bf6
(
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
s
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
o
}));
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
}})}
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
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
o
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/listAll"
,
method
:
"post"
})}},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"f"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
b
}));
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
}})}
function
a
(
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
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
v
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
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"
),
s
=
n
(
"7d09"
),
o
=
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
(
o
[
"g"
])(
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
(
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
}(),
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
,
"78d0fb6c"
,
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
s
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
u
}));
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
}})}
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
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
o
(
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-79a85582.
dd8d44e5
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-79a85582.
fb8ba583
.js
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-79a85582"
],{
ee7e
:
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
:
"editDept"
,
attrs
:{
model
:
e
.
dept
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"parentId"
,
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
:
"name"
,
label
:
"客户名称"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"name"
,
t
)},
expression
:
"dept.name"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"delFlag"
,
label
:
"可用"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
dept
.
delFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"delFlag"
,
t
)},
expression
:
"dept.delFlag"
}},[
n
(
"el-option"
,{
attrs
:{
label
:
"可用"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
n
(
"el-option"
,{
attrs
:{
label
:
"不可用"
,
value
:
"1"
}})],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"distributorNum"
,
label
:
"渠道商"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
distributorNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"distributorNum"
,
t
)},
expression
:
"dept.distributorNum"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"描述"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"remark"
,
t
)},
expression
:
"dept.remark"
}})],
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
.
toDeptList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
a
=
[],
i
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
s
=
n
(
"fe05"
),
o
=
n
(
"f62d"
),
u
=
{
parentId
:
"选择父级"
,
name
:
"客户名称"
,
delFlag
:
"可用"
,
distributorNum
:
"渠道商号"
,
remark
:
"描述"
},
l
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
0
===
t
.
length
?
n
(
new
Error
(
u
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
dept
:{
deptId
:
""
,
parentId
:
""
,
name
:
""
,
delFlag
:
""
,
distributorNum
:
""
,
remark
:
""
},
rules
:{
name
:[{
validator
:
e
}],
delFlag
:[{
validator
:
e
}]},
options
:[],
selectDeptParents
:[]}},
mounted
:
function
(){
this
.
dept
=
this
.
$route
.
query
.
dept
,
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
i
[
"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
.
setSelectCas
();
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
editDept
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
editDept
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
s
[
"d"
])(
e
.
dept
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
loading
=!
1
,
e
.
setDefault
(),
e
.
toDeptList
()})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
r
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
r
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
dept
.
parentId
=
e
[
t
]},
toDeptList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/dept"
})},
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
(
s
[
"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
}(),
setSelectCas
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
t
=
[],
e
.
next
=
3
,
Object
(
o
[
"a"
])(
t
,
this
.
options
,
this
.
dept
.
parentId
);
case
3
:
this
.
selectDeptParents
=
t
;
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
c
=
l
,
p
=
n
(
"2877"
),
d
=
Object
(
p
[
"a"
])(
c
,
r
,
a
,
!
1
,
null
,
"2b6acf90"
,
null
);
t
[
"default"
]
=
d
.
exports
},
f62d
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"a"
,(
function
(){
return
a
}));
n
(
"96cf"
);
var
r
=
n
(
"3b8d"
);
n
(
"ac6a"
);
function
a
(
e
,
t
,
n
){
return
i
.
apply
(
this
,
arguments
)}
function
i
(){
return
i
=
Object
(
r
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
t
,
n
,
r
){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
n
.
forEach
((
function
(
e
){
return
e
.
value
===
r
?(
t
.
unshift
(
e
.
value
),
t
):
0
===
e
.
children
.
length
?
null
:
void
a
(
t
,
e
.
children
,
r
).
then
((
function
(){
t
.
unshift
(
e
.
value
)}))}));
case
1
:
case
"end"
:
return
e
.
stop
()}}),
e
)}))),
i
.
apply
(
this
,
arguments
)}},
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
u
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
}));
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
}})}
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
u
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
l
(
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-79a85582"
],{
ee7e
:
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
:
"editDept"
,
attrs
:{
model
:
e
.
dept
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
n
(
"el-form-item"
,{
attrs
:{
prop
:
"parentId"
,
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
:
"name"
,
label
:
"客户名称"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"name"
,
t
)},
expression
:
"dept.name"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"delFlag"
,
label
:
"可用"
}},[
n
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
dept
.
delFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"delFlag"
,
t
)},
expression
:
"dept.delFlag"
}},[
n
(
"el-option"
,{
attrs
:{
label
:
"可用"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
n
(
"el-option"
,{
attrs
:{
label
:
"不可用"
,
value
:
"1"
}})],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"distributorNum"
,
label
:
"渠道商"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
distributorNum
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"distributorNum"
,
t
)},
expression
:
"dept.distributorNum"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"描述"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
dept
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dept
,
"remark"
,
t
)},
expression
:
"dept.remark"
}})],
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
.
toDeptList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
a
=
[],
i
=
(
n
(
"ac6a"
),
n
(
"456d"
),
n
(
"96cf"
),
n
(
"3b8d"
)),
s
=
n
(
"fe05"
),
o
=
n
(
"f62d"
),
u
=
{
parentId
:
"选择父级"
,
name
:
"客户名称"
,
delFlag
:
"可用"
,
distributorNum
:
"渠道商号"
,
remark
:
"描述"
},
l
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
n
){
0
===
t
.
length
?
n
(
new
Error
(
u
[
e
.
field
]
+
"必须填写"
)):
n
()};
return
{
loading
:
!
1
,
dept
:{
deptId
:
""
,
parentId
:
""
,
name
:
""
,
delFlag
:
""
,
distributorNum
:
""
,
remark
:
""
},
rules
:{
name
:[{
validator
:
e
}],
delFlag
:[{
validator
:
e
}]},
options
:[],
selectDeptParents
:[]}},
mounted
:
function
(){
this
.
dept
=
this
.
$route
.
query
.
dept
,
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
i
[
"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
.
setSelectCas
();
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
editDept
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
editDept
.
validate
((
function
(
t
,
n
){
if
(
t
)
Object
(
s
[
"d"
])(
e
.
dept
).
then
((
function
(
t
){
var
n
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
n
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
loading
=!
1
,
e
.
setDefault
(),
e
.
toDeptList
()})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
r
=
n
[
Object
.
keys
(
n
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
r
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
handleChange
:
function
(
e
){
var
t
=
e
.
length
;
t
-=
1
,
this
.
dept
.
parentId
=
e
[
t
]},
toDeptList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/dept"
})},
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
(
s
[
"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
}(),
setSelectCas
:
function
(){
var
e
=
Object
(
i
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
t
=
[],
e
.
next
=
3
,
Object
(
o
[
"a"
])(
t
,
this
.
options
,
this
.
dept
.
parentId
);
case
3
:
this
.
selectDeptParents
=
t
;
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
c
=
l
,
p
=
n
(
"2877"
),
d
=
Object
(
p
[
"a"
])(
c
,
r
,
a
,
!
1
,
null
,
"2b6acf90"
,
null
);
t
[
"default"
]
=
d
.
exports
},
f62d
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"a"
,(
function
(){
return
a
}));
n
(
"96cf"
);
var
r
=
n
(
"3b8d"
);
n
(
"ac6a"
);
function
a
(
e
,
t
,
n
){
return
i
.
apply
(
this
,
arguments
)}
function
i
(){
return
i
=
Object
(
r
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
t
,
n
,
r
){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
n
.
forEach
((
function
(
e
){
return
e
.
value
===
r
?(
t
.
unshift
(
e
.
value
),
t
):
0
===
e
.
children
.
length
?
null
:
void
a
(
t
,
e
.
children
,
r
).
then
((
function
(){
t
.
unshift
(
e
.
value
)}))}));
case
1
:
case
"end"
:
return
e
.
stop
()}}),
e
)}))),
i
.
apply
(
this
,
arguments
)}},
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
u
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
l
}));
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
u
(
e
){
return
Object
(
r
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
l
(
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-7b66cc0a.
d0fee21d
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-7b66cc0a.
f9404d66
.js
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-7b66cc0a"
],{
"0ff3"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"el-container"
,[
r
(
"el-main"
,[
r
(
"el-form"
,{
ref
:
"addRole"
,
attrs
:{
model
:
e
.
role
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属部门"
}},[
r
(
"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
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
prop
:
"roleName"
,
label
:
"角色名称"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
role
.
roleName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
role
,
"roleName"
,
t
)},
expression
:
"role.roleName"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"角色描述"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
role
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
role
,
"remark"
,
t
)},
expression
:
"role.remark"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"权限设置"
}},[
r
(
"el-tree"
,{
ref
:
"funcTree"
,
attrs
:{
data
:
e
.
funcTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"数据权限"
}},[
r
(
"el-tree"
,{
ref
:
"deptTree"
,
attrs
:{
data
:
e
.
deptTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"添加"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
on
:{
click
:
e
.
toRoleList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
a
=
[],
o
=
(
r
(
"ac6a"
),
r
(
"456d"
),
r
(
"96cf"
),
r
(
"3b8d"
)),
s
=
r
(
"fe05"
),
u
=
r
(
"cc5e"
),
i
=
r
(
"2c98"
),
c
=
{
roleName
:
"角色名称"
,
remark
:
"描述"
,
deptId
:
"部门"
},
l
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
r
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
r
(
new
Error
(
c
[
e
.
field
]
+
"必须填写"
)):
r
()};
return
{
loading
:
!
1
,
role
:{
deptIdList
:[],
funcIdList
:[]},
rules
:{
roleName
:[{
validator
:
e
}],
remark
:[{
validator
:
e
}],
deptId
:[{
validator
:
e
}]},
options
:[],
selectDeptParents
:[],
funcTreeData
:[],
deptTreeData
:[],
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
mounted
:
function
(){
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
o
[
"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
.
selectDeptParentTree
();
case
4
:
return
e
.
next
=
6
,
this
.
selectFuncTree
();
case
6
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
addRole
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
addRole
.
validate
((
function
(
t
,
r
){
if
(
t
)
e
.
handleDeptChange
(),
e
.
handleFuncChange
(),
Object
(
u
[
"a"
])(
e
.
role
).
then
((
function
(
t
){
var
r
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
r
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toRoleList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
n
=
r
[
Object
.
keys
(
r
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
n
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toRoleList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/role"
})},
selectDeptParent
:
function
(){
var
e
=
Object
(
o
[
"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
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
options
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParentTree
:
function
(){
var
e
=
Object
(
o
[
"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
[
"f"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
deptTreeData
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectFuncTree
:
function
(){
var
e
=
Object
(
o
[
"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
(
i
[
"b"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
funcTreeData
=
r
}));
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
.
role
.
deptId
=
e
[
t
]},
handleFuncChange
:
function
(){
var
e
=
[];
this
.
$refs
.
funcTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
role
.
funcIdList
=
e
},
handleDeptChange
:
function
(){
var
e
=
[];
this
.
$refs
.
deptTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
role
.
deptIdList
=
e
}}},
d
=
l
,
p
=
r
(
"2877"
),
f
=
Object
(
p
[
"a"
])(
d
,
n
,
a
,
!
1
,
null
,
"574510d3"
,
null
);
t
[
"default"
]
=
f
.
exports
},
"2c98"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
o
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/module/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/func/listAll"
,
method
:
"post"
})}},
cc5e
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
c
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/info"
,
method
:
"post"
,
data
:{
roleId
:
e
}})}
function
o
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/add"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/edit"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
c
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/listAll"
,
method
:
"post"
})}},
fe05
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
c
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
s
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-7b66cc0a"
],{
"0ff3"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"el-container"
,[
r
(
"el-main"
,[
r
(
"el-form"
,{
ref
:
"addRole"
,
attrs
:{
model
:
e
.
role
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属部门"
}},[
r
(
"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
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
prop
:
"roleName"
,
label
:
"角色名称"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
role
.
roleName
,
callback
:
function
(
t
){
e
.
$set
(
e
.
role
,
"roleName"
,
t
)},
expression
:
"role.roleName"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"角色描述"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
role
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
role
,
"remark"
,
t
)},
expression
:
"role.remark"
}})],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"权限设置"
}},[
r
(
"el-tree"
,{
ref
:
"funcTree"
,
attrs
:{
data
:
e
.
funcTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"数据权限"
}},[
r
(
"el-tree"
,{
ref
:
"deptTree"
,
attrs
:{
data
:
e
.
deptTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"添加"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
on
:{
click
:
e
.
toRoleList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
a
=
[],
o
=
(
r
(
"ac6a"
),
r
(
"456d"
),
r
(
"96cf"
),
r
(
"3b8d"
)),
s
=
r
(
"fe05"
),
u
=
r
(
"cc5e"
),
i
=
r
(
"2c98"
),
l
=
{
roleName
:
"角色名称"
,
remark
:
"描述"
,
deptId
:
"部门"
},
c
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
r
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
r
(
new
Error
(
l
[
e
.
field
]
+
"必须填写"
)):
r
()};
return
{
loading
:
!
1
,
role
:{
deptIdList
:[],
funcIdList
:[]},
rules
:{
roleName
:[{
validator
:
e
}],
remark
:[{
validator
:
e
}],
deptId
:[{
validator
:
e
}]},
options
:[],
selectDeptParents
:[],
funcTreeData
:[],
deptTreeData
:[],
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
mounted
:
function
(){
this
.
getFormData
()},
methods
:{
getFormData
:
function
(){
var
e
=
Object
(
o
[
"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
.
selectDeptParentTree
();
case
4
:
return
e
.
next
=
6
,
this
.
selectFuncTree
();
case
6
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
addRole
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
addRole
.
validate
((
function
(
t
,
r
){
if
(
t
)
e
.
handleDeptChange
(),
e
.
handleFuncChange
(),
Object
(
u
[
"a"
])(
e
.
role
).
then
((
function
(
t
){
var
r
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
r
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toRoleList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
n
=
r
[
Object
.
keys
(
r
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
n
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toRoleList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/role"
})},
selectDeptParent
:
function
(){
var
e
=
Object
(
o
[
"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
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
options
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParentTree
:
function
(){
var
e
=
Object
(
o
[
"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
[
"f"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
deptTreeData
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectFuncTree
:
function
(){
var
e
=
Object
(
o
[
"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
(
i
[
"b"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
funcTreeData
=
r
}));
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
.
role
.
deptId
=
e
[
t
]},
handleFuncChange
:
function
(){
var
e
=
[];
this
.
$refs
.
funcTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
role
.
funcIdList
=
e
},
handleDeptChange
:
function
(){
var
e
=
[];
this
.
$refs
.
deptTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
role
.
deptIdList
=
e
}}},
d
=
c
,
p
=
r
(
"2877"
),
f
=
Object
(
p
[
"a"
])(
d
,
n
,
a
,
!
1
,
null
,
"574510d3"
,
null
);
t
[
"default"
]
=
f
.
exports
},
"2c98"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
o
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/module/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
o
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/func/listAll"
,
method
:
"post"
})}},
cc5e
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
l
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/info"
,
method
:
"post"
,
data
:{
roleId
:
e
}})}
function
o
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/add"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/edit"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
roleName
:
e
.
roleName
}})}
function
l
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/listAll"
,
method
:
"post"
})}},
fe05
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
l
}));
r
(
"7f7f"
),
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
name
:
e
.
name
}})}
function
o
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
s
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
n
[
"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.8a673c3e.js
0 → 100644
View file @
2c3f0dc6
(
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
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
}})}
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
){},
"99b8"
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
r
(
t
);
var
i
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-container"
,[
n
(
"el-header"
,[
n
(
"div"
,{
staticStyle
:{
margin
:
"20px 0"
}},[
n
(
"el-button"
,{
on
:{
click
:
e
.
addPage
}},[
e
.
_v
(
"导入设备"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
editSeriesPage
}},[
e
.
_v
(
"变更产品系列"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
setChannelPage
}},[
e
.
_v
(
"适配配置"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
importDeviceChannel
}},[
e
.
_v
(
"批量配置"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
deletePage
}},[
e
.
_v
(
"删除设备"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
on
:{
click
:
e
.
downloadLogFile
}},[
e
.
_v
(
"下载模板"
)]),
e
.
_v
(
" "
),
n
(
"el-select"
,{
attrs
:{
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
:
"设备ID"
,
prop
:
"deviceId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列"
,
prop
:
"seriesNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"imei"
,
prop
:
"imei"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"创建时间"
,
prop
:
"createTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
i
=
t
.
row
.
createTime
;
return
[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeFilter"
)(
i
)))])]}}])})],
1
),
e
.
_v
(
" "
),
n
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
e
.
total
,
page
:
e
.
listQuery
.
page
,
limit
:
e
.
listQuery
.
pageSize
},
on
:{
"update:page"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"page"
,
t
)},
"update:limit"
:
function
(
t
){
return
e
.
$set
(
e
.
listQuery
,
"pageSize"
,
t
)},
pagination
:
e
.
refresh
}})],
1
)],
1
)},
a
=
[],
r
=
(
n
(
"96cf"
),
n
(
"3b8d"
)),
o
=
(
n
(
"ac6a"
),
n
(
"333d"
)),
c
=
n
(
"c7a7"
),
l
=
n
(
"ed08"
),
s
=
n
(
"aa98"
),
u
=
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
(
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
:{
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
[
"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
}))},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importDevice"
})},
editSeriesPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
){
var
e
=
[];
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
push
(
t
.
imei
)})),
this
.
$router
.
push
({
path
:
"/deviceManagement/device/editSeries"
,
query
:{
imeis
:
e
}})}
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
setChannelPage
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
){
var
e
=
[];
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
push
(
t
.
imei
)})),
this
.
$router
.
push
({
path
:
"/deviceManagement/device/setChannelNum"
,
query
:{
imeis
:
e
}})}
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
importDeviceChannel
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importDeviceChannel"
})},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
deviceIds
.
push
(
t
.
deviceId
)})),
Object
(
s
[
"b"
])(
this
.
deviceIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
deviceIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device"
,
query
:
this
.
listQuery
})},
downloadLogFile
:
function
(){
var
e
=
""
.
concat
(
"http://server.cneeds.com.cn:9000"
)
+
"/device/device/downloadDeviceUploadFile"
,
t
=
new
XMLHttpRequest
;
t
.
open
(
"GET"
,
e
,
!
0
),
t
.
setRequestHeader
(
"Authorization"
,
Object
(
u
[
"a"
])()),
t
.
responseType
=
"blob"
,
t
.
onload
=
function
(){
if
(
200
===
this
.
status
){
var
e
=
this
.
response
;
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
navigator
.
msSaveBlob
(
e
,
"模板文件.xlsx"
);
else
{
var
t
=
document
.
createElement
(
"a"
),
n
=
window
.
URL
?
window
.
URL
.
createObjectURL
(
e
):
window
.
webkitURL
.
createObjectURL
(
e
);
t
.
href
=
n
,
t
.
download
=
"模板文件.xlsx"
,
document
.
body
.
appendChild
(
t
),
t
.
click
(),
window
.
URL
.
revokeObjectURL
(
n
)}}},
t
.
send
()},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()},
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
,
"09762d50"
,
null
);
t
[
"default"
]
=
v
.
exports
},
aa98
:
function
(
e
,
t
,
n
){
"use strict"
;
n
.
d
(
t
,
"g"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
y
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
r
(
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
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/uploadDeivceChannelExcel"
,
method
:
"post"
,
data
:
e
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
}})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
f
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
y
(
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.db9f3b05.js
0 → 100644
View file @
2c3f0dc6
(
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
l
(
e
){
document
.
documentElement
.
scrollTop
=
e
,
document
.
body
.
parentNode
.
scrollTop
=
e
,
document
.
body
.
scrollTop
=
e
}
function
o
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
c
(
e
,
t
,
n
){
var
i
=
o
(),
a
=
e
-
i
,
c
=
20
,
s
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
u
=
function
e
(){
s
+=
c
;
var
o
=
Math
.
easeInOutQuad
(
s
,
i
,
a
,
t
);
l
(
o
),
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
&&
c
(
0
,
800
)},
handleCurrentChange
:
function
(
e
){
this
.
$emit
(
"pagination"
,{
page
:
e
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
c
(
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
l
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
c
}));
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
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/series/add"
,
method
:
"post"
,
data
:
e
})}
function
l
(
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
c
(){
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
,
"g"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
y
}));
n
(
"55dd"
);
var
i
=
n
(
"b775"
);
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
r
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
c
(
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
d
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
f
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
g
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
e
}})}
function
y
(
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
:{
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
:
"设备ID"
,
prop
:
"deviceId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列"
,
prop
:
"seriesNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"imei"
,
prop
:
"imei"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"规则"
,
prop
:
"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"
)),
l
=
n
(
"333d"
),
o
=
n
(
"c7a7"
),
c
=
n
(
"ed08"
),
s
=
n
(
"aa98"
),
u
=
n
(
"7d09"
),
d
=
{
components
:{
Pagination
:
l
[
"a"
]},
directives
:{
waves
:
o
[
"a"
]},
filters
:{
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
c
[
"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
[
"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
}))},
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
Object
(
s
[
"d"
])(
this
.
multipleSelection
[
0
].
deviceId
).
then
((
function
(
t
){
e
.
getList
()}));
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
,
"2775ac1a"
,
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
l
=
r
.
getBoundingClientRect
(),
o
=
r
.
querySelector
(
".waves-ripple"
);
switch
(
o
?
o
.
className
=
"waves-ripple"
:(
o
=
document
.
createElement
(
"span"
),
o
.
className
=
"waves-ripple"
,
o
.
style
.
height
=
o
.
style
.
width
=
Math
.
max
(
l
.
width
,
l
.
height
)
+
"px"
,
r
.
appendChild
(
o
)),
a
.
type
){
case
"center"
:
o
.
style
.
top
=
l
.
height
/
2
-
o
.
offsetHeight
/
2
+
"px"
,
o
.
style
.
left
=
l
.
width
/
2
-
o
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
o
.
style
.
top
=
(
n
.
pageY
-
l
.
top
-
o
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
o
.
style
.
left
=
(
n
.
pageX
-
l
.
left
-
o
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
o
.
style
.
backgroundColor
=
a
.
color
,
o
.
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-e20529e6.
555d7fdb
.js
→
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e20529e6.
c5d46126
.js
View file @
2c3f0dc6
(
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"
),
d
=
n
(
"aa98"
),
u
=
{
seriesId
:
"选择系列"
,
imeis
:
"要选择设备"
},
s
=
{
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
(
d
[
"l"
])(
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
]}}},
o
=
s
,
l
=
n
(
"2877"
),
v
=
Object
(
l
[
"a"
])(
o
,
i
,
r
,
!
1
,
null
,
"d29db6dc"
,
null
);
t
[
"default"
]
=
v
.
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
d
})),
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
}})}
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
d
(
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
,
"f"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"g"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
b
}));
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
}})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
d
(
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/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
l
(
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
f
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
h
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryTotalStatisticsDeviceChannel"
,
method
:
"post"
,
data
:{
channelIds
:
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"
),
d
=
n
(
"aa98"
),
u
=
{
seriesId
:
"选择系列"
,
imeis
:
"要选择设备"
},
o
=
{
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
(
d
[
"n"
])(
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
=
o
,
l
=
n
(
"2877"
),
v
=
Object
(
l
[
"a"
])(
s
,
i
,
r
,
!
1
,
null
,
"d29db6dc"
,
null
);
t
[
"default"
]
=
v
.
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
d
})),
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
}})}
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
d
(
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
,
"g"
,(
function
(){
return
r
})),
n
.
d
(
t
,
"h"
,(
function
(){
return
c
})),
n
.
d
(
t
,
"n"
,(
function
(){
return
a
})),
n
.
d
(
t
,
"b"
,(
function
(){
return
d
})),
n
.
d
(
t
,
"p"
,(
function
(){
return
u
})),
n
.
d
(
t
,
"l"
,(
function
(){
return
o
})),
n
.
d
(
t
,
"j"
,(
function
(){
return
s
})),
n
.
d
(
t
,
"f"
,(
function
(){
return
l
})),
n
.
d
(
t
,
"a"
,(
function
(){
return
v
})),
n
.
d
(
t
,
"m"
,(
function
(){
return
f
})),
n
.
d
(
t
,
"i"
,(
function
(){
return
h
})),
n
.
d
(
t
,
"c"
,(
function
(){
return
p
})),
n
.
d
(
t
,
"d"
,(
function
(){
return
m
})),
n
.
d
(
t
,
"o"
,(
function
(){
return
b
})),
n
.
d
(
t
,
"k"
,(
function
(){
return
g
})),
n
.
d
(
t
,
"e"
,(
function
(){
return
O
}));
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
}})}
function
c
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/importDevice"
,
method
:
"post"
,
data
:
e
})}
function
a
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/updateDeviceSeriesBatch"
,
method
:
"post"
,
data
:
e
})}
function
d
(
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
o
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/saveChannel"
,
method
:
"post"
,
data
:
e
})}
function
s
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/device/queryDeviceChannelSetting"
,
method
:
"post"
,
data
:
e
})}
function
l
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
v
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/add"
,
method
:
"post"
,
data
:
e
})}
function
f
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/edit"
,
method
:
"post"
,
data
:
e
})}
function
h
(){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/queryDeviceChannelAll"
,
method
:
"post"
})}
function
p
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
m
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/deleteSettingDeviceChannel"
,
method
:
"post"
,
data
:{
deviceId
:
e
}})}
function
b
(
e
){
return
Object
(
i
[
"a"
])({
url
:
"/device/deviceChannel/updateSettingDeviceChannel"
,
method
:
"post"
,
data
:{
device
:
e
}})}
function
g
(
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
})}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e33fc590.32c81d22.js
deleted
100644 → 0
View file @
b37a8bf6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-e33fc590"
],{
"1c64"
:
function
(
e
,
t
,
i
){},
"1cc6"
:
function
(
e
,
t
,
i
){
"use strict"
;
var
a
=
i
(
"1c64"
),
n
=
i
.
n
(
a
);
n
.
a
},
"333d"
:
function
(
e
,
t
,
i
){
"use strict"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"pagination-container"
,
class
:{
hidden
:
e
.
hidden
}},[
i
(
"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
)},
n
=
[];
i
(
"c5f6"
);
Math
.
easeInOutQuad
=
function
(
e
,
t
,
i
,
a
){
return
e
/=
a
/
2
,
e
<
1
?
i
/
2
*
e
*
e
+
t
:(
e
--
,
-
i
/
2
*
(
e
*
(
e
-
2
)
-
1
)
+
t
)};
var
l
=
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
r
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
s
(
e
,
t
,
i
){
var
a
=
r
(),
n
=
e
-
a
,
s
=
20
,
c
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
u
=
function
e
(){
c
+=
s
;
var
r
=
Math
.
easeInOutQuad
(
c
,
a
,
n
,
t
);
o
(
r
),
c
<
t
?
l
(
e
):
i
&&
"function"
===
typeof
i
&&
i
()};
u
()}
var
c
=
{
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
)}}},
u
=
c
,
d
=
(
i
(
"1cc6"
),
i
(
"2877"
)),
g
=
Object
(
d
[
"a"
])(
u
,
a
,
n
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
g
.
exports
},
"8d41"
:
function
(
e
,
t
,
i
){},
"9d3f"
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"el-container"
,[
i
(
"el-header"
,[
i
(
"div"
,{
staticStyle
:{
margin
:
"20px 0"
}},[
i
(
"el-button"
,{
on
:{
click
:
e
.
showDetail
}},[
e
.
_v
(
"查看详情"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
e
.
finishLogStatus
}},[
e
.
_v
(
"已解决"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
e
.
deletePage
}},[
e
.
_v
(
"删除日志"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
e
.
downloadLogFile
}},[
e
.
_v
(
"下载日志文件"
)])],
1
)]),
e
.
_v
(
" "
),
i
(
"el-main"
,[
i
(
"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
}},[
i
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"序号"
,
prop
:
"logId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列"
,
prop
:
"seriesNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"版本号"
,
prop
:
"deviceVersion"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"日志文件"
,
prop
:
"logName"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"上传时间"
,
prop
:
"createTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
a
=
t
.
row
.
createTime
;
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeFilter"
)(
a
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"日志大小"
,
prop
:
"logfileSize"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"上传者"
,
prop
:
"createUsername"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
,
prop
:
"status"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
a
=
t
.
row
.
status
;
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"statusValueFilter"
)(
a
)))])]}}])})],
1
),
e
.
_v
(
" "
),
i
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
e
.
total
,
"page-size"
:
"10"
,
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
}}),
e
.
_v
(
" "
),
i
(
"el-dialog"
,{
attrs
:{
title
:
"详情"
,
visible
:
e
.
dialogTableVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogTableVisible
=
t
}}},[
i
(
"el-form"
,{
ref
:
"gridData"
,
attrs
:{
model
:
e
.
gridData
,
"label-width"
:
"80px"
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"IMEI"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
logName
))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"系列号"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
seriesNum
))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"版本号"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
deviceVersion
))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"Bug标题"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
logName
))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"Bug时间"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeFilter"
)(
e
.
gridData
.
createTime
)))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"复现概率"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
repetitionProbability
)
+
"%"
)])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"上传者"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
createUsername
))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"复现步骤"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
repetitionSteps
))])])],
1
)],
1
)],
1
)],
1
)},
n
=
[],
l
=
(
i
(
"ac6a"
),
i
(
"333d"
)),
o
=
i
(
"c7a7"
),
r
=
i
(
"ed08"
),
s
=
(
i
(
"55dd"
),
i
(
"b775"
));
function
c
(
e
){
return
Object
(
s
[
"a"
])({
url
:
"/remotelog/logfile/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
u
(
e
){
return
Object
(
s
[
"a"
])({
url
:
"/remotelog/logfile/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
d
(
e
){
return
Object
(
s
[
"a"
])({
url
:
"/remotelog/logfile/finish"
,
method
:
"post"
,
data
:{
logId
:
e
}})}
var
g
=
i
(
"5f87"
),
p
=
{
components
:{
Pagination
:
l
[
"a"
]},
directives
:{
waves
:
o
[
"a"
]},
filters
:{
statusValueFilter
:
function
(
e
){
return
-
1
===
e
?
e
=
"不可用"
:
0
===
e
?
e
=
"未处理"
:
1
===
e
&&
(
e
=
"已处理"
),
e
},
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
r
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
}},
data
:
function
(){
return
{
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
logfile
:{
logId
:
""
,
logfileUrl
:
""
},
logfileIds
:[],
dialogTableVisible
:
!
1
,
gridData
:{}}},
created
:
function
(){},
mounted
:
function
(){
this
.
getList
()},
beforeRouteUpdate
:
function
(
e
,
t
,
i
){
if
(
e
.
path
===
t
.
path
){
var
a
=
Object
.
assign
({},
e
.
query
),
n
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
a
)
!==
JSON
.
stringify
(
n
)
&&
this
.
getList
()}
i
()},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
sortChange
:
function
(
e
){
console
.
log
(
"sortChange"
,
e
);
var
t
=
e
.
prop
,
i
=
e
.
order
;
this
.
sortBy
(
t
,
i
)},
sortBy
:
function
(
e
,
t
){
this
.
listQuery
.
sort
=
"ascending"
===
t
?
"+"
.
concat
(
e
):
"-"
.
concat
(
e
),
this
.
handleFilter
()},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
c
(
this
.
listQuery
).
then
((
function
(
t
){
var
i
=
t
.
data
,
a
=
i
.
list
,
n
=
i
.
totalCount
;
e
.
list
=
a
,
e
.
total
=
n
,
e
.
listLoading
=!
1
}))},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importDevice"
})},
showDetail
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>=
2
){
var
e
=
"只能单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
gridData
=
this
.
multipleSelection
[
0
],
this
.
dialogTableVisible
=!
0
;
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
finishLogStatus
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
logfileIds
.
push
(
t
.
logId
)})),
d
(
this
.
logfileIds
).
then
((
function
(
t
){
e
.
getList
()}));
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
downloadLogFile
:
function
(){
if
(
this
.
multipleSelection
.
length
>=
2
){
var
e
=
"只能单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
{
var
t
=
this
.
multipleSelection
[
0
],
i
=
t
.
logfileUrl
.
substring
(
t
.
logfileUrl
.
lastIndexOf
(
"/"
)
+
1
,
t
.
logfileUrl
.
length
),
a
=
""
.
concat
(
"http://server.cneeds.com.cn:9000"
)
+
"/logFile/logfile/downloadFile/"
+
t
.
logId
+
"/true/"
+
i
,
n
=
new
XMLHttpRequest
;
n
.
open
(
"GET"
,
a
,
!
0
),
n
.
setRequestHeader
(
"Authorization"
,
Object
(
g
[
"a"
])()),
n
.
responseType
=
"blob"
,
n
.
onload
=
function
(){
if
(
200
===
this
.
status
){
var
e
=
this
.
response
;
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
navigator
.
msSaveBlob
(
e
,
i
);
else
{
var
t
=
document
.
createElement
(
"a"
),
a
=
window
.
URL
?
window
.
URL
.
createObjectURL
(
e
):
window
.
webkitURL
.
createObjectURL
(
e
);
t
.
href
=
a
,
t
.
download
=
i
,
document
.
body
.
appendChild
(
t
),
t
.
click
(),
window
.
URL
.
revokeObjectURL
(
a
)}}},
n
.
send
()}},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
logfileIds
.
push
(
t
.
logId
)})),
u
(
this
.
logfileIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
logfileIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/remotelog/log"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
f
=
p
,
h
=
i
(
"2877"
),
m
=
Object
(
h
[
"a"
])(
f
,
a
,
n
,
!
1
,
null
,
"e5d38fb6"
,
null
);
t
[
"default"
]
=
m
.
exports
},
c7a7
:
function
(
e
,
t
,
i
){
"use strict"
;
i
(
"8d41"
);
var
a
=
"@@wavesContext"
;
function
n
(
e
,
t
){
function
i
(
i
){
var
a
=
Object
.
assign
({},
t
.
value
),
n
=
Object
.
assign
({
ele
:
e
,
type
:
"hit"
,
color
:
"rgba(0, 0, 0, 0.15)"
},
a
),
l
=
n
.
ele
;
if
(
l
){
l
.
style
.
position
=
"relative"
,
l
.
style
.
overflow
=
"hidden"
;
var
o
=
l
.
getBoundingClientRect
(),
r
=
l
.
querySelector
(
".waves-ripple"
);
switch
(
r
?
r
.
className
=
"waves-ripple"
:(
r
=
document
.
createElement
(
"span"
),
r
.
className
=
"waves-ripple"
,
r
.
style
.
height
=
r
.
style
.
width
=
Math
.
max
(
o
.
width
,
o
.
height
)
+
"px"
,
l
.
appendChild
(
r
)),
n
.
type
){
case
"center"
:
r
.
style
.
top
=
o
.
height
/
2
-
r
.
offsetHeight
/
2
+
"px"
,
r
.
style
.
left
=
o
.
width
/
2
-
r
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
r
.
style
.
top
=
(
i
.
pageY
-
o
.
top
-
r
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
r
.
style
.
left
=
(
i
.
pageX
-
o
.
left
-
r
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
r
.
style
.
backgroundColor
=
n
.
color
,
r
.
className
=
"waves-ripple z-active"
,
!
1
}}
return
e
[
a
]?
e
[
a
].
removeHandle
=
i
:
e
[
a
]
=
{
removeHandle
:
i
},
i
}
t
[
"a"
]
=
{
bind
:
function
(
e
,
t
){
e
.
addEventListener
(
"click"
,
n
(
e
,
t
),
!
1
)},
update
:
function
(
e
,
t
){
e
.
removeEventListener
(
"click"
,
e
[
a
].
removeHandle
,
!
1
),
e
.
addEventListener
(
"click"
,
n
(
e
,
t
),
!
1
)},
unbind
:
function
(
e
){
e
.
removeEventListener
(
"click"
,
e
[
a
].
removeHandle
,
!
1
),
e
[
a
]
=
null
,
delete
e
[
a
]}}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e33fc590.e6ed0a9b.js
0 → 100644
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-e33fc590"
],{
"1c64"
:
function
(
e
,
t
,
i
){},
"1cc6"
:
function
(
e
,
t
,
i
){
"use strict"
;
var
a
=
i
(
"1c64"
),
n
=
i
.
n
(
a
);
n
.
a
},
"333d"
:
function
(
e
,
t
,
i
){
"use strict"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"pagination-container"
,
class
:{
hidden
:
e
.
hidden
}},[
i
(
"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
)},
n
=
[];
i
(
"c5f6"
);
Math
.
easeInOutQuad
=
function
(
e
,
t
,
i
,
a
){
return
e
/=
a
/
2
,
e
<
1
?
i
/
2
*
e
*
e
+
t
:(
e
--
,
-
i
/
2
*
(
e
*
(
e
-
2
)
-
1
)
+
t
)};
var
l
=
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
r
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
s
(
e
,
t
,
i
){
var
a
=
r
(),
n
=
e
-
a
,
s
=
20
,
c
=
0
;
t
=
"undefined"
===
typeof
t
?
500
:
t
;
var
u
=
function
e
(){
c
+=
s
;
var
r
=
Math
.
easeInOutQuad
(
c
,
a
,
n
,
t
);
o
(
r
),
c
<
t
?
l
(
e
):
i
&&
"function"
===
typeof
i
&&
i
()};
u
()}
var
c
=
{
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
)}}},
u
=
c
,
d
=
(
i
(
"1cc6"
),
i
(
"2877"
)),
g
=
Object
(
d
[
"a"
])(
u
,
a
,
n
,
!
1
,
null
,
"f3b72548"
,
null
);
t
[
"a"
]
=
g
.
exports
},
"8d41"
:
function
(
e
,
t
,
i
){},
"9d3f"
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"el-container"
,[
i
(
"el-header"
,[
i
(
"div"
,{
staticStyle
:{
margin
:
"20px 0"
}},[
i
(
"el-button"
,{
on
:{
click
:
e
.
showDetail
}},[
e
.
_v
(
"查看详情"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
e
.
finishLogStatus
}},[
e
.
_v
(
"已解决"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
e
.
deletePage
}},[
e
.
_v
(
"删除日志"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
e
.
downloadLogFile
}},[
e
.
_v
(
"下载日志文件"
)])],
1
)]),
e
.
_v
(
" "
),
i
(
"el-main"
,[
i
(
"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
}},[
i
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"序号"
,
prop
:
"logId"
,
sortable
:
"custom"
,
align
:
"center"
,
width
:
"80"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"产品系列"
,
prop
:
"seriesNum"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"版本号"
,
prop
:
"deviceVersion"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"日志文件"
,
prop
:
"logName"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"上传时间"
,
prop
:
"createTime"
,
width
:
"100"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
a
=
t
.
row
.
createTime
;
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeFilter"
)(
a
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"日志大小"
,
prop
:
"logfileSize"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"上传者"
,
prop
:
"createUsername"
,
width
:
"150"
,
align
:
"center"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
,
prop
:
"status"
,
width
:
"150"
,
align
:
"center"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
a
=
t
.
row
.
status
;
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"statusValueFilter"
)(
a
)))])]}}])})],
1
),
e
.
_v
(
" "
),
i
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
e
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
e
.
total
,
"page-size"
:
"10"
,
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
}}),
e
.
_v
(
" "
),
i
(
"el-dialog"
,{
attrs
:{
title
:
"详情"
,
visible
:
e
.
dialogTableVisible
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogTableVisible
=
t
}}},[
i
(
"el-form"
,{
ref
:
"gridData"
,
attrs
:{
model
:
e
.
gridData
,
"label-width"
:
"80px"
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"IMEI"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
imei
))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"系列号"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
seriesNum
))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"版本号"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
deviceVersion
))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"Bug标题"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
logName
))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"Bug时间"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"timeFilter"
)(
e
.
gridData
.
createTime
)))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"复现概率"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
repetitionProbability
)
+
"%"
)])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"上传者"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
createUsername
))])]),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"复现步骤"
}},[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
gridData
.
repetitionSteps
))])])],
1
)],
1
)],
1
)],
1
)},
n
=
[],
l
=
(
i
(
"ac6a"
),
i
(
"333d"
)),
o
=
i
(
"c7a7"
),
r
=
i
(
"ed08"
),
s
=
(
i
(
"55dd"
),
i
(
"b775"
));
function
c
(
e
){
return
Object
(
s
[
"a"
])({
url
:
"/remotelog/logfile/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
u
(
e
){
return
Object
(
s
[
"a"
])({
url
:
"/remotelog/logfile/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
d
(
e
){
return
Object
(
s
[
"a"
])({
url
:
"/remotelog/logfile/finish"
,
method
:
"post"
,
data
:{
logId
:
e
}})}
var
g
=
i
(
"5f87"
),
p
=
{
components
:{
Pagination
:
l
[
"a"
]},
directives
:{
waves
:
o
[
"a"
]},
filters
:{
statusValueFilter
:
function
(
e
){
return
-
1
===
e
?
e
=
"不可用"
:
0
===
e
?
e
=
"未处理"
:
1
===
e
&&
(
e
=
"已处理"
),
e
},
valueFilter
:
function
(
e
){
return
e
||
"无"
},
timeFilter
:
function
(
e
){
return
e
?
Object
(
r
[
"d"
])(
e
,
"{y}-{m}-{d} {h}:{i}"
):
"无"
}},
data
:
function
(){
return
{
tableKey
:
0
,
listLoading
:
!
0
,
listQuery
:{
pageSize
:
10
},
list
:[],
total
:
0
,
defaultSort
:{},
multipleSelection
:[],
logfile
:{
logId
:
""
,
logfileUrl
:
""
},
logfileIds
:[],
dialogTableVisible
:
!
1
,
gridData
:{}}},
created
:
function
(){},
mounted
:
function
(){
this
.
getList
()},
beforeRouteUpdate
:
function
(
e
,
t
,
i
){
if
(
e
.
path
===
t
.
path
){
var
a
=
Object
.
assign
({},
e
.
query
),
n
=
Object
.
assign
({},
t
.
query
);
JSON
.
stringify
(
a
)
!==
JSON
.
stringify
(
n
)
&&
this
.
getList
()}
i
()},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
sortChange
:
function
(
e
){
console
.
log
(
"sortChange"
,
e
);
var
t
=
e
.
prop
,
i
=
e
.
order
;
this
.
sortBy
(
t
,
i
)},
sortBy
:
function
(
e
,
t
){
this
.
listQuery
.
sort
=
"ascending"
===
t
?
"+"
.
concat
(
e
):
"-"
.
concat
(
e
),
this
.
handleFilter
()},
getList
:
function
(){
var
e
=
this
;
this
.
listLoading
=!
0
,
c
(
this
.
listQuery
).
then
((
function
(
t
){
var
i
=
t
.
data
,
a
=
i
.
list
,
n
=
i
.
totalCount
;
e
.
list
=
a
,
e
.
total
=
n
,
e
.
listLoading
=!
1
}))},
addPage
:
function
(){
this
.
$router
.
push
({
path
:
"/deviceManagement/device/importDevice"
})},
showDetail
:
function
(){
if
(
0
!==
this
.
multipleSelection
.
length
)
if
(
this
.
multipleSelection
.
length
>=
2
){
var
e
=
"只能单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
this
.
gridData
=
this
.
multipleSelection
[
0
],
this
.
dialogTableVisible
=!
0
;
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
finishLogStatus
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
logfileIds
.
push
(
t
.
logId
)})),
d
(
this
.
logfileIds
).
then
((
function
(
t
){
e
.
getList
()}));
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
downloadLogFile
:
function
(){
if
(
this
.
multipleSelection
.
length
>=
2
){
var
e
=
"只能单选"
;
this
.
$message
({
message
:
e
,
type
:
"error"
})}
else
{
var
t
=
this
.
multipleSelection
[
0
],
i
=
t
.
logfileUrl
.
substring
(
t
.
logfileUrl
.
lastIndexOf
(
"/"
)
+
1
,
t
.
logfileUrl
.
length
),
a
=
""
.
concat
(
"http://server.cneeds.com.cn:9000"
)
+
"/logFile/logfile/downloadFile/"
+
t
.
logId
+
"/true/"
+
i
,
n
=
new
XMLHttpRequest
;
n
.
open
(
"GET"
,
a
,
!
0
),
n
.
setRequestHeader
(
"Authorization"
,
Object
(
g
[
"a"
])()),
n
.
responseType
=
"blob"
,
n
.
onload
=
function
(){
if
(
200
===
this
.
status
){
var
e
=
this
.
response
;
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
navigator
.
msSaveBlob
(
e
,
i
);
else
{
var
t
=
document
.
createElement
(
"a"
),
a
=
window
.
URL
?
window
.
URL
.
createObjectURL
(
e
):
window
.
webkitURL
.
createObjectURL
(
e
);
t
.
href
=
a
,
t
.
download
=
i
,
document
.
body
.
appendChild
(
t
),
t
.
click
(),
window
.
URL
.
revokeObjectURL
(
a
)}}},
n
.
send
()}},
deletePage
:
function
(){
var
e
=
this
;
if
(
0
!==
this
.
multipleSelection
.
length
)
this
.
multipleSelection
.
forEach
((
function
(
t
){
e
.
logfileIds
.
push
(
t
.
logId
)})),
u
(
this
.
logfileIds
).
then
((
function
(
t
){
e
.
getList
()})),
this
.
logfileIds
=
[];
else
{
var
t
=
"必须选一列"
;
this
.
$message
({
message
:
t
,
type
:
"error"
})}},
refresh
:
function
(){
this
.
$router
.
push
({
path
:
"/remotelog/log"
,
query
:
this
.
listQuery
})},
handleFilter
:
function
(){
console
.
log
(
"handleFilter"
,
this
.
listQuery
),
this
.
listQuery
.
page
=
1
,
this
.
refresh
()}}},
f
=
p
,
h
=
i
(
"2877"
),
m
=
Object
(
h
[
"a"
])(
f
,
a
,
n
,
!
1
,
null
,
"6336445c"
,
null
);
t
[
"default"
]
=
m
.
exports
},
c7a7
:
function
(
e
,
t
,
i
){
"use strict"
;
i
(
"8d41"
);
var
a
=
"@@wavesContext"
;
function
n
(
e
,
t
){
function
i
(
i
){
var
a
=
Object
.
assign
({},
t
.
value
),
n
=
Object
.
assign
({
ele
:
e
,
type
:
"hit"
,
color
:
"rgba(0, 0, 0, 0.15)"
},
a
),
l
=
n
.
ele
;
if
(
l
){
l
.
style
.
position
=
"relative"
,
l
.
style
.
overflow
=
"hidden"
;
var
o
=
l
.
getBoundingClientRect
(),
r
=
l
.
querySelector
(
".waves-ripple"
);
switch
(
r
?
r
.
className
=
"waves-ripple"
:(
r
=
document
.
createElement
(
"span"
),
r
.
className
=
"waves-ripple"
,
r
.
style
.
height
=
r
.
style
.
width
=
Math
.
max
(
o
.
width
,
o
.
height
)
+
"px"
,
l
.
appendChild
(
r
)),
n
.
type
){
case
"center"
:
r
.
style
.
top
=
o
.
height
/
2
-
r
.
offsetHeight
/
2
+
"px"
,
r
.
style
.
left
=
o
.
width
/
2
-
r
.
offsetWidth
/
2
+
"px"
;
break
;
default
:
r
.
style
.
top
=
(
i
.
pageY
-
o
.
top
-
r
.
offsetHeight
/
2
-
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
"px"
,
r
.
style
.
left
=
(
i
.
pageX
-
o
.
left
-
r
.
offsetWidth
/
2
-
document
.
documentElement
.
scrollLeft
||
document
.
body
.
scrollLeft
)
+
"px"
}
return
r
.
style
.
backgroundColor
=
n
.
color
,
r
.
className
=
"waves-ripple z-active"
,
!
1
}}
return
e
[
a
]?
e
[
a
].
removeHandle
=
i
:
e
[
a
]
=
{
removeHandle
:
i
},
i
}
t
[
"a"
]
=
{
bind
:
function
(
e
,
t
){
e
.
addEventListener
(
"click"
,
n
(
e
,
t
),
!
1
)},
update
:
function
(
e
,
t
){
e
.
removeEventListener
(
"click"
,
e
[
a
].
removeHandle
,
!
1
),
e
.
addEventListener
(
"click"
,
n
(
e
,
t
),
!
1
)},
unbind
:
function
(
e
){
e
.
removeEventListener
(
"click"
,
e
[
a
].
removeHandle
,
!
1
),
e
[
a
]
=
null
,
delete
e
[
a
]}}}}]);
\ No newline at end of file
cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e652b80c.323c7f1f.js
deleted
100644 → 0
View file @
b37a8bf6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-e652b80c"
],{
"2c98"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
a
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/module/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
a
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/func/listAll"
,
method
:
"post"
})}},
cc5e
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
c
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/info"
,
method
:
"post"
,
data
:{
roleId
:
e
}})}
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/add"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/edit"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
c
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/listAll"
,
method
:
"post"
})}},
cd49
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"el-container"
,[
r
(
"el-main"
,[
r
(
"el-form"
,{
ref
:
"editUser"
,
attrs
:{
model
:
e
.
user
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属部门"
}},[
r
(
"el-cascader"
,{
attrs
:{
"expand-trigger"
:
"hover"
,
options
:
e
.
options
,
"show-all-levels"
:
!
1
,
"change-on-select"
:
""
},
on
:{
change
:
e
.
handleChange
},
model
:{
value
:
e
.
selectDeptCascader
,
callback
:
function
(
t
){
e
.
selectDeptCascader
=
t
},
expression
:
"selectDeptCascader"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"roleId"
,
label
:
"所属角色"
}},[
r
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
user
.
roleId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"roleId"
,
t
)},
expression
:
"user.roleId"
}},
e
.
_l
(
e
.
selectRoleOptions
,(
function
(
e
){
return
r
(
"el-option"
,{
key
:
e
.
roleId
,
attrs
:{
label
:
e
.
roleName
,
value
:
e
.
roleId
}})})),
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"username"
,
label
:
"账户名"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
username
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"username"
,
t
)},
expression
:
"user.username"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"password"
,
label
:
"初始密码"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
password
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"password"
,
t
)},
expression
:
"user.password"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"mobile"
,
label
:
"手机号"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
mobile
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"mobile"
,
t
)},
expression
:
"user.mobile"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"email"
,
label
:
"邮箱"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
email
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"email"
,
t
)},
expression
:
"user.email"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"介绍"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"remark"
,
t
)},
expression
:
"user.remark"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"status"
,
label
:
"账户状态"
}},[
r
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
user
.
status
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"status"
,
t
)},
expression
:
"user.status"
}},[
r
(
"el-option"
,{
attrs
:{
label
:
"禁用"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
r
(
"el-option"
,{
attrs
:{
label
:
"可用"
,
value
:
"1"
}})],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"权限设置"
}},[
r
(
"el-tree"
,{
ref
:
"funcTree"
,
attrs
:{
data
:
e
.
funcTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"数据权限"
}},[
r
(
"el-tree"
,{
ref
:
"deptTree"
,
attrs
:{
data
:
e
.
deptTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
on
:{
click
:
e
.
toUserList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
s
=
[],
a
=
(
r
(
"ac6a"
),
r
(
"456d"
),
r
(
"96cf"
),
r
(
"3b8d"
)),
u
=
r
(
"fe05"
),
o
=
r
(
"cc5e"
),
i
=
r
(
"c24f"
),
c
=
r
(
"2c98"
),
l
=
r
(
"f62d"
),
d
=
r
(
"ed08"
),
p
=
{
roleId
:
"选择角色"
,
remark
:
"描述"
,
deptId
:
"选择部门"
,
username
:
"用户名"
,
mobile
:
"手机"
,
email
:
"邮箱"
,
status
:
"状态"
,
userDeptIdList
:
"数据权限"
,
userFuncIdList
:
"模块权限"
},
f
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
r
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
r
(
new
Error
(
p
[
e
.
field
]
+
"必须填写"
)):
r
()};
return
{
loading
:
!
1
,
user
:{
userId
:
""
,
userDeptIdList
:[],
userFuncIdList
:[]},
rules
:{
roleId
:[{
validator
:
e
}],
remark
:[{
validator
:
e
}],
deptId
:[{
validator
:
e
}],
username
:[{
validator
:
e
}],
mobile
:[{
validator
:
e
}],
email
:[{
validator
:
e
}],
status
:[{
validator
:
e
}],
userDeptIdList
:[{
validator
:
e
}]},
funcTreeData
:[],
deptTreeData
:[],
options
:[],
selectRoleOptions
:[],
selectDeptCascader
:[],
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
created
:
function
(){},
mounted
:
function
(){
this
.
user
.
userId
=
this
.
$route
.
query
.
userId
,
this
.
user
.
username
=
this
.
$route
.
query
.
username
,
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
.
selectRole
();
case
2
:
return
e
.
next
=
4
,
this
.
selectDeptParent
();
case
4
:
return
e
.
next
=
6
,
this
.
selectDeptParentTree
();
case
6
:
return
e
.
next
=
8
,
this
.
selectFuncTree
();
case
8
:
this
.
getUserInfo
();
case
9
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
editUser
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
editUser
.
validate
((
function
(
t
,
r
){
if
(
t
)
e
.
handleDeptChange
(),
e
.
handleFuncChange
(),
e
.
user
.
createTime
=
Object
(
d
[
"d"
])(
e
.
user
.
createTime
,
"{y}-{m}-{d} {h}:{i}:{s}"
),
Object
(
i
[
"f"
])(
e
.
user
).
then
((
function
(
t
){
var
r
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
r
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toUserList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
n
=
r
[
Object
.
keys
(
r
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
n
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toUserList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/user"
})},
selectRole
:
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
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
selectRoleOptions
=
r
}));
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
(
u
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
options
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParentTree
:
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
(
u
[
"f"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
deptTreeData
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectFuncTree
:
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
[
"b"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
funcTreeData
=
r
}));
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
.
user
.
deptId
=
e
[
t
]},
handleFuncChange
:
function
(){
var
e
=
[];
this
.
$refs
.
funcTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
user
.
userFuncIdList
=
e
},
handleDeptChange
:
function
(){
var
e
=
[];
this
.
$refs
.
deptTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
user
.
userDeptIdList
=
e
},
getUserInfo
:
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
:
Object
(
i
[
"d"
])(
this
.
user
.
username
).
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
user
=
r
,
t
.
setFuncTree
(
t
.
user
.
userFuncIdList
),
t
.
setDeptTree
(
t
.
user
.
userDeptIdList
),
t
.
setSelectCas
()}));
case
1
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setFuncTree
:
function
(
e
){
var
t
=
[];
e
.
forEach
((
function
(
e
){
t
.
push
({
id
:
e
})})),
this
.
$refs
.
funcTree
.
setCheckedNodes
(
t
)},
setDeptTree
:
function
(
e
){
var
t
=
[];
e
.
forEach
((
function
(
e
){
t
.
push
({
id
:
e
})})),
this
.
$refs
.
deptTree
.
setCheckedNodes
(
t
)},
setSelectCas
:
function
(){
var
e
=
Object
(
a
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
t
=
[],
e
.
next
=
3
,
Object
(
l
[
"a"
])(
t
,
this
.
options
,
this
.
user
.
deptId
);
case
3
:
this
.
selectDeptCascader
=
t
;
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
h
=
f
,
m
=
r
(
"2877"
),
v
=
Object
(
m
[
"a"
])(
h
,
n
,
s
,
!
1
,
null
,
"f0f611d6"
,
null
);
t
[
"default"
]
=
v
.
exports
},
f62d
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
s
}));
r
(
"96cf"
);
var
n
=
r
(
"3b8d"
);
r
(
"ac6a"
);
function
s
(
e
,
t
,
r
){
return
a
.
apply
(
this
,
arguments
)}
function
a
(){
return
a
=
Object
(
n
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
t
,
r
,
n
){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
r
.
forEach
((
function
(
e
){
return
e
.
value
===
n
?(
t
.
unshift
(
e
.
value
),
t
):
0
===
e
.
children
.
length
?
null
:
void
s
(
t
,
e
.
children
,
n
).
then
((
function
(){
t
.
unshift
(
e
.
value
)}))}));
case
1
:
case
"end"
:
return
e
.
stop
()}}),
e
)}))),
a
.
apply
(
this
,
arguments
)}},
fe05
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
c
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
a
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
u
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
o
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
n
[
"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-e652b80c.e885a8a3.js
0 → 100644
View file @
2c3f0dc6
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-e652b80c"
],{
"2c98"
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
a
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/module/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
}})}
function
a
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/func/listAll"
,
method
:
"post"
})}},
cc5e
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
c
}));
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/info"
,
method
:
"post"
,
data
:{
roleId
:
e
}})}
function
a
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/add"
,
method
:
"post"
,
data
:
e
})}
function
u
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/edit"
,
method
:
"post"
,
data
:
e
})}
function
o
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
roleName
:
e
.
roleName
}})}
function
c
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/role/listAll"
,
method
:
"post"
})}},
cd49
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"el-container"
,[
r
(
"el-main"
,[
r
(
"el-form"
,{
ref
:
"editUser"
,
attrs
:{
model
:
e
.
user
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"deptId"
,
label
:
"所属部门"
}},[
r
(
"el-cascader"
,{
attrs
:{
"expand-trigger"
:
"hover"
,
options
:
e
.
options
,
"show-all-levels"
:
!
1
,
"change-on-select"
:
""
},
on
:{
change
:
e
.
handleChange
},
model
:{
value
:
e
.
selectDeptCascader
,
callback
:
function
(
t
){
e
.
selectDeptCascader
=
t
},
expression
:
"selectDeptCascader"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"roleId"
,
label
:
"所属角色"
}},[
r
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
user
.
roleId
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"roleId"
,
t
)},
expression
:
"user.roleId"
}},
e
.
_l
(
e
.
selectRoleOptions
,(
function
(
e
){
return
r
(
"el-option"
,{
key
:
e
.
roleId
,
attrs
:{
label
:
e
.
roleName
,
value
:
e
.
roleId
}})})),
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"username"
,
label
:
"账户名"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
username
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"username"
,
t
)},
expression
:
"user.username"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"password"
,
label
:
"初始密码"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
password
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"password"
,
t
)},
expression
:
"user.password"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"mobile"
,
label
:
"手机号"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
mobile
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"mobile"
,
t
)},
expression
:
"user.mobile"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"email"
,
label
:
"邮箱"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
email
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"email"
,
t
)},
expression
:
"user.email"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"remark"
,
label
:
"介绍"
}},[
r
(
"el-input"
,{
model
:{
value
:
e
.
user
.
remark
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"remark"
,
t
)},
expression
:
"user.remark"
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
prop
:
"status"
,
label
:
"账户状态"
}},[
r
(
"el-select"
,{
attrs
:{
placeholder
:
"选择"
},
model
:{
value
:
e
.
user
.
status
,
callback
:
function
(
t
){
e
.
$set
(
e
.
user
,
"status"
,
t
)},
expression
:
"user.status"
}},[
r
(
"el-option"
,{
attrs
:{
label
:
"禁用"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
r
(
"el-option"
,{
attrs
:{
label
:
"可用"
,
value
:
"1"
}})],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-row"
,[
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"权限设置"
}},[
r
(
"el-tree"
,{
ref
:
"funcTree"
,
attrs
:{
data
:
e
.
funcTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-col"
,{
attrs
:{
span
:
12
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"数据权限"
}},[
r
(
"el-tree"
,{
ref
:
"deptTree"
,
attrs
:{
data
:
e
.
deptTreeData
,
"show-checkbox"
:
""
,
"default-expand-all"
:
""
,
"node-key"
:
"id"
,
"highlight-current"
:
""
,
props
:
e
.
defaultProps
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"修改"
)]),
e
.
_v
(
" "
),
r
(
"el-button"
,{
on
:{
click
:
e
.
toUserList
}},[
e
.
_v
(
"取消"
)])],
1
)],
1
)],
1
)],
1
)},
s
=
[],
a
=
(
r
(
"ac6a"
),
r
(
"456d"
),
r
(
"96cf"
),
r
(
"3b8d"
)),
u
=
r
(
"fe05"
),
o
=
r
(
"cc5e"
),
i
=
r
(
"c24f"
),
c
=
r
(
"2c98"
),
l
=
r
(
"f62d"
),
d
=
r
(
"ed08"
),
p
=
{
roleId
:
"选择角色"
,
remark
:
"描述"
,
deptId
:
"选择部门"
,
username
:
"用户名"
,
mobile
:
"手机"
,
email
:
"邮箱"
,
status
:
"状态"
,
userDeptIdList
:
"数据权限"
,
userFuncIdList
:
"模块权限"
},
f
=
{
data
:
function
(){
var
e
=
function
(
e
,
t
,
r
){
void
0
===
t
||
null
===
t
||
0
===
t
.
length
?
r
(
new
Error
(
p
[
e
.
field
]
+
"必须填写"
)):
r
()};
return
{
loading
:
!
1
,
user
:{
userId
:
""
,
userDeptIdList
:[],
userFuncIdList
:[]},
rules
:{
roleId
:[{
validator
:
e
}],
remark
:[{
validator
:
e
}],
deptId
:[{
validator
:
e
}],
username
:[{
validator
:
e
}],
mobile
:[{
validator
:
e
}],
email
:[{
validator
:
e
}],
status
:[{
validator
:
e
}],
userDeptIdList
:[{
validator
:
e
}]},
funcTreeData
:[],
deptTreeData
:[],
options
:[],
selectRoleOptions
:[],
selectDeptCascader
:[],
defaultProps
:{
children
:
"children"
,
label
:
"label"
}}},
created
:
function
(){},
mounted
:
function
(){
this
.
user
.
userId
=
this
.
$route
.
query
.
userId
,
this
.
user
.
username
=
this
.
$route
.
query
.
username
,
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
.
selectRole
();
case
2
:
return
e
.
next
=
4
,
this
.
selectDeptParent
();
case
4
:
return
e
.
next
=
6
,
this
.
selectDeptParentTree
();
case
6
:
return
e
.
next
=
8
,
this
.
selectFuncTree
();
case
8
:
this
.
getUserInfo
();
case
9
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setDefault
:
function
(){
this
.
$refs
.
editUser
.
resetFields
()},
onSubmit
:
function
(){
var
e
=
this
;
this
.
loading
||
(
this
.
loading
=!
0
,
this
.
$refs
.
editUser
.
validate
((
function
(
t
,
r
){
if
(
t
)
e
.
handleDeptChange
(),
e
.
handleFuncChange
(),
e
.
user
.
createTime
=
Object
(
d
[
"d"
])(
e
.
user
.
createTime
,
"{y}-{m}-{d} {h}:{i}:{s}"
),
Object
(
i
[
"f"
])(
e
.
user
).
then
((
function
(
t
){
var
r
=
t
.
msg
;
e
.
$notify
({
title
:
"操作成功"
,
message
:
r
,
type
:
"success"
,
duration
:
2
e3
}),
e
.
setDefault
(),
e
.
toUserList
(),
e
.
loading
=!
1
})).
catch
((
function
(){
e
.
loading
=!
1
}));
else
{
var
n
=
r
[
Object
.
keys
(
r
)[
0
]][
0
].
message
;
e
.
$message
({
message
:
n
,
type
:
"error"
}),
e
.
loading
=!
1
}})))},
toUserList
:
function
(){
this
.
$router
.
push
({
path
:
"/system/user"
})},
selectRole
:
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
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
selectRoleOptions
=
r
}));
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
(
u
[
"e"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
options
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectDeptParentTree
:
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
(
u
[
"f"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
deptTreeData
=
r
}));
case
2
:
case
"end"
:
return
e
.
stop
()}}),
e
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
selectFuncTree
:
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
[
"b"
])().
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
funcTreeData
=
r
}));
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
.
user
.
deptId
=
e
[
t
]},
handleFuncChange
:
function
(){
var
e
=
[];
this
.
$refs
.
funcTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
user
.
userFuncIdList
=
e
},
handleDeptChange
:
function
(){
var
e
=
[];
this
.
$refs
.
deptTree
.
getCheckedNodes
().
forEach
((
function
(
t
){
e
.
push
(
t
.
id
)})),
this
.
user
.
userDeptIdList
=
e
},
getUserInfo
:
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
:
Object
(
i
[
"d"
])(
this
.
user
.
username
).
then
((
function
(
e
){
var
r
=
e
.
data
;
t
.
user
=
r
,
t
.
setFuncTree
(
t
.
user
.
userFuncIdList
),
t
.
setDeptTree
(
t
.
user
.
userDeptIdList
),
t
.
setSelectCas
()}));
case
1
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
setFuncTree
:
function
(
e
){
var
t
=
[];
e
.
forEach
((
function
(
e
){
t
.
push
({
id
:
e
})})),
this
.
$refs
.
funcTree
.
setCheckedNodes
(
t
)},
setDeptTree
:
function
(
e
){
var
t
=
[];
e
.
forEach
((
function
(
e
){
t
.
push
({
id
:
e
})})),
this
.
$refs
.
deptTree
.
setCheckedNodes
(
t
)},
setSelectCas
:
function
(){
var
e
=
Object
(
a
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(){
var
t
;
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
t
=
[],
e
.
next
=
3
,
Object
(
l
[
"a"
])(
t
,
this
.
options
,
this
.
user
.
deptId
);
case
3
:
this
.
selectDeptCascader
=
t
;
case
4
:
case
"end"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}()}},
h
=
f
,
m
=
r
(
"2877"
),
v
=
Object
(
m
[
"a"
])(
h
,
n
,
s
,
!
1
,
null
,
"f0f611d6"
,
null
);
t
[
"default"
]
=
v
.
exports
},
f62d
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"a"
,(
function
(){
return
s
}));
r
(
"96cf"
);
var
n
=
r
(
"3b8d"
);
r
(
"ac6a"
);
function
s
(
e
,
t
,
r
){
return
a
.
apply
(
this
,
arguments
)}
function
a
(){
return
a
=
Object
(
n
[
"a"
])(
regeneratorRuntime
.
mark
((
function
e
(
t
,
r
,
n
){
return
regeneratorRuntime
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
r
.
forEach
((
function
(
e
){
return
e
.
value
===
n
?(
t
.
unshift
(
e
.
value
),
t
):
0
===
e
.
children
.
length
?
null
:
void
s
(
t
,
e
.
children
,
n
).
then
((
function
(){
t
.
unshift
(
e
.
value
)}))}));
case
1
:
case
"end"
:
return
e
.
stop
()}}),
e
)}))),
a
.
apply
(
this
,
arguments
)}},
fe05
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
d
(
t
,
"c"
,(
function
(){
return
s
})),
r
.
d
(
t
,
"e"
,(
function
(){
return
a
})),
r
.
d
(
t
,
"f"
,(
function
(){
return
u
})),
r
.
d
(
t
,
"a"
,(
function
(){
return
o
})),
r
.
d
(
t
,
"d"
,(
function
(){
return
i
})),
r
.
d
(
t
,
"b"
,(
function
(){
return
c
}));
r
(
"7f7f"
),
r
(
"55dd"
);
var
n
=
r
(
"b775"
);
function
s
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/list"
,
method
:
"post"
,
params
:{
page
:
e
.
page
,
pageSize
:
e
.
pageSize
,
sort
:
e
.
sort
,
name
:
e
.
name
}})}
function
a
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAll"
,
method
:
"post"
})}
function
u
(){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/listAllTree"
,
method
:
"post"
})}
function
o
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/add"
,
method
:
"post"
,
data
:
e
})}
function
i
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/edit"
,
method
:
"post"
,
data
:
e
})}
function
c
(
e
){
return
Object
(
n
[
"a"
])({
url
:
"/sys/dept/delete"
,
method
:
"post"
,
data
:{
ids
:
e
}})}}}]);
\ No newline at end of file
cneeds-server-device/src/main/resources/application.yml
View file @
2c3f0dc6
spring
:
profiles
:
active
:
dev
active
:
prod
application
:
name
:
cneeds-server-device
...
...
cneeds-server-logupload/src/main/resources/application.yml
View file @
2c3f0dc6
spring
:
profiles
:
active
:
dev
active
:
prod
application
:
name
:
cneeds-server-logupload
...
...
cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/impl/SysRoleServiceImpl.java
View file @
2c3f0dc6
...
...
@@ -31,9 +31,17 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleDao, SysRoleEntity> i
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
QueryWrapper
<
SysRoleEntity
>
queryWrapper
=
new
QueryWrapper
<>();
String
roleName
=
(
String
)
params
.
get
(
"roleName"
);
if
(
roleName
!=
null
&&
!
""
.
equals
(
roleName
)
){
queryWrapper
.
like
(
"role_name"
,
roleName
);
}
IPage
<
SysRoleEntity
>
page
=
this
.
page
(
new
Query
<
SysRoleEntity
>().
getPage
(
params
),
new
QueryWrapper
<
SysRoleEntity
>()
queryWrapper
);
return
new
PageUtils
(
page
);
...
...
cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/impl/SysUserServiceImpl.java
View file @
2c3f0dc6
...
...
@@ -47,10 +47,17 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
QueryWrapper
<
SysUserEntity
>
queryWrapper
=
new
QueryWrapper
<
SysUserEntity
>();
String
username
=
(
String
)
params
.
get
(
"username"
);
if
(
username
!=
null
&&
!
""
.
equals
(
username
)){
queryWrapper
.
like
(
"username"
,
username
);
}
IPage
<
SysUserEntity
>
page
=
this
.
page
(
new
Query
<
SysUserEntity
>().
getPage
(
params
),
new
QueryWrapper
<
SysUserEntity
>()
);
queryWrapper
);
return
new
PageUtils
(
page
);
}
...
...
cneeds-server-user/src/main/java/com/mx/cneeds/server/user/web/SysDeptController.java
View file @
2c3f0dc6
...
...
@@ -40,6 +40,9 @@ public class SysDeptController {
long
count
=
sysDeptService
.
queryDeptCount
(
params
);
long
limit
=
(
long
)
params
.
get
(
Constant
.
LIMIT
);
long
Curpage
=
(
long
)
params
.
get
(
Constant
.
PAGE
);
PageUtils
page
=
new
PageUtils
(
sysDeptEntityList
,
(
int
)
count
,
(
int
)
limit
,
...
...
cneeds-server-user/src/main/resources/application.yml
View file @
2c3f0dc6
spring
:
profiles
:
active
:
test
active
:
prod
application
:
name
:
cneeds-server-user
...
...
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