Commit 4f90a0d6 by zzrdark

1.日志更改

2.修改前端代码
3.更改黑白名单编码
4.增加logMedia 的fileSize
parent e6c43358
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
<module name="cneeds-common-utils" /> <module name="cneeds-common-utils" />
<module name="cneeds-common-data" /> <module name="cneeds-common-data" />
<module name="cneeds-server-eureka" /> <module name="cneeds-server-eureka" />
<module name="cneeds-common-hadoop-dfs" />
<module name="cneeds-common-pojo" /> <module name="cneeds-common-pojo" />
<module name="cneeds-server-device_activate" /> <module name="cneeds-server-device_activate" />
<module name="cneeds-server-logupload" />
<module name="cneeds-server-authorization" /> <module name="cneeds-server-authorization" />
<module name="cneeds-server-user" /> <module name="cneeds-server-user" />
<module name="cneeds-common-hadoop-dfs" /> <module name="cneeds-server-logupload" />
<module name="cneeds-server-device" /> <module name="cneeds-server-device" />
</profile> </profile>
</annotationProcessing> </annotationProcessing>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="58efcb75-622d-40c1-b8e0-10cd2fb456b4" name="Default Changelist" comment="1.fix DeviceLog"> <list default="true" id="58efcb75-622d-40c1-b8e0-10cd2fb456b4" name="Default Changelist" comment="1.add logging&#10;2.增加 查询设备信息">
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/logback-spring-dev.xml" afterDir="false" /> <change afterPath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/WechatFileDto.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/logback-spring-prod.xml" afterDir="false" /> <change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/css/app.826c7dc3.css" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/css/chunk-1a07b08b.830e1851.css" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/fonts/element-icons.535877f5.woff" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/fonts/element-icons.732389de.ttf" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/app.ce6e6113.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-1a07b08b.8495daf0.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-2d230a36.77c3129c.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-73bfcbf0.a5fec1ff.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e33fc590.edc65535.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e652b80c.323c7f1f.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-elementUI.a6c12691.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-logupload/Dockerfile" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-logupload/build.sh" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-logupload/src/main/resources/application-test.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/compiler.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/compiler.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/config/OAuth2ResourceServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/config/OAuth2ResourceServer.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cneeds-common-data/db/cneeds_server.sql" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-data/db/cneeds_server.sql" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-common-data/src/main/java/com/mx/cneeds/server/entity/DeviceInfoEntity.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-data/src/main/java/com/mx/cneeds/server/entity/DeviceInfoEntity.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-common-data/src/main/java/com/mx/cneeds/server/entity/DeviceLogmediaEntity.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-data/src/main/java/com/mx/cneeds/server/entity/DeviceLogmediaEntity.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-common-data/src/main/resources/mapper/DeviceLogmediaDao.xml" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-data/src/main/resources/mapper/DeviceLogmediaDao.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/DeviceInfoDto.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/DeviceInfoDto.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/WechatDeviceLogDto.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/WechatDeviceLogDto.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/vo/DeviceLogFileVo.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/vo/DeviceLogFileVo.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/vo/WechatDeviceLogVo.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/vo/WechatDeviceLogVo.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-common-utils/src/main/java/com/mx/cneeds/common/pager/Constant.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-utils/src/main/java/com/mx/cneeds/common/pager/Constant.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/common/constant/ResultCode.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/common/constant/ResultCode.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/client/DeviceClient.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/client/DeviceClient.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/client/LogFileClient.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/client/LogFileClient.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/LogFlieController.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/LogFlieController.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/LogFlieController.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/LogFlieController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/application-dev.yml" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/application-dev.yml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/application-dev.yml" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/application-dev.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/application-prod.yml" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/application-prod.yml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/logback-spring-dev.xml" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/logback-spring-dev.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/application-test.yml" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/application-test.yml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/logback-spring-prod.xml" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/logback-spring-prod.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/ProductSeriesService.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/ProductSeriesService.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/index.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/impl/ProductSeriesServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/impl/ProductSeriesServiceImpl.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/css/app.53f7b034.css" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/css/chunk-42768dcf.9d63d053.css" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/css/chunk-e33fc590.9d63d053.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/css/chunk-67ae84aa.eedc5334.css" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/css/chunk-116c2bab.eedc5334.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/css/chunk-e19c4374.36699270.css" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/fonts/element-icons.2fad952a.woff" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/fonts/element-icons.6f0a7632.ttf" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/app.bacadfa9.js" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-2d0cfe15.286a34ef.js" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-2d213927.a484a4fb.js" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-42768dcf.af38ec7a.js" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-67ae84aa.ad314bd8.js" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-116c2bab.26f3ae67.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-73bfcbf0.58efd4e9.js" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e19c4374.a6d2a75b.js" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e652b80c.0ad9ee3a.js" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-elementUI.1c191b8c.js" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-libs.dc23c267.js" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-libs.ddf89aa7.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/web/DeviceInfoController.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/web/DeviceInfoController.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/web/DeviceInfoController.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/web/DeviceInfoController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-device/src/main/resources/application-test.yml" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/resources/application-test.yml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cneeds-server-logupload/src/main/java/com/mx/cneeds/server/logupload/service/DeviceLogMediaService.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-logupload/src/main/java/com/mx/cneeds/server/logupload/service/DeviceLogMediaService.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-logupload/src/main/java/com/mx/cneeds/server/logupload/service/impl/DeviceLogMediaServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-logupload/src/main/java/com/mx/cneeds/server/logupload/service/impl/DeviceLogMediaServiceImpl.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-logupload/src/main/java/com/mx/cneeds/server/logupload/service/impl/DeviceLogServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-logupload/src/main/java/com/mx/cneeds/server/logupload/service/impl/DeviceLogServiceImpl.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-logupload/src/main/java/com/mx/cneeds/server/logupload/web/LogUploadController.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-logupload/src/main/java/com/mx/cneeds/server/logupload/web/LogUploadController.java" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -97,7 +139,7 @@ ...@@ -97,7 +139,7 @@
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" /> <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" /> <property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" /> <property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources" /> <property name="last_opened_file_path" value="$PROJECT_DIR$/cneeds-server-logupload" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" /> <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" /> <property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="project.structure.last.edited" value="Modules" /> <property name="project.structure.last.edited" value="Modules" />
...@@ -108,12 +150,12 @@ ...@@ -108,12 +150,12 @@
<property name="settings.editor.splitter.proportion" value="0.20898877" /> <property name="settings.editor.splitter.proportion" value="0.20898877" />
</component> </component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS"> <key name="CopyFile.RECENT_KEYS">
<recent name="E:\mx_project\cneeds-server\cneeds-common-data\src\test" /> <recent name="E:\mx_project\cneeds-server\cneeds-server-logupload" />
<recent name="E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\java\com\mx\cneeds" /> <recent name="E:\mx_project\cneeds-server\cneeds-server-logupload\src\main\resources" />
<recent name="E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\resources" /> <recent name="E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\resources" />
<recent name="E:\mx_project\cneeds-server" /> <recent name="E:\mx_project\cneeds-server\cneeds-common-hadoop-dfs\src\main\resources" />
<recent name="E:\mx_project\cneeds-server\src" /> <recent name="E:\mx_project\cneeds-server\cneeds-common-hadoop-dfs\src\main\java\com\mx\hbasefile\hadoop" />
</key> </key>
<key name="CopyClassDialog.RECENTS_KEY"> <key name="CopyClassDialog.RECENTS_KEY">
<recent name="com.mx.cneeds.server.datashow.web.device" /> <recent name="com.mx.cneeds.server.datashow.web.device" />
...@@ -122,19 +164,19 @@ ...@@ -122,19 +164,19 @@
<recent name="com.mx.cneeds.server.logupload.config" /> <recent name="com.mx.cneeds.server.logupload.config" />
<recent name="com.mx.cneeds.server.user.mqtt.server" /> <recent name="com.mx.cneeds.server.user.mqtt.server" />
</key> </key>
<key name="CopyFile.RECENT_KEYS"> <key name="MoveFile.RECENT_KEYS">
<recent name="E:\mx_project\cneeds-server\cneeds-common-data\src\test" />
<recent name="E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\java\com\mx\cneeds" />
<recent name="E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\resources" /> <recent name="E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\resources" />
<recent name="E:\mx_project\cneeds-server\cneeds-server-logupload\src\main\resources" /> <recent name="E:\mx_project\cneeds-server" />
<recent name="E:\mx_project\cneeds-server\cneeds-common-hadoop-dfs\src\main\resources" /> <recent name="E:\mx_project\cneeds-server\src" />
<recent name="E:\mx_project\cneeds-server\cneeds-common-hadoop-dfs\src\main\java\com\mx\hbasefile\hadoop" />
<recent name="E:\mx_project\cneeds-server\cneeds-server-user\src\main\java\com\mx\cneeds\server\user\mqtt" />
</key> </key>
</component> </component>
<component name="RestServicesNavigator"> <component name="RestServicesNavigator">
<treeState> <treeState>
<expand> <expand>
<path> <path>
<item name="Found 127 services " type="fcff1e1b:RestServiceStructure$RootNode" /> <item name="Found 131 services " type="fcff1e1b:RestServiceStructure$RootNode" />
</path> </path>
</expand> </expand>
<select /> <select />
...@@ -353,7 +395,10 @@ ...@@ -353,7 +395,10 @@
<workItem from="1587560891375" duration="39000" /> <workItem from="1587560891375" duration="39000" />
<workItem from="1587605292833" duration="20516000" /> <workItem from="1587605292833" duration="20516000" />
<workItem from="1587692456906" duration="18275000" /> <workItem from="1587692456906" duration="18275000" />
<workItem from="1587868620028" duration="22533000" /> <workItem from="1587868620028" duration="22592000" />
<workItem from="1587953065938" duration="5357000" />
<workItem from="1588038176671" duration="24894000" />
<workItem from="1588124701121" duration="31973000" />
</task> </task>
<task id="LOCAL-00001" summary="1.修改不需要web服务 &#10;2.增加一个logupload"> <task id="LOCAL-00001" summary="1.修改不需要web服务 &#10;2.增加一个logupload">
<created>1578451117064</created> <created>1578451117064</created>
...@@ -544,7 +589,14 @@ ...@@ -544,7 +589,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1587724965685</updated> <updated>1587724965685</updated>
</task> </task>
<option name="localTasksCounter" value="28" /> <task id="LOCAL-00028" summary="1.add logging&#10;2.增加 查询设备信息">
<created>1587906221681</created>
<option name="number" value="00028" />
<option name="presentableId" value="LOCAL-00028" />
<option name="project" value="LOCAL" />
<updated>1587906221681</updated>
</task>
<option name="localTasksCounter" value="29" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
...@@ -565,7 +617,6 @@ ...@@ -565,7 +617,6 @@
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" /> <option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
<MESSAGE value="添加数据库表文档" />
<MESSAGE value="1.修改项目结构&#10;2.更改数据库连接&#10;3.增加测试docker部署" /> <MESSAGE value="1.修改项目结构&#10;2.更改数据库连接&#10;3.增加测试docker部署" />
<MESSAGE value="1.修改项目结构&#10;2.登陆&#10;3.等等" /> <MESSAGE value="1.修改项目结构&#10;2.登陆&#10;3.等等" />
<MESSAGE value="1.增加数据库数据&#10;2.增加数据权限拦截&#10;3.增加分页插件&#10;4.增加系统模块查询" /> <MESSAGE value="1.增加数据库数据&#10;2.增加数据权限拦截&#10;3.增加分页插件&#10;4.增加系统模块查询" />
...@@ -590,25 +641,26 @@ ...@@ -590,25 +641,26 @@
<MESSAGE value="1.fix" /> <MESSAGE value="1.fix" />
<MESSAGE value="1.add device log oos" /> <MESSAGE value="1.add device log oos" />
<MESSAGE value="1.fix DeviceLog" /> <MESSAGE value="1.fix DeviceLog" />
<option name="LAST_COMMIT_MESSAGE" value="1.fix DeviceLog" /> <MESSAGE value="1.add logging&#10;2.增加 查询设备信息" />
<option name="LAST_COMMIT_MESSAGE" value="1.add logging&#10;2.增加 查询设备信息" />
</component> </component>
<component name="WindowStateProjectService"> <component name="WindowStateProjectService">
<state x="590" y="156" key="#LogUploadApplication" timestamp="1585894479679"> <state x="590" y="156" key="#LogUploadApplication" timestamp="1585894479679">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="590" y="156" key="#LogUploadApplication/0.0.1920.1040@0.0.1920.1040" timestamp="1585894479679" /> <state x="590" y="156" key="#LogUploadApplication/0.0.1920.1040@0.0.1920.1040" timestamp="1585894479679" />
<state x="552" y="178" key="#Project_Structure" timestamp="1587463658342"> <state x="552" y="178" key="#Project_Structure" timestamp="1587954208897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="552" y="178" key="#Project_Structure/0.0.1920.1040@0.0.1920.1040" timestamp="1587463658342" /> <state x="552" y="178" key="#Project_Structure/0.0.1920.1040@0.0.1920.1040" timestamp="1587954208897" />
<state x="378" y="114" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1587558670160"> <state x="378" y="114" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1587558670160">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="378" y="114" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1587558670160" /> <state x="378" y="114" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1587558670160" />
<state x="765" y="229" key="#com.intellij.ide.util.MemberChooser" timestamp="1585635266398"> <state x="765" y="229" key="#com.intellij.ide.util.MemberChooser" timestamp="1588043440709">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="765" y="229" key="#com.intellij.ide.util.MemberChooser/0.0.1920.1040@0.0.1920.1040" timestamp="1585635266398" /> <state x="765" y="229" key="#com.intellij.ide.util.MemberChooser/0.0.1920.1040@0.0.1920.1040" timestamp="1588043440709" />
<state x="640" y="246" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog" timestamp="1582697117117"> <state x="640" y="246" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog" timestamp="1582697117117">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
...@@ -625,10 +677,10 @@ ...@@ -625,10 +677,10 @@
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="703" y="356" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/0.0.1920.1040@0.0.1920.1040" timestamp="1583822701848" /> <state x="703" y="356" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/0.0.1920.1040@0.0.1920.1040" timestamp="1583822701848" />
<state x="463" y="112" key="CommitChangelistDialog2" timestamp="1587726176305"> <state x="463" y="112" key="CommitChangelistDialog2" timestamp="1588066552535">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="463" y="112" key="CommitChangelistDialog2/0.0.1920.1040@0.0.1920.1040" timestamp="1587726176305" /> <state x="463" y="112" key="CommitChangelistDialog2/0.0.1920.1040@0.0.1920.1040" timestamp="1588066552535" />
<state x="150" y="103" key="DiffContextDialog" timestamp="1585117146381"> <state x="150" y="103" key="DiffContextDialog" timestamp="1585117146381">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
...@@ -637,54 +689,54 @@ ...@@ -637,54 +689,54 @@
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="740" y="275" key="FileChooserDialogImpl/0.0.1920.1040@0.0.1920.1040" timestamp="1585025839953" /> <state x="740" y="275" key="FileChooserDialogImpl/0.0.1920.1040@0.0.1920.1040" timestamp="1585025839953" />
<state width="1877" height="349" key="GridCell.Tab.0.bottom" timestamp="1587902004624"> <state width="1877" height="284" key="GridCell.Tab.0.bottom" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="349" key="GridCell.Tab.0.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1587902004624" /> <state width="1877" height="284" key="GridCell.Tab.0.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state width="1877" height="349" key="GridCell.Tab.0.center" timestamp="1587902004624"> <state width="1877" height="284" key="GridCell.Tab.0.center" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="349" key="GridCell.Tab.0.center/0.0.1920.1040@0.0.1920.1040" timestamp="1587902004624" /> <state width="1877" height="284" key="GridCell.Tab.0.center/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state width="1877" height="349" key="GridCell.Tab.0.left" timestamp="1587902004624"> <state width="1877" height="284" key="GridCell.Tab.0.left" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="349" key="GridCell.Tab.0.left/0.0.1920.1040@0.0.1920.1040" timestamp="1587902004624" /> <state width="1877" height="284" key="GridCell.Tab.0.left/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state width="1877" height="349" key="GridCell.Tab.0.right" timestamp="1587902004624"> <state width="1877" height="284" key="GridCell.Tab.0.right" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="349" key="GridCell.Tab.0.right/0.0.1920.1040@0.0.1920.1040" timestamp="1587902004624" /> <state width="1877" height="284" key="GridCell.Tab.0.right/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state width="1877" height="289" key="GridCell.Tab.1.bottom" timestamp="1587900935775"> <state width="1877" height="284" key="GridCell.Tab.1.bottom" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="289" key="GridCell.Tab.1.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1587900935775" /> <state width="1877" height="284" key="GridCell.Tab.1.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state width="1877" height="289" key="GridCell.Tab.1.center" timestamp="1587900935775"> <state width="1877" height="284" key="GridCell.Tab.1.center" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="289" key="GridCell.Tab.1.center/0.0.1920.1040@0.0.1920.1040" timestamp="1587900935775" /> <state width="1877" height="284" key="GridCell.Tab.1.center/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state width="1877" height="289" key="GridCell.Tab.1.left" timestamp="1587900935775"> <state width="1877" height="284" key="GridCell.Tab.1.left" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="289" key="GridCell.Tab.1.left/0.0.1920.1040@0.0.1920.1040" timestamp="1587900935775" /> <state width="1877" height="284" key="GridCell.Tab.1.left/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state width="1877" height="289" key="GridCell.Tab.1.right" timestamp="1587900935775"> <state width="1877" height="284" key="GridCell.Tab.1.right" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="289" key="GridCell.Tab.1.right/0.0.1920.1040@0.0.1920.1040" timestamp="1587900935775" /> <state width="1877" height="284" key="GridCell.Tab.1.right/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state width="1877" height="289" key="GridCell.Tab.2.bottom" timestamp="1587900935776"> <state width="1877" height="284" key="GridCell.Tab.2.bottom" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="289" key="GridCell.Tab.2.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1587900935776" /> <state width="1877" height="284" key="GridCell.Tab.2.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state width="1877" height="289" key="GridCell.Tab.2.center" timestamp="1587900935775"> <state width="1877" height="284" key="GridCell.Tab.2.center" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="289" key="GridCell.Tab.2.center/0.0.1920.1040@0.0.1920.1040" timestamp="1587900935775" /> <state width="1877" height="284" key="GridCell.Tab.2.center/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state width="1877" height="289" key="GridCell.Tab.2.left" timestamp="1587900935775"> <state width="1877" height="284" key="GridCell.Tab.2.left" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="289" key="GridCell.Tab.2.left/0.0.1920.1040@0.0.1920.1040" timestamp="1587900935775" /> <state width="1877" height="284" key="GridCell.Tab.2.left/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state width="1877" height="289" key="GridCell.Tab.2.right" timestamp="1587900935775"> <state width="1877" height="284" key="GridCell.Tab.2.right" timestamp="1588166199897">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="289" key="GridCell.Tab.2.right/0.0.1920.1040@0.0.1920.1040" timestamp="1587900935775" /> <state width="1877" height="284" key="GridCell.Tab.2.right/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" />
<state x="490" y="175" key="Maven.ArtifactSearchDialog" timestamp="1583320014926"> <state x="490" y="175" key="Maven.ArtifactSearchDialog" timestamp="1583320014926">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
...@@ -697,10 +749,10 @@ ...@@ -697,10 +749,10 @@
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="438" y="166" width="1352" height="708" key="SettingsEditor/0.0.1920.1040@0.0.1920.1040" timestamp="1587869864619" /> <state x="438" y="166" width="1352" height="708" key="SettingsEditor/0.0.1920.1040@0.0.1920.1040" timestamp="1587869864619" />
<state x="552" y="253" key="Vcs.Push.Dialog.v2" timestamp="1587724967227"> <state x="552" y="253" key="Vcs.Push.Dialog.v2" timestamp="1587906223083">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="552" y="253" key="Vcs.Push.Dialog.v2/0.0.1920.1040@0.0.1920.1040" timestamp="1587724967227" /> <state x="552" y="253" key="Vcs.Push.Dialog.v2/0.0.1920.1040@0.0.1920.1040" timestamp="1587906223083" />
<state width="968" height="528" key="XDebugger.FullValuePopup" timestamp="1585818529449"> <state width="968" height="528" key="XDebugger.FullValuePopup" timestamp="1585818529449">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
...@@ -721,10 +773,14 @@ ...@@ -721,10 +773,14 @@
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="511" y="210" key="new project wizard/0.0.1920.1040@0.0.1920.1040" timestamp="1587463523363" /> <state x="511" y="210" key="new project wizard/0.0.1920.1040@0.0.1920.1040" timestamp="1587463523363" />
<state x="616" y="173" width="672" height="676" key="search.everywhere.popup" timestamp="1587904828344"> <state x="616" y="240" key="run.anything.popup" timestamp="1588144418613">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state x="616" y="240" key="run.anything.popup/0.0.1920.1040@0.0.1920.1040" timestamp="1588144418613" />
<state x="616" y="173" width="672" height="676" key="search.everywhere.popup" timestamp="1588165111759">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="616" y="173" width="672" height="676" key="search.everywhere.popup/0.0.1920.1040@0.0.1920.1040" timestamp="1587904828344" /> <state x="616" y="173" width="672" height="676" key="search.everywhere.popup/0.0.1920.1040@0.0.1920.1040" timestamp="1588165111759" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>
...@@ -736,7 +792,7 @@ ...@@ -736,7 +792,7 @@
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" type="java-line"> <line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java</url> <url>file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java</url>
<line>180</line> <line>182</line>
<option name="timeStamp" value="17" /> <option name="timeStamp" value="17" />
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" type="java-line"> <line-breakpoint enabled="true" type="java-line">
...@@ -761,14 +817,19 @@ ...@@ -761,14 +817,19 @@
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" type="java-line"> <line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/wechat/WechatController.java</url> <url>file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/wechat/WechatController.java</url>
<line>63</line>
<option name="timeStamp" value="41" />
</line-breakpoint>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/wechat/WechatController.java</url>
<line>48</line> <line>48</line>
<option name="timeStamp" value="42" /> <option name="timeStamp" value="42" />
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/web/DeviceInfoController.java</url>
<line>65</line>
<option name="timeStamp" value="56" />
</line-breakpoint>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java</url>
<line>198</line>
<option name="timeStamp" value="59" />
</line-breakpoint>
</breakpoints> </breakpoints>
</breakpoint-manager> </breakpoint-manager>
<watches-manager> <watches-manager>
......
...@@ -34,7 +34,7 @@ CREATE TABLE `device_info` ( ...@@ -34,7 +34,7 @@ CREATE TABLE `device_info` (
`active_time` datetime(0) DEFAULT NULL COMMENT '激活时间', `active_time` datetime(0) DEFAULT NULL COMMENT '激活时间',
`channel_nums` varchar(10000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '渠道号', `channel_nums` varchar(10000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '渠道号',
`channel_nums_message` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '渠道号提示信息', `channel_nums_message` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '渠道号提示信息',
`channel_rules` int(255) DEFAULT NULL COMMENT '0:黑名单,1:白名单', `channel_rules` int(255) DEFAULT NULL COMMENT '0:白名单,1:黑名单',
PRIMARY KEY (`device_id`) USING BTREE PRIMARY KEY (`device_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备信息' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备信息' ROW_FORMAT = Dynamic;
...@@ -52,7 +52,7 @@ CREATE TABLE `device_log` ( ...@@ -52,7 +52,7 @@ CREATE TABLE `device_log` (
`create_username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建人名字', `create_username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建人名字',
`user_id` bigint(20) DEFAULT NULL, `user_id` bigint(20) DEFAULT NULL,
`repetition_steps` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '复现步骤', `repetition_steps` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '复现步骤',
`logfile_url` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '日志文件存放路径', `logfile_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '日志文件存放路径',
`logfile_size` bigint(20) DEFAULT NULL COMMENT '日志文件大小', `logfile_size` bigint(20) DEFAULT NULL COMMENT '日志文件大小',
`logfile_status` int(11) DEFAULT NULL COMMENT '日志文件上传状态,-1,失败,0上传中,1完成', `logfile_status` int(11) DEFAULT NULL COMMENT '日志文件上传状态,-1,失败,0上传中,1完成',
`log_accept_id` varchar (255) DEFAULT NULL COMMENT '移动端日志标识符', `log_accept_id` varchar (255) DEFAULT NULL COMMENT '移动端日志标识符',
...@@ -69,6 +69,7 @@ CREATE TABLE `device_logmedia` ( ...@@ -69,6 +69,7 @@ CREATE TABLE `device_logmedia` (
`location_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '音频路径', `location_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '音频路径',
`log_id` bigint(20) DEFAULT NULL, `log_id` bigint(20) DEFAULT NULL,
`type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '格式', `type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '格式',
`file_size` bigint(20) DEFAULT NULL COMMENT '文件大小',
PRIMARY KEY (`logmedia_id`) USING BTREE PRIMARY KEY (`logmedia_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '日志音频表' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '日志音频表' ROW_FORMAT = Dynamic;
......
...@@ -77,7 +77,7 @@ public class DeviceInfoEntity implements Serializable { ...@@ -77,7 +77,7 @@ public class DeviceInfoEntity implements Serializable {
private String channelNumsMessage; private String channelNumsMessage;
/** /**
* 0:黑名单,1:白名单 * 0:白名单,1:黑名单
*/ */
private Integer channelRules; private Integer channelRules;
......
...@@ -40,4 +40,6 @@ public class DeviceLogmediaEntity implements Serializable { ...@@ -40,4 +40,6 @@ public class DeviceLogmediaEntity implements Serializable {
*/ */
private String type; private String type;
private Long fileSize;
} }
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<result property="locationUrl" column="location_url"/> <result property="locationUrl" column="location_url"/>
<result property="logId" column="log_id"/> <result property="logId" column="log_id"/>
<result property="type" column="type"/> <result property="type" column="type"/>
<result property="fileSize" column="file_size"/>
</resultMap> </resultMap>
......
...@@ -69,7 +69,7 @@ public class DeviceInfoDto { ...@@ -69,7 +69,7 @@ public class DeviceInfoDto {
private String channelNumsMessage; private String channelNumsMessage;
/** /**
* 0:黑名单,1:白名单 * 0:白名单,1:黑名单
*/ */
private Integer channelRules; private Integer channelRules;
......
...@@ -4,6 +4,7 @@ import lombok.Data; ...@@ -4,6 +4,7 @@ import lombok.Data;
import java.io.File; import java.io.File;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @ClassName WechatDeviceLogVo * @ClassName WechatDeviceLogVo
...@@ -26,7 +27,7 @@ public class WechatDeviceLogDto { ...@@ -26,7 +27,7 @@ public class WechatDeviceLogDto {
/** /**
* 视频 图片文件路径 * 视频 图片文件路径
*/ */
List<String> locationUrls; List<Map<String,String>> fileMap;
/** /**
* bug名字 * bug名字
......
package com.mx.cneeds.common.dto;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @ClassName WechatFileDto
* @Author zzrdark
* @Date 2020-04-29 18:34
* @Description TODO
**/
@Data
@Builder
@ToString
public class WechatFileDto {
private String logAcceptId;
private Long fileSize;
private String locationUrl;
}
package com.mx.cneeds.common.vo; package com.mx.cneeds.common.vo;
import lombok.Data; import lombok.Data;
import lombok.ToString;
import java.io.File; import java.io.File;
...@@ -11,6 +12,7 @@ import java.io.File; ...@@ -11,6 +12,7 @@ import java.io.File;
* @Description TODO * @Description TODO
**/ **/
@Data @Data
@ToString
public class DeviceLogFileVo { public class DeviceLogFileVo {
String imei; String imei;
......
package com.mx.cneeds.common.vo; package com.mx.cneeds.common.vo;
import lombok.Data; import lombok.Data;
import lombok.ToString;
import java.io.File; import java.io.File;
import java.util.List; import java.util.List;
...@@ -12,6 +13,7 @@ import java.util.List; ...@@ -12,6 +13,7 @@ import java.util.List;
* @Description TODO * @Description TODO
**/ **/
@Data @Data
@ToString
public class WechatDeviceLogVo { public class WechatDeviceLogVo {
......
...@@ -92,31 +92,27 @@ public class Constant { ...@@ -92,31 +92,27 @@ public class Constant {
} }
} }
public enum WechatFileDtoProp{
/** /**
* 云服务商 * 路径的属性
*/
public enum CloudService {
/**
* 七牛云
*/
QINIU(1),
/**
* 阿里云
*/ */
ALIYUN(2), Url("localtionUrl"),
/** /**
* 腾讯云 * 文件大小的属性
*/ */
QCLOUD(3); Size("fileSize");
private int value; private String key;
CloudService(int value) {
this.value = value;
WechatFileDtoProp(String key) {
this.key = key;
} }
public int getValue() { public String getKey() {
return value; return key;
} }
} }
......
...@@ -11,6 +11,8 @@ public class ResultCode { ...@@ -11,6 +11,8 @@ public class ResultCode {
public static Integer NOTFOUND_IMEI = 1; public static Integer NOTFOUND_IMEI = 1;
//没有设置渠道商 //没有设置渠道商
public static Integer NOTSET_CHANNEL = 2; public static Integer NOTSET_CHANNEL = 2;
// 参数有误
public static Integer PARAMERROR = 3;
} }
...@@ -47,7 +47,7 @@ public interface DeviceClient { ...@@ -47,7 +47,7 @@ public interface DeviceClient {
@RequestParam("order") String order); @RequestParam("order") String order);
@PostMapping("/device/info/infoByImei") @PostMapping("/device/info/infoByImei")
DeviceInfoDto queryDeviceByImei(@RequestParam String imei); DeviceInfoDto queryDeviceByImei(@RequestBody String imei);
@PostMapping("/device/info/infoByIds") @PostMapping("/device/info/infoByIds")
List<DeviceInfoDto> queryDeviceByIds(@RequestBody Set<Long> ids); List<DeviceInfoDto> queryDeviceByIds(@RequestBody Set<Long> ids);
......
package com.mx.cneeds.server.datashow.client; package com.mx.cneeds.server.datashow.client;
import com.mx.cneeds.common.dto.DeviceLogFileDto; import com.mx.cneeds.common.dto.*;
import com.mx.cneeds.common.dto.PageDto;
import com.mx.cneeds.common.dto.WechatDeviceLogDto;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
...@@ -38,4 +37,10 @@ public interface LogFileClient { ...@@ -38,4 +37,10 @@ public interface LogFileClient {
@PostMapping(value = "/log/upload/uploadLogFile") @PostMapping(value = "/log/upload/uploadLogFile")
void uploadLogFile(@RequestBody DeviceLogFileDto dto); void uploadLogFile(@RequestBody DeviceLogFileDto dto);
@PostMapping(value = "/log/upload/queryLogFileByLogid")
DeviceLogDto queryLogFileByLogid(@RequestBody Long logId);
@PostMapping(value = "/log/upload/wechatUploadAloneFile")
void wechatUploadAloneFile(@RequestBody WechatFileDto wechatFileDto);
} }
...@@ -10,6 +10,8 @@ import com.mx.cneeds.common.vo.SeriesVo; ...@@ -10,6 +10,8 @@ import com.mx.cneeds.common.vo.SeriesVo;
import com.mx.cneeds.server.datashow.client.DeviceClient; import com.mx.cneeds.server.datashow.client.DeviceClient;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -31,7 +33,6 @@ public class DeviceController { ...@@ -31,7 +33,6 @@ public class DeviceController {
@Autowired @Autowired
private DeviceClient deviceClient; private DeviceClient deviceClient;
@GetMapping("/device/getChannel_nums") @GetMapping("/device/getChannel_nums")
public R getChannel_nums(String imei){ public R getChannel_nums(String imei){
...@@ -40,6 +41,7 @@ public class DeviceController { ...@@ -40,6 +41,7 @@ public class DeviceController {
try { try {
deviceInfoDto = deviceClient.queryDeviceByImei(imei); deviceInfoDto = deviceClient.queryDeviceByImei(imei);
if (deviceInfoDto == null){ if (deviceInfoDto == null){
log.debug("ResultCode:"+ResultCode.NOTFOUND_IMEI);
return R.error(ResultCode.NOTFOUND_IMEI,"没有该imei的设备"); return R.error(ResultCode.NOTFOUND_IMEI,"没有该imei的设备");
} }
}catch (Exception e) { }catch (Exception e) {
...@@ -192,8 +194,9 @@ public class DeviceController { ...@@ -192,8 +194,9 @@ public class DeviceController {
} }
@PostMapping("/device/queryDeviceByImei") @PostMapping("/device/queryDeviceByImei")
public R queryDeviceByImei(@RequestParam(value = "imei") String imei){ public R queryDeviceByImei(@RequestBody DeviceInfoDto dto){
DeviceInfoDto deviceInfoDto = deviceClient.queryDeviceByImei(imei); log.debug("queryDeviceByImei: imei:" + dto.getImei());
DeviceInfoDto deviceInfoDto = deviceClient.queryDeviceByImei(dto.getImei());
return R.ok().put("data",deviceInfoDto); return R.ok().put("data",deviceInfoDto);
} }
......
...@@ -6,6 +6,7 @@ import com.mx.cneeds.common.constant.FilePath; ...@@ -6,6 +6,7 @@ import com.mx.cneeds.common.constant.FilePath;
import com.mx.cneeds.common.constant.ResultCode; import com.mx.cneeds.common.constant.ResultCode;
import com.mx.cneeds.common.converter.RequestParamterConverter; import com.mx.cneeds.common.converter.RequestParamterConverter;
import com.mx.cneeds.common.dto.*; import com.mx.cneeds.common.dto.*;
import com.mx.cneeds.common.pager.Constant;
import com.mx.cneeds.common.result.R; import com.mx.cneeds.common.result.R;
import com.mx.cneeds.common.vo.DeviceLogFileVo; import com.mx.cneeds.common.vo.DeviceLogFileVo;
import com.mx.cneeds.common.vo.WechatDeviceLogVo; import com.mx.cneeds.common.vo.WechatDeviceLogVo;
...@@ -21,9 +22,12 @@ import org.springframework.stereotype.Controller; ...@@ -21,9 +22,12 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
...@@ -50,22 +54,35 @@ public class LogFlieController { ...@@ -50,22 +54,35 @@ public class LogFlieController {
@Autowired @Autowired
private UserClient userClient; private UserClient userClient;
/**
*
* @param vo
* @return
* @throws IOException
*/
@PostMapping("/logfile/wechatDeviceLogUpload") @PostMapping("/logfile/wechatDeviceLogUpload")
@ResponseBody @ResponseBody
public R wechatUploadLog(WechatDeviceLogVo vo, MultipartFile[] file) throws IOException { public R wechatUploadLog(@RequestBody WechatDeviceLogVo vo) throws IOException {
log.debug(vo.toString());
WechatDeviceLogDto dto = new WechatDeviceLogDto(); WechatDeviceLogDto dto = new WechatDeviceLogDto();
BeanUtils.copyProperties(vo, dto); BeanUtils.copyProperties(vo, dto);
List<String> listUrl = new ArrayList<>(); List<Map<String,String>> listUrl = new ArrayList<>();
for (MultipartFile f : file){ /*for (MultipartFile f : file){
Map<String,String> map = new HashMap<>();
// 把图片存入 oos 返回路径 // 把图片存入 oos 返回路径
StringBuffer dir = new StringBuffer(FilePath.LogFilePath); StringBuffer dir = new StringBuffer(FilePath.LogFilePath);
dir.append(vo.getLogAcceptId()); dir.append(vo.getLogAcceptId());
hdfsTemplate.saveFile(dir.toString(),f.getOriginalFilename(),f.getInputStream(),f.getSize(), (short) 2); hdfsTemplate.saveFile(dir.toString(),f.getOriginalFilename(),f.getInputStream(),f.getSize(), (short) 2);
listUrl.add(dir.toString()+"/"+f.getOriginalFilename()); map.put(Constant.WechatFileDtoProp.Url.getKey(),dir.toString()+"/"+f.getOriginalFilename());
} map.put(Constant.WechatFileDtoProp.Size.getKey(),String.valueOf(f.getSize()));
dto.setLocationUrls(listUrl); listUrl.add(map);
}*/
dto.setFileMap(listUrl);
DeviceInfoDto deviceInfoDto = deviceClient.queryDeviceByImei(dto.getImei()); DeviceInfoDto deviceInfoDto = deviceClient.queryDeviceByImei(dto.getImei());
if (deviceInfoDto == null){
return R.error(ResultCode.NOTFOUND_IMEI,"没有该imei");
}
dto.setDeviceId(deviceInfoDto.getDeviceId()); dto.setDeviceId(deviceInfoDto.getDeviceId());
UserDto userDto = userClient.userInfo(UserUtils.getUserName()); UserDto userDto = userClient.userInfo(UserUtils.getUserName());
...@@ -76,15 +93,39 @@ public class LogFlieController { ...@@ -76,15 +93,39 @@ public class LogFlieController {
return R.ok(); return R.ok();
} }
@PostMapping("/logfile/wechatUploadLogFile")
@ResponseBody
public R wechatUploadLogFile(String logAcceptId, MultipartFile file) throws IOException {
log.debug("wechatUploadLogFile: "+logAcceptId+" file : "+ (file==null ? "空":"不为空"));
StringBuffer dir = new StringBuffer(FilePath.LogFilePath);
dir.append(logAcceptId);
if (logAcceptId == null || file == null ) {
return R.error(ResultCode.PARAMERROR,"参数有误");
}
hdfsTemplate.saveFile(dir.toString(),file.getOriginalFilename(),file.getInputStream(),file.getSize(), (short) 2);
String locationUrl = dir.toString()+"/"+file.getOriginalFilename();
WechatFileDto dto = WechatFileDto.builder()
.fileSize(file.getSize())
.locationUrl(locationUrl)
.logAcceptId(logAcceptId).build();
log.debug(dto.toString());
logFileClient.wechatUploadAloneFile(dto);
return R.ok();
}
@PostMapping("/logfile/DeviceLogFileUpload") @PostMapping("/logfile/DeviceLogFileUpload")
@ResponseBody @ResponseBody
public R uploadLogFile(DeviceLogFileVo vo, MultipartFile file) throws IOException { public R uploadLogFile(DeviceLogFileVo vo, MultipartFile file) throws IOException {
DeviceLogFileDto dto = new DeviceLogFileDto(); DeviceLogFileDto dto = new DeviceLogFileDto();
BeanUtils.copyProperties(vo, dto); BeanUtils.copyProperties(vo, dto);
log.debug(vo.toString());
DeviceInfoDto deviceInfoDto = deviceClient.queryDeviceByImei(dto.getImei()); DeviceInfoDto deviceInfoDto = deviceClient.queryDeviceByImei(dto.getImei());
if (deviceInfoDto == null){ if (deviceInfoDto == null){
log.debug("ResultCode: "+ResultCode.NOTFOUND_IMEI);
return R.error(ResultCode.NOTFOUND_IMEI,"没有该imei"); return R.error(ResultCode.NOTFOUND_IMEI,"没有该imei");
} }
// 把图片存入oos 返回路径 // 把图片存入oos 返回路径
...@@ -97,6 +138,46 @@ public class LogFlieController { ...@@ -97,6 +138,46 @@ public class LogFlieController {
dto.setDeviceId(deviceInfoDto.getDeviceId()); dto.setDeviceId(deviceInfoDto.getDeviceId());
logFileClient.uploadLogFile(dto); logFileClient.uploadLogFile(dto);
log.debug("logAcceptId:"+vo.getLogAcceptId() + " ResultCode: 0");
return R.ok(); return R.ok();
} }
@RequestMapping("/logfile/downloadFile/{logId}/{isLogFile}/{fileName}")
public void downloadFile( HttpServletResponse response,
@PathVariable("logId") Long logId,
@PathVariable("fileName") String fileName,
@PathVariable("isLogFile") boolean isLogFile) throws IOException {
DeviceLogDto deviceLogDto = logFileClient.queryLogFileByLogid(logId);
/**
* log文件日志
*/
if (isLogFile){
ServletOutputStream outputStream = response.getOutputStream();
response.setContentType(deviceLogDto.getLogfileUrl().substring(deviceLogDto.getLogfileUrl().lastIndexOf(".")+1));
response.addHeader("Content-Disposition", "attachment; filename" + "testfilename");
byte[] bytes = new byte[1024];
InputStream inputStream = hdfsTemplate.openFile(deviceLogDto.getLogfileUrl().
substring(0,deviceLogDto.getLogfileUrl().lastIndexOf("/")), fileName);
long total = deviceLogDto.getLogfileSize();
while (total>0) {
inputStream.read(bytes);
outputStream.write(bytes,0, total>1024?1024: (int) total);
outputStream.flush();
total-=1024;
}
outputStream.close();
}else {
/**
* 微信上传的 图片 视频文件
*/
}
}
} }
...@@ -113,7 +113,6 @@ ...@@ -113,7 +113,6 @@
</appender> </appender>
<root level="debug"> <root level="debug">
<appender-ref ref="CONSOLE" />
<appender-ref ref="DEBUG_FILE" /> <appender-ref ref="DEBUG_FILE" />
<appender-ref ref="INFO_FILE" /> <appender-ref ref="INFO_FILE" />
<appender-ref ref="ERROR_FILE" /> <appender-ref ref="ERROR_FILE" />
...@@ -127,7 +126,7 @@ ...@@ -127,7 +126,7 @@
<!--<logger name="org.springframework.web" level="INFO"/> <!--<logger name="org.springframework.web" level="INFO"/>
<logger name="org.springboot.sample" level="TRACE" />--> <logger name="org.springboot.sample" level="TRACE" />-->
<!-- 开发、测试环境 --> <!-- 开发、测试环境 -->
<springProfile name="dev,test,pro"> <springProfile name="dev,test,prod">
<logger name="org.springframework" level="debug"/> <logger name="org.springframework" level="debug"/>
<logger name="org.springboot" level="debug" /> <logger name="org.springboot" level="debug" />
<logger name="com.mx" level="debug" /> <logger name="com.mx" level="debug" />
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<contextName>logback</contextName> <contextName>logback</contextName>
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 --> <!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 -->
<!-- <property name="log.path" value="E:/cneedsLog/log" />--> <!-- <property name="log.path" value="E:/cneedsLog/log/datashow" />-->
<property name="log.path" value="/root/cneeds-server/cneedsLog/datashow" /> <property name="log.path" value="/root/cneeds-server/cneedsLog/datashow" />
<!-- 彩色日志 --> <!-- 彩色日志 -->
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</rollingPolicy> </rollingPolicy>
<!-- 此日志文件只记录debug级别的 --> <!-- 此日志文件只记录debug级别的 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter"> <filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>debug</level> <level>DEBUG</level>
<onMatch>ACCEPT</onMatch> <onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch> <onMismatch>DENY</onMismatch>
</filter> </filter>
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
<!--<logger name="org.springframework.web" level="INFO"/> <!--<logger name="org.springframework.web" level="INFO"/>
<logger name="org.springboot.sample" level="TRACE" />--> <logger name="org.springboot.sample" level="TRACE" />-->
<!-- 开发、测试环境 --> <!-- 开发、测试环境 -->
<springProfile name="dev,test,pro"> <springProfile name="dev,test,prod">
<logger name="org.springframework" level="debug"/> <logger name="org.springframework" level="debug"/>
<logger name="org.springboot" level="debug" /> <logger name="org.springboot" level="debug" />
<logger name="com.mx" level="debug" /> <logger name="com.mx" level="debug" />
......
<!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.53f7b034.css rel=stylesheet></head><body><div id=app></div><script src=static/js/chunk-elementUI.1c191b8c.js></script><script src=static/js/chunk-libs.dc23c267.js></script><script>(function(e){function n(n){for(var t,u,d=n[0],f=n[1],h=n[2],o=0,i=[];o<d.length;o++)u=d[o],a[u]&&i.push(a[u][0]),a[u]=0;for(t in f)Object.prototype.hasOwnProperty.call(f,t)&&(e[t]=f[t]);k&&k(n);while(i.length)i.shift()();return r.push.apply(r,h||[]),c()}function c(){for(var e,n=0;n<r.length;n++){for(var c=r[n],t=!0,u=1;u<c.length;u++){var d=c[u];0!==a[d]&&(t=!1)}t&&(r.splice(n--,1),e=f(f.s=c[0]))}return e}var t={},u={runtime:0},a={runtime:0},r=[];function d(e){return f.p+"static/js/"+({}[e]||e)+"."+{"chunk-06aa7494":"06e9eb28","chunk-0b251b6b":"c62cffd6","chunk-113720ab":"c13124c4","chunk-1d606ab9":"36c5da6b","chunk-218bb4cf":"2c87854b","chunk-2b4823a9":"8b477be6","chunk-2d2105d3":"c38e1553","chunk-2d230fe7":"8023f254","chunk-3b59103a":"8d86d081","chunk-403c80dd":"94c0ac41","chunk-42768dcf":"af38ec7a","chunk-47af9ee4":"a003a3e1","chunk-4a8d06a6":"81dbed13","chunk-4ab8490a":"d0b52c5a","chunk-5411756c":"80e1e589","chunk-56d3065a":"f080c714","chunk-10f36354":"7f6359fa","chunk-636f8118":"2d5d0784","chunk-64238bd4":"b5c58bf5","chunk-67ae84aa":"ad314bd8","chunk-73bfcbf0":"58efd4e9","chunk-79a85582":"dd8d44e5","chunk-7b66cc0a":"d0fee21d","chunk-acf60ff8":"f55e1c1c","chunk-e19c4374":"a6d2a75b","chunk-2d0cfe15":"286a34ef","chunk-2d213927":"a484a4fb","chunk-e652b80c":"0ad9ee3a"}[e]+".js"}function f(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,f),c.l=!0,c.exports}f.e=function(e){var n=[],c={"chunk-06aa7494":1,"chunk-113720ab":1,"chunk-218bb4cf":1,"chunk-2b4823a9":1,"chunk-42768dcf":1,"chunk-4a8d06a6":1,"chunk-4ab8490a":1,"chunk-5411756c":1,"chunk-10f36354":1,"chunk-64238bd4":1,"chunk-67ae84aa":1,"chunk-e19c4374":1};u[e]?n.push(u[e]):0!==u[e]&&c[e]&&n.push(u[e]=new Promise((function(n,c){for(var t="static/css/"+({}[e]||e)+"."+{"chunk-06aa7494":"9d63d053","chunk-0b251b6b":"31d6cfe0","chunk-113720ab":"9d63d053","chunk-1d606ab9":"31d6cfe0","chunk-218bb4cf":"9d63d053","chunk-2b4823a9":"9d63d053","chunk-2d2105d3":"31d6cfe0","chunk-2d230fe7":"31d6cfe0","chunk-3b59103a":"31d6cfe0","chunk-403c80dd":"31d6cfe0","chunk-42768dcf":"9d63d053","chunk-47af9ee4":"31d6cfe0","chunk-4a8d06a6":"e9a4618c","chunk-4ab8490a":"9d63d053","chunk-5411756c":"9d63d053","chunk-56d3065a":"31d6cfe0","chunk-10f36354":"129625a4","chunk-636f8118":"31d6cfe0","chunk-64238bd4":"70564041","chunk-67ae84aa":"eedc5334","chunk-73bfcbf0":"31d6cfe0","chunk-79a85582":"31d6cfe0","chunk-7b66cc0a":"31d6cfe0","chunk-acf60ff8":"31d6cfe0","chunk-e19c4374":"36699270","chunk-2d0cfe15":"31d6cfe0","chunk-2d213927":"31d6cfe0","chunk-e652b80c":"31d6cfe0"}[e]+".css",a=f.p+t,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===t||o===a))return n()}var i=document.getElementsByTagName("style");for(d=0;d<i.length;d++){h=i[d],o=h.getAttribute("data-href");if(o===t||o===a)return n()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=n,k.onerror=function(n){var t=n&&n.target&&n.target.src||a,r=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");r.request=t,delete u[e],k.parentNode.removeChild(k),c(r)},k.href=a;var b=document.getElementsByTagName("head")[0];b.appendChild(k)})).then((function(){u[e]=0})));var t=a[e];if(0!==t)if(t)n.push(t[2]);else{var r=new Promise((function(n,c){t=a[e]=[n,c]}));n.push(t[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(n){o.onerror=o.onload=null,clearTimeout(i);var c=a[e];if(0!==c){if(c){var t=n&&("load"===n.type?"missing":n.type),u=n&&n.target&&n.target.src,r=new Error("Loading chunk "+e+" failed.\n("+t+": "+u+")");r.type=t,r.request=u,c[1](r)}a[e]=void 0}};var i=setTimeout((function(){h({type:"timeout",target:o})}),12e4);o.onerror=o.onload=h,document.head.appendChild(o)}return Promise.all(n)},f.m=e,f.c=t,f.d=function(e,n,c){f.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},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,n){if(1&n&&(e=f(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(f.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)f.d(c,t,function(n){return e[n]}.bind(null,t));return c},f.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="",f.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 i=0;i<h.length;i++)n(h[i]);var k=o;c()})([]);</script><script src=static/js/app.bacadfa9.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=./favicon.ico><title>springSecurity登陆demo</title><link href=static/css/chunk-libs.3dfb7769.css rel=stylesheet><link href=static/css/app.826c7dc3.css rel=stylesheet></head><body><div id=app></div><script src=static/js/chunk-elementUI.a6c12691.js></script><script src=static/js/chunk-libs.ddf89aa7.js></script><script>(function(e){function n(n){for(var t,u,d=n[0],f=n[1],o=n[2],h=0,b=[];h<d.length;h++)u=d[h],r[u]&&b.push(r[u][0]),r[u]=0;for(t in f)Object.prototype.hasOwnProperty.call(f,t)&&(e[t]=f[t]);i&&i(n);while(b.length)b.shift()();return a.push.apply(a,o||[]),c()}function c(){for(var e,n=0;n<a.length;n++){for(var c=a[n],t=!0,u=1;u<c.length;u++){var d=c[u];0!==r[d]&&(t=!1)}t&&(a.splice(n--,1),e=f(f.s=c[0]))}return e}var t={},u={runtime:0},r={runtime:0},a=[];function d(e){return f.p+"static/js/"+({}[e]||e)+"."+{"chunk-06aa7494":"06e9eb28","chunk-0b251b6b":"c62cffd6","chunk-113720ab":"c13124c4","chunk-116c2bab":"26f3ae67","chunk-1a07b08b":"8495daf0","chunk-1d606ab9":"36c5da6b","chunk-218bb4cf":"2c87854b","chunk-2b4823a9":"8b477be6","chunk-2d2105d3":"c38e1553","chunk-2d230a36":"77c3129c","chunk-2d230fe7":"8023f254","chunk-3b59103a":"8d86d081","chunk-403c80dd":"94c0ac41","chunk-47af9ee4":"a003a3e1","chunk-4a8d06a6":"81dbed13","chunk-4ab8490a":"d0b52c5a","chunk-5411756c":"80e1e589","chunk-56d3065a":"f080c714","chunk-10f36354":"7f6359fa","chunk-636f8118":"2d5d0784","chunk-64238bd4":"b5c58bf5","chunk-73bfcbf0":"a5fec1ff","chunk-79a85582":"dd8d44e5","chunk-7b66cc0a":"d0fee21d","chunk-acf60ff8":"f55e1c1c","chunk-e33fc590":"edc65535","chunk-e652b80c":"323c7f1f"}[e]+".js"}function f(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,f),c.l=!0,c.exports}f.e=function(e){var n=[],c={"chunk-06aa7494":1,"chunk-113720ab":1,"chunk-116c2bab":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-e33fc590":1};u[e]?n.push(u[e]):0!==u[e]&&c[e]&&n.push(u[e]=new Promise((function(n,c){for(var t="static/css/"+({}[e]||e)+"."+{"chunk-06aa7494":"9d63d053","chunk-0b251b6b":"31d6cfe0","chunk-113720ab":"9d63d053","chunk-116c2bab":"eedc5334","chunk-1a07b08b":"830e1851","chunk-1d606ab9":"31d6cfe0","chunk-218bb4cf":"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-636f8118":"31d6cfe0","chunk-64238bd4":"70564041","chunk-73bfcbf0":"31d6cfe0","chunk-79a85582":"31d6cfe0","chunk-7b66cc0a":"31d6cfe0","chunk-acf60ff8":"31d6cfe0","chunk-e33fc590":"9d63d053","chunk-e652b80c":"31d6cfe0"}[e]+".css",r=f.p+t,a=document.getElementsByTagName("link"),d=0;d<a.length;d++){var o=a[d],h=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(h===t||h===r))return n()}var b=document.getElementsByTagName("style");for(d=0;d<b.length;d++){o=b[d],h=o.getAttribute("data-href");if(h===t||h===r)return n()}var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onload=n,i.onerror=function(n){var t=n&&n.target&&n.target.src||r,a=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");a.request=t,delete u[e],i.parentNode.removeChild(i),c(a)},i.href=r;var k=document.getElementsByTagName("head")[0];k.appendChild(i)})).then((function(){u[e]=0})));var t=r[e];if(0!==t)if(t)n.push(t[2]);else{var a=new Promise((function(n,c){t=r[e]=[n,c]}));n.push(t[2]=a);var o,h=document.createElement("script");h.charset="utf-8",h.timeout=120,f.nc&&h.setAttribute("nonce",f.nc),h.src=d(e),o=function(n){h.onerror=h.onload=null,clearTimeout(b);var c=r[e];if(0!==c){if(c){var t=n&&("load"===n.type?"missing":n.type),u=n&&n.target&&n.target.src,a=new Error("Loading chunk "+e+" failed.\n("+t+": "+u+")");a.type=t,a.request=u,c[1](a)}r[e]=void 0}};var b=setTimeout((function(){o({type:"timeout",target:h})}),12e4);h.onerror=h.onload=o,document.head.appendChild(h)}return Promise.all(n)},f.m=e,f.c=t,f.d=function(e,n,c){f.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},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,n){if(1&n&&(e=f(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(f.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)f.d(c,t,function(n){return e[n]}.bind(null,t));return c},f.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="",f.oe=function(e){throw console.error(e),e};var o=window["webpackJsonp"]=window["webpackJsonp"]||[],h=o.push.bind(o);o.push=n,o=o.slice();for(var b=0;b<o.length;b++)n(o[b]);var i=h;c()})([]);</script><script src=static/js/app.ce6e6113.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}ul li[data-v-0c7971ae]{list-style:none}
\ No newline at end of file
.material-input__component .material-input-bar[data-v-d9b004ee]:after,.material-input__component .material-input-bar[data-v-d9b004ee]:before{content:"";height:1px;width:0;bottom:0;position:absolute;-webkit-transition:all .2s ease;transition:all .2s ease}.material-input__component[data-v-d9b004ee]{margin-top:36px;position:relative}.material-input__component [data-v-d9b004ee]{-webkit-box-sizing:border-box;box-sizing:border-box}.material-input__component .iconClass .material-input__icon[data-v-d9b004ee]{position:absolute;left:0;line-height:16px;color:#2196f3;top:12px;width:30px;height:16px;font-size:16px;font-weight:400;pointer-events:none}.material-input__component .iconClass .material-label[data-v-d9b004ee]{left:30px}.material-input__component .iconClass .material-input[data-v-d9b004ee]{text-indent:30px}.material-input__component .material-input[data-v-d9b004ee]{font-size:16px;padding:12px 12px 2px 6px;display:block;width:100%;border:none;line-height:1;border-radius:0}.material-input__component .material-input[data-v-d9b004ee]:focus{outline:none;border:none;border-bottom:1px solid transparent}.material-input__component .material-label[data-v-d9b004ee]{font-weight:400;position:absolute;pointer-events:none;left:0;top:0;-webkit-transition:all .2s ease;transition:all .2s ease;font-size:18px}.material-input__component .material-input-bar[data-v-d9b004ee]{position:relative;display:block;width:100%}.material-input__component .material-input-bar[data-v-d9b004ee]:before{left:50%}.material-input__component .material-input-bar[data-v-d9b004ee]:after{right:50%}.material-input__component.material--disabled .material-input[data-v-d9b004ee]{border-bottom-style:dashed}.material-input__component.material--raised .material-label[data-v-d9b004ee]{top:-28px;left:0;font-size:16px;font-weight:700}.material-input__component.material--active .material-input-bar[data-v-d9b004ee]:after,.material-input__component.material--active .material-input-bar[data-v-d9b004ee]:before{width:50%}.material-input__component[data-v-d9b004ee]{background:#fff}.material-input__component .material-input[data-v-d9b004ee]{background:none;color:#000;text-indent:0;border-bottom:1px solid #e0e0e0}.material-input__component .material-label[data-v-d9b004ee]{color:#9e9e9e}.material-input__component .material-input-bar[data-v-d9b004ee]:after,.material-input__component .material-input-bar[data-v-d9b004ee]:before{background:#2196f3}.material-input__component.material--active .material-label[data-v-d9b004ee]{color:#2196f3}.material-input__component.material--has-errors.material--active .material-label[data-v-d9b004ee]{color:#f44336}.material-input__component.material--has-errors .material-input-bar[data-v-d9b004ee]:after,.material-input__component.material--has-errors .material-input-bar[data-v-d9b004ee]:before{background:transparent}.detail-container[data-v-96296cca]{padding:40px 50px 20px}.detail-container .preview-img[data-v-96296cca]{width:200px;height:270px}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67ae84aa"],{2017:function(e,t,o){"use strict";var s=o("b12d"),n=o.n(s);n.a},"29eb":function(e,t,o){"use strict";var s=o("e04a"),n=o.n(s);n.a},"9ed6":function(e,t,o){"use strict";o.r(t);var s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"login-container"},[o("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"}},[o("div",{staticClass:"title-container"},[o("h3",{staticClass:"title"},[e._v("美行科技")])]),e._v(" "),o("el-form-item",{attrs:{prop:"username"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"user"}})],1),e._v(" "),o("el-input",{ref:"username",attrs:{placeholder:"用户名",name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),e._v(" "),o("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[o("el-form-item",{attrs:{prop:"password"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"password"}})],1),e._v(" "),o("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2",autocomplete:"on"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),o("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[o("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),e._v(" "),o("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登录\n ")])],1)],1)},n=[],r=(o("ac6a"),o("456d"),{name:"Login",data:function(){var e=function(e,t,o){t&&0!==t.length?o():o(new Error("请输入用户名"))},t=function(e,t,o){t.length<4?o(new Error("密码不能少于4位")):o()};return{loginForm:{username:"admin",password:"admin"},loginRules:{username:[{required:!0,trigger:"change",validator:e}],password:[{required:!0,trigger:"blur",validator:t}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},watch:{$route:{handler:function(e){var t=e.query;t&&(this.redirect=t.redirect,this.otherQuery=this.getOtherQuery(t))},immediate:!0}},mounted:function(){""===this.loginForm.username?this.$refs.username.focus():""===this.loginForm.password&&this.$refs.password.focus()},methods:{checkCapslock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.shiftKey,o=e.key;console.log(t,o),o&&1===o.length?this.capsTooltip=!!(t&&o>="A"&&o<="Z"||!t&&o>="A"&&o<="Z"):this.capsTooltip=!1,"CapsLock"===o&&!0===this.capsTooltip&&(this.capsTooltip=!1)},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return console.log("error submit!!"),!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(){e.$router.push({path:e.redirect||"/",query:e.otherQuery}),e.loading=!1})).catch((function(){e.loading=!1}))}))},getOtherQuery:function(e){return Object.keys(e).reduce((function(t,o){return"redirect"!==o&&(t[o]=e[o]),t}),{})}}}),a=r,i=(o("2017"),o("29eb"),o("2877")),l=Object(i["a"])(a,s,n,!1,null,"0ba579f9",null);t["default"]=l.exports},b12d:function(e,t,o){},e04a:function(e,t,o){}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-116c2bab"],{2017:function(e,t,o){"use strict";var s=o("b12d"),n=o.n(s);n.a},"29eb":function(e,t,o){"use strict";var s=o("e04a"),n=o.n(s);n.a},"9ed6":function(e,t,o){"use strict";o.r(t);var s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"login-container"},[o("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"}},[o("div",{staticClass:"title-container"},[o("h3",{staticClass:"title"},[e._v("美行科技")])]),e._v(" "),o("el-form-item",{attrs:{prop:"username"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"user"}})],1),e._v(" "),o("el-input",{ref:"username",attrs:{placeholder:"用户名",name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),e._v(" "),o("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[o("el-form-item",{attrs:{prop:"password"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"password"}})],1),e._v(" "),o("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2",autocomplete:"on"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),o("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[o("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),e._v(" "),o("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登录\n ")])],1)],1)},n=[],r=(o("ac6a"),o("456d"),{name:"Login",data:function(){var e=function(e,t,o){t&&0!==t.length?o():o(new Error("请输入用户名"))},t=function(e,t,o){t.length<4?o(new Error("密码不能少于4位")):o()};return{loginForm:{username:"admin",password:"admin"},loginRules:{username:[{required:!0,trigger:"change",validator:e}],password:[{required:!0,trigger:"blur",validator:t}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},watch:{$route:{handler:function(e){var t=e.query;t&&(this.redirect=t.redirect,this.otherQuery=this.getOtherQuery(t))},immediate:!0}},mounted:function(){""===this.loginForm.username?this.$refs.username.focus():""===this.loginForm.password&&this.$refs.password.focus()},methods:{checkCapslock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.shiftKey,o=e.key;console.log(t,o),o&&1===o.length?this.capsTooltip=!!(t&&o>="A"&&o<="Z"||!t&&o>="A"&&o<="Z"):this.capsTooltip=!1,"CapsLock"===o&&!0===this.capsTooltip&&(this.capsTooltip=!1)},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return console.log("error submit!!"),!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(){e.$router.push({path:e.redirect||"/",query:e.otherQuery}),e.loading=!1})).catch((function(){e.loading=!1}))}))},getOtherQuery:function(e){return Object.keys(e).reduce((function(t,o){return"redirect"!==o&&(t[o]=e[o]),t}),{})}}}),a=r,i=(o("2017"),o("29eb"),o("2877")),l=Object(i["a"])(a,s,n,!1,null,"0ba579f9",null);t["default"]=l.exports},b12d:function(e,t,o){},e04a:function(e,t,o){}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a07b08b"],{"07ea":function(e,t,l){"use strict";l.r(t);var n=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-container",[l("el-header",[l("div",{staticStyle:{margin:"20px 0"}},[l("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.title,callback:function(t){e.$set(e.listQuery,"title",t)},expression:"listQuery.title"}}),e._v(" "),l("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(" "),l("el-main",[l("el-tabs",{attrs:{"tab-position":e.top}},[l("el-tab-pane",{attrs:{label:"设备信息"}},[l("ul",[l("li",[e._v("\n 产品系列:\n ")]),e._v(" "),l("el-divider"),e._v(" "),l("li",[e._v("\n ICCID:\n ")]),e._v(" "),l("el-divider"),e._v(" "),l("li",[e._v("\n 版本号:\n ")]),e._v(" "),l("el-divider"),e._v(" "),l("li",[e._v("\n 激活状态:\n ")]),e._v(" "),l("el-divider"),e._v(" "),l("li",[e._v("\n IMEI:\n ")]),e._v(" "),l("el-divider"),e._v(" "),l("li",[e._v("\n 激活时间\n ")]),e._v(" "),l("el-divider")],1)]),e._v(" "),l("el-tab-pane",{attrs:{label:"移动网络"}},[l("ul",[l("li",[e._v("\n 开关:\n "),l("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},on:{change:e.change},model:{value:e.value2,callback:function(t){e.value2=t},expression:"value2"}})],1)])]),e._v(" "),l("el-tab-pane",{attrs:{label:"WLAN"}},[e._v("配置管理")]),e._v(" "),l("el-tab-pane",{attrs:{label:"GPS"}},[e._v("角色管理")]),e._v(" "),l("el-tab-pane",{attrs:{label:"蓝牙"}},[e._v("定时任务补偿")]),e._v(" "),l("el-tab-pane",{attrs:{label:"其他"}},[e._v("配置管理")]),e._v(" "),l("el-tab-pane",{attrs:{label:"CPU"}},[e._v("角色管理")]),e._v(" "),l("el-tab-pane",{attrs:{label:"远程指令"}},[e._v("定时任务补偿")])],1)],1)],1)},i=[],a=l("c7a7"),r=l("c24f"),s=l("ed08"),c={directives:{waves:a["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:{},list:[],total:0,defaultSort:{},multipleSelection:[],user:{},userIds:[],gridData:{},value2:!0}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,l){if(e.path===t.path){var n=Object.assign({},e.query),i=Object.assign({},t.query);JSON.stringify(n)!==JSON.stringify(i)&&this.getList()}l()},methods:{change:function(e){return e},handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,l=e.order;this.sortBy(t,l)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(r["g"])(this.listQuery).then((function(t){var l=t.data,n=l.list,i=l.totalCount;e.list=n,e.total=i,e.listLoading=!1}))},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},o=c,u=(l("27c1"),l("2877")),v=Object(u["a"])(o,n,i,!1,null,"0c7971ae",null);t["default"]=v.exports},"27c1":function(e,t,l){"use strict";var n=l("c22c"),i=l.n(n);i.a},"8d41":function(e,t,l){},c22c:function(e,t,l){},c7a7:function(e,t,l){"use strict";l("8d41");var n="@@wavesContext";function i(e,t){function l(l){var n=Object.assign({},t.value),i=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},n),a=i.ele;if(a){a.style.position="relative",a.style.overflow="hidden";var r=a.getBoundingClientRect(),s=a.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",a.appendChild(s)),i.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=(l.pageY-r.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(l.pageX-r.left-s.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return s.style.backgroundColor=i.color,s.className="waves-ripple z-active",!1}}return e[n]?e[n].removeHandle=l:e[n]={removeHandle:l},l}t["a"]={bind:function(e,t){e.addEventListener("click",i(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[n].removeHandle,!1),e.addEventListener("click",i(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[n].removeHandle,!1),e[n]=null,delete e[n]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0cfe15"],{6632: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("detail",{attrs:{"is-edit":!1}})},c=[],l=n("9a8b"),s={components:{Detail:l["a"]}},i=s,u=n("2877"),o=Object(u["a"])(i,a,c,!1,null,null,null);t["default"]=o.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d213927"],{acf5:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("detail",{attrs:{"is-edit":""}})},c=[],s=n("9a8b"),i={components:{Detail:s["a"]}},l=i,o=n("2877"),r=Object(o["a"])(l,a,c,!1,null,"20dbc3ba",null);e["default"]=r.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d230a36"],{ecac:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"app-container"},[e.user?s("div",[s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:18,xs:24}},[s("el-card",[s("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[s("el-tab-pane",{attrs:{label:"Account",name:"account"}},[s("account",{attrs:{user:e.user}})],1)],1)],1)],1)],1)],1):e._e()])},r=[],n=(s("96cf"),s("3b8d")),l=(s("7f7f"),s("db72")),o=s("2f62"),i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"editUser",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{prop:"username",label:"账户名"}},[s("el-input",{attrs:{disabled:!0},model:{value:e.user.username,callback:function(t){e.$set(e.user,"username",t)},expression:"user.username"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{prop:"password",label:"初始密码"}},[s("el-input",{model:{value:e.user.password,callback:function(t){e.$set(e.user,"password",t)},expression:"user.password"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:10}},[s("el-form-item",{attrs:{prop:"mobile",label:"手机号"}},[s("el-input",{model:{value:e.user.mobile,callback:function(t){e.$set(e.user,"mobile",t)},expression:"user.mobile"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:10}},[s("el-form-item",{attrs:{prop:"email",label:"邮箱"}},[s("el-input",{model:{value:e.user.email,callback:function(t){e.$set(e.user,"email",t)},expression:"user.email"}})],1)],1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("修改")])],1)],1)},u=[],c=(s("ac6a"),s("456d"),s("c24f")),m=s("ed08"),p={props:{user:{type:Object,default:function(){return{name:"",email:"",mobile:"",password:""}}}},data:function(){return{loading:!1}},mounted:function(){this.getUserInfo()},methods:{submit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editUser.validate((function(t,s){if(t)e.user.createTime=Object(m["d"])(e.user.createTime,"{y}-{m}-{d} {h}:{i}:{s}"),Object(c["f"])(e.user).then((function(t){var s=t.msg;e.$notify({title:"操作成功",message:s,type:"success",duration:2e3}),e.setDefault(),e.loading=!1})).catch((function(){e.loading=!1}));else{var a=s[Object.keys(s)[0]][0].message;e.$message({message:a,type:"error"}),e.loading=!1}})))}}},d=p,f=s("2877"),b=Object(f["a"])(d,i,u,!1,null,null,null),v=b.exports,h={name:"Profile",components:{Account:v},data:function(){return{user:{},activeTab:"account"}},computed:Object(l["a"])({},Object(o["b"])(["name","avatar","roles"])),created:function(){console.log(this.name),this.getUser(),this.getUserInfo()},methods:{getUser:function(){this.user={username:this.name}},getUserInfo:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Object(c["d"])(this.user.username).then((function(e){var s=e.data;t.user=s}));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},g=h,w=Object(f["a"])(g,a,r,!1,null,null,null);t["default"]=w.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-42768dcf"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var a=n("1c64"),r=n.n(a);r.a},2715: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("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[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.title,callback:function(t){e.$set(e.listQuery,"title",t)},expression:"listQuery.title"}}),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.author,callback:function(t){e.$set(e.listQuery,"author",t)},expression:"listQuery.author"}}),e._v(" "),n("el-select",{staticClass:"filter-item",attrs:{placeholder:"分类",clearable:""},on:{change:e.handleFilter},model:{value:e.listQuery.category,callback:function(t){e.$set(e.listQuery,"category",t)},expression:"listQuery.category"}},e._l(e.categoryList,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label+"("+e.num+")",value:e.label}})})),1),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 ")]),e._v(" "),n("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"5px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v("\n 新增\n ")]),e._v(" "),n("el-checkbox",{staticClass:"filter-item",staticStyle:{"margin-left":"5px"},on:{change:e.changeShowCover},model:{value:e.showCover,callback:function(t){e.showCover=t},expression:"showCover"}},[e._v("\n 显示封面\n ")])],1),e._v(" "),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}},[n("el-table-column",{attrs:{label:"ID",prop:"id",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"书名",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.titleWrapper;return[n("span",{domProps:{innerHTML:e._s(a)}})]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"作者",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.authorWrapper;return[n("span",{domProps:{innerHTML:e._s(a)}})]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"出版社",prop:"publisher",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"分类",prop:"categoryText",width:"100",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"语言",prop:"language",align:"center"}}),e._v(" "),e.showCover?n("el-table-column",{attrs:{label:"封面",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row.cover;return[n("a",{attrs:{href:t,target:"_blank"}},[n("img",{staticStyle:{width:"120px",height:"180px"},attrs:{src:t}})])]}}],null,!1,2205172366)}):e._e(),e._v(" "),n("el-table-column",{attrs:{label:"文件名",prop:"fileName",width:"100",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"文件路径",prop:"filePath",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.filePath;return[n("span",[e._v(e._s(e._f("valueFilter")(a)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"封面路径",prop:"coverPath",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.coverPath;return[n("span",[e._v(e._s(e._f("valueFilter")(a)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"解压路径",prop:"unzipPath",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.unzipPath;return[n("span",[e._v(e._s(e._f("valueFilter")(a)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"上传人",prop:"createUser",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.createUser;return[n("span",[e._v(e._s(e._f("valueFilter")(a)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"上传时间",prop:"createDt",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.createDt;return[n("span",[e._v(e._s(e._f("timeFilter")(a)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"操作",width:"120",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-button",{attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.handleUpdate(a)}}}),e._v(" "),n("el-button",{staticStyle:{color:"#f56c6c"},attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.handleDelete(a)}}})]}}])})],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)},r=[],i=(n("ac6a"),n("3b2b"),n("a481"),n("db72")),l=(n("55dd"),n("333d")),o=n("c7a7"),s=n("b067"),c=n("ed08"),u={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}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{},showCover:!1,categoryList:[],list:[],total:0,defaultSort:{}}},created:function(){this.parseQuery()},mounted:function(){this.getList(),this.getCategoryList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var a=Object.assign({},e.query),r=Object.assign({},t.query);JSON.stringify(a)!==JSON.stringify(r)&&this.getList()}n()},methods:{parseQuery:function(){var e=Object.assign({},this.$route.query),t="+id",n={page:1,pageSize:20,sort:t};e&&(e.page&&(e.page=+e.page),e.pageSize&&(e.pageSize=+e.pageSize),e.sort&&(t=e.sort));var a=t[0],r=t.slice(1,t.length);console.log(a,r),this.defaultSort={prop:r,order:"+"===a?"ascending":"descending"},this.listQuery=Object(i["a"])({},n,{},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()},wrapperKeyword:function(e,t){function n(e){return'<span style="color: #1890ff">'.concat(e,"</span>")}return this.listQuery[e]?t.replace(new RegExp(this.listQuery[e],"ig"),(function(e){return n(e)})):t},getList:function(){var e=this;this.listLoading=!0,Object(s["e"])(this.listQuery).then((function(t){var n=t.data,a=n.list,r=n.count;e.list=a,e.total=r,e.listLoading=!1,e.list.forEach((function(t){t.titleWrapper=e.wrapperKeyword("title",t.title),t.authorWrapper=e.wrapperKeyword("author",t.author)}))}))},getCategoryList:function(){var e=this;Object(s["d"])().then((function(t){e.categoryList=t.data}))},refresh:function(){this.$router.push({path:"/book/list",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()},handleCreate:function(){this.$router.push("/book/create")},handleUpdate:function(e){console.log("handleUpdate",e),this.$router.push("/book/edit/".concat(e.fileName))},handleDelete:function(e){var t=this;this.$confirm("此操作将永久删除该电子书,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(s["b"])(e.fileName).then((function(e){t.$notify({title:"成功",message:e.msg||"删除成功",type:"success",duration:2e3}),t.handleFilter()}))}))},changeShowCover:function(e){this.showCover=e}}},d=u,p=n("2877"),f=Object(p["a"])(d,a,r,!1,null,"dbd7df86",null);t["default"]=f.exports},"333d":function(e,t,n){"use strict";var a=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)},r=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/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 s(e,t,n){var a=o(),r=e-a,s=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=s;var o=Math.easeInOutQuad(c,a,r,t);l(o),c<t?i(e):n&&"function"===typeof n&&n()};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=(n("1cc6"),n("2877")),p=Object(d["a"])(u,a,r,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},b067:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c}));var a=n("b775");function r(e){return Object(a["a"])({url:"/book/create",method:"post",data:e})}function i(e){return Object(a["a"])({url:"/book/update",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/book/get",method:"get",params:{fileName:e}})}function o(){return Object(a["a"])({url:"/book/category",method:"get"})}function s(e){return Object(a["a"])({url:"/book/list",method:"get",params:e})}function c(e){return Object(a["a"])({url:"/book/delete",method:"get",params:{fileName:e}})}},c7a7:function(e,t,n){"use strict";n("8d41");var a="@@wavesContext";function r(e,t){function n(n){var a=Object.assign({},t.value),r=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},a),i=r.ele;if(i){i.style.position="relative",i.style.overflow="hidden";var l=i.getBoundingClientRect(),o=i.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",i.appendChild(o)),r.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=r.color,o.className="waves-ripple z-active",!1}}return e[a]?e[a].removeHandle=n:e[a]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",r(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[a].removeHandle,!1),e.addEventListener("click",r(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
(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:"状态",deptIdList:"数据权限",funcIdList:"模块权限"},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:{deptIdList:[],funcIdList:[]},rules:{roleId:[{validator:e}],remark:[{validator:e}],deptId:[{validator:e}],username:[{validator:e}],mobile:[{validator:e}],email:[{validator:e}],status:[{validator:e}],deptIdList:[{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:2e3}),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.funcIdList=e},handleDeptChange:function(){var e=[];this.$refs.deptTree.getCheckedNodes().forEach((function(t){e.push(t.id)})),this.user.deptIdList=e}}},p=d,f=r("2877"),m=Object(f["a"])(p,n,a,!1,null,"15eb5fda",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:2e3}),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-e19c4374"],{11731:function(e,t,a){},"589d":function(e,t,a){},"9a8b":function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"postForm",attrs:{model:e.postForm,rules:e.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar"}},[e.isEdit?e._e():a("el-button",{on:{click:e.showGuide}},[e._v("显示帮助")]),e._v(" "),a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:e.submitForm}},[e._v("\n "+e._s(e.isEdit?"编辑电子书":"新增电子书")+"\n ")])],1),e._v(" "),a("div",{staticClass:"detail-container"},[a("el-row",[a("warning"),e._v(" "),a("el-col",{attrs:{span:24}},[a("ebook-upload",{attrs:{"file-list":e.fileList,disabled:e.isEdit},on:{onSuccess:e.onUploadSuccess,onRemove:e.onUploadRemove}})],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{prop:"title"}},[a("MdInput",{attrs:{maxlength:100,name:"name",required:""},model:{value:e.postForm.title,callback:function(t){e.$set(e.postForm,"title",t)},expression:"postForm.title"}},[e._v("\n 书名\n ")])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"author",label:"作者:","label-width":e.labelWidth}},[a("el-input",{attrs:{placeholder:"作者"},model:{value:e.postForm.author,callback:function(t){e.$set(e.postForm,"author",t)},expression:"postForm.author"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"publisher",label:"出版社:","label-width":e.labelWidth}},[a("el-input",{attrs:{placeholder:"出版社"},model:{value:e.postForm.publisher,callback:function(t){e.$set(e.postForm,"publisher",t)},expression:"postForm.publisher"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"language",label:"语言:","label-width":e.labelWidth}},[a("el-input",{attrs:{placeholder:"语言"},model:{value:e.postForm.language,callback:function(t){e.$set(e.postForm,"language",t)},expression:"postForm.language"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"rootFile",label:"根文件:","label-width":e.labelWidth}},[a("el-input",{attrs:{placeholder:"根文件",disabled:""},model:{value:e.postForm.rootFile,callback:function(t){e.$set(e.postForm,"rootFile",t)},expression:"postForm.rootFile"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"filePath",label:"文件路径:","label-width":e.labelWidth}},[a("el-input",{attrs:{placeholder:"文件路径",disabled:""},model:{value:e.postForm.filePath,callback:function(t){e.$set(e.postForm,"filePath",t)},expression:"postForm.filePath"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"unzipPath",label:"解压路径:","label-width":e.labelWidth}},[a("el-input",{attrs:{placeholder:"解压路径",disabled:""},model:{value:e.postForm.unzipPath,callback:function(t){e.$set(e.postForm,"unzipPath",t)},expression:"postForm.unzipPath"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"coverPath",label:"封面路径:","label-width":e.labelWidth}},[a("el-input",{attrs:{placeholder:"封面路径",disabled:""},model:{value:e.postForm.coverPath,callback:function(t){e.$set(e.postForm,"coverPath",t)},expression:"postForm.coverPath"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"originalName",label:"文件名称:","label-width":e.labelWidth}},[a("el-input",{attrs:{placeholder:"文件名称",disabled:""},model:{value:e.postForm.originalName,callback:function(t){e.$set(e.postForm,"originalName",t)},expression:"postForm.originalName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{prop:"cover",label:"封面:","label-width":e.labelWidth}},[e.postForm.cover?a("a",{attrs:{href:e.postForm.cover,target:"_blank"}},[a("img",{staticClass:"preview-img",attrs:{src:e.postForm.cover}})]):a("span",[e._v("无")])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"目录:","label-width":e.labelWidth}},[e.contentsTree&&e.contentsTree.length>0?a("div",{staticClass:"contents-wrapper"},[a("el-tree",{attrs:{data:e.contentsTree},on:{"node-click":e.onContentClick}})],1):a("span",[e._v("无")])])],1)],1)],1)],1)],1)],1)},o=[],n=(a("ac6a"),a("456d"),a("db72")),i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:{height:e.height+"px",zIndex:e.zIndex}},[a("div",{class:e.className,style:{top:e.isSticky?e.stickyTop+"px":"",zIndex:e.zIndex,position:e.position,width:e.width,height:e.height+"px"}},[e._t("default",[a("div",[e._v("sticky")])])],2)])},r=[],s=(a("c5f6"),{name:"Sticky",props:{stickyTop:{type:Number,default:0},zIndex:{type:Number,default:1},className:{type:String,default:""}},data:function(){return{active:!1,position:"",width:void 0,height:void 0,isSticky:!1}},mounted:function(){this.height=this.$el.getBoundingClientRect().height,window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},activated:function(){this.handleScroll()},destroyed:function(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},methods:{sticky:function(){this.active||(this.position="fixed",this.active=!0,this.width=this.width+"px",this.isSticky=!0)},handleReset:function(){this.active&&this.reset()},reset:function(){this.position="",this.width="auto",this.active=!1,this.isSticky=!1},handleScroll:function(){var e=this.$el.getBoundingClientRect().width;this.width=e||"auto";var t=this.$el.getBoundingClientRect().top;t<this.stickyTop?this.sticky():this.handleReset()},handleResize:function(){this.isSticky&&(this.width=this.$el.getBoundingClientRect().width+"px")}}}),u=s,c=a("2877"),d=Object(c["a"])(u,i,r,!1,null,null,null),p=d.exports,m=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},h=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("aside",[e._v("\n 上传电子书分为两步:上传电子书和新增电子书。首先需要上传epub电子书文件,服务器会对epub文件进行解析,解析成功后会将电子书的各字段填入表单,之后我们只需要手动点击新增电子书即可完成电子书的保存。查看\n "),a("a",{attrs:{href:"https://www.youbaobao.xyz/admin-docs/",target:"_blank"}},[e._v("\n 课程官网\n ")]),e._v("\n 获取更多开发指引。\n")])}],f={},v=Object(c["a"])(f,m,h,!1,null,null,null),b=v.exports,g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"upload-container"},[a("el-upload",{staticClass:"image-upload",attrs:{action:e.action,headers:e.headers,multiple:!1,limit:1,"before-upload":e.beforeUpload,"on-success":e.onSuccess,"on-error":e.onError,"on-remove":e.onRemove,"file-list":e.fileList,"on-exceed":e.onExceed,disabled:e.disabled,drag:"","show-file-list":"",accept:"application/epub+zip"}},[a("i",{staticClass:"el-icon-upload"}),e._v(" "),0===e.fileList.length?a("div",{staticClass:"el-upload__text"},[e._v("\n 请将电子书拖入或 "),a("em",[e._v("点击上传")])]):a("div",{staticClass:"el-upload__text"},[e._v("图书已上传")])])],1)},_=[],y=a("5f87"),w={props:{fileList:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1}},data:function(){return{action:"".concat("http://192.168.2.244:9000","/book/upload")}},computed:{headers:function(){return{Authorization:"Bearer ".concat(Object(y["a"])())}}},methods:{beforeUpload:function(e){this.$emit("beforeUpload",e)},onSuccess:function(e,t){console.log(e,t);var a=e.code,l=e.msg,o=e.data;0===a?(this.$message({message:l,type:"success"}),this.$emit("onSuccess",o)):(this.$message({message:l&&"上传失败,失败原因:".concat(l)||"上传失败",type:"error"}),this.$emit("onError",t))},onError:function(e){var t=e.message&&JSON.parse(e.message);this.$message({message:t&&t.msg&&"上传失败,失败原因:".concat(t.msg)||"上传失败",type:"error"}),this.$emit("onError",e)},onRemove:function(){this.$message({message:"电子书删除成功",type:"success"}),this.$emit("onRemove")},onExceed:function(){this.$message({message:"每次只能上传一本电子书",type:"warning"})}}},x=w,F=Object(c["a"])(x,g,_,!1,null,"b6961bd4",null),$=F.exports,k=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"material-input__component",class:e.computedClasses},[a("div",{class:{iconClass:e.icon}},[e.icon?a("i",{staticClass:"el-input__icon material-input__icon",class:["el-icon-"+e.icon]}):e._e(),e._v(" "),"email"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,required:e.required,type:"email"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"url"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,required:e.required,type:"url"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"number"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,step:e.step,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,max:e.max,min:e.min,minlength:e.minlength,maxlength:e.maxlength,required:e.required,type:"number"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"password"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,max:e.max,min:e.min,required:e.required,type:"password"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"tel"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,required:e.required,type:"tel"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"text"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,minlength:e.minlength,maxlength:e.maxlength,required:e.required,type:"text"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),a("span",{staticClass:"material-input-bar"}),e._v(" "),a("label",{staticClass:"material-label"},[e._t("default")],2)])])},C=[],P={name:"MdInput",props:{icon:String,name:String,type:{type:String,default:"text"},value:[String,Number],placeholder:String,readonly:Boolean,disabled:Boolean,min:String,max:String,step:String,minlength:Number,maxlength:Number,required:{type:Boolean,default:!0},autoComplete:{type:String,default:"off"},validateEvent:{type:Boolean,default:!0}},data:function(){return{currentValue:this.value,focus:!1,fillPlaceHolder:null}},computed:{computedClasses:function(){return{"material--active":this.focus,"material--disabled":this.disabled,"material--raised":Boolean(this.focus||this.currentValue)}}},watch:{value:function(e){this.currentValue=e}},methods:{handleModelInput:function(e){var t=e.target.value;this.$emit("input",t),"ElFormItem"===this.$parent.$options.componentName&&this.validateEvent&&this.$parent.$emit("el.form.change",[t]),this.$emit("change",t)},handleMdFocus:function(e){this.focus=!0,this.$emit("focus",e),this.placeholder&&""!==this.placeholder&&(this.fillPlaceHolder=this.placeholder)},handleMdBlur:function(e){this.focus=!1,this.$emit("blur",e),this.fillPlaceHolder=null,"ElFormItem"===this.$parent.$options.componentName&&this.validateEvent&&this.$parent.$emit("el.form.blur",[this.currentValue])}}},S=P,E=(a("ad53"),Object(c["a"])(S,k,C,!1,null,"d9b004ee",null)),N=E.exports,V=a("b067"),M={title:"书名",author:"作者",publisher:"出版社",language:"语言"},B={components:{MdInput:N,Sticky:p,Warning:b,EbookUpload:$},props:{isEdit:Boolean},data:function(){var e=function(e,t,a){0===t.length?a(new Error(M[e.field]+"必须填写")):a()};return{loading:!1,postForm:{},fileList:[],labelWidth:"120px",contentsTree:[],rules:{title:[{validator:e}],author:[{validator:e}],language:[{validator:e}],publisher:[{validator:e}]}}},created:function(){if(this.isEdit){var e=this.$route.params.fileName;this.getBookData(e)}},methods:{getBookData:function(e){var t=this;Object(V["c"])(e).then((function(e){t.setData(e.data)}))},onContentClick:function(e){console.log(e),e.text&&window.open(e.text)},setDefault:function(){this.contentsTree=[],this.fileList=[],this.$refs.postForm.resetFields()},setData:function(e){var t=e.title,a=e.author,l=e.publisher,o=e.language,i=e.rootFile,r=e.cover,s=e.url,u=e.originalName,c=e.contents,d=e.contentsTree,p=e.fileName,m=e.coverPath,h=e.filePath,f=e.unzipPath;this.postForm=Object(n["a"])({},this.postForm,{title:t,author:a,publisher:l,language:o,rootFile:i,cover:r,url:s,originalName:u,contents:c,contentsTree:d,fileName:p,coverPath:m,filePath:h,unzipPath:f}),this.contentsTree=d,this.fileList=[{name:u||p,url:s}]},onUploadSuccess:function(e){console.log("onUploadSuccess",e),this.setData(e)},onUploadRemove:function(){this.setDefault()},submitForm:function(){var e=this,t=function(t){var a=t.msg;e.$notify({title:"操作成功",message:a,type:"success",duration:2e3}),e.loading=!1};this.loading||(this.loading=!0,this.$refs.postForm.validate((function(a,l){if(console.log(a,l),a){var o=Object.assign({},e.postForm);delete o.contentsTree,e.isEdit?Object(V["f"])(o).then((function(e){t(e)})).catch((function(){e.loading=!1})):Object(V["a"])(o).then((function(a){t(a),e.setDefault()})).catch((function(){e.loading=!1}))}else{var n=l[Object.keys(l)[0]][0].message;e.$message({message:n,type:"error"}),e.loading=!1}})))},showGuide:function(){console.log("show guide...")}}},z=B,O=(a("e120"),Object(c["a"])(z,l,o,!1,null,"96296cca",null));t["a"]=O.exports},ad53:function(e,t,a){"use strict";var l=a("589d"),o=a.n(l);o.a},b067:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"f",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"d",(function(){return r})),a.d(t,"e",(function(){return s})),a.d(t,"b",(function(){return u}));var l=a("b775");function o(e){return Object(l["a"])({url:"/book/create",method:"post",data:e})}function n(e){return Object(l["a"])({url:"/book/update",method:"post",data:e})}function i(e){return Object(l["a"])({url:"/book/get",method:"get",params:{fileName:e}})}function r(){return Object(l["a"])({url:"/book/category",method:"get"})}function s(e){return Object(l["a"])({url:"/book/list",method:"get",params:e})}function u(e){return Object(l["a"])({url:"/book/delete",method:"get",params:{fileName:e}})}},e120:function(e,t,a){"use strict";var l=a("11731"),o=a.n(l);o.a}}]);
\ No newline at end of file
(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,1e3/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:"logID",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: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:{},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,"2bdc1997",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
(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:"状态",deptIdList:"数据权限",funcIdList:"模块权限"},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:"",deptIdList:[],funcIdList:[]},rules:{roleId:[{validator:e}],remark:[{validator:e}],deptId:[{validator:e}],username:[{validator:e}],mobile:[{validator:e}],email:[{validator:e}],status:[{validator:e}],deptIdList:[{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:2e3}),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.userFuncTree.getCheckedNodes().forEach((function(t){e.push(t.id)})),this.user.funcIdList=e},handleDeptChange:function(){var e=[];this.$refs.userDeptTree.getCheckedNodes().forEach((function(t){e.push(t.id)})),this.user.deptIdList=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.funcIdList),t.setDeptTree(t.user.deptIdList),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,"e2427846",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
(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:2e3}),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
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -49,7 +49,7 @@ function i(t,e){if(!o.canUseDOM||e&&!("addEventListener"in document))return!1;va ...@@ -49,7 +49,7 @@ function i(t,e){if(!o.canUseDOM||e&&!("addEventListener"in document))return!1;va
* v4.2.0 - 2019-04-01 * v4.2.0 - 2019-04-01
* (c) Sindre Sorhus; MIT License * (c) Sindre Sorhus; MIT License
*/ */
(function(){"use strict";var e="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=t.exports,r="undefined"!==typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,o=function(){for(var t,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,o=n.length,i={};r<o;r++)if(t=n[r],t&&t[1]in e){for(r=0;r<t.length;r++)i[n[0][r]]=t[r];return i}return!1}(),i={change:o.fullscreenchange,error:o.fullscreenerror},a={request:function(t){return new Promise(function(n){var i=o.requestFullscreen,a=function(){this.off("change",a),n()}.bind(this);t=t||e.documentElement,/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?t[i]():t[i](r?Element.ALLOW_KEYBOARD_INPUT:{}),this.on("change",a)}.bind(this))},exit:function(){return new Promise(function(t){if(this.isFullscreen){var n=function(){this.off("change",n),t()}.bind(this);e[o.exitFullscreen](),this.on("change",n)}else t()}.bind(this))},toggle:function(t){return this.isFullscreen?this.exit():this.request(t)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(t,n){var r=i[t];r&&e.addEventListener(r,n,!1)},off:function(t,n){var r=i[t];r&&e.removeEventListener(r,n,!1)},raw:o};o?(Object.defineProperties(a,{isFullscreen:{get:function(){return Boolean(e[o.fullscreenElement])}},element:{enumerable:!0,get:function(){return e[o.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(e[o.fullscreenEnabled])}}}),n?(t.exports=a,t.exports.default=a):window.screenfull=a):n?t.exports=!1:window.screenfull=!1})()},"95d5":function(t,e,n){var r=n("40c3"),o=n("5168")("iterator"),i=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(r(e))}},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag",u="object"===typeof t,f=e.regeneratorRuntime;if(f)u&&(t.exports=f);else{f=e.regeneratorRuntime=u?t.exports:{},f.wrap=w;var l="suspendedStart",p="suspendedYield",d="executing",h="completed",v={},y={};y[a]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(M([])));g&&g!==r&&o.call(g,a)&&(y=g);var b=S.prototype=x.prototype=Object.create(y);O.prototype=b.constructor=S,S.constructor=O,S[s]=O.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(b),t},f.awrap=function(t){return{__await:t}},E(A.prototype),A.prototype[c]=function(){return this},f.AsyncIterator=A,f.async=function(t,e,n,r){var o=new A(w(t,e,n,r));return f.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},E(b),b[s]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},f.values=M,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return c.type="throw",c.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:M(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=k(t,n,a),i}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function x(){}function O(){}function S(){}function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function A(t){function e(n,r,i,a){var c=_(t[n],t,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"===typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(u).then((function(t){s.value=t,i(s)}),a)}a(c.arg)}var n;function r(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=r}function k(t,e,n){var r=l;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return $()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=_(t,e,n);if("normal"===s.type){if(r=n.done?h:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}function j(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,j(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=_(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function M(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){while(++r<t.length)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:$}}function $(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},9744:function(t,e,n){"use strict";var r=n("4588"),o=n("be13");t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[r]&&n("32e9")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9d98":function(t,e,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperties:n("7e90")})},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9e6a":function(t,e,n){"use strict";var r=n("d233"),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},s="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",f=function(t,e){var n,f={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,d=l.split(e.delimiter,p),h=-1,v=e.charset;if(e.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&(d[n]===u?v="utf-8":d[n]===s&&(v="iso-8859-1"),h=n,n=d.length);for(n=0;n<d.length;++n)if(n!==h){var y,m,g=d[n],b=g.indexOf("]="),w=-1===b?g.indexOf("="):b+1;-1===w?(y=e.decoder(g,a.decoder,v,"key"),m=e.strictNullHandling?null:""):(y=e.decoder(g.slice(0,w),a.decoder,v,"key"),m=e.decoder(g.slice(w+1),a.decoder,v,"value")),m&&e.interpretNumericEntities&&"iso-8859-1"===v&&(m=c(m)),m&&"string"===typeof m&&e.comma&&m.indexOf(",")>-1&&(m=m.split(",")),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(f,y)?f[y]=r.combine(f[y],m):f[y]=m}return f},l=function(t,e,n){for(var r=e,o=t.length-1;o>=0;--o){var i,a=t[o];if("[]"===a&&n.parseArrays)i=[].concat(r);else{i=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,s=parseInt(c,10);n.parseArrays||""!==c?!isNaN(s)&&a!==c&&String(s)===c&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(i=[],i[s]=r):i[c]=r:i={0:r}}r=i}return r},p=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=n.depth>0&&i.exec(r),s=c?r.slice(0,c.index):r,u=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}var f=0;while(n.depth>0&&null!==(c=a.exec(r))&&f<n.depth){if(f+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+r.slice(c.index)+"]"),l(u,e,n)}},d=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!==typeof t.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var e="undefined"===typeof t.charset?a.charset:t.charset;return{allowDots:"undefined"===typeof t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"===typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,arrayLimit:"number"===typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"===typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof t.comma?t.comma:a.comma,decoder:"function"===typeof t.decoder?t.decoder:a.decoder,delimiter:"string"===typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"===typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"===typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}};t.exports=function(t,e){var n=d(e);if(""===t||null===t||"undefined"===typeof t)return n.plainObjects?Object.create(null):{};for(var o="string"===typeof t?f(t,n):t,i=n.plainObjects?Object.create(null):{},a=Object.keys(o),c=0;c<a.length;++c){var s=a[c],u=p(s,o[s],n);i=r.merge(i,u,n)}return r.compact(i)}},a159:function(t,e,n){var r=n("e4ae"),o=n("7e90"),i=n("1691"),a=n("5559")("IE_PROTO"),c=function(){},s="prototype",u=function(){var t,e=n("1ec9")("iframe"),r=i.length,o="<",a=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),u=t.F;while(r--)delete u[s][i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[s]=r(t),n=new c,c[s]=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},a15e:function(t,e,n){"use strict";n.r(e);var r=n("41b2"),o=n.n(r),i=n("1098"),a=n.n(i),c=/%[sdj%]/g,s=function(){};function u(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,o=e[0],i=e.length;if("function"===typeof o)return o.apply(null,e.slice(1));if("string"===typeof o){for(var a=String(o).replace(c,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(n){return"[Circular]"}break;default:return t}})),s=e[r];r<i;s=e[++r])a+=" "+s;return a}return o}function f(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}function l(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!f(e)||"string"!==typeof t||t))}function p(t,e,n){var r=[],o=0,i=t.length;function a(t){r.push.apply(r,t),o++,o===i&&n(r)}t.forEach((function(t){e(t,a)}))}function d(t,e,n){var r=0,o=t.length;function i(a){if(a&&a.length)n(a);else{var c=r;r+=1,c<o?e(t[c],i):n([])}}i([])}function h(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,t[n])})),e}function v(t,e,n,r){if(e.first){var o=h(t);return d(o,n,r)}var i=e.firstFields||[];!0===i&&(i=Object.keys(t));var a=Object.keys(t),c=a.length,s=0,u=[],f=function(t){u.push.apply(u,t),s++,s===c&&r(u)};a.forEach((function(e){var r=t[e];-1!==i.indexOf(e)?d(r,n,f):p(r,n,f)}))}function y(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function m(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(t[n])?t[n]=o()({},t[n],r):t[n]=r}return t}function g(t,e,n,r,o,i){!t.required||n.hasOwnProperty(t.field)&&!l(e,i||t.type)||r.push(u(o.messages.required,t.fullField))}var b=g;function w(t,e,n,r,o){(/^\s+$/.test(e)||""===e)&&r.push(u(o.messages.whitespace,t.fullField))}var _=w,x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},O={integer:function(t){return O.number(t)&&parseInt(t,10)===t},float:function(t){return O.number(t)&&!O.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear},number:function(t){return!isNaN(t)&&"number"===typeof t},object:function(t){return"object"===("undefined"===typeof t?"undefined":a()(t))&&!O.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&!!t.match(x.email)&&t.length<255},url:function(t){return"string"===typeof t&&!!t.match(x.url)},hex:function(t){return"string"===typeof t&&!!t.match(x.hex)}};function S(t,e,n,r,o){if(t.required&&void 0===e)b(t,e,n,r,o);else{var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],c=t.type;i.indexOf(c)>-1?O[c](e)||r.push(u(o.messages.types[c],t.fullField,t.type)):c&&("undefined"===typeof e?"undefined":a()(e))!==t.type&&r.push(u(o.messages.types[c],t.fullField,t.type))}}var E=S;function A(t,e,n,r,o){var i="number"===typeof t.len,a="number"===typeof t.min,c="number"===typeof t.max,s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=e,l=null,p="number"===typeof e,d="string"===typeof e,h=Array.isArray(e);if(p?l="number":d?l="string":h&&(l="array"),!l)return!1;h&&(f=e.length),d&&(f=e.replace(s,"_").length),i?f!==t.len&&r.push(u(o.messages[l].len,t.fullField,t.len)):a&&!c&&f<t.min?r.push(u(o.messages[l].min,t.fullField,t.min)):c&&!a&&f>t.max?r.push(u(o.messages[l].max,t.fullField,t.max)):a&&c&&(f<t.min||f>t.max)&&r.push(u(o.messages[l].range,t.fullField,t.min,t.max))}var k=A,j="enum";function C(t,e,n,r,o){t[j]=Array.isArray(t[j])?t[j]:[],-1===t[j].indexOf(e)&&r.push(u(o.messages[j],t.fullField,t[j].join(", ")))}var T=C;function P(t,e,n,r,o){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(u(o.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){var i=new RegExp(t.pattern);i.test(e)||r.push(u(o.messages.pattern.mismatch,t.fullField,e,t.pattern))}}var M=P,$={required:b,whitespace:_,type:E,range:k,enum:T,pattern:M};function L(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e,"string")&&!t.required)return n();$.required(t,e,r,i,o,"string"),l(e,"string")||($.type(t,e,r,i,o),$.range(t,e,r,i,o),$.pattern(t,e,r,i,o),!0===t.whitespace&&$.whitespace(t,e,r,i,o))}n(i)}var N=L;function F(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&$.type(t,e,r,i,o)}n(i)}var R=F;function I(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&($.type(t,e,r,i,o),$.range(t,e,r,i,o))}n(i)}var D=I;function q(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&$.type(t,e,r,i,o)}n(i)}var U=q;function B(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),l(e)||$.type(t,e,r,i,o)}n(i)}var z=B;function V(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&($.type(t,e,r,i,o),$.range(t,e,r,i,o))}n(i)}var H=V;function G(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&($.type(t,e,r,i,o),$.range(t,e,r,i,o))}n(i)}var W=G;function K(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e,"array")&&!t.required)return n();$.required(t,e,r,i,o,"array"),l(e,"array")||($.type(t,e,r,i,o),$.range(t,e,r,i,o))}n(i)}var X=K;function J(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&$.type(t,e,r,i,o)}n(i)}var Y=J,Q="enum";function Z(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),e&&$[Q](t,e,r,i,o)}n(i)}var tt=Z;function et(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e,"string")&&!t.required)return n();$.required(t,e,r,i,o),l(e,"string")||$.pattern(t,e,r,i,o)}n(i)}var nt=et;function rt(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();if($.required(t,e,r,i,o),!l(e)){var c=void 0;c="number"===typeof e?new Date(e):e,$.type(t,c,r,i,o),c&&$.range(t,c.getTime(),r,i,o)}}n(i)}var ot=rt;function it(t,e,n,r,o){var i=[],c=Array.isArray(e)?"array":"undefined"===typeof e?"undefined":a()(e);$.required(t,e,r,i,o,c),n(i)}var at=it;function ct(t,e,n,r,o){var i=t.type,a=[],c=t.required||!t.required&&r.hasOwnProperty(t.field);if(c){if(l(e,i)&&!t.required)return n();$.required(t,e,r,a,o,i),l(e,i)||$.type(t,e,r,a,o)}n(a)}var st=ct,ut={string:N,method:R,number:D,boolean:U,regexp:z,integer:H,float:W,array:X,object:Y,enum:tt,pattern:nt,date:ot,url:st,hex:st,email:st,required:at};function ft(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var lt=ft();function pt(t){this.rules=null,this._messages=lt,this.define(t)}pt.prototype={messages:function(t){return t&&(this._messages=m(ft(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof t?"undefined":a()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],i=t,c=n,f=r;if("function"===typeof c&&(f=c,c={}),this.rules&&0!==Object.keys(this.rules).length){if(c.messages){var l=this.messages();l===lt&&(l=ft()),m(l,c.messages),c.messages=l}else c.messages=this.messages();var p=void 0,d=void 0,h={},g=c.keys||Object.keys(this.rules);g.forEach((function(n){p=e.rules[n],d=i[n],p.forEach((function(r){var a=r;"function"===typeof a.transform&&(i===t&&(i=o()({},i)),d=i[n]=a.transform(d)),a="function"===typeof a?{validator:a}:o()({},a),a.validator=e.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=e.getType(a),a.validator&&(h[n]=h[n]||[],h[n].push({rule:a,value:d,source:i,field:n}))}))}));var b={};v(h,c,(function(t,e){var n=t.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function i(t,e){return o()({},e,{fullField:n.fullField+"."+t})}function f(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],f=a;if(Array.isArray(f)||(f=[f]),f.length&&s("async-validator:",f),f.length&&n.message&&(f=[].concat(n.message)),f=f.map(y(n)),c.first&&f.length)return b[n.field]=1,e(f);if(r){if(n.required&&!t.value)return f=n.message?[].concat(n.message).map(y(n)):c.error?[c.error(n,u(c.messages.required,n.field))]:[],e(f);var l={};if(n.defaultField)for(var p in t.value)t.value.hasOwnProperty(p)&&(l[p]=n.defaultField);for(var d in l=o()({},l,t.rule.fields),l)if(l.hasOwnProperty(d)){var h=Array.isArray(l[d])?l[d]:[l[d]];l[d]=h.map(i.bind(null,d))}var v=new pt(l);v.messages(c.messages),t.rule.options&&(t.rule.options.messages=c.messages,t.rule.options.error=c.error),v.validate(t.value,t.rule.options||c,(function(t){e(t&&t.length?f.concat(t):t)}))}else e(f)}r=r&&(n.required||!n.required&&t.value),n.field=t.field;var l=n.validator(n,t.value,f,t.source,c);l&&l.then&&l.then((function(){return f()}),(function(t){return f(t)}))}),(function(t){w(t)}))}else f&&f();function w(t){var e=void 0,n=void 0,r=[],o={};function i(t){Array.isArray(t)?r=r.concat.apply(r,t):r.push(t)}for(e=0;e<t.length;e++)i(t[e]);if(r.length)for(e=0;e<r.length;e++)n=r[e].field,o[n]=o[n]||[],o[n].push(r[e]);else r=null,o=null;f(r,o)}},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!==typeof t.validator&&t.type&&!ut.hasOwnProperty(t.type))throw new Error(u("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"===typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?ut.required:ut[this.getType(t)]||!1}},pt.register=function(t,e){if("function"!==typeof e)throw new Error("Cannot register a validator by type, validator is not a function");ut[t]=e},pt.messages=lt;e["default"]=pt},a22a:function(t,e,n){var r=n("d864"),o=n("b0dc"),i=n("3702"),a=n("e4ae"),c=n("b447"),s=n("7cd6"),u={},f={};e=t.exports=function(t,e,n,l,p){var d,h,v,y,m=p?function(){return t}:s(t),g=r(n,l,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(d=c(t.length);d>b;b++)if(y=e?g(a(h=t[b])[0],h[1]):g(t[b]),y===u||y===f)return y}else for(v=m.call(t);!(h=v.next()).done;)if(y=o(v,g,h.value,e),y===u||y===f)return y};e.BREAK=u,e.RETURN=f},a25f:function(t,e,n){var r=n("7726"),o=r.navigator;t.exports=o&&o.userAgent||""},a3c3:function(t,e,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a3de:function(t,e,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},a481:function(t,e,n){"use strict";var r=n("cb7c"),o=n("4bf8"),i=n("9def"),a=n("4588"),c=n("0390"),s=n("5f1b"),u=Math.max,f=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,h=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,v){return[function(r,o){var i=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=v(n,t,this,e);if(o.done)return o.value;var l=r(t),p=String(this),d="function"===typeof e;d||(e=String(e));var m=l.global;if(m){var g=l.unicode;l.lastIndex=0}var b=[];while(1){var w=s(l,p);if(null===w)break;if(b.push(w),!m)break;var _=String(w[0]);""===_&&(l.lastIndex=c(p,i(l.lastIndex),g))}for(var x="",O=0,S=0;S<b.length;S++){w=b[S];for(var E=String(w[0]),A=u(f(a(w.index),p.length),0),k=[],j=1;j<w.length;j++)k.push(h(w[j]));var C=w.groups;if(d){var T=[E].concat(k,A,p);void 0!==C&&T.push(C);var P=String(e.apply(void 0,T))}else P=y(E,p,A,k,C,e);A>=O&&(x+=p.slice(O,A)+P,O=A+E.length)}return x+p.slice(O)}];function y(t,e,r,i,a,c){var s=r+t.length,u=i.length,f=d;return void 0!==a&&(a=o(a),f=p),n.call(c,f,(function(n,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":c=a[o.slice(1,-1)];break;default:var f=+o;if(0===f)return n;if(f>u){var p=l(f/10);return 0===p?n:p<=u?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}c=i[f-1]}return void 0===c?"":c}))}}))},a4bb:function(t,e,n){t.exports=n("8aae")},a5b8:function(t,e,n){"use strict";var r=n("d8e8");function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},a5d8:function(t,e,n){},a745:function(t,e,n){t.exports=n("f410")},a78e:function(t,e,n){var r,o; (function(){"use strict";var e="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=t.exports,r="undefined"!==typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,o=function(){for(var t,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,o=n.length,i={};r<o;r++)if(t=n[r],t&&t[1]in e){for(r=0;r<t.length;r++)i[n[0][r]]=t[r];return i}return!1}(),i={change:o.fullscreenchange,error:o.fullscreenerror},a={request:function(t){return new Promise(function(n){var i=o.requestFullscreen,a=function(){this.off("change",a),n()}.bind(this);t=t||e.documentElement,/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?t[i]():t[i](r?Element.ALLOW_KEYBOARD_INPUT:{}),this.on("change",a)}.bind(this))},exit:function(){return new Promise(function(t){if(this.isFullscreen){var n=function(){this.off("change",n),t()}.bind(this);e[o.exitFullscreen](),this.on("change",n)}else t()}.bind(this))},toggle:function(t){return this.isFullscreen?this.exit():this.request(t)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(t,n){var r=i[t];r&&e.addEventListener(r,n,!1)},off:function(t,n){var r=i[t];r&&e.removeEventListener(r,n,!1)},raw:o};o?(Object.defineProperties(a,{isFullscreen:{get:function(){return Boolean(e[o.fullscreenElement])}},element:{enumerable:!0,get:function(){return e[o.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(e[o.fullscreenEnabled])}}}),n?(t.exports=a,t.exports.default=a):window.screenfull=a):n?t.exports=!1:window.screenfull=!1})()},"95d5":function(t,e,n){var r=n("40c3"),o=n("5168")("iterator"),i=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(r(e))}},9619:function(t,e,n){var r=n("597f"),o=n("0e15");t.exports={throttle:r,debounce:o}},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag",u="object"===typeof t,f=e.regeneratorRuntime;if(f)u&&(t.exports=f);else{f=e.regeneratorRuntime=u?t.exports:{},f.wrap=w;var l="suspendedStart",p="suspendedYield",d="executing",h="completed",v={},y={};y[a]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(M([])));g&&g!==r&&o.call(g,a)&&(y=g);var b=S.prototype=x.prototype=Object.create(y);O.prototype=b.constructor=S,S.constructor=O,S[s]=O.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(b),t},f.awrap=function(t){return{__await:t}},E(A.prototype),A.prototype[c]=function(){return this},f.AsyncIterator=A,f.async=function(t,e,n,r){var o=new A(w(t,e,n,r));return f.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},E(b),b[s]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},f.values=M,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return c.type="throw",c.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:M(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=k(t,n,a),i}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function x(){}function O(){}function S(){}function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function A(t){function e(n,r,i,a){var c=_(t[n],t,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"===typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(u).then((function(t){s.value=t,i(s)}),a)}a(c.arg)}var n;function r(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=r}function k(t,e,n){var r=l;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return $()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=_(t,e,n);if("normal"===s.type){if(r=n.done?h:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}function j(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,j(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=_(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function M(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){while(++r<t.length)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:$}}function $(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},9744:function(t,e,n){"use strict";var r=n("4588"),o=n("be13");t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[r]&&n("32e9")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9d98":function(t,e,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperties:n("7e90")})},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9e6a":function(t,e,n){"use strict";var r=n("d233"),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},s="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",f=function(t,e){var n,f={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,d=l.split(e.delimiter,p),h=-1,v=e.charset;if(e.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&(d[n]===u?v="utf-8":d[n]===s&&(v="iso-8859-1"),h=n,n=d.length);for(n=0;n<d.length;++n)if(n!==h){var y,m,g=d[n],b=g.indexOf("]="),w=-1===b?g.indexOf("="):b+1;-1===w?(y=e.decoder(g,a.decoder,v,"key"),m=e.strictNullHandling?null:""):(y=e.decoder(g.slice(0,w),a.decoder,v,"key"),m=e.decoder(g.slice(w+1),a.decoder,v,"value")),m&&e.interpretNumericEntities&&"iso-8859-1"===v&&(m=c(m)),m&&"string"===typeof m&&e.comma&&m.indexOf(",")>-1&&(m=m.split(",")),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(f,y)?f[y]=r.combine(f[y],m):f[y]=m}return f},l=function(t,e,n){for(var r=e,o=t.length-1;o>=0;--o){var i,a=t[o];if("[]"===a&&n.parseArrays)i=[].concat(r);else{i=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,s=parseInt(c,10);n.parseArrays||""!==c?!isNaN(s)&&a!==c&&String(s)===c&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(i=[],i[s]=r):i[c]=r:i={0:r}}r=i}return r},p=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=n.depth>0&&i.exec(r),s=c?r.slice(0,c.index):r,u=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}var f=0;while(n.depth>0&&null!==(c=a.exec(r))&&f<n.depth){if(f+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+r.slice(c.index)+"]"),l(u,e,n)}},d=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!==typeof t.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var e="undefined"===typeof t.charset?a.charset:t.charset;return{allowDots:"undefined"===typeof t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"===typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,arrayLimit:"number"===typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"===typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof t.comma?t.comma:a.comma,decoder:"function"===typeof t.decoder?t.decoder:a.decoder,delimiter:"string"===typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"===typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"===typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}};t.exports=function(t,e){var n=d(e);if(""===t||null===t||"undefined"===typeof t)return n.plainObjects?Object.create(null):{};for(var o="string"===typeof t?f(t,n):t,i=n.plainObjects?Object.create(null):{},a=Object.keys(o),c=0;c<a.length;++c){var s=a[c],u=p(s,o[s],n);i=r.merge(i,u,n)}return r.compact(i)}},a159:function(t,e,n){var r=n("e4ae"),o=n("7e90"),i=n("1691"),a=n("5559")("IE_PROTO"),c=function(){},s="prototype",u=function(){var t,e=n("1ec9")("iframe"),r=i.length,o="<",a=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),u=t.F;while(r--)delete u[s][i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[s]=r(t),n=new c,c[s]=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},a15e:function(t,e,n){"use strict";n.r(e);var r=n("41b2"),o=n.n(r),i=n("1098"),a=n.n(i),c=/%[sdj%]/g,s=function(){};function u(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,o=e[0],i=e.length;if("function"===typeof o)return o.apply(null,e.slice(1));if("string"===typeof o){for(var a=String(o).replace(c,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(n){return"[Circular]"}break;default:return t}})),s=e[r];r<i;s=e[++r])a+=" "+s;return a}return o}function f(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}function l(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!f(e)||"string"!==typeof t||t))}function p(t,e,n){var r=[],o=0,i=t.length;function a(t){r.push.apply(r,t),o++,o===i&&n(r)}t.forEach((function(t){e(t,a)}))}function d(t,e,n){var r=0,o=t.length;function i(a){if(a&&a.length)n(a);else{var c=r;r+=1,c<o?e(t[c],i):n([])}}i([])}function h(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,t[n])})),e}function v(t,e,n,r){if(e.first){var o=h(t);return d(o,n,r)}var i=e.firstFields||[];!0===i&&(i=Object.keys(t));var a=Object.keys(t),c=a.length,s=0,u=[],f=function(t){u.push.apply(u,t),s++,s===c&&r(u)};a.forEach((function(e){var r=t[e];-1!==i.indexOf(e)?d(r,n,f):p(r,n,f)}))}function y(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function m(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(t[n])?t[n]=o()({},t[n],r):t[n]=r}return t}function g(t,e,n,r,o,i){!t.required||n.hasOwnProperty(t.field)&&!l(e,i||t.type)||r.push(u(o.messages.required,t.fullField))}var b=g;function w(t,e,n,r,o){(/^\s+$/.test(e)||""===e)&&r.push(u(o.messages.whitespace,t.fullField))}var _=w,x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},O={integer:function(t){return O.number(t)&&parseInt(t,10)===t},float:function(t){return O.number(t)&&!O.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear},number:function(t){return!isNaN(t)&&"number"===typeof t},object:function(t){return"object"===("undefined"===typeof t?"undefined":a()(t))&&!O.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&!!t.match(x.email)&&t.length<255},url:function(t){return"string"===typeof t&&!!t.match(x.url)},hex:function(t){return"string"===typeof t&&!!t.match(x.hex)}};function S(t,e,n,r,o){if(t.required&&void 0===e)b(t,e,n,r,o);else{var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],c=t.type;i.indexOf(c)>-1?O[c](e)||r.push(u(o.messages.types[c],t.fullField,t.type)):c&&("undefined"===typeof e?"undefined":a()(e))!==t.type&&r.push(u(o.messages.types[c],t.fullField,t.type))}}var E=S;function A(t,e,n,r,o){var i="number"===typeof t.len,a="number"===typeof t.min,c="number"===typeof t.max,s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=e,l=null,p="number"===typeof e,d="string"===typeof e,h=Array.isArray(e);if(p?l="number":d?l="string":h&&(l="array"),!l)return!1;h&&(f=e.length),d&&(f=e.replace(s,"_").length),i?f!==t.len&&r.push(u(o.messages[l].len,t.fullField,t.len)):a&&!c&&f<t.min?r.push(u(o.messages[l].min,t.fullField,t.min)):c&&!a&&f>t.max?r.push(u(o.messages[l].max,t.fullField,t.max)):a&&c&&(f<t.min||f>t.max)&&r.push(u(o.messages[l].range,t.fullField,t.min,t.max))}var k=A,j="enum";function C(t,e,n,r,o){t[j]=Array.isArray(t[j])?t[j]:[],-1===t[j].indexOf(e)&&r.push(u(o.messages[j],t.fullField,t[j].join(", ")))}var T=C;function P(t,e,n,r,o){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(u(o.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){var i=new RegExp(t.pattern);i.test(e)||r.push(u(o.messages.pattern.mismatch,t.fullField,e,t.pattern))}}var M=P,$={required:b,whitespace:_,type:E,range:k,enum:T,pattern:M};function L(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e,"string")&&!t.required)return n();$.required(t,e,r,i,o,"string"),l(e,"string")||($.type(t,e,r,i,o),$.range(t,e,r,i,o),$.pattern(t,e,r,i,o),!0===t.whitespace&&$.whitespace(t,e,r,i,o))}n(i)}var N=L;function F(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&$.type(t,e,r,i,o)}n(i)}var R=F;function I(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&($.type(t,e,r,i,o),$.range(t,e,r,i,o))}n(i)}var D=I;function q(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&$.type(t,e,r,i,o)}n(i)}var U=q;function B(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),l(e)||$.type(t,e,r,i,o)}n(i)}var z=B;function V(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&($.type(t,e,r,i,o),$.range(t,e,r,i,o))}n(i)}var H=V;function G(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&($.type(t,e,r,i,o),$.range(t,e,r,i,o))}n(i)}var W=G;function K(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e,"array")&&!t.required)return n();$.required(t,e,r,i,o,"array"),l(e,"array")||($.type(t,e,r,i,o),$.range(t,e,r,i,o))}n(i)}var X=K;function J(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),void 0!==e&&$.type(t,e,r,i,o)}n(i)}var Y=J,Q="enum";function Z(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();$.required(t,e,r,i,o),e&&$[Q](t,e,r,i,o)}n(i)}var tt=Z;function et(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e,"string")&&!t.required)return n();$.required(t,e,r,i,o),l(e,"string")||$.pattern(t,e,r,i,o)}n(i)}var nt=et;function rt(t,e,n,r,o){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(l(e)&&!t.required)return n();if($.required(t,e,r,i,o),!l(e)){var c=void 0;c="number"===typeof e?new Date(e):e,$.type(t,c,r,i,o),c&&$.range(t,c.getTime(),r,i,o)}}n(i)}var ot=rt;function it(t,e,n,r,o){var i=[],c=Array.isArray(e)?"array":"undefined"===typeof e?"undefined":a()(e);$.required(t,e,r,i,o,c),n(i)}var at=it;function ct(t,e,n,r,o){var i=t.type,a=[],c=t.required||!t.required&&r.hasOwnProperty(t.field);if(c){if(l(e,i)&&!t.required)return n();$.required(t,e,r,a,o,i),l(e,i)||$.type(t,e,r,a,o)}n(a)}var st=ct,ut={string:N,method:R,number:D,boolean:U,regexp:z,integer:H,float:W,array:X,object:Y,enum:tt,pattern:nt,date:ot,url:st,hex:st,email:st,required:at};function ft(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var lt=ft();function pt(t){this.rules=null,this._messages=lt,this.define(t)}pt.prototype={messages:function(t){return t&&(this._messages=m(ft(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof t?"undefined":a()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],i=t,c=n,f=r;if("function"===typeof c&&(f=c,c={}),this.rules&&0!==Object.keys(this.rules).length){if(c.messages){var l=this.messages();l===lt&&(l=ft()),m(l,c.messages),c.messages=l}else c.messages=this.messages();var p=void 0,d=void 0,h={},g=c.keys||Object.keys(this.rules);g.forEach((function(n){p=e.rules[n],d=i[n],p.forEach((function(r){var a=r;"function"===typeof a.transform&&(i===t&&(i=o()({},i)),d=i[n]=a.transform(d)),a="function"===typeof a?{validator:a}:o()({},a),a.validator=e.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=e.getType(a),a.validator&&(h[n]=h[n]||[],h[n].push({rule:a,value:d,source:i,field:n}))}))}));var b={};v(h,c,(function(t,e){var n=t.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function i(t,e){return o()({},e,{fullField:n.fullField+"."+t})}function f(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],f=a;if(Array.isArray(f)||(f=[f]),f.length&&s("async-validator:",f),f.length&&n.message&&(f=[].concat(n.message)),f=f.map(y(n)),c.first&&f.length)return b[n.field]=1,e(f);if(r){if(n.required&&!t.value)return f=n.message?[].concat(n.message).map(y(n)):c.error?[c.error(n,u(c.messages.required,n.field))]:[],e(f);var l={};if(n.defaultField)for(var p in t.value)t.value.hasOwnProperty(p)&&(l[p]=n.defaultField);for(var d in l=o()({},l,t.rule.fields),l)if(l.hasOwnProperty(d)){var h=Array.isArray(l[d])?l[d]:[l[d]];l[d]=h.map(i.bind(null,d))}var v=new pt(l);v.messages(c.messages),t.rule.options&&(t.rule.options.messages=c.messages,t.rule.options.error=c.error),v.validate(t.value,t.rule.options||c,(function(t){e(t&&t.length?f.concat(t):t)}))}else e(f)}r=r&&(n.required||!n.required&&t.value),n.field=t.field;var l=n.validator(n,t.value,f,t.source,c);l&&l.then&&l.then((function(){return f()}),(function(t){return f(t)}))}),(function(t){w(t)}))}else f&&f();function w(t){var e=void 0,n=void 0,r=[],o={};function i(t){Array.isArray(t)?r=r.concat.apply(r,t):r.push(t)}for(e=0;e<t.length;e++)i(t[e]);if(r.length)for(e=0;e<r.length;e++)n=r[e].field,o[n]=o[n]||[],o[n].push(r[e]);else r=null,o=null;f(r,o)}},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!==typeof t.validator&&t.type&&!ut.hasOwnProperty(t.type))throw new Error(u("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"===typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?ut.required:ut[this.getType(t)]||!1}},pt.register=function(t,e){if("function"!==typeof e)throw new Error("Cannot register a validator by type, validator is not a function");ut[t]=e},pt.messages=lt;e["default"]=pt},a22a:function(t,e,n){var r=n("d864"),o=n("b0dc"),i=n("3702"),a=n("e4ae"),c=n("b447"),s=n("7cd6"),u={},f={};e=t.exports=function(t,e,n,l,p){var d,h,v,y,m=p?function(){return t}:s(t),g=r(n,l,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(d=c(t.length);d>b;b++)if(y=e?g(a(h=t[b])[0],h[1]):g(t[b]),y===u||y===f)return y}else for(v=m.call(t);!(h=v.next()).done;)if(y=o(v,g,h.value,e),y===u||y===f)return y};e.BREAK=u,e.RETURN=f},a25f:function(t,e,n){var r=n("7726"),o=r.navigator;t.exports=o&&o.userAgent||""},a3c3:function(t,e,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a3de:function(t,e,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},a481:function(t,e,n){"use strict";var r=n("cb7c"),o=n("4bf8"),i=n("9def"),a=n("4588"),c=n("0390"),s=n("5f1b"),u=Math.max,f=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,h=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,v){return[function(r,o){var i=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=v(n,t,this,e);if(o.done)return o.value;var l=r(t),p=String(this),d="function"===typeof e;d||(e=String(e));var m=l.global;if(m){var g=l.unicode;l.lastIndex=0}var b=[];while(1){var w=s(l,p);if(null===w)break;if(b.push(w),!m)break;var _=String(w[0]);""===_&&(l.lastIndex=c(p,i(l.lastIndex),g))}for(var x="",O=0,S=0;S<b.length;S++){w=b[S];for(var E=String(w[0]),A=u(f(a(w.index),p.length),0),k=[],j=1;j<w.length;j++)k.push(h(w[j]));var C=w.groups;if(d){var T=[E].concat(k,A,p);void 0!==C&&T.push(C);var P=String(e.apply(void 0,T))}else P=y(E,p,A,k,C,e);A>=O&&(x+=p.slice(O,A)+P,O=A+E.length)}return x+p.slice(O)}];function y(t,e,r,i,a,c){var s=r+t.length,u=i.length,f=d;return void 0!==a&&(a=o(a),f=p),n.call(c,f,(function(n,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":c=a[o.slice(1,-1)];break;default:var f=+o;if(0===f)return n;if(f>u){var p=l(f/10);return 0===p?n:p<=u?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}c=i[f-1]}return void 0===c?"":c}))}}))},a4bb:function(t,e,n){t.exports=n("8aae")},a5b8:function(t,e,n){"use strict";var r=n("d8e8");function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},a5d8:function(t,e,n){},a745:function(t,e,n){t.exports=n("f410")},a78e:function(t,e,n){var r,o;
/*! /*!
* JavaScript Cookie v2.2.0 * JavaScript Cookie v2.2.0
* https://github.com/js-cookie/js-cookie * https://github.com/js-cookie/js-cookie
......
...@@ -62,7 +62,7 @@ public class DeviceInfoController { ...@@ -62,7 +62,7 @@ public class DeviceInfoController {
* 信息 * 信息
*/ */
@RequestMapping("/infoByImei") @RequestMapping("/infoByImei")
public DeviceInfoDto infoByimei(String imei){ public DeviceInfoDto infoByimei(@RequestBody String imei){
DeviceInfoEntity deviceInfoEntity = deviceInfoService.queryDeviceByImei(imei); DeviceInfoEntity deviceInfoEntity = deviceInfoService.queryDeviceByImei(imei);
DeviceInfoDto deviceInfoDto = new DeviceInfoDto(); DeviceInfoDto deviceInfoDto = new DeviceInfoDto();
if (deviceInfoEntity != null){ if (deviceInfoEntity != null){
......
#FROM hub.c.163.com/library/java:8-alpine
#FROM hub.c.163.com/library/java:8-jre
FROM openjdk:8
MAINTAINER XXX XXX@imooc.com
ADD target/*.jar app.jar
# ADD *.jar app.jar
EXPOSE 8761
ENTRYPOINT ["java", "-jar", "/app.jar"]
\ No newline at end of file
#!/usr/bin/env bash
mvn clean package -Dmaven.test.skip=true -U
#docker build -t hub.c.163.com/springcloud/eureka .
#docker push hub.c.163.com/springcloud/eureka
#docker build -t zzrdark/eureka .
#docker push zzrdark/eureka
docker build -t 192.168.2.244:5000/springcloud_user .
docker push 192.168.2.244:5000/springcloud_user
\ No newline at end of file
...@@ -4,7 +4,10 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -4,7 +4,10 @@ import com.baomidou.mybatisplus.extension.service.IService;
import com.mx.cneeds.server.entity.DeviceLogmediaEntity; import com.mx.cneeds.server.entity.DeviceLogmediaEntity;
import java.util.List; import java.util.List;
import java.util.Map;
public interface DeviceLogMediaService extends IService<DeviceLogmediaEntity> { public interface DeviceLogMediaService extends IService<DeviceLogmediaEntity> {
void savewechatMedia(Long logId, List<String> urls); void savewechatMedias(Long logId, List<Map<String,String>> urls);
void savewechatMedia(Long logId, Long fileSize, String locationUrl);
} }
package com.mx.cneeds.server.logupload.service.impl; package com.mx.cneeds.server.logupload.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mx.cneeds.common.pager.Constant;
import com.mx.cneeds.server.dao.DeviceLogmediaDao; import com.mx.cneeds.server.dao.DeviceLogmediaDao;
import com.mx.cneeds.server.entity.DeviceLogEntity; import com.mx.cneeds.server.entity.DeviceLogEntity;
import com.mx.cneeds.server.entity.DeviceLogmediaEntity; import com.mx.cneeds.server.entity.DeviceLogmediaEntity;
...@@ -9,6 +10,7 @@ import org.springframework.stereotype.Service; ...@@ -9,6 +10,7 @@ import org.springframework.stereotype.Service;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @ClassName DeviceLogMediaServiceImpl * @ClassName DeviceLogMediaServiceImpl
...@@ -20,16 +22,27 @@ import java.util.List; ...@@ -20,16 +22,27 @@ import java.util.List;
public class DeviceLogMediaServiceImpl extends ServiceImpl<DeviceLogmediaDao, DeviceLogmediaEntity> implements DeviceLogMediaService { public class DeviceLogMediaServiceImpl extends ServiceImpl<DeviceLogmediaDao, DeviceLogmediaEntity> implements DeviceLogMediaService {
@Override @Override
public void savewechatMedia(Long logId, List<String> urls){ public void savewechatMedias(Long logId, List<Map<String,String>> fileMaps){
List<DeviceLogmediaEntity> deviceLogmediaEntities = new LinkedList<DeviceLogmediaEntity>(); List<DeviceLogmediaEntity> deviceLogmediaEntities = new LinkedList<DeviceLogmediaEntity>();
for (String url:urls){ for (Map<String,String> fileMap:fileMaps){
DeviceLogmediaEntity deviceLogmediaEntity = new DeviceLogmediaEntity(); DeviceLogmediaEntity deviceLogmediaEntity = new DeviceLogmediaEntity();
deviceLogmediaEntity.setLocationUrl(url); deviceLogmediaEntity.setLocationUrl(fileMap.get(Constant.WechatFileDtoProp.Url.getKey()));
deviceLogmediaEntity.setLogId(logId); deviceLogmediaEntity.setLogId(logId);
deviceLogmediaEntity.setType(url.substring(url.indexOf("."))); deviceLogmediaEntity.setType(fileMap.get(Constant.WechatFileDtoProp.Url.getKey()).substring(fileMap.get(Constant.WechatFileDtoProp.Url.getKey()).indexOf(".")+1));
deviceLogmediaEntity.setFileSize(Long.valueOf(fileMap.get(Constant.WechatFileDtoProp.Size.getKey())));
deviceLogmediaEntities.add(deviceLogmediaEntity); deviceLogmediaEntities.add(deviceLogmediaEntity);
} }
saveBatch(deviceLogmediaEntities); saveBatch(deviceLogmediaEntities);
} }
@Override
public void savewechatMedia(Long logId, Long fileSize, String locationUrl){
DeviceLogmediaEntity deviceLogmediaEntity = new DeviceLogmediaEntity();
deviceLogmediaEntity.setLocationUrl(locationUrl);
deviceLogmediaEntity.setLogId(logId);
deviceLogmediaEntity.setType(locationUrl.substring(locationUrl.lastIndexOf(".")+1));
deviceLogmediaEntity.setFileSize(fileSize);
save(deviceLogmediaEntity);
}
} }
...@@ -66,6 +66,7 @@ public class DeviceLogServiceImpl extends ServiceImpl<DeviceLogDao, DeviceLogEnt ...@@ -66,6 +66,7 @@ public class DeviceLogServiceImpl extends ServiceImpl<DeviceLogDao, DeviceLogEnt
}else { }else {
deviceLogEntity.setCreateTime(new Date()); deviceLogEntity.setCreateTime(new Date());
deviceLogEntity.setStatus(-1); deviceLogEntity.setStatus(-1);
// deviceLogEntity.setLogfileStatus();
getBaseMapper().insert(deviceLogEntity); getBaseMapper().insert(deviceLogEntity);
logEntity = queryOneBylogAcceptId(deviceLogEntity.getLogAcceptId()); logEntity = queryOneBylogAcceptId(deviceLogEntity.getLogAcceptId());
} }
......
...@@ -3,6 +3,7 @@ package com.mx.cneeds.server.logupload.web; ...@@ -3,6 +3,7 @@ package com.mx.cneeds.server.logupload.web;
import com.mx.cneeds.common.dto.DeviceLogDto; import com.mx.cneeds.common.dto.DeviceLogDto;
import com.mx.cneeds.common.dto.DeviceLogFileDto; import com.mx.cneeds.common.dto.DeviceLogFileDto;
import com.mx.cneeds.common.dto.WechatDeviceLogDto; import com.mx.cneeds.common.dto.WechatDeviceLogDto;
import com.mx.cneeds.common.dto.WechatFileDto;
import com.mx.cneeds.common.pager.PageUtils; import com.mx.cneeds.common.pager.PageUtils;
import com.mx.cneeds.common.result.R; import com.mx.cneeds.common.result.R;
import com.mx.cneeds.server.entity.DeviceLogEntity; import com.mx.cneeds.server.entity.DeviceLogEntity;
...@@ -11,10 +12,7 @@ import com.mx.cneeds.server.logupload.service.DeviceLogService; ...@@ -11,10 +12,7 @@ import com.mx.cneeds.server.logupload.service.DeviceLogService;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.io.File; import java.io.File;
import java.util.*; import java.util.*;
...@@ -48,9 +46,29 @@ public class LogUploadController { ...@@ -48,9 +46,29 @@ public class LogUploadController {
deviceLogEntity.setRepetitionSteps(dto.getSteps()); deviceLogEntity.setRepetitionSteps(dto.getSteps());
Long logId = deviceLogService.wechatUploadLog(deviceLogEntity); Long logId = deviceLogService.wechatUploadLog(deviceLogEntity);
if (dto.getLocationUrls()!=null && dto.getLocationUrls().size() != 0){ /*if (dto.getFileMap()!=null && dto.getFileMap().size() != 0){
deviceLogMediaService.savewechatMedia(logId, dto.getLocationUrls()); deviceLogMediaService.savewechatMedias(logId, dto.getFileMap());
}*/
} }
@RequestMapping("/wechatUploadAloneFile")
public void wechatUploadAloneFile(@RequestBody WechatFileDto dto){
DeviceLogEntity deviceLogEntity = null;
if (dto.getLogAcceptId()!=null){
deviceLogEntity = deviceLogService.queryOneBylogAcceptId(dto.getLogAcceptId());
}
if (deviceLogEntity != null){
deviceLogMediaService.savewechatMedia(deviceLogEntity.getLogId(), dto.getFileSize(), dto.getLocationUrl());
}
}
@RequestMapping("/queryLogFileByLogid")
public DeviceLogDto queryLogFileByLogid(@RequestBody long logId){
DeviceLogEntity deviceLogEntity = deviceLogService.getById(logId);
DeviceLogDto dto = new DeviceLogDto();
BeanUtils.copyProperties(deviceLogEntity, dto);
return dto;
} }
...@@ -87,13 +105,6 @@ public class LogUploadController { ...@@ -87,13 +105,6 @@ public class LogUploadController {
return R.ok(); return R.ok();
} }
/**
* 下载日志文件
*/
@RequestMapping("/downloadfile")
public void downFile(){
}
@RequestMapping("/finishLog") @RequestMapping("/finishLog")
public R finishLog(@RequestBody Long logId){ public R finishLog(@RequestBody Long logId){
...@@ -101,4 +112,6 @@ public class LogUploadController { ...@@ -101,4 +112,6 @@ public class LogUploadController {
return R.ok(); return R.ok();
} }
} }
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.2.244:3306/cneeds_server?useUnicode=true&characterEncoding=UTF-8&useSSL=false
password: cneeds!QAZ1qaz
username: root
eureka:
client:
service-url:
defaultZone: http://192.168.2.244:8761/eureka/
instance:
prefer-ip-address: true
ip-address: 192.168.2.244
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment