Commit 5d790fe0 by zzrdark

1.更新渠道号管理模块

parent 617718e5
<?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.add logging&#10;2.增加 查询设备信息"> <list default="true" id="58efcb75-622d-40c1-b8e0-10cd2fb456b4" name="Default Changelist" comment="1.日志更改&#10;2.修改前端代码&#10;3.更改黑白名单编码&#10;4.增加logMedia 的fileSize">
<change afterPath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/WechatFileDto.java" afterDir="false" /> <change afterPath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/vo/AndroidDeviceChannelVo.java" 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-18a40ee2.9d63d053.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/css/chunk-1a86e192.9d63d053.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/css/chunk-25a34ff8.9d63d053.css" 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.cf1e9370.js" 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-06aa7494.79f5e602.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-06ed166b.f6545525.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-18a40ee2.56744623.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-1a86e192.d6dcc59b.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-218bb4cf.0b4035d6.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-22e5f704.95aed682.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-datashow/src/main/resources/statics/static/js/chunk-25a34ff8.b4f84a29.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-logupload/Dockerfile" afterDir="false" /> <change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-2b4823a9.51b17cc9.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-logupload/build.sh" afterDir="false" /> <change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-4ab8490a.52ceb2fb.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-logupload/src/main/resources/application-test.yml" afterDir="false" /> <change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-5411756c.d9f1a004.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/compiler.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" /> <change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-5c585ee6.5c291cf7.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-77a4bbf0.ff5c0291.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e20529e6.5db40fa1.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/statics/static/js/chunk-e33fc590.32c81d22.js" 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-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/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/DeviceChannelEntity.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-data/src/main/java/com/mx/cneeds/server/entity/DeviceChannelEntity.java" 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/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/DeviceInfoDao.xml" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-data/src/main/resources/mapper/DeviceInfoDao.xml" 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/DevicesDto.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/DevicesDto.java" 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/vo/DeviceChannelVo.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/vo/DeviceChannelVo.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/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/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-datashow/src/main/resources/application.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/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/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-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-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-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-113720ab.9d63d053.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/js/app.ce6e6113.js" beforeDir="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/js/chunk-06aa7494.06e9eb28.js" beforeDir="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/js/chunk-0b251b6b.eb155394.js" 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/js/chunk-113720ab.c13124c4.js" 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/chunk-1d606ab9.36c5da6b.js" 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-218bb4cf.2c87854b.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-2b4823a9.8b477be6.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-4ab8490a.d0b52c5a.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-5411756c.80e1e589.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-acf60ff8.f55e1c1c.js" beforeDir="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-e33fc590.edc65535.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-device/src/main/java/com/mx/cneeds/server/device/service/DeviceChannelService.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/DeviceChannelService.java" afterDir="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-device/src/main/java/com/mx/cneeds/server/device/service/DeviceInfoChannelService.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/DeviceInfoChannelService.java" afterDir="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-device/src/main/java/com/mx/cneeds/server/device/service/DeviceInfoService.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/DeviceInfoService.java" afterDir="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/service/impl/DeviceChannelServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/impl/DeviceChannelServiceImpl.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/impl/DeviceInfoChannelServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/impl/DeviceInfoChannelServiceImpl.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/impl/DeviceInfoServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/impl/DeviceInfoServiceImpl.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/web/DeviceChannelController.java" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/web/DeviceChannelController.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/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-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-device/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/cneeds-server-device/src/main/resources/application.yml" 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" />
...@@ -139,7 +134,7 @@ ...@@ -139,7 +134,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-logupload" /> <property name="last_opened_file_path" value="$PROJECT_DIR$/cneeds-common-data/src/main/resources/mapper" />
<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" />
...@@ -150,33 +145,33 @@ ...@@ -150,33 +145,33 @@
<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="CopyFile.RECENT_KEYS"> <key name="MoveFile.RECENT_KEYS">
<recent name="E:\mx_project\cneeds-server\cneeds-server-logupload" /> <recent name="E:\mx_project\cneeds-server\cneeds-common-data\src\test" />
<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\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-common-hadoop-dfs\src\main\resources" /> <recent name="E:\mx_project\cneeds-server" />
<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\src" />
</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.common.vo" /> <recent name="com.mx.cneeds.common.vo" />
<recent name="com.mx.cneeds.common.dto" /> <recent name="com.mx.cneeds.common.dto" />
<recent name="com.mx.cneeds.server.logupload.config" /> <recent name="com.mx.cneeds.server.device.service.impl" />
<recent name="com.mx.cneeds.server.user.mqtt.server" /> <recent name="com.mx.cneeds.server.device.service" />
<recent name="com.mx.cneeds.server.datashow.web.device" />
</key> </key>
<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-common-data\src\main\resources\mapper" />
<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" />
<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" />
</key> </key>
</component> </component>
<component name="RestServicesNavigator"> <component name="RestServicesNavigator">
<treeState> <treeState>
<expand> <expand>
<path> <path>
<item name="Found 131 services " type="fcff1e1b:RestServiceStructure$RootNode" /> <item name="Found 143 services " type="fcff1e1b:RestServiceStructure$RootNode" />
</path> </path>
</expand> </expand>
<select /> <select />
...@@ -398,7 +393,15 @@ ...@@ -398,7 +393,15 @@
<workItem from="1587868620028" duration="22592000" /> <workItem from="1587868620028" duration="22592000" />
<workItem from="1587953065938" duration="5357000" /> <workItem from="1587953065938" duration="5357000" />
<workItem from="1588038176671" duration="24894000" /> <workItem from="1588038176671" duration="24894000" />
<workItem from="1588124701121" duration="31973000" /> <workItem from="1588124701121" duration="32224000" />
<workItem from="1588212356297" duration="19063000" />
<workItem from="1588728390980" duration="15676000" />
<workItem from="1588816493735" duration="1402000" />
<workItem from="1588901864540" duration="16641000" />
<workItem from="1588988147425" duration="10178000" />
<workItem from="1589161111437" duration="13962000" />
<workItem from="1589248496931" duration="17965000" />
<workItem from="1589334695528" duration="19469000" />
</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>
...@@ -596,7 +599,42 @@ ...@@ -596,7 +599,42 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1587906221681</updated> <updated>1587906221681</updated>
</task> </task>
<option name="localTasksCounter" value="29" /> <task id="LOCAL-00029" summary="1.日志更改&#10;2.修改前端代码&#10;3.更改黑白名单编码&#10;4.增加logMedia 的fileSize">
<created>1588166626158</created>
<option name="number" value="00029" />
<option name="presentableId" value="LOCAL-00029" />
<option name="project" value="LOCAL" />
<updated>1588166626158</updated>
</task>
<task id="LOCAL-00030" summary="修改bug 设备可以添加多个相同的IMEI 产品系列可以添加多个相同的系列">
<created>1588762641853</created>
<option name="number" value="00030" />
<option name="presentableId" value="LOCAL-00030" />
<option name="project" value="LOCAL" />
<updated>1588762641853</updated>
</task>
<task id="LOCAL-00031" summary="1.增加渠道商模块">
<created>1589022782509</created>
<option name="number" value="00031" />
<option name="presentableId" value="LOCAL-00031" />
<option name="project" value="LOCAL" />
<updated>1589022782509</updated>
</task>
<task id="LOCAL-00032" summary="1.渠道号管理">
<created>1589194454872</created>
<option name="number" value="00032" />
<option name="presentableId" value="LOCAL-00032" />
<option name="project" value="LOCAL" />
<updated>1589194454872</updated>
</task>
<task id="LOCAL-00033" summary="1.渠道号模块完成">
<created>1589283330576</created>
<option name="number" value="00033" />
<option name="presentableId" value="LOCAL-00033" />
<option name="project" value="LOCAL" />
<updated>1589283330576</updated>
</task>
<option name="localTasksCounter" value="34" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
...@@ -605,6 +643,31 @@ ...@@ -605,6 +643,31 @@
<component name="Vcs.Log.Tabs.Properties"> <component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES"> <option name="TAB_STATES">
<map> <map>
<entry key="1">
<value>
<State>
<option name="SHOW_ONLY_AFFECTED_CHANGES" value="true" />
<option name="FILTERS">
<map>
<entry key="branch">
<value>
<list>
<option value="HEAD" />
</list>
</value>
</entry>
<entry key="structure">
<value>
<list>
<option value="dir:E:/mx_project/cneeds-server/cneeds-server-user" />
</list>
</value>
</entry>
</map>
</option>
</State>
</value>
</entry>
<entry key="MAIN"> <entry key="MAIN">
<value> <value>
<State> <State>
...@@ -614,14 +677,14 @@ ...@@ -614,14 +677,14 @@
</entry> </entry>
</map> </map>
</option> </option>
<option name="OPEN_TABS">
<set>
<option value="1" />
</set>
</option>
</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="1.修改项目结构&#10;2.更改数据库连接&#10;3.增加测试docker部署" />
<MESSAGE value="1.修改项目结构&#10;2.登陆&#10;3.等等" />
<MESSAGE value="1.增加数据库数据&#10;2.增加数据权限拦截&#10;3.增加分页插件&#10;4.增加系统模块查询" />
<MESSAGE value="1.增加分页查询" />
<MESSAGE value="1.增加dto&#10;2.系统管理4个模块的查询&#10;3.系统模块add功能&#10;4.增加mysql注释" />
<MESSAGE value="1.增加登陆,等" /> <MESSAGE value="1.增加登陆,等" />
<MESSAGE value="1.部门模块&#10;2.角色模块部分" /> <MESSAGE value="1.部门模块&#10;2.角色模块部分" />
<MESSAGE value="2.角色模块增删改查" /> <MESSAGE value="2.角色模块增删改查" />
...@@ -642,7 +705,12 @@ ...@@ -642,7 +705,12 @@
<MESSAGE value="1.add device log oos" /> <MESSAGE value="1.add device log oos" />
<MESSAGE value="1.fix DeviceLog" /> <MESSAGE value="1.fix DeviceLog" />
<MESSAGE value="1.add logging&#10;2.增加 查询设备信息" /> <MESSAGE value="1.add logging&#10;2.增加 查询设备信息" />
<option name="LAST_COMMIT_MESSAGE" value="1.add logging&#10;2.增加 查询设备信息" /> <MESSAGE value="1.日志更改&#10;2.修改前端代码&#10;3.更改黑白名单编码&#10;4.增加logMedia 的fileSize" />
<MESSAGE value="修改bug 设备可以添加多个相同的IMEI 产品系列可以添加多个相同的系列" />
<MESSAGE value="1.增加渠道商模块" />
<MESSAGE value="1.渠道号管理" />
<MESSAGE value="1.渠道号模块完成" />
<option name="LAST_COMMIT_MESSAGE" value="1.渠道号模块完成" />
</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">
...@@ -657,10 +725,10 @@ ...@@ -657,10 +725,10 @@
<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="1588043440709"> <state x="765" y="229" key="#com.intellij.ide.util.MemberChooser" timestamp="1589193842611">
<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="1588043440709" /> <state x="765" y="229" key="#com.intellij.ide.util.MemberChooser/0.0.1920.1040@0.0.1920.1040" timestamp="1589193842611" />
<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>
...@@ -677,66 +745,66 @@ ...@@ -677,66 +745,66 @@
<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="1588066552535"> <state x="463" y="112" key="CommitChangelistDialog2" timestamp="1589370111773">
<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="1588066552535" /> <state x="463" y="112" key="CommitChangelistDialog2/0.0.1920.1040@0.0.1920.1040" timestamp="1589370111773" />
<state x="150" y="103" key="DiffContextDialog" timestamp="1585117146381"> <state x="150" y="103" key="DiffContextDialog" timestamp="1588231118308">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="150" y="103" key="DiffContextDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1585117146381" /> <state x="150" y="103" key="DiffContextDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1588231118308" />
<state x="740" y="275" key="FileChooserDialogImpl" timestamp="1585025839954"> <state x="740" y="275" key="FileChooserDialogImpl" timestamp="1588922129570">
<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="1588922129570" />
<state width="1877" height="284" key="GridCell.Tab.0.bottom" timestamp="1588166199897"> <state width="1877" height="330" key="GridCell.Tab.0.bottom" timestamp="1589370517768">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.0.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="330" key="GridCell.Tab.0.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1589370517768" />
<state width="1877" height="284" key="GridCell.Tab.0.center" timestamp="1588166199897"> <state width="1877" height="330" key="GridCell.Tab.0.center" timestamp="1589370517768">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.0.center/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="330" key="GridCell.Tab.0.center/0.0.1920.1040@0.0.1920.1040" timestamp="1589370517768" />
<state width="1877" height="284" key="GridCell.Tab.0.left" timestamp="1588166199897"> <state width="1877" height="330" key="GridCell.Tab.0.left" timestamp="1589370517768">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.0.left/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="330" key="GridCell.Tab.0.left/0.0.1920.1040@0.0.1920.1040" timestamp="1589370517768" />
<state width="1877" height="284" key="GridCell.Tab.0.right" timestamp="1588166199897"> <state width="1877" height="330" key="GridCell.Tab.0.right" timestamp="1589370517768">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.0.right/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="330" key="GridCell.Tab.0.right/0.0.1920.1040@0.0.1920.1040" timestamp="1589370517768" />
<state width="1877" height="284" key="GridCell.Tab.1.bottom" timestamp="1588166199897"> <state width="1877" height="311" key="GridCell.Tab.1.bottom" timestamp="1589370092141">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.1.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="311" key="GridCell.Tab.1.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1589370092141" />
<state width="1877" height="284" key="GridCell.Tab.1.center" timestamp="1588166199897"> <state width="1877" height="311" key="GridCell.Tab.1.center" timestamp="1589370092141">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.1.center/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="311" key="GridCell.Tab.1.center/0.0.1920.1040@0.0.1920.1040" timestamp="1589370092141" />
<state width="1877" height="284" key="GridCell.Tab.1.left" timestamp="1588166199897"> <state width="1877" height="311" key="GridCell.Tab.1.left" timestamp="1589370092141">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.1.left/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="311" key="GridCell.Tab.1.left/0.0.1920.1040@0.0.1920.1040" timestamp="1589370092141" />
<state width="1877" height="284" key="GridCell.Tab.1.right" timestamp="1588166199897"> <state width="1877" height="311" key="GridCell.Tab.1.right" timestamp="1589370092141">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.1.right/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="311" key="GridCell.Tab.1.right/0.0.1920.1040@0.0.1920.1040" timestamp="1589370092141" />
<state width="1877" height="284" key="GridCell.Tab.2.bottom" timestamp="1588166199897"> <state width="1877" height="311" key="GridCell.Tab.2.bottom" timestamp="1589370092142">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.2.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="311" key="GridCell.Tab.2.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1589370092142" />
<state width="1877" height="284" key="GridCell.Tab.2.center" timestamp="1588166199897"> <state width="1877" height="311" key="GridCell.Tab.2.center" timestamp="1589370092142">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.2.center/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="311" key="GridCell.Tab.2.center/0.0.1920.1040@0.0.1920.1040" timestamp="1589370092142" />
<state width="1877" height="284" key="GridCell.Tab.2.left" timestamp="1588166199897"> <state width="1877" height="311" key="GridCell.Tab.2.left" timestamp="1589370092142">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.2.left/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="311" key="GridCell.Tab.2.left/0.0.1920.1040@0.0.1920.1040" timestamp="1589370092142" />
<state width="1877" height="284" key="GridCell.Tab.2.right" timestamp="1588166199897"> <state width="1877" height="311" key="GridCell.Tab.2.right" timestamp="1589370092142">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="1877" height="284" key="GridCell.Tab.2.right/0.0.1920.1040@0.0.1920.1040" timestamp="1588166199897" /> <state width="1877" height="311" key="GridCell.Tab.2.right/0.0.1920.1040@0.0.1920.1040" timestamp="1589370092142" />
<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>
...@@ -749,10 +817,10 @@ ...@@ -749,10 +817,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="1587906223083"> <state x="552" y="253" key="Vcs.Push.Dialog.v2" timestamp="1589283331999">
<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="1587906223083" /> <state x="552" y="253" key="Vcs.Push.Dialog.v2/0.0.1920.1040@0.0.1920.1040" timestamp="1589283331999" />
<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>
...@@ -765,10 +833,10 @@ ...@@ -765,10 +833,10 @@
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="690" y="284" key="extract.method.dialog/0.0.1920.1040@0.0.1920.1040" timestamp="1584010366958" /> <state x="690" y="284" key="extract.method.dialog/0.0.1920.1040@0.0.1920.1040" timestamp="1584010366958" />
<state x="636" y="253" width="667" height="534" key="find.popup" timestamp="1587715342703"> <state x="636" y="253" width="702" height="534" key="find.popup" timestamp="1589368328304">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="636" y="253" width="667" height="534" key="find.popup/0.0.1920.1040@0.0.1920.1040" timestamp="1587715342703" /> <state x="636" y="253" width="702" height="534" key="find.popup/0.0.1920.1040@0.0.1920.1040" timestamp="1589368328304" />
<state x="511" y="210" key="new project wizard" timestamp="1587463523363"> <state x="511" y="210" key="new project wizard" timestamp="1587463523363">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
...@@ -777,10 +845,10 @@ ...@@ -777,10 +845,10 @@
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="616" y="240" key="run.anything.popup/0.0.1920.1040@0.0.1920.1040" timestamp="1588144418613" /> <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"> <state x="616" y="173" width="672" height="676" key="search.everywhere.popup" timestamp="1589368390090">
<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="1588165111759" /> <state x="616" y="173" width="672" height="676" key="search.everywhere.popup/0.0.1920.1040@0.0.1920.1040" timestamp="1589368390090" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>
...@@ -791,11 +859,6 @@ ...@@ -791,11 +859,6 @@
<option name="timeStamp" value="3" /> <option name="timeStamp" value="3" />
</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>
<line>182</line>
<option name="timeStamp" value="17" />
</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/system/SystemController.java</url> <url>file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/SystemController.java</url>
<line>359</line> <line>359</line>
<option name="timeStamp" value="18" /> <option name="timeStamp" value="18" />
...@@ -821,14 +884,19 @@ ...@@ -821,14 +884,19 @@
<option name="timeStamp" value="42" /> <option name="timeStamp" value="42" />
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" type="java-line"> <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> <url>file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/LogFlieController.java</url>
<line>65</line> <line>142</line>
<option name="timeStamp" value="56" /> <option name="timeStamp" value="60" />
</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>243</line>
<option name="timeStamp" value="61" />
</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>198</line> <line>52</line>
<option name="timeStamp" value="59" /> <option name="timeStamp" value="65" />
</line-breakpoint> </line-breakpoint>
</breakpoints> </breakpoints>
</breakpoint-manager> </breakpoint-manager>
......
...@@ -319,3 +319,7 @@ CREATE TABLE `device_info_channel` ( ...@@ -319,3 +319,7 @@ CREATE TABLE `device_info_channel` (
`channel_id` bigint(20) DEFAULT NULL, `channel_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2020-05-13
ALTER TABLE `cneeds_server`.`device_info`
DROP COLUMN `channel_nums`;
...@@ -15,7 +15,7 @@ import java.util.Date; ...@@ -15,7 +15,7 @@ import java.util.Date;
**/ **/
@Data @Data
@TableName("device_channel") @TableName("device_channel")
public class DeviceChannelEntity implements Serializable { public class DeviceChannelEntity implements Serializable ,Cloneable {
/** /**
* 渠道号Id * 渠道号Id
......
...@@ -67,11 +67,6 @@ public class DeviceInfoEntity implements Serializable { ...@@ -67,11 +67,6 @@ public class DeviceInfoEntity implements Serializable {
private Date activeTime; private Date activeTime;
/** /**
* 渠道号
*/
private String channelNums;
/**
* 渠道号提示信息 * 渠道号提示信息
*/ */
private String channelNumsMessage; private String channelNumsMessage;
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
<result property="seriesId" column="series_id"/> <result property="seriesId" column="series_id"/>
<result property="createTime" column="create_time"/> <result property="createTime" column="create_time"/>
<result property="activeTime" column="active_time"/> <result property="activeTime" column="active_time"/>
<result property="channelNums" column="channel_nums"/>
<result property="channelNumsMessage" column="channel_nums_message"/> <result property="channelNumsMessage" column="channel_nums_message"/>
<result property="channelRules" column="channel_rules"/> <result property="channelRules" column="channel_rules"/>
<result property="seriesNum" column="series_num"/> <result property="seriesNum" column="series_num"/>
......
...@@ -29,9 +29,9 @@ public class DevicesDto { ...@@ -29,9 +29,9 @@ public class DevicesDto {
private Long deptId; private Long deptId;
/** /**
* 渠道号 分割符号 , * 渠道号
*/ */
private String channelNums; private List<Long> channelNums;
/** /**
* 提示信息 * 提示信息
......
package com.mx.cneeds.common.vo;
import lombok.Data;
import java.util.List;
/**
* @ClassName DeviceChannelVo
* @Author zzrdark
* @Date 2020-03-05 14:46
* @Description TODO
**/
@Data
public class AndroidDeviceChannelVo {
/**
* 渠道号 分割符号 ,
*/
private String channelNums;
/**
* 提示信息
*/
private String channelNumsMessage;
/**
* 名单规则
* 0:黑名单,1:白名单
*/
private Integer channelRules;
/**
* 设备imeis
*/
private List<String> imeis;
public AndroidDeviceChannelVo() {
}
}
...@@ -16,7 +16,7 @@ public class DeviceChannelVo { ...@@ -16,7 +16,7 @@ public class DeviceChannelVo {
/** /**
* 渠道号 分割符号 , * 渠道号 分割符号 ,
*/ */
private String channelNums; private List<Long> channelNums;
/** /**
* 提示信息 * 提示信息
...@@ -34,11 +34,6 @@ public class DeviceChannelVo { ...@@ -34,11 +34,6 @@ public class DeviceChannelVo {
*/ */
private List<String> imeis; private List<String> imeis;
public DeviceChannelVo(String channelNums, String channelNumsMessage, Integer channelRules) {
this.channelNums = channelNums;
this.channelNumsMessage = channelNumsMessage;
this.channelRules = channelRules;
}
public DeviceChannelVo() { public DeviceChannelVo() {
} }
......
...@@ -87,4 +87,10 @@ public interface DeviceClient { ...@@ -87,4 +87,10 @@ public interface DeviceClient {
@PostMapping("/device/devicechannel/delete") @PostMapping("/device/devicechannel/delete")
void deleteDeviceChannels(@RequestBody List<Long> ids); void deleteDeviceChannels(@RequestBody List<Long> ids);
@PostMapping("/device/devicechannel/queryDeviceChannelAll")
List<DeviceChannelDto> queryDeviceChannelAll();
@PostMapping("/device/devicechannel/deleteSettingDeviceChannel")
void deleteSettingDeviceChannel(@RequestBody Long deviceId);
} }
...@@ -4,10 +4,7 @@ import com.mx.cneeds.common.constant.ResultCode; ...@@ -4,10 +4,7 @@ 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.result.R; import com.mx.cneeds.common.result.R;
import com.mx.cneeds.common.vo.ChannelVo; import com.mx.cneeds.common.vo.*;
import com.mx.cneeds.common.vo.DeviceChannelVo;
import com.mx.cneeds.common.vo.DevicesVo;
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;
...@@ -37,7 +34,7 @@ public class DeviceController { ...@@ -37,7 +34,7 @@ public class DeviceController {
@GetMapping("/device/getChannel_nums") @GetMapping("/device/getChannel_nums")
public R getChannel_nums(String imei){ public R getChannel_nums(String imei){
DeviceChannelVo channelVo = new DeviceChannelVo(); AndroidDeviceChannelVo channelVo = new AndroidDeviceChannelVo();
DeviceInfoDto deviceInfoDto = null; DeviceInfoDto deviceInfoDto = null;
try { try {
deviceInfoDto = deviceClient.queryDeviceByImei(imei); deviceInfoDto = deviceClient.queryDeviceByImei(imei);
...@@ -263,7 +260,6 @@ public class DeviceController { ...@@ -263,7 +260,6 @@ public class DeviceController {
BeanUtils.copyProperties(vo,deviceChannelDto); BeanUtils.copyProperties(vo,deviceChannelDto);
deviceClient.updateDeviceChannel(deviceChannelDto); deviceClient.updateDeviceChannel(deviceChannelDto);
return R.ok(); return R.ok();
} }
@PostMapping("/deviceChannel/delete") @PostMapping("/deviceChannel/delete")
...@@ -272,5 +268,16 @@ public class DeviceController { ...@@ -272,5 +268,16 @@ public class DeviceController {
return R.ok(); return R.ok();
} }
@PostMapping("/deviceChannel/queryDeviceChannelAll")
public R queryDeviceChannelAll(){
List<DeviceChannelDto> deviceChannelDtos = deviceClient.queryDeviceChannelAll();
return R.ok().put("data",deviceChannelDtos);
}
@PostMapping("/deviceChannel/deleteSettingDeviceChannel")
public R deleteSettingDeviceChannel(Long deviceId){
deviceClient.deleteSettingDeviceChannel(deviceId);
return R.ok();
}
} }
spring: spring:
profiles: profiles:
active: dev active: prod
application: application:
name: cneeds-server-datashow name: cneeds-server-datashow
server: server:
......
<!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":"eb155394","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> <!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,f=n[0],d=n[1],h=n[2],o=0,k=[];o<f.length;o++)u=f[o],r[u]&&k.push(r[u][0]),r[u]=0;for(t in d)Object.prototype.hasOwnProperty.call(d,t)&&(e[t]=d[t]);i&&i(n);while(k.length)k.shift()();return a.push.apply(a,h||[]),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 f=c[u];0!==r[f]&&(t=!1)}t&&(a.splice(n--,1),e=d(d.s=c[0]))}return e}var t={},u={runtime:0},r={runtime:0},a=[];function f(e){return d.p+"static/js/"+({}[e]||e)+"."+{"chunk-06aa7494":"79f5e602","chunk-06ed166b":"f6545525","chunk-116c2bab":"26f3ae67","chunk-18a40ee2":"56744623","chunk-1a07b08b":"8495daf0","chunk-1a86e192":"d6dcc59b","chunk-218bb4cf":"0b4035d6","chunk-22e5f704":"95aed682","chunk-25a34ff8":"b4f84a29","chunk-2b4823a9":"51b17cc9","chunk-2d2105d3":"c38e1553","chunk-2d230a36":"77c3129c","chunk-2d230fe7":"8023f254","chunk-3b59103a":"8d86d081","chunk-403c80dd":"94c0ac41","chunk-47af9ee4":"a003a3e1","chunk-4a8d06a6":"81dbed13","chunk-4ab8490a":"52ceb2fb","chunk-5411756c":"d9f1a004","chunk-56d3065a":"f080c714","chunk-10f36354":"7f6359fa","chunk-5c585ee6":"5c291cf7","chunk-636f8118":"2d5d0784","chunk-64238bd4":"b5c58bf5","chunk-73bfcbf0":"a5fec1ff","chunk-77a4bbf0":"ff5c0291","chunk-79a85582":"dd8d44e5","chunk-7b66cc0a":"d0fee21d","chunk-e20529e6":"5db40fa1","chunk-e33fc590":"32c81d22","chunk-e652b80c":"323c7f1f"}[e]+".js"}function d(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,d),c.l=!0,c.exports}d.e=function(e){var n=[],c={"chunk-06aa7494":1,"chunk-116c2bab":1,"chunk-18a40ee2":1,"chunk-1a07b08b":1,"chunk-1a86e192":1,"chunk-218bb4cf":1,"chunk-25a34ff8":1,"chunk-2b4823a9":1,"chunk-4a8d06a6":1,"chunk-4ab8490a":1,"chunk-5411756c":1,"chunk-10f36354":1,"chunk-64238bd4":1,"chunk-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-06ed166b":"31d6cfe0","chunk-116c2bab":"eedc5334","chunk-18a40ee2":"9d63d053","chunk-1a07b08b":"830e1851","chunk-1a86e192":"9d63d053","chunk-218bb4cf":"9d63d053","chunk-22e5f704":"31d6cfe0","chunk-25a34ff8":"9d63d053","chunk-2b4823a9":"9d63d053","chunk-2d2105d3":"31d6cfe0","chunk-2d230a36":"31d6cfe0","chunk-2d230fe7":"31d6cfe0","chunk-3b59103a":"31d6cfe0","chunk-403c80dd":"31d6cfe0","chunk-47af9ee4":"31d6cfe0","chunk-4a8d06a6":"e9a4618c","chunk-4ab8490a":"9d63d053","chunk-5411756c":"9d63d053","chunk-56d3065a":"31d6cfe0","chunk-10f36354":"129625a4","chunk-5c585ee6":"31d6cfe0","chunk-636f8118":"31d6cfe0","chunk-64238bd4":"70564041","chunk-73bfcbf0":"31d6cfe0","chunk-77a4bbf0":"31d6cfe0","chunk-79a85582":"31d6cfe0","chunk-7b66cc0a":"31d6cfe0","chunk-e20529e6":"31d6cfe0","chunk-e33fc590":"9d63d053","chunk-e652b80c":"31d6cfe0"}[e]+".css",r=d.p+t,a=document.getElementsByTagName("link"),f=0;f<a.length;f++){var h=a[f],o=h.getAttribute("data-href")||h.getAttribute("href");if("stylesheet"===h.rel&&(o===t||o===r))return n()}var k=document.getElementsByTagName("style");for(f=0;f<k.length;f++){h=k[f],o=h.getAttribute("data-href");if(o===t||o===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 b=document.getElementsByTagName("head")[0];b.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 h,o=document.createElement("script");o.charset="utf-8",o.timeout=120,d.nc&&o.setAttribute("nonce",d.nc),o.src=f(e),h=function(n){o.onerror=o.onload=null,clearTimeout(k);var c=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 k=setTimeout((function(){h({type:"timeout",target:o})}),12e4);o.onerror=o.onload=h,document.head.appendChild(o)}return Promise.all(n)},d.m=e,d.c=t,d.d=function(e,n,c){d.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,n){if(1&n&&(e=d(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(d.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)d.d(c,t,function(n){return e[n]}.bind(null,t));return c},d.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(n,"a",n),n},d.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},d.p="",d.oe=function(e){throw console.error(e),e};var h=window["webpackJsonp"]=window["webpackJsonp"]||[],o=h.push.bind(h);h.push=n,h=h.slice();for(var k=0;k<h.length;k++)n(h[k]);var i=o;c()})([]);</script><script src=static/js/app.cf1e9370.js></script></body></html>
\ No newline at end of file \ No newline at end of file
.pagination-container[data-v-f3b72548]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-f3b72548]{display:none}.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}
\ No newline at end of file
.pagination-container[data-v-f3b72548]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-f3b72548]{display:none}.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}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06aa7494"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var a=n("1c64"),i=n.n(a);i.a},"2c98":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));n("55dd");var a=n("b775");function i(e){return Object(a["a"])({url:"/sys/module/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(){return Object(a["a"])({url:"/sys/func/listAll",method:"post"})}},"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)},i=[];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 o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var a=l(),i=e-a,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,a,i,t);r(l),u<t?o(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,a,i,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var a="@@wavesContext";function i(e,t){function n(n){var a=Object.assign({},t.value),i=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},a),o=i.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),i.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.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",i(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[a].removeHandle,!1),e.addEventListener("click",i(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[a].removeHandle,!1),e[a]=null,delete e[a]}}},e71b: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("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:"funcId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"父类ID",prop:"parentId",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"名字",prop:"name",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"地址",prop:"url",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"权限",prop:"perms",width:"100",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"类型",prop:"type",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.type;return[n("span",[e._v(e._s(e._f("typeValueFilter")(a)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"排序",prop:"orderNum",width:"150",align:"center"}})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)},i=[],o=n("333d"),r=n("c7a7"),l=n("2c98"),s=n("ed08"),u={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{typeValueFilter:function(e){return e=0===e?"目录":1===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:{}}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var a=Object.assign({},e.query),i=Object.assign({},t.query);JSON.stringify(a)!==JSON.stringify(i)&&this.getList()}n()},methods:{sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["a"])(this.listQuery).then((function(t){var n=t.data,a=n.list,i=n.totalCount;e.list=a,e.total=i,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/system/module",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,a,i,!1,null,"1c722d9c",null);t["default"]=p.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06aa7494"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var a=n("1c64"),i=n.n(a);i.a},"2c98":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));n("55dd");var a=n("b775");function i(e){return Object(a["a"])({url:"/sys/module/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(){return Object(a["a"])({url:"/sys/func/listAll",method:"post"})}},"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)},i=[];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 o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var a=l(),i=e-a,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,a,i,t);r(l),u<t?o(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,a,i,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var a="@@wavesContext";function i(e,t){function n(n){var a=Object.assign({},t.value),i=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},a),o=i.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),i.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.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",i(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[a].removeHandle,!1),e.addEventListener("click",i(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[a].removeHandle,!1),e[a]=null,delete e[a]}}},e71b: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("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:"funcId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"父类ID",prop:"parentId",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"名字",prop:"name",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"地址",prop:"url",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"权限",prop:"perms",width:"100",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"类型",prop:"type",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.type;return[n("span",[e._v(e._s(e._f("typeValueFilter")(a)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"排序",prop:"orderNum",width:"150",align:"center"}})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)},i=[],o=n("333d"),r=n("c7a7"),l=n("2c98"),s=n("ed08"),u={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{typeValueFilter:function(e){return e=0===e?"目录":1===e?"菜单":"按钮",e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{}}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var a=Object.assign({},e.query),i=Object.assign({},t.query);JSON.stringify(a)!==JSON.stringify(i)&&this.getList()}n()},methods:{sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["a"])(this.listQuery).then((function(t){var n=t.data,a=n.list,i=n.totalCount;e.list=a,e.total=i,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/system/module",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,a,i,!1,null,"3538b172",null);t["default"]=p.exports}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06ed166b"],{"0173":function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("el-container",[t("el-main",[t("el-form",{ref:"editChannel",attrs:{model:e.channel,rules:e.rules,"label-width":"80px"}},[t("el-form-item",{attrs:{prop:"seriesNum",label:"渠道号"}},[t("el-input",{model:{value:e.channel.channelNum,callback:function(n){e.$set(e.channel,"channelNum",n)},expression:"channel.channelNum"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"remark",label:"品牌描述:"}},[t("el-input",{model:{value:e.channel.brand,callback:function(n){e.$set(e.channel,"brand",n)},expression:"channel.brand"}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),t("el-button",{on:{click:e.toSeriesList}},[e._v("取消")])],1)],1)],1)],1)},i=[],r=(t("ac6a"),t("456d"),t("aa98")),c={channelNum:"渠道号",brand:"品牌描述"},u={data:function(){var e=function(e,n,t){0===n.length?t(new Error(c[e.field]+"必须填写")):t()};return{loading:!1,channel:{channelNum:"",brand:""},rules:{seriesNum:[{validator:e}],remark:[{validator:e}]}}},mounted:function(){this.channel=this.$route.query.channel},methods:{setDefault:function(){this.$refs.editSeries.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editChannel.validate((function(n,t){if(n)Object(r["j"])(e.channel).then((function(n){var t=n.msg;e.$notify({title:"操作成功",message:t,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toSeriesList()})).catch((function(){e.loading=!1}));else{var a=t[Object.keys(t)[0]][0].message;e.$message({message:a,type:"error"}),e.loading=!1}})))},handleChange:function(e){var n=e.length;n-=1,this.dept.parentId=e[n]},toSeriesList:function(){this.$router.push({path:"/configManagement/deviceChannel"})}}},o=u,d=t("2877"),l=Object(d["a"])(o,a,i,!1,null,"7db5c585",null);n["default"]=l.exports},aa98:function(e,n,t){"use strict";t.d(n,"f",(function(){return i})),t.d(n,"g",(function(){return r})),t.d(n,"k",(function(){return c})),t.d(n,"b",(function(){return u})),t.d(n,"i",(function(){return o})),t.d(n,"e",(function(){return d})),t.d(n,"a",(function(){return l})),t.d(n,"j",(function(){return s})),t.d(n,"h",(function(){return h})),t.d(n,"c",(function(){return f})),t.d(n,"d",(function(){return v}));t("55dd");var a=t("b775");function i(e){return Object(a["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function r(e){return Object(a["a"])({url:"/device/device/importDevice",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function o(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function l(e){return Object(a["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function h(){return Object(a["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function f(e){return Object(a["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function v(e){return Object(a["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b251b6b"],{aa98:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return c})),t.d(n,"e",(function(){return l})),t.d(n,"a",(function(){return s})),t.d(n,"d",(function(){return u}));t("55dd");var a=t("b775");function i(e){return Object(a["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(e){return Object(a["a"])({url:"/device/device/importDevice",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function u(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}},ee85:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("el-container",[t("el-main",[t("el-form",{ref:"setChannel",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[t("el-form-item",{attrs:{prop:"channelNumsMessage",label:"终端提示文字"}},[t("el-input",{model:{value:e.device.channelNumsMessage,callback:function(n){e.$set(e.device,"channelNumsMessage",n)},expression:"device.channelNumsMessage"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"channelRules",label:"规则"}},[t("el-select",{attrs:{placeholder:"选择"},model:{value:e.device.channelRules,callback:function(n){e.$set(e.device,"channelRules",n)},expression:"device.channelRules"}},[t("el-option",{attrs:{label:"白名单",value:"0"}}),e._v(" "),t("el-option",{attrs:{label:"黑名单",value:"1"}})],1)],1),e._v(" "),e._l(e.device.channelNums,(function(n,a){return t("el-form-item",{key:a,attrs:{label:"第"+(a+1)+"个渠道号: ",prop:"channelNums."+a+".value","label-width":"20"}},[t("el-row",[t("el-col",{attrs:{span:14}},[t("el-input",{model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"channelNum.value"}})],1),e._v(" "),t("el-col",{attrs:{span:5}},[t("el-button",{on:{click:function(t){return t.preventDefault(),e.removeChannelNums(n)}}},[e._v("\n 删除\n ")])],1)],1)],1)})),e._v(" "),t("el-form-item",[t("el-button",{on:{click:e.addChannelNums}},[e._v("新增渠道号")]),e._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),t("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],2)],1)],1)},i=[],c=(t("456d"),t("ac6a"),t("96cf"),t("3b8d")),l=t("aa98"),s={channelNumsMessage:"终端提示文字",channelRules:"规则"},u={data:function(){var e=function(e,n,t){void 0===n||null===n||0===n.length?t(new Error(s[e.field]+"必须填写")):t()};return{loading:!1,device:{channelNums:[{value:""}],channelNumsMessage:"",channelRules:"",imeis:[]},rules:{channelNumsMessage:[{validator:e}],channelRules:[{validator:e}]},selectSeriesOptions:[]}},mounted:function(){this.device.imeis=this.$route.query.imeis,this.getFormData()},methods:{getFormData:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}(),setDefault:function(){this.$refs.device=[]},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.setChannel.validate((function(n,t){if(n){var a=e.device.channelNums;e.device.channelNums=[],a.forEach((function(n){e.device.channelNums.push(n.value)})),Object(l["d"])(e.device).then((function(n){var t=n.msg;e.$notify({title:"操作成功",message:t,type:"success",duration:2e3}),e.setDefault(),e.toDeviceList(),e.loading=!1})).catch((function(){e.loading=!1}))}else{var i=t[Object.keys(t)[0]][0].message;e.$message({message:i,type:"error"}),e.loading=!1}})))},toDeviceList:function(){this.$router.push({path:"/deviceManagement/device"})},addChannelNums:function(){this.device.channelNums.push({value:""})},removeChannelNums:function(e){var n=this.device.channelNums.indexOf(e);-1!==n&&this.device.channelNums.splice(n,1)}}},r=u,o=t("2877"),d=Object(o["a"])(r,a,i,!1,null,"4506f574",null);n["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-113720ab"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function c(e,t,n){var i=l(),a=e-i,c=20,s=0;t="undefined"===typeof t?500:t;var u=function e(){s+=c;var l=Math.easeInOutQuad(s,i,a,t);r(l),s<t?o(e):n&&"function"===typeof n&&n()};u()}var s={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&c(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&c(0,800)}}},u=s,d=(n("1cc6"),n("2877")),p=Object(d["a"])(u,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return c}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function c(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),a.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},dc86:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("导入设备")]),e._v(" "),n("el-button",{on:{click:e.editSeriesPage}},[e._v("变更产品系列")]),e._v(" "),n("el-button",{on:{click:e.setChannelPage}},[e._v("适配配置")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除设备")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"设备ID",prop:"deviceId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"imei",prop:"imei",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("ac6a"),n("333d")),r=n("c7a7"),l=n("ed08"),c=n("aa98"),s={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(l["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(c["b"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},addPage:function(){this.$router.push({path:"/deviceManagement/device/importDevice"})},editSeriesPage:function(){if(0!==this.multipleSelection.length){var e=[];this.multipleSelection.forEach((function(t){e.push(t.imei)})),this.$router.push({path:"/deviceManagement/device/editSeries",query:{imeis:e}})}else{var t="必须选一列";this.$message({message:t,type:"error"})}},setChannelPage:function(){if(0!==this.multipleSelection.length){var e=[];this.multipleSelection.forEach((function(t){e.push(t.imei)})),this.$router.push({path:"/deviceManagement/device/setChannelNum",query:{imeis:e}})}else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.deviceIds.push(t.deviceId)})),Object(c["a"])(this.deviceIds).then((function(t){e.getList()})),this.deviceIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},refresh:function(){this.$router.push({path:"/deviceManagement/device",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},u=s,d=n("2877"),p=Object(d["a"])(u,i,a,!1,null,"387f23f8",null);t["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18a40ee2"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function c(e,t,n){var i=l(),a=e-i,c=20,u=0;t="undefined"===typeof t?500:t;var s=function e(){u+=c;var l=Math.easeInOutQuad(u,i,a,t);r(l),u<t?o(e):n&&"function"===typeof n&&n()};s()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&c(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&c(0,800)}}},s=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(s,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},5163:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加渠道号")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑渠道号")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"序号",prop:"channelId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列号",prop:"channelNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列详情",prop:"brand",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"更新时间",prop:"updateTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("ac6a"),n("333d")),r=n("c7a7"),l=n("aa98"),c=n("ed08"),u={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{delFlagValueFilter:function(e){return-1===e?e="不可用":0===e&&(e="可用"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(c["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],channel:{},channelIds:[]}},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["e"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/configManagement/deviceChannel",query:this.listQuery})},addPage:function(){this.$router.push({path:"/configManagement/deviceChannel/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.channel=this.multipleSelection[0],this.$router.push({path:"/configManagement/deviceChannel/edit",query:{channel:this.channel}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.channelIds.push(t.channelId)})),Object(l["c"])(this.channelIds).then((function(t){e.getList()})),this.channelIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},s=u,d=n("2877"),p=Object(d["a"])(s,i,a,!1,null,"7cdc71f2",null);t["default"]=p.exports},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return o})),n.d(t,"k",(function(){return r})),n.d(t,"b",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"j",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return f}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function c(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function p(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function h(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function f(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),a.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a86e192"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,n){var i=c(),a=e-i,l=20,u=0;t="undefined"===typeof t?500:t;var s=function e(){u+=l;var c=Math.easeInOutQuad(u,i,a,t);r(c),u<t?o(e):n&&"function"===typeof n&&n()};s()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&l(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&l(0,800)}}},s=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(s,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},"99b8":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("导入设备")]),e._v(" "),n("el-button",{on:{click:e.editSeriesPage}},[e._v("变更产品系列")]),e._v(" "),n("el-button",{on:{click:e.setChannelPage}},[e._v("适配配置")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除设备")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"设备ID",prop:"deviceId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"imei",prop:"imei",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("ac6a"),n("333d")),r=n("c7a7"),c=n("ed08"),l=n("aa98"),u={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(c["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["f"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},addPage:function(){this.$router.push({path:"/deviceManagement/device/importDevice"})},editSeriesPage:function(){if(0!==this.multipleSelection.length){var e=[];this.multipleSelection.forEach((function(t){e.push(t.imei)})),this.$router.push({path:"/deviceManagement/device/editSeries",query:{imeis:e}})}else{var t="必须选一列";this.$message({message:t,type:"error"})}},setChannelPage:function(){if(0!==this.multipleSelection.length){var e=[];this.multipleSelection.forEach((function(t){e.push(t.imei)})),this.$router.push({path:"/deviceManagement/device/setChannelNum",query:{imeis:e}})}else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.deviceIds.push(t.deviceId)})),Object(l["b"])(this.deviceIds).then((function(t){e.getList()})),this.deviceIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},refresh:function(){this.$router.push({path:"/deviceManagement/device",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},s=u,d=n("2877"),p=Object(d["a"])(s,i,a,!1,null,"12480eda",null);t["default"]=p.exports},aa98:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return o})),n.d(t,"k",(function(){return r})),n.d(t,"b",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"j",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return f}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function p(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function h(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function f(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),c=o.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(r.width,r.height)+"px",o.appendChild(c)),a.type){case"center":c.style.top=r.height/2-c.offsetHeight/2+"px",c.style.left=r.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-r.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-r.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=a.color,c.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d606ab9"],{"7d09":function(e,t,i){"use strict";i.d(t,"e",(function(){return r})),i.d(t,"a",(function(){return s})),i.d(t,"c",(function(){return a})),i.d(t,"b",(function(){return c})),i.d(t,"d",(function(){return o}));i("55dd");var n=i("b775");function r(e){return Object(n["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(n["a"])({url:"/device/series/add",method:"post",data:e})}function a(e){return Object(n["a"])({url:"/device/series/edit",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function o(){return Object(n["a"])({url:"/device/series/listAll",method:"post"})}},"8a03":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",[i("el-main",[i("el-form",{ref:"editSeries",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[i("el-form-item",{attrs:{prop:"seriesId",label:"所属系列"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.device.seriesId,callback:function(t){e.$set(e.device,"seriesId",t)},expression:"device.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return i("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),i("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},r=[],s=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),a=i("7d09"),c=i("aa98"),o={seriesId:"选择系列",imeis:"要选择设备"},u={data:function(){var e=function(e,t,i){void 0===t||null===t||0===t.length?i(new Error(o[e.field]+"必须填写")):i()};return{loading:!1,device:{seriesIdList:[],imeis:[]},rules:{seriesId:[{validator:e}],imeis:[{validator:e}]},selectSeriesOptions:[]}},mounted:function(){this.device.imeis=this.$route.query.imeis,this.getFormData()},methods:{getFormData:function(){var e=Object(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.selectSeries();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.editSeries.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editSeries.validate((function(t,i){if(t)Object(c["e"])(e.device).then((function(t){var i=t.msg;e.$notify({title:"操作成功",message:i,type:"success",duration:2e3}),e.setDefault(),e.toDeviceList(),e.loading=!1})).catch((function(){e.loading=!1}));else{var n=i[Object.keys(i)[0]][0].message;e.$message({message:n,type:"error"}),e.loading=!1}})))},toDeviceList:function(){this.$router.push({path:"/deviceManagement/device"})},selectSeries: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(a["d"])().then((function(e){var i=e.data;t.selectSeriesOptions=i}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]}}},d=u,l=i("2877"),f=Object(l["a"])(d,n,r,!1,null,"644ef19e",null);t["default"]=f.exports},aa98:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return s})),i.d(t,"e",(function(){return a})),i.d(t,"a",(function(){return c})),i.d(t,"d",(function(){return o}));i("55dd");var n=i("b775");function r(e){return Object(n["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(n["a"])({url:"/device/device/importDevice",method:"post",data:e})}function a(e){return Object(n["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function o(e){return Object(n["a"])({url:"/device/device/saveChannel",method:"post",data:e})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-218bb4cf"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"2bee":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加产品系列")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑产品系列")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除产品系列")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"序号",prop:"seriesId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列号",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列详情",prop:"remark",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("ac6a"),n("333d")),o=n("c7a7"),s=n("7d09"),l=n("ed08"),u={components:{Pagination:r["a"]},directives:{waves:o["a"]},filters:{delFlagValueFilter:function(e){return-1===e?e="不可用":0===e&&(e="可用"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(l["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],series:{},seriesIds:[]}},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(s["e"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/configManagement/productSeries",query:this.listQuery})},addPage:function(){this.$router.push({path:"/configManagement/productSeries/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.series=this.multipleSelection[0],this.$router.push({path:"/configManagement/productSeries/edit",query:{series:this.series}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.seriesIds.push(t.seriesId)})),Object(s["b"])(this.seriesIds).then((function(t){e.getList()})),this.seriesIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"110ffac1",null);t["default"]=p.exports},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,n){var i=s(),a=e-i,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var s=Math.easeInOutQuad(u,i,a,t);o(s),u<t?r(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&l(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&l(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function r(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function l(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),s=r.querySelector(".waves-ripple");switch(s?s.className="waves-ripple":(s=document.createElement("span"),s.className="waves-ripple",s.style.height=s.style.width=Math.max(o.width,o.height)+"px",r.appendChild(s)),a.type){case"center":s.style.top=o.height/2-s.offsetHeight/2+"px",s.style.left=o.width/2-s.offsetWidth/2+"px";break;default:s.style.top=(n.pageY-o.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(n.pageX-o.left-s.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return s.style.backgroundColor=a.color,s.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-218bb4cf"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"2bee":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加产品系列")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑产品系列")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除产品系列")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"序号",prop:"seriesId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列号",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列详情",prop:"remark",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("ac6a"),n("333d")),o=n("c7a7"),s=n("7d09"),l=n("ed08"),u={components:{Pagination:r["a"]},directives:{waves:o["a"]},filters:{delFlagValueFilter:function(e){return-1===e?e="不可用":0===e&&(e="可用"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(l["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{},list:[],total:0,defaultSort:{},multipleSelection:[],series:{},seriesIds:[]}},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(s["e"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/configManagement/productSeries",query:this.listQuery})},addPage:function(){this.$router.push({path:"/configManagement/productSeries/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.series=this.multipleSelection[0],this.$router.push({path:"/configManagement/productSeries/edit",query:{series:this.series}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.seriesIds.push(t.seriesId)})),Object(s["b"])(this.seriesIds).then((function(t){e.getList()})),this.seriesIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"c82aa268",null);t["default"]=p.exports},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,n){var i=s(),a=e-i,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var s=Math.easeInOutQuad(u,i,a,t);o(s),u<t?r(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&l(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&l(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function r(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function l(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),s=r.querySelector(".waves-ripple");switch(s?s.className="waves-ripple":(s=document.createElement("span"),s.className="waves-ripple",s.style.height=s.style.width=Math.max(o.width,o.height)+"px",r.appendChild(s)),a.type){case"center":s.style.top=o.height/2-s.offsetHeight/2+"px",s.style.left=o.width/2-s.offsetWidth/2+"px";break;default:s.style.top=(n.pageY-o.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(n.pageX-o.left-s.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return s.style.backgroundColor=a.color,s.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22e5f704"],{3304:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("el-container",[t("el-main",[t("el-form",{ref:"addChannel",attrs:{model:e.channel,rules:e.rules,"label-width":"80px"}},[t("el-form-item",{attrs:{prop:"seriesNum",label:"渠道号"}},[t("el-input",{model:{value:e.channel.channelNum,callback:function(n){e.$set(e.channel,"channelNum",n)},expression:"channel.channelNum"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"remark",label:"品牌车型:"}},[t("el-input",{attrs:{placeholder:"奥迪-车系"},model:{value:e.channel.brand,callback:function(n){e.$set(e.channel,"brand",n)},expression:"channel.brand"}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),t("el-button",{on:{click:e.toSeriesList}},[e._v("取消")])],1)],1)],1)],1)},r=[],i=(t("ac6a"),t("456d"),t("aa98")),c={channelNum:"渠道号",brand:"品牌车型"},o={data:function(){var e=function(e,n,t){0===n.length?t(new Error(c[e.field]+"必须填写")):t()};return{loading:!1,channel:{channelNum:"",brand:""},rules:{channelNum:[{validator:e}],brand:[{validator:e}]}}},mounted:function(){},methods:{setDefault:function(){this.$refs.addSeries.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.addChannel.validate((function(n,t){if(n)Object(i["a"])(e.channel).then((function(n){var t=n.msg;e.$notify({title:"操作成功",message:t,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toSeriesList()})).catch((function(){e.loading=!1}));else{var a=t[Object.keys(t)[0]][0].message;e.$message({message:a,type:"error"}),e.loading=!1}})))},toSeriesList:function(){this.$router.push({path:"/configManagement/deviceChannel"})}}},u=o,d=t("2877"),l=Object(d["a"])(u,a,r,!1,null,"5398e163",null);n["default"]=l.exports},aa98:function(e,n,t){"use strict";t.d(n,"f",(function(){return r})),t.d(n,"g",(function(){return i})),t.d(n,"k",(function(){return c})),t.d(n,"b",(function(){return o})),t.d(n,"i",(function(){return u})),t.d(n,"e",(function(){return d})),t.d(n,"a",(function(){return l})),t.d(n,"j",(function(){return s})),t.d(n,"h",(function(){return h})),t.d(n,"c",(function(){return f})),t.d(n,"d",(function(){return v}));t("55dd");var a=t("b775");function r(e){return Object(a["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function i(e){return Object(a["a"])({url:"/device/device/importDevice",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function u(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function l(e){return Object(a["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function h(){return Object(a["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function f(e){return Object(a["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function v(e){return Object(a["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25a34ff8"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function c(e,t,n){var i=l(),a=e-i,c=20,u=0;t="undefined"===typeof t?500:t;var s=function e(){u+=c;var l=Math.easeInOutQuad(u,i,a,t);o(l),u<t?r(e):n&&"function"===typeof n&&n()};s()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&c(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&c(0,800)}}},s=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(s,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return r})),n.d(t,"k",(function(){return o})),n.d(t,"b",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"j",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return f}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function r(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function c(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function p(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function h(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function f(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}},b2dd:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.setChannelPage}},[e._v("变更")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"设备ID",prop:"deviceId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"imei",prop:"imei",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"规则",prop:"channelRules",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.channelRules;return[n("span",[e._v(e._s(e._f("channelRulesFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"渠道号",prop:"channelNums",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"禁用提示文字",prop:"channelNumsMessage",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("ac6a"),n("333d")),o=n("c7a7"),l=n("ed08"),c=n("aa98"),u={components:{Pagination:r["a"]},directives:{waves:o["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(l["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"},channelRulesFilter:function(e){return 0===e?"白名单":"黑名单"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(c["f"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},setChannelPage:function(){if(0!==this.multipleSelection.length){var e=[];this.multipleSelection.forEach((function(t){e.push(t.imei)})),this.$router.push({path:"/deviceManagement/device/setChannelNum",query:{imeis:e}})}else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var t="不能多选";this.$message({message:t,type:"error"})}else Object(c["d"])(this.multipleSelection[0].deviceId).then((function(t){e.getList()}));else{var n="必须选一列";this.$message({message:n,type:"error"})}},refresh:function(){this.$router.push({path:"/deviceManagement/deviceChannel",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},s=u,d=n("2877"),p=Object(d["a"])(s,i,a,!1,null,"35c06a82",null);t["default"]=p.exports},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),l=r.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(o.width,o.height)+"px",r.appendChild(l)),a.type){case"center":l.style.top=o.height/2-l.offsetHeight/2+"px",l.style.left=o.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-o.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-o.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b4823a9"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=l(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,i,a,t);r(l),u<t?o(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"7f67":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加角色")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑角色")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除角色")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"角色ID",prop:"roleId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"角色名称",prop:"roleName",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"描述",prop:"remark",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"所属客户",prop:"deptName",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("ac6a"),n("333d")),r=n("c7a7"),l=n("cc5e"),s=n("ed08"),u={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{},list:[],total:0,defaultSort:{},multipleSelection:[],role:{},roleIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["d"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},addPage:function(){this.$router.push({path:"/system/role/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.role=this.multipleSelection[0],this.$router.push({path:"/system/role/edit",query:{roleId:this.role.roleId}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.roleIds.push(t.roleId)})),Object(l["b"])(this.roleIds).then((function(t){e.getList()})),this.roleIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},refresh:function(){this.$router.push({path:"/system/role",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"758e6a56",null);t["default"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),a.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},cc5e:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/sys/role/info",method:"post",data:{roleId:e}})}function o(e){return Object(i["a"])({url:"/sys/role/add",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/sys/role/edit",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/sys/role/delete",method:"post",data:{ids:e}})}function s(e){return Object(i["a"])({url:"/sys/role/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(){return Object(i["a"])({url:"/sys/role/listAll",method:"post"})}}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b4823a9"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=l(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,i,a,t);r(l),u<t?o(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"7f67":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加角色")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑角色")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除角色")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"角色ID",prop:"roleId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"角色名称",prop:"roleName",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"描述",prop:"remark",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"所属客户",prop:"deptName",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("ac6a"),n("333d")),r=n("c7a7"),l=n("cc5e"),s=n("ed08"),u={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],role:{},roleIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["d"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},addPage:function(){this.$router.push({path:"/system/role/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.role=this.multipleSelection[0],this.$router.push({path:"/system/role/edit",query:{roleId:this.role.roleId}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.roleIds.push(t.roleId)})),Object(l["b"])(this.roleIds).then((function(t){e.getList()})),this.roleIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},refresh:function(){this.$router.push({path:"/system/role",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"79e7dbfe",null);t["default"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),a.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},cc5e:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/sys/role/info",method:"post",data:{roleId:e}})}function o(e){return Object(i["a"])({url:"/sys/role/add",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/sys/role/edit",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/sys/role/delete",method:"post",data:{ids:e}})}function s(e){return Object(i["a"])({url:"/sys/role/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(){return Object(i["a"])({url:"/sys/role/listAll",method:"post"})}}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ab8490a"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"1db2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加部门")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑部门")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除部门")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"部门ID",prop:"deptId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"上级ID",prop:"parentId",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"部门名称",prop:"name",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"可用",prop:"delFlag",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.delFlag;return[n("span",[e._v(e._s(e._f("delFlagValueFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"渠道商号",prop:"distributorNum",width:"100",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"描述",prop:"remark",width:"100",align:"center"}})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("ac6a"),n("333d")),r=n("c7a7"),l=n("fe05"),s=n("ed08"),u={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{delFlagValueFilter:function(e){return-1===e?e="不可用":0===e&&(e="可用"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],dept:{},deptIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["c"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/system/dept",query:this.listQuery})},addPage:function(){this.$router.push({path:"/system/dept/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.dept=this.multipleSelection[0],console.log(this.dept),this.$router.push({path:"/system/dept/edit",query:{dept:this.dept}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.deptIds.push(t.deptId)})),Object(l["b"])(this.deptIds).then((function(t){e.getList()})),this.deptIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"3fcf4482",null);t["default"]=p.exports},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=l(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,i,a,t);r(l),u<t?o(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),a.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return u}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(){return Object(i["a"])({url:"/sys/dept/listAll",method:"post"})}function r(){return Object(i["a"])({url:"/sys/dept/listAllTree",method:"post"})}function l(e){return Object(i["a"])({url:"/sys/dept/add",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/sys/dept/edit",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ab8490a"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"1db2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加部门")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑部门")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除部门")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"部门ID",prop:"deptId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"上级ID",prop:"parentId",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"部门名称",prop:"name",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"可用",prop:"delFlag",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.delFlag;return[n("span",[e._v(e._s(e._f("delFlagValueFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"渠道商号",prop:"distributorNum",width:"100",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"描述",prop:"remark",width:"100",align:"center"}})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("ac6a"),n("333d")),r=n("c7a7"),l=n("fe05"),s=n("ed08"),u={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{delFlagValueFilter:function(e){return-1===e?e="不可用":0===e&&(e="可用"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{},list:[],total:0,defaultSort:{},multipleSelection:[],dept:{},deptIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["c"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/system/dept",query:this.listQuery})},addPage:function(){this.$router.push({path:"/system/dept/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.dept=this.multipleSelection[0],console.log(this.dept),this.$router.push({path:"/system/dept/edit",query:{dept:this.dept}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.deptIds.push(t.deptId)})),Object(l["b"])(this.deptIds).then((function(t){e.getList()})),this.deptIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"78095314",null);t["default"]=p.exports},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=l(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,i,a,t);r(l),u<t?o(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),a.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return u}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(){return Object(i["a"])({url:"/sys/dept/listAll",method:"post"})}function r(){return Object(i["a"])({url:"/sys/dept/listAllTree",method:"post"})}function l(e){return Object(i["a"])({url:"/sys/dept/add",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/sys/dept/edit",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5411756c"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=l(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,i,a,t);o(l),u<t?r(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),l=r.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(o.width,o.height)+"px",r.appendChild(l)),a.type){case"center":l.style.top=o.height/2-l.offsetHeight/2+"px",l.style.left=o.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-o.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-o.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},ffa1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加角色")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑角色")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除角色")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"用户ID",prop:"userId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"用户名",prop:"username",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"email",prop:"email",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"mobile",prop:"mobile",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"可用",prop:"status",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.status;return[n("span",[e._v(e._s(e._f("statusValueFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("ac6a"),n("333d")),o=n("c7a7"),l=n("c24f"),s=n("ed08"),u={components:{Pagination:r["a"]},directives:{waves:o["a"]},filters:{statusValueFilter:function(e){return 0===e?e="禁用":1===e&&(e="正常"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{},list:[],total:0,defaultSort:{},multipleSelection:[],user:{},userIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["g"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},addPage:function(){this.$router.push({path:"/system/user/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.user=this.multipleSelection[0],this.$router.push({path:"/system/user/edit",query:{userId:this.user.userId,username:this.user.username}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.userIds.push(t.userId)})),Object(l["b"])(this.userIds).then((function(t){e.getList()})),this.userIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},refresh:function(){this.$router.push({path:"/system/user",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"33844bd9",null);t["default"]=p.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5411756c"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=l(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,i,a,t);o(l),u<t?r(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),l=r.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(o.width,o.height)+"px",r.appendChild(l)),a.type){case"center":l.style.top=o.height/2-l.offsetHeight/2+"px",l.style.left=o.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-o.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-o.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},ffa1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加角色")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑角色")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除角色")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"用户ID",prop:"userId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"用户名",prop:"username",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"email",prop:"email",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"mobile",prop:"mobile",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"可用",prop:"status",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.status;return[n("span",[e._v(e._s(e._f("statusValueFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("ac6a"),n("333d")),o=n("c7a7"),l=n("c24f"),s=n("ed08"),u={components:{Pagination:r["a"]},directives:{waves:o["a"]},filters:{statusValueFilter:function(e){return 0===e?e="禁用":1===e&&(e="正常"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],user:{},userIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["g"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},addPage:function(){this.$router.push({path:"/system/user/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.user=this.multipleSelection[0],this.$router.push({path:"/system/user/edit",query:{userId:this.user.userId,username:this.user.username}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.userIds.push(t.userId)})),Object(l["b"])(this.userIds).then((function(t){e.getList()})),this.userIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},refresh:function(){this.$router.push({path:"/system/user",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"0c325604",null);t["default"]=p.exports}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c585ee6"],{"3ac7":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"setChannel",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"channelNumsMessage",label:"终端提示文字"}},[n("el-input",{model:{value:e.device.channelNumsMessage,callback:function(t){e.$set(e.device,"channelNumsMessage",t)},expression:"device.channelNumsMessage"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"channelRules",label:"规则"}},[n("el-select",{attrs:{placeholder:"选择"},model:{value:e.device.channelRules,callback:function(t){e.$set(e.device,"channelRules",t)},expression:"device.channelRules"}},[n("el-option",{attrs:{label:"白名单",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"黑名单",value:"1"}})],1)],1),e._v(" "),n("el-transfer",{attrs:{data:e.device.selectChannelNums},model:{value:e.device.channelNums,callback:function(t){e.$set(e.device,"channelNums",t)},expression:"device.channelNums"}}),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},i=[],c=(n("456d"),n("ac6a"),n("96cf"),n("3b8d")),r=n("aa98"),s={channelNumsMessage:"终端提示文字",channelRules:"规则"},u={data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(s[e.field]+"必须填写")):n()};return{loading:!1,device:{selectChannelNums:[],channelNums:[],channelNumsMessage:"",channelRules:"",imeis:[]},rules:{channelNumsMessage:[{validator:e}],channelRules:[{validator:e}]},selectSeriesOptions:[]}},mounted:function(){this.device.imeis=this.$route.query.imeis,this.getFormData(),this.getTransfer()},methods:{getFormData:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.device=[]},getTransfer:function(){var e=this;Object(r["h"])().then((function(t){var n=t.data;n.forEach((function(t){e.device.selectChannelNums.push({key:t.channelId,label:t.channelNum})}))}))},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.setChannel.validate((function(t,n){if(t)Object(r["i"])(e.device).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.setDefault(),e.toDeviceList(),e.loading=!1})).catch((function(){e.loading=!1}));else{var a=n[Object.keys(n)[0]][0].message;e.$message({message:a,type:"error"}),e.loading=!1}})))},toDeviceList:function(){this.$router.push({path:"/deviceManagement/device"})}}},l=u,o=n("2877"),d=Object(o["a"])(l,a,i,!1,null,"de43a3f8",null);t["default"]=d.exports},aa98:function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return c})),n.d(t,"k",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"i",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return o})),n.d(t,"j",(function(){return d})),n.d(t,"h",(function(){return h})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return f}));n("55dd");var a=n("b775");function i(e){return Object(a["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(e){return Object(a["a"])({url:"/device/device/importDevice",method:"post",data:e})}function r(e){return Object(a["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function u(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(e){return Object(a["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function h(){return Object(a["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function v(e){return Object(a["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function f(e){return Object(a["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-77a4bbf0"],{"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return o}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function a(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function o(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},aa98:function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"g",(function(){return a})),n.d(t,"k",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"i",(function(){return o})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"j",(function(){return l})),n.d(t,"h",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return v}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function a(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function o(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function d(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function p(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function f(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function v(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}},f24d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"importDevice",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"deptId",label:"所属部门"}},[n("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"seriesId",label:"所属系列"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.device.seriesId,callback:function(t){e.$set(e.device,"seriesId",t)},expression:"device.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1)],1),e._v(" "),e._l(e.device.imeis,(function(t,i){return n("el-form-item",{key:i,attrs:{label:"第"+(i+1)+"个imei: ",prop:"imeis."+i+".value","label-width":"20"}},[n("el-row",[n("el-col",{attrs:{span:14}},[n("el-input",{model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"imei.value"}})],1),e._v(" "),n("el-col",{attrs:{span:5}},[n("el-button",{on:{click:function(n){return n.preventDefault(),e.removeImeis(t)}}},[e._v("\n 删除\n ")])],1)],1)],1)})),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),n("el-button",{on:{click:e.addImeis}},[e._v("新增imei")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],2)],1)],1)},r=[],a=(n("456d"),n("ac6a"),n("96cf"),n("3b8d")),c=n("fe05"),s=n("7d09"),o=n("aa98"),u={deptId:"部门Id",seriesId:"系列号",imeis:"imeis"},d={data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(u[e.field]+"必须填写")):n()};return{loading:!1,device:{deptIdList:[],seriesIdList:[],imeis:[{value:""}]},rules:{deptId:[{validator:e}],seriesId:[{validator:e}]},options:[],selectSeriesOptions:[],selectDeptParents:[],defaultProps:{children:"children",label:"label"}}},mounted:function(){this.getFormData()},methods:{getFormData:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.selectDeptParent();case 2:return e.next=4,this.selectSeries();case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.device=[]},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.importDevice.validate((function(t,n){if(t){var i=e.device.imeis;e.device.imeis=[],i.forEach((function(t){e.device.imeis.push(t.value)})),Object(o["g"])(e.device).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.setDefault(),e.toDeviceList(),e.loading=!1})).catch((function(t){console.log(t),e.loading=!1}))}else{var r=n[Object.keys(n)[0]][0].message;e.$message({message:r,type:"error"}),e.loading=!1}})))},toDeviceList:function(){this.$router.push({path:"/deviceManagement/device"})},selectSeries:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),selectDeptParent:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["e"])().then((function(e){var n=e.data;t.options=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]},addImeis:function(){this.device.imeis.push({value:""})},removeImeis:function(e){var t=this.device.imeis.indexOf(e);-1!==t&&this.device.imeis.splice(t,1)}}},l=d,p=n("2877"),f=Object(p["a"])(l,i,r,!1,null,"78d0fb6c",null);t["default"]=f.exports},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return u}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function a(){return Object(i["a"])({url:"/sys/dept/listAll",method:"post"})}function c(){return Object(i["a"])({url:"/sys/dept/listAllTree",method:"post"})}function s(e){return Object(i["a"])({url:"/sys/dept/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/sys/dept/edit",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-acf60ff8"],{"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return o}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function a(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function o(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},aa98:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return o}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function a(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function o(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}},bf40:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"importDevice",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"deptId",label:"所属部门"}},[n("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"seriesId",label:"所属系列"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.device.seriesId,callback:function(t){e.$set(e.device,"seriesId",t)},expression:"device.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1)],1),e._v(" "),e._l(e.device.imeis,(function(t,i){return n("el-form-item",{key:i,attrs:{label:"第"+(i+1)+"个imei: ",prop:"imeis."+i+".value","label-width":"20"}},[n("el-row",[n("el-col",{attrs:{span:14}},[n("el-input",{model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"imei.value"}})],1),e._v(" "),n("el-col",{attrs:{span:5}},[n("el-button",{on:{click:function(n){return n.preventDefault(),e.removeImeis(t)}}},[e._v("\n 删除\n ")])],1)],1)],1)})),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),n("el-button",{on:{click:e.addImeis}},[e._v("新增imei")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],2)],1)],1)},r=[],s=(n("456d"),n("ac6a"),n("96cf"),n("3b8d")),a=n("fe05"),c=n("7d09"),o=n("aa98"),u={deptId:"部门Id",seriesId:"系列号",imeis:"imeis"},d={data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(u[e.field]+"必须填写")):n()};return{loading:!1,device:{deptIdList:[],seriesIdList:[],imeis:[{value:""}]},rules:{deptId:[{validator:e}],seriesId:[{validator:e}]},options:[],selectSeriesOptions:[],selectDeptParents:[],defaultProps:{children:"children",label:"label"}}},mounted:function(){this.getFormData()},methods:{getFormData:function(){var e=Object(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.selectDeptParent();case 2:return e.next=4,this.selectSeries();case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.device=[]},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.importDevice.validate((function(t,n){if(t){var i=e.device.imeis;e.device.imeis=[],i.forEach((function(t){e.device.imeis.push(t.value)})),Object(o["c"])(e.device).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.setDefault(),e.toDeviceList(),e.loading=!1})).catch((function(t){console.log(t),e.loading=!1}))}else{var r=n[Object.keys(n)[0]][0].message;e.$message({message:r,type:"error"}),e.loading=!1}})))},toDeviceList:function(){this.$router.push({path:"/deviceManagement/device"})},selectSeries:function(){var e=Object(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(c["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),selectDeptParent:function(){var e=Object(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(a["e"])().then((function(e){var n=e.data;t.options=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]},addImeis:function(){this.device.imeis.push({value:""})},removeImeis:function(e){var t=this.device.imeis.indexOf(e);-1!==t&&this.device.imeis.splice(t,1)}}},l=d,p=n("2877"),f=Object(p["a"])(l,i,r,!1,null,"675253c4",null);t["default"]=f.exports},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return u}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(){return Object(i["a"])({url:"/sys/dept/listAll",method:"post"})}function a(){return Object(i["a"])({url:"/sys/dept/listAllTree",method:"post"})}function c(e){return Object(i["a"])({url:"/sys/dept/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/sys/dept/edit",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e20529e6"],{4983:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"editSeries",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"seriesId",label:"所属系列"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.device.seriesId,callback:function(t){e.$set(e.device,"seriesId",t)},expression:"device.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1)],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},r=[],c=(n("ac6a"),n("456d"),n("96cf"),n("3b8d")),a=n("7d09"),s=n("aa98"),u={seriesId:"选择系列",imeis:"要选择设备"},d={data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(u[e.field]+"必须填写")):n()};return{loading:!1,device:{seriesIdList:[],imeis:[]},rules:{seriesId:[{validator:e}],imeis:[{validator:e}]},selectSeriesOptions:[]}},mounted:function(){this.device.imeis=this.$route.query.imeis,this.getFormData()},methods:{getFormData:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.selectSeries();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.editSeries.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editSeries.validate((function(t,n){if(t)Object(s["k"])(e.device).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.setDefault(),e.toDeviceList(),e.loading=!1})).catch((function(){e.loading=!1}));else{var i=n[Object.keys(n)[0]][0].message;e.$message({message:i,type:"error"}),e.loading=!1}})))},toDeviceList:function(){this.$router.push({path:"/deviceManagement/device"})},selectSeries:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]}}},o=d,l=n("2877"),f=Object(l["a"])(o,i,r,!1,null,"d29db6dc",null);t["default"]=f.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return u}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function a(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function u(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},aa98:function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"g",(function(){return c})),n.d(t,"k",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"i",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return o})),n.d(t,"j",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return p}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function a(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function u(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function f(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function v(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function p(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}}}]);
\ 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:"序号",prop:"logId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"产品系列",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{label:"版本号",prop:"deviceVersion",width:"150",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{label:"日志文件",prop:"logName",width:"150",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{label:"上传时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.createTime;return[i("span",[e._v(e._s(e._f("timeFilter")(a)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"日志大小",prop:"logfileSize",width:"150",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{label:"上传者",prop:"createUsername",width:"150",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{label:"状态",prop:"status",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.status;return[i("span",[e._v(e._s(e._f("statusValueFilter")(a)))])]}}])})],1),e._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,"page-size":"10",page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}}),e._v(" "),i("el-dialog",{attrs:{title:"详情",visible:e.dialogTableVisible},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[i("el-form",{ref:"gridData",attrs:{model:e.gridData,"label-width":"80px"}},[i("el-form-item",{attrs:{label:"IMEI"}},[i("span",[e._v(e._s(e.gridData.logName))])]),e._v(" "),i("el-form-item",{attrs:{label:"系列号"}},[i("span",[e._v(e._s(e.gridData.seriesNum))])]),e._v(" "),i("el-form-item",{attrs:{label:"版本号"}},[i("span",[e._v(e._s(e.gridData.deviceVersion))])]),e._v(" "),i("el-form-item",{attrs:{label:"Bug标题"}},[i("span",[e._v(e._s(e.gridData.logName))])]),e._v(" "),i("el-form-item",{attrs:{label:"Bug时间"}},[i("span",[e._v(e._s(e._f("timeFilter")(e.gridData.createTime)))])]),e._v(" "),i("el-form-item",{attrs:{label:"复现概率"}},[i("span",[e._v(e._s(e.gridData.repetitionProbability)+"%")])]),e._v(" "),i("el-form-item",{attrs:{label:"上传者"}},[i("span",[e._v(e._s(e.gridData.createUsername))])]),e._v(" "),i("el-form-item",{attrs:{label:"复现步骤"}},[i("span",[e._v(e._s(e.gridData.repetitionSteps))])])],1)],1)],1)],1)},n=[],l=(i("ac6a"),i("333d")),o=i("c7a7"),r=i("ed08"),s=(i("55dd"),i("b775"));function c(e){return Object(s["a"])({url:"/remotelog/logfile/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(s["a"])({url:"/remotelog/logfile/delete",method:"post",data:{ids:e}})}function d(e){return Object(s["a"])({url:"/remotelog/logfile/finish",method:"post",data:{logId:e}})}var g=i("5f87"),p={components:{Pagination:l["a"]},directives:{waves:o["a"]},filters:{statusValueFilter:function(e){return-1===e?e="不可用":0===e?e="未处理":1===e&&(e="已处理"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(r["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],logfile:{logId:"",logfileUrl:""},logfileIds:[],dialogTableVisible:!1,gridData:{}}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,i){if(e.path===t.path){var a=Object.assign({},e.query),n=Object.assign({},t.query);JSON.stringify(a)!==JSON.stringify(n)&&this.getList()}i()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,i=e.order;this.sortBy(t,i)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,c(this.listQuery).then((function(t){var i=t.data,a=i.list,n=i.totalCount;e.list=a,e.total=n,e.listLoading=!1}))},addPage:function(){this.$router.push({path:"/deviceManagement/device/importDevice"})},showDetail:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>=2){var e="只能单选";this.$message({message:e,type:"error"})}else this.gridData=this.multipleSelection[0],this.dialogTableVisible=!0;else{var t="必须选一列";this.$message({message:t,type:"error"})}},finishLogStatus:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.logfileIds.push(t.logId)})),d(this.logfileIds).then((function(t){e.getList()}));else{var t="必须选一列";this.$message({message:t,type:"error"})}},downloadLogFile:function(){if(this.multipleSelection.length>=2){var e="只能单选";this.$message({message:e,type:"error"})}else{var t=this.multipleSelection[0],i=t.logfileUrl.substring(t.logfileUrl.lastIndexOf("/")+1,t.logfileUrl.length),a="".concat("http://server.cneeds.com.cn:9000")+"/logFile/logfile/downloadFile/"+t.logId+"/true/"+i,n=new XMLHttpRequest;n.open("GET",a,!0),n.setRequestHeader("Authorization",Object(g["a"])()),n.responseType="blob",n.onload=function(){if(200===this.status){var e=this.response;if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,i);else{var t=document.createElement("a"),a=window.URL?window.URL.createObjectURL(e):window.webkitURL.createObjectURL(e);t.href=a,t.download=i,document.body.appendChild(t),t.click(),window.URL.revokeObjectURL(a)}}},n.send()}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.logfileIds.push(t.logId)})),u(this.logfileIds).then((function(t){e.getList()})),this.logfileIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},refresh:function(){this.$router.push({path:"/remotelog/log",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},f=p,h=i("2877"),m=Object(h["a"])(f,a,n,!1,null,"e5d38fb6",null);t["default"]=m.exports},c7a7:function(e,t,i){"use strict";i("8d41");var a="@@wavesContext";function n(e,t){function i(i){var a=Object.assign({},t.value),n=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},a),l=n.ele;if(l){l.style.position="relative",l.style.overflow="hidden";var o=l.getBoundingClientRect(),r=l.querySelector(".waves-ripple");switch(r?r.className="waves-ripple":(r=document.createElement("span"),r.className="waves-ripple",r.style.height=r.style.width=Math.max(o.width,o.height)+"px",l.appendChild(r)),n.type){case"center":r.style.top=o.height/2-r.offsetHeight/2+"px",r.style.left=o.width/2-r.offsetWidth/2+"px";break;default:r.style.top=(i.pageY-o.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(i.pageX-o.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=n.color,r.className="waves-ripple z-active",!1}}return e[a]?e[a].removeHandle=i:e[a]={removeHandle:i},i}t["a"]={bind:function(e,t){e.addEventListener("click",n(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[a].removeHandle,!1),e.addEventListener("click",n(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[a].removeHandle,!1),e[a]=null,delete e[a]}}}}]);
\ No newline at end of file
(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
...@@ -22,5 +22,7 @@ public interface DeviceChannelService extends IService<DeviceChannelEntity> { ...@@ -22,5 +22,7 @@ public interface DeviceChannelService extends IService<DeviceChannelEntity> {
PageUtils queryPage(Map<String, Object> params); PageUtils queryPage(Map<String, Object> params);
DeviceChannelEntity queryDeviceChannel(String channelNum); DeviceChannelEntity queryDeviceChannel(String channelNum);
List<DeviceChannelEntity> queryDeviceChannelByids(List<Long> deviceIds);
} }
...@@ -3,6 +3,8 @@ package com.mx.cneeds.server.device.service; ...@@ -3,6 +3,8 @@ package com.mx.cneeds.server.device.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.mx.cneeds.server.entity.DeviceInfoChannelEntity; import com.mx.cneeds.server.entity.DeviceInfoChannelEntity;
import java.util.List;
/** /**
* *
* *
...@@ -13,5 +15,6 @@ import com.mx.cneeds.server.entity.DeviceInfoChannelEntity; ...@@ -13,5 +15,6 @@ import com.mx.cneeds.server.entity.DeviceInfoChannelEntity;
public interface DeviceInfoChannelService extends IService<DeviceInfoChannelEntity> { public interface DeviceInfoChannelService extends IService<DeviceInfoChannelEntity> {
List<DeviceInfoChannelEntity> queryDeviceInfoChannelByDeviceId(Long deviceId);
} }
...@@ -23,6 +23,8 @@ public interface DeviceInfoService extends IService<DeviceInfoEntity> { ...@@ -23,6 +23,8 @@ public interface DeviceInfoService extends IService<DeviceInfoEntity> {
DeviceInfoEntity queryDeviceByImei(String imei); DeviceInfoEntity queryDeviceByImei(String imei);
List<DeviceInfoEntity> queryDeviceByImeis(List<String> imeis);
List<DeviceInfoEntity> queryDeviceByIds(Set<Long> ids); List<DeviceInfoEntity> queryDeviceByIds(Set<Long> ids);
} }
...@@ -10,6 +10,7 @@ import com.mx.cneeds.server.device.service.DeviceChannelService; ...@@ -10,6 +10,7 @@ import com.mx.cneeds.server.device.service.DeviceChannelService;
import com.mx.cneeds.server.entity.DeviceChannelEntity; import com.mx.cneeds.server.entity.DeviceChannelEntity;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -33,4 +34,10 @@ public class DeviceChannelServiceImpl extends ServiceImpl<DeviceChannelDao, Devi ...@@ -33,4 +34,10 @@ public class DeviceChannelServiceImpl extends ServiceImpl<DeviceChannelDao, Devi
DeviceChannelEntity channelEntity = getOne(new QueryWrapper<DeviceChannelEntity>().eq("channel_num", channelNum)); DeviceChannelEntity channelEntity = getOne(new QueryWrapper<DeviceChannelEntity>().eq("channel_num", channelNum));
return channelEntity; return channelEntity;
} }
@Override
public List<DeviceChannelEntity> queryDeviceChannelByids(List<Long> deviceIds){
List<DeviceChannelEntity> deviceChannelEntities = getBaseMapper().selectBatchIds(deviceIds);
return deviceChannelEntities;
}
} }
package com.mx.cneeds.server.device.service.impl; package com.mx.cneeds.server.device.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mx.cneeds.server.dao.DeviceInfoChannelDao; import com.mx.cneeds.server.dao.DeviceInfoChannelDao;
import com.mx.cneeds.server.device.service.DeviceInfoChannelService; import com.mx.cneeds.server.device.service.DeviceInfoChannelService;
import com.mx.cneeds.server.entity.DeviceInfoChannelEntity; import com.mx.cneeds.server.entity.DeviceInfoChannelEntity;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
@Service("deviceInfoChannelService") @Service("deviceInfoChannelService")
public class DeviceInfoChannelServiceImpl extends ServiceImpl<DeviceInfoChannelDao, DeviceInfoChannelEntity> implements DeviceInfoChannelService { public class DeviceInfoChannelServiceImpl extends ServiceImpl<DeviceInfoChannelDao, DeviceInfoChannelEntity> implements DeviceInfoChannelService {
@Override
public List<DeviceInfoChannelEntity> queryDeviceInfoChannelByDeviceId(Long deviceId){
List<DeviceInfoChannelEntity> entities = getBaseMapper().
selectList(new QueryWrapper<DeviceInfoChannelEntity>().
eq("device_id", deviceId));
return entities;
}
} }
...@@ -68,6 +68,14 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoDao, DeviceInfo ...@@ -68,6 +68,14 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoDao, DeviceInfo
} }
@Override @Override
public List<DeviceInfoEntity> queryDeviceByImeis(List<String> imeis){
List<DeviceInfoEntity> entities = getBaseMapper().selectList(new QueryWrapper<DeviceInfoEntity>()
.in("imei", imeis));
return entities;
}
@Override
public List<DeviceInfoEntity> queryDeviceByIds(Set<Long> ids){ public List<DeviceInfoEntity> queryDeviceByIds(Set<Long> ids){
List<DeviceInfoEntity> deviceInfoEntities = getBaseMapper().queryDeviceByIds(ids); List<DeviceInfoEntity> deviceInfoEntities = getBaseMapper().queryDeviceByIds(ids);
return deviceInfoEntities; return deviceInfoEntities;
......
...@@ -7,11 +7,12 @@ import com.mx.cneeds.common.result.R; ...@@ -7,11 +7,12 @@ import com.mx.cneeds.common.result.R;
import com.mx.cneeds.common.validator.ValidatorUtils; import com.mx.cneeds.common.validator.ValidatorUtils;
import com.mx.cneeds.server.device.service.DeviceChannelService; import com.mx.cneeds.server.device.service.DeviceChannelService;
import com.mx.cneeds.server.device.service.DeviceInfoChannelService; import com.mx.cneeds.server.device.service.DeviceInfoChannelService;
import com.mx.cneeds.server.device.service.DeviceInfoService;
import com.mx.cneeds.server.entity.DeviceChannelEntity; import com.mx.cneeds.server.entity.DeviceChannelEntity;
import com.mx.cneeds.server.entity.DeviceInfoEntity; import com.mx.cneeds.server.entity.DeviceInfoEntity;
import com.mx.cneeds.server.entity.ProductSeriesEntity;
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.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
...@@ -36,6 +37,8 @@ public class DeviceChannelController { ...@@ -36,6 +37,8 @@ public class DeviceChannelController {
@Autowired @Autowired
private DeviceInfoChannelService deviceInfoChannelService; private DeviceInfoChannelService deviceInfoChannelService;
@Autowired
private DeviceInfoService deviceInfoService;
/** /**
* 列表 * 列表
...@@ -50,6 +53,7 @@ public class DeviceChannelController { ...@@ -50,6 +53,7 @@ public class DeviceChannelController {
BeanUtils.copyProperties(deviceChannelEntity,dto); BeanUtils.copyProperties(deviceChannelEntity,dto);
list.add(dto); list.add(dto);
} }
page.setList(list);
return page; return page;
} }
...@@ -85,7 +89,7 @@ public class DeviceChannelController { ...@@ -85,7 +89,7 @@ public class DeviceChannelController {
} }
/** /**
* 删除 * 删除渠道号
*/ */
@RequestMapping("/delete") @RequestMapping("/delete")
public R delete(@RequestBody Long[] deviceIds){ public R delete(@RequestBody Long[] deviceIds){
...@@ -106,4 +110,33 @@ public class DeviceChannelController { ...@@ -106,4 +110,33 @@ public class DeviceChannelController {
return dto; return dto;
} }
@RequestMapping("/queryDeviceChannelAll")
public List<DeviceChannelDto> queryDeviceChannelAll(){
List<DeviceChannelEntity> deviceChannelEntities = deviceChannelService.list();
List<DeviceChannelDto> deviceChannelDtos = new ArrayList<>();
deviceChannelEntities.forEach(e -> {
DeviceChannelDto dto = new DeviceChannelDto();
BeanUtils.copyProperties(e,dto);
deviceChannelDtos.add(dto);
});
return deviceChannelDtos;
}
/**
* 删除(还原)设置的渠道号
*/
@RequestMapping("/deleteSettingDeviceChannel")
@Transactional(rollbackFor = Exception.class)
public void deleteSettingDeviceChannel(@RequestBody Long deviceId){
DeviceInfoEntity deviceInfoEntity = new DeviceInfoEntity();
deviceInfoEntity.setDeviceId(deviceId);
deviceInfoEntity.setChannelRules(1);
deviceInfoService.updateById(deviceInfoEntity);
HashMap<String, Object> stringObjectHashMap = new HashMap<>();
stringObjectHashMap.put("device_id",deviceId);
deviceInfoChannelService.removeByMap(stringObjectHashMap);
}
} }
...@@ -2,17 +2,23 @@ package com.mx.cneeds.server.device.web; ...@@ -2,17 +2,23 @@ package com.mx.cneeds.server.device.web;
import java.util.*; import java.util.*;
import com.mx.cneeds.common.dto.DeviceChannelDto;
import com.mx.cneeds.common.dto.DeviceInfoDto; import com.mx.cneeds.common.dto.DeviceInfoDto;
import com.mx.cneeds.common.dto.DevicesDto; import com.mx.cneeds.common.dto.DevicesDto;
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.common.validator.ValidatorUtils; import com.mx.cneeds.common.validator.ValidatorUtils;
import com.mx.cneeds.server.device.service.DeviceChannelService;
import com.mx.cneeds.server.device.service.DeviceInfoChannelService;
import com.mx.cneeds.server.device.service.DeviceInfoService; import com.mx.cneeds.server.device.service.DeviceInfoService;
import com.mx.cneeds.server.device.service.ProductSeriesService; import com.mx.cneeds.server.device.service.ProductSeriesService;
import com.mx.cneeds.server.entity.DeviceChannelEntity;
import com.mx.cneeds.server.entity.DeviceInfoChannelEntity;
import com.mx.cneeds.server.entity.DeviceInfoEntity; import com.mx.cneeds.server.entity.DeviceInfoEntity;
import com.mx.cneeds.server.entity.ProductSeriesEntity; import com.mx.cneeds.server.entity.ProductSeriesEntity;
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.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
...@@ -35,6 +41,12 @@ public class DeviceInfoController { ...@@ -35,6 +41,12 @@ public class DeviceInfoController {
private DeviceInfoService deviceInfoService; private DeviceInfoService deviceInfoService;
@Autowired @Autowired
private DeviceChannelService deviceChannelService;
@Autowired
private DeviceInfoChannelService deviceInfoChannelService;
@Autowired
private ProductSeriesService productSeriesService; private ProductSeriesService productSeriesService;
/** /**
...@@ -43,6 +55,32 @@ public class DeviceInfoController { ...@@ -43,6 +55,32 @@ public class DeviceInfoController {
@RequestMapping("/list") @RequestMapping("/list")
public PageUtils list(@RequestParam Map<String, Object> params){ public PageUtils list(@RequestParam Map<String, Object> params){
PageUtils page = deviceInfoService.queryPage(params); PageUtils page = deviceInfoService.queryPage(params);
List<DeviceInfoDto> list = new ArrayList<DeviceInfoDto>();
for (Object entity : page.getList()){
DeviceInfoDto dto = new DeviceInfoDto();
DeviceInfoEntity deviceInfoEntity = (DeviceInfoEntity) entity;
BeanUtils.copyProperties(deviceInfoEntity,dto);
List<DeviceInfoChannelEntity> deviceInfoChannelEntities =
deviceInfoChannelService
.queryDeviceInfoChannelByDeviceId(deviceInfoEntity.getDeviceId());
List<Long> deviceChannelArray = new LinkedList<>();
deviceInfoChannelEntities.forEach( entities -> {
deviceChannelArray.add(entities.getChannelId());
});
if (deviceChannelArray != null && deviceChannelArray.size() != 0){
List<DeviceChannelEntity> deviceChannelEntities = deviceChannelService.queryDeviceChannelByids(deviceChannelArray);
StringBuffer sb = new StringBuffer();
deviceChannelEntities.forEach(entities -> {
sb.append(entities.getChannelNum()+",");
});
dto.setChannelNums(sb.substring(0,sb.length()-1));
}
list.add(dto);
}
page.setList(list);
return page; return page;
} }
...@@ -67,10 +105,29 @@ public class DeviceInfoController { ...@@ -67,10 +105,29 @@ public class DeviceInfoController {
DeviceInfoDto deviceInfoDto = new DeviceInfoDto(); DeviceInfoDto deviceInfoDto = new DeviceInfoDto();
if (deviceInfoEntity != null){ if (deviceInfoEntity != null){
BeanUtils.copyProperties(deviceInfoEntity,deviceInfoDto); BeanUtils.copyProperties(deviceInfoEntity,deviceInfoDto);
if (deviceInfoEntity.getSeriesId()!=null){ if (deviceInfoEntity.getSeriesId()!=null){
ProductSeriesEntity seriesEntity = productSeriesService.queryOne(deviceInfoEntity.getSeriesId()); ProductSeriesEntity seriesEntity = productSeriesService.queryOne(deviceInfoEntity.getSeriesId());
deviceInfoDto.setSeriesNum(seriesEntity.getSeriesNum()); deviceInfoDto.setSeriesNum(seriesEntity.getSeriesNum());
} }
List<DeviceInfoChannelEntity> deviceInfoChannelEntities =
deviceInfoChannelService
.queryDeviceInfoChannelByDeviceId(deviceInfoEntity.getDeviceId());
List<Long> deviceChannelArray = new LinkedList<>();
deviceInfoChannelEntities.forEach( entities -> {
deviceChannelArray.add(entities.getChannelId());
});
if (deviceChannelArray != null && deviceChannelArray.size() != 0){
List<DeviceChannelEntity> deviceChannelEntities = deviceChannelService.queryDeviceChannelByids(deviceChannelArray);
StringBuffer sb = new StringBuffer();
deviceChannelEntities.forEach(entities -> {
sb.append(entities.getChannelNum()+",");
});
deviceInfoDto.setChannelNums(sb.substring(0,sb.length()-1));
}
return deviceInfoDto; return deviceInfoDto;
}else{ }else{
return null; return null;
...@@ -169,20 +226,39 @@ public class DeviceInfoController { ...@@ -169,20 +226,39 @@ public class DeviceInfoController {
* 保存 * 保存
*/ */
@RequestMapping("/updateDeviceChannelBatch") @RequestMapping("/updateDeviceChannelBatch")
@Transactional
public R updateDeviceChannelBatch(@RequestBody DevicesDto devicesDto){ public R updateDeviceChannelBatch(@RequestBody DevicesDto devicesDto){
List<DeviceInfoEntity> deviceInfoEntityList = new LinkedList<>(); List<DeviceInfoEntity> deviceInfoEntityList = new LinkedList<>();
List<DeviceInfoChannelEntity> deviceChannelEntities = new LinkedList<>();
if (devicesDto.getImeis() != null && devicesDto.getImeis().size() != 0) { if (devicesDto.getImeis() != null && devicesDto.getImeis().size() != 0) {
List<DeviceInfoEntity> entities =
deviceInfoService.queryDeviceByImeis(devicesDto.getImeis());
devicesDto.getImeis().forEach(str -> { devicesDto.getImeis().forEach(str -> {
DeviceInfoEntity deviceInfoEntity = new DeviceInfoEntity(); DeviceInfoEntity deviceInfoEntity = new DeviceInfoEntity();
deviceInfoEntity.setImei(str); deviceInfoEntity.setImei(str);
deviceInfoEntity.setChannelNums(devicesDto.getChannelNums());
deviceInfoEntity.setChannelNumsMessage(devicesDto.getChannelNumsMessage()); deviceInfoEntity.setChannelNumsMessage(devicesDto.getChannelNumsMessage());
deviceInfoEntity.setChannelRules(devicesDto.getChannelRules()); deviceInfoEntity.setChannelRules(devicesDto.getChannelRules());
deviceInfoEntityList.add(deviceInfoEntity); deviceInfoEntityList.add(deviceInfoEntity);
devicesDto.getChannelNums().forEach(channelNum -> {
DeviceInfoChannelEntity infoChannel = new DeviceInfoChannelEntity();
entities.forEach(entity -> {
if (entity.getImei().equals(str)){
infoChannel.setDeviceId(entity.getDeviceId());
}
});
infoChannel.setChannelId(channelNum);
deviceChannelEntities.add(infoChannel);
});
}); });
} }
deviceInfoService.updateBatchByImei(deviceInfoEntityList); deviceInfoService.updateBatchByImei(deviceInfoEntityList);
deviceInfoChannelService.saveBatch(deviceChannelEntities);
return R.ok(); return R.ok();
} }
} }
spring: spring:
profiles: profiles:
active: dev active: prod
application: application:
name: cneeds-server-device name: cneeds-server-device
......
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