Commit 0eaf4475 by zzrdark

laster commit

parent b8377e50
......@@ -11,15 +11,97 @@
Target Server Version : 50726
File Encoding : 65001
Date: 18/03/2020 15:13:38
Date: 28/08/2020 16:39:13
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for DATABASECHANGELOG
-- ----------------------------
DROP TABLE IF EXISTS `DATABASECHANGELOG`;
CREATE TABLE `DATABASECHANGELOG` (
`ID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`AUTHOR` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`FILENAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`DATEEXECUTED` datetime(0) NOT NULL,
`ORDEREXECUTED` int(11) NOT NULL,
`EXECTYPE` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`MD5SUM` varchar(35) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`DESCRIPTION` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`COMMENTS` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`TAG` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`LIQUIBASE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`CONTEXTS` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`LABELS` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`DEPLOYMENT_ID` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of DATABASECHANGELOG
-- ----------------------------
INSERT INTO `DATABASECHANGELOG` VALUES ('0', 'zzr', 'classpath:/db/changelog/db_changelog_master.yaml', '2020-08-05 11:30:59', 1, 'EXECUTED', '7:d41d8cd98f00b204e9800998ecf8427e', 'empty', '', NULL, '3.5.4', NULL, NULL, '6598259577');
INSERT INTO `DATABASECHANGELOG` VALUES ('1', 'zzr', 'classpath:/db/changelog/db_changelog_master.yaml', '2020-08-05 16:47:55', 2, 'EXECUTED', '7:5c572d2727d6918931b5ab1164b27091', 'sqlFile', '', NULL, '3.5.4', NULL, NULL, '6617275962');
INSERT INTO `DATABASECHANGELOG` VALUES ('2', 'zzr', 'classpath:/db/changelog/db_changelog_master.yaml', '2020-08-05 20:00:56', 3, 'EXECUTED', '7:b7e9f0dc5146d0523338a3ddb521f22d', 'sqlFile', '', NULL, '3.5.4', NULL, NULL, '6628856806');
INSERT INTO `DATABASECHANGELOG` VALUES ('3', 'zzr', 'classpath:/db/changelog/db_changelog_master.yaml', '2020-08-19 15:35:09', 4, 'EXECUTED', '7:d39175a13627926fc60e67ee81405b9b', 'sqlFile', '', NULL, '3.5.4', NULL, NULL, '7822515543');
-- ----------------------------
-- Table structure for DATABASECHANGELOGLOCK
-- ----------------------------
DROP TABLE IF EXISTS `DATABASECHANGELOGLOCK`;
CREATE TABLE `DATABASECHANGELOGLOCK` (
`ID` int(11) NOT NULL,
`LOCKED` bit(1) NOT NULL,
`LOCKGRANTED` datetime(0) DEFAULT NULL,
`LOCKEDBY` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of DATABASECHANGELOGLOCK
-- ----------------------------
INSERT INTO `DATABASECHANGELOGLOCK` VALUES (1, b'0', NULL, NULL);
-- ----------------------------
-- Table structure for device_car_type
-- ----------------------------
DROP TABLE IF EXISTS `device_car_type`;
CREATE TABLE `device_car_type` (
`car_type_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '车型Id',
`brand` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '品牌',
`car_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '车系',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '介绍',
`update_time` datetime(0) DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`car_type_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of device_car_type
-- ----------------------------
INSERT INTO `device_car_type` VALUES (2, NULL, NULL, NULL, '2020-08-20 05:54:01');
INSERT INTO `device_car_type` VALUES (3, '1111', '111', '1', '2020-08-20 05:54:50');
-- ----------------------------
-- Table structure for device_channel
-- ----------------------------
DROP TABLE IF EXISTS `device_channel`;
CREATE TABLE `device_channel` (
`channel_id` bigint(20) NOT NULL AUTO_INCREMENT,
`channel_num` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '渠道号',
`update_time` datetime(0) DEFAULT NULL COMMENT '更新时间',
`car_type_id` bigint(20) DEFAULT NULL COMMENT '车型Id',
PRIMARY KEY (`channel_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of device_channel
-- ----------------------------
INSERT INTO `device_channel` VALUES (2, '123123', '2020-05-13 02:37:21', NULL);
INSERT INTO `device_channel` VALUES (3, '123123123123123123123', '2020-05-14 03:17:41', NULL);
-- ----------------------------
-- Table structure for device_info
-- 设备信息表
-- ----------------------------
DROP TABLE IF EXISTS `device_info`;
CREATE TABLE `device_info` (
......@@ -27,20 +109,102 @@ CREATE TABLE `device_info` (
`dept_id` bigint(20) DEFAULT NULL,
`imei` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'imei',
`iccid` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT 'iccid',
`status` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '状态0未激活,1已激活',
`active_status` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '状态0未激活,1已激活',
`device_version` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '设备版本',
`product_set` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '产品系列',
`series_id` bigint(20) DEFAULT NULL COMMENT '产品系列',
`create_time` datetime(0) DEFAULT NULL COMMENT '创建时间',
`active_time` datetime(0) DEFAULT NULL COMMENT '激活时间',
`channel_nums` varchar(10000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '渠道号',
`channel_nums_message` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '渠道号提示信息',
`channel_rules` int(255) DEFAULT NULL COMMENT '0:白名单,1:黑名单',
PRIMARY KEY (`device_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备信息' ROW_FORMAT = Dynamic;
`channel_rules` int(255) DEFAULT 1 COMMENT '0:白名单,1:黑名单',
`sn` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT 'sn号',
`ca_certificate_status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '-1' COMMENT 'ca证书状态 -1 未下载,0 已下载 类型:非量产 1 已下载 类型:量产,2 已下载 类型:非量产,未验证 3 已下载 类型:量产,未验证',
`update_time` datetime(0) DEFAULT NULL,
PRIMARY KEY (`device_id`) USING BTREE,
UNIQUE INDEX `IMEI_UNIQUE`(`imei`) USING BTREE COMMENT 'imei唯一'
) ENGINE = InnoDB AUTO_INCREMENT = 65 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备信息' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of device_info
-- ----------------------------
INSERT INTO `device_info` VALUES (1, 1, '123123', NULL, NULL, 'V 2.1.2.12', 3, '2020-03-19 15:28:49', '2020-03-19 15:28:53', '11111', 0, NULL, NULL, NULL);
INSERT INTO `device_info` VALUES (2, 1, '123456', NULL, NULL, 'V 2.1.2.12', 1, '2020-04-16 18:29:05', '2020-04-16 18:29:12', '未设置', 1, NULL, NULL, NULL);
INSERT INTO `device_info` VALUES (24, 4, '201909241012052', '123456', '0', 'V 2.1.2.12', 4, '2020-04-27 21:50:38', NULL, '测试', 0, '123456', '0', NULL);
INSERT INTO `device_info` VALUES (57, 1, '12313123123123', NULL, NULL, NULL, 1, '2020-05-29 03:07:30', NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `device_info` VALUES (58, 1, '12345123123', '123456', '0', NULL, 1, '2020-07-21 04:14:34', NULL, '', 1, NULL, '-1', NULL);
INSERT INTO `device_info` VALUES (59, 1, '11111112312312311111111', '111111', '0', NULL, 1, '2020-07-21 04:14:34', NULL, '', 1, NULL, '-1', NULL);
INSERT INTO `device_info` VALUES (62, 0, '2019092410120521', '123456', '0', NULL, 1, '2020-08-04 02:24:00', NULL, '', 1, NULL, '-1', NULL);
INSERT INTO `device_info` VALUES (63, 0, '1234512312311111111', '111111', '0', NULL, 1, '2020-08-04 02:24:00', NULL, '', 1, NULL, '-1', NULL);
INSERT INTO `device_info` VALUES (64, 0, '1111111231231231111111111', '111111', '0', NULL, 1, '2020-08-04 02:24:00', NULL, '', 1, NULL, '-1', NULL);
-- ----------------------------
-- Table structure for device_info_channel
-- ----------------------------
DROP TABLE IF EXISTS `device_info_channel`;
CREATE TABLE `device_info_channel` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`device_id` bigint(20) DEFAULT NULL,
`channel_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 71 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of device_info_channel
-- ----------------------------
INSERT INTO `device_info_channel` VALUES (63, 1, 2);
INSERT INTO `device_info_channel` VALUES (64, 1, 3);
INSERT INTO `device_info_channel` VALUES (66, 1, 2);
INSERT INTO `device_info_channel` VALUES (67, 1, 2);
INSERT INTO `device_info_channel` VALUES (68, 1, 3);
-- ----------------------------
-- Table structure for device_info_export
-- ----------------------------
DROP TABLE IF EXISTS `device_info_export`;
CREATE TABLE `device_info_export` (
`device_info_export_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '名字',
`filepath` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '路径',
`status` int(10) DEFAULT NULL COMMENT '状态:0未完成,1完成',
`update_time` datetime(0) DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`device_info_export_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of device_info_export
-- ----------------------------
INSERT INTO `device_info_export` VALUES (1, 'zz', NULL, 1, '2020-07-29 15:38:57');
INSERT INTO `device_info_export` VALUES (2, '2020-07-29-16:41:56.xlsx', NULL, -1, '2020-07-29 03:41:56');
INSERT INTO `device_info_export` VALUES (3, '2020-07-29-16-50-31.xlsx', '/cneedsFile/deviceInfoExportFilePath/3695/2020-07-29-16-50-31.xlsx', 1, '2020-07-29 03:50:32');
INSERT INTO `device_info_export` VALUES (7, '2020-08-04-14-40-48.xlsx', '/cneedsFile/deviceInfoExportFilePath/3650/2020-08-04-14-40-48.xlsx', 1, '2020-08-04 01:40:48');
INSERT INTO `device_info_export` VALUES (8, '2020-08-04-14-46-23.xlsx', NULL, -1, '2020-08-04 01:46:24');
-- ----------------------------
-- Table structure for device_link_protocols
-- ----------------------------
DROP TABLE IF EXISTS `device_link_protocols`;
CREATE TABLE `device_link_protocols` (
`link_protocols_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '连接协议Id',
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '连接协议名称',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '介绍',
`update_time` datetime(0) DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`link_protocols_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of device_link_protocols
-- ----------------------------
INSERT INTO `device_link_protocols` VALUES (1, NULL, NULL, '2020-08-20 06:11:42');
INSERT INTO `device_link_protocols` VALUES (2, NULL, NULL, '2020-08-20 06:13:20');
INSERT INTO `device_link_protocols` VALUES (3, NULL, NULL, '2020-08-20 06:13:40');
INSERT INTO `device_link_protocols` VALUES (4, NULL, NULL, '2020-08-20 06:15:42');
INSERT INTO `device_link_protocols` VALUES (5, NULL, NULL, '2020-08-20 06:15:43');
INSERT INTO `device_link_protocols` VALUES (6, NULL, NULL, '2020-08-20 06:16:28');
INSERT INTO `device_link_protocols` VALUES (7, NULL, NULL, '2020-08-20 06:17:24');
INSERT INTO `device_link_protocols` VALUES (8, NULL, NULL, '2020-08-20 06:20:09');
INSERT INTO `device_link_protocols` VALUES (9, '111', '11', '2020-08-20 06:20:56');
-- ----------------------------
-- Table structure for device_log
-- 设备日志表
-- ----------------------------
DROP TABLE IF EXISTS `device_log`;
CREATE TABLE `device_log` (
......@@ -48,20 +212,30 @@ CREATE TABLE `device_log` (
`log_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT 'bug名字',
`create_time` datetime(0) DEFAULT NULL COMMENT '创建时间',
`device_id` bigint(20) DEFAULT NULL COMMENT '设备id',
`status` int(11) DEFAULT NULL COMMENT '情况-1不可用 0未处理,1已查看',
`status` int(11) DEFAULT NULL COMMENT '情况-1不可用 0未处理,1已处理',
`create_username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建人名字',
`user_id` bigint(20) DEFAULT NULL,
`repetition_steps` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '复现步骤',
`logfile_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '日志文件存放路径',
`logfile_size` bigint(20) DEFAULT NULL COMMENT '日志文件大小',
`logfile_status` int(11) DEFAULT NULL COMMENT '日志文件上传状态,-1,失败,0上传中,1完成',
`log_accept_id` varchar (255) DEFAULT NULL COMMENT '移动端日志标识符',
`repetition_probability` int(10) DEFAULT NULL,
`log_accept_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '移动端日志标识符',
`device_version` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '设备版本号',
PRIMARY KEY (`log_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '测试上传的日志表' ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '测试上传的日志表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of device_log
-- ----------------------------
INSERT INTO `device_log` VALUES (1, 'bug', '2020-04-03 15:43:34', 1, 1, 'admin', 1, '1231245', NULL, NULL, NULL, 100, NULL, NULL);
INSERT INTO `device_log` VALUES (6, 'bug标题', '2020-04-24 01:59:23', 1, -1, 'admin', 1, '步骤一 步骤二', '/cneedsFile/LogFilePath/12345123123/mqtt调研.pdf', NULL, NULL, 100, '12345123123', NULL);
INSERT INTO `device_log` VALUES (7, NULL, '2020-04-26 21:29:23', 1, 0, NULL, NULL, NULL, '/cneedsFile/LogFilePath/780758437543/testlog.zip', 0, 1, NULL, '780758437543', NULL);
INSERT INTO `device_log` VALUES (10, NULL, '2020-04-28 03:40:53', 1, -1, NULL, NULL, NULL, '/cneedsFile/LogFilePath/12345123123111123/testlog.zip', 4194304, NULL, NULL, '12345123123111123', NULL);
INSERT INTO `device_log` VALUES (11, 'bug', '2020-04-29 06:31:06', 1, -1, 'admin', 1, 'sdadasdas', NULL, NULL, NULL, 88, '123123123', NULL);
-- ----------------------------
-- Table structure for device_logmedia
-- 设备日志音频文件表
-- ----------------------------
DROP TABLE IF EXISTS `device_logmedia`;
CREATE TABLE `device_logmedia` (
......@@ -69,13 +243,35 @@ CREATE TABLE `device_logmedia` (
`location_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '音频路径',
`log_id` bigint(20) DEFAULT NULL,
`type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '格式',
`file_size` bigint(20) DEFAULT NULL COMMENT '文件大小',
`file_size` bigint(20) DEFAULT NULL,
PRIMARY KEY (`logmedia_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '日志音频表' ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '日志音频表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of device_logmedia
-- ----------------------------
INSERT INTO `device_logmedia` VALUES (4, '/cneedsFile/LogFilePath/12345123123/接口文档.docx', 6, '.docx', NULL);
INSERT INTO `device_logmedia` VALUES (5, '/cneedsFile/LogFilePath/12345123123/接口文档.docx', 6, '.docx', NULL);
INSERT INTO `device_logmedia` VALUES (6, '/cneedsFile/LogFilePath/12345123123/接口文档.docx', 6, '.docx', NULL);
INSERT INTO `device_logmedia` VALUES (7, '/cneedsFile/LogFilePath/12345123123/内存.md', 6, '.md', NULL);
INSERT INTO `device_logmedia` VALUES (8, '/cneedsFile/LogFilePath/12345123123/接口文档.docx', 6, '.docx', NULL);
INSERT INTO `device_logmedia` VALUES (9, '/cneedsFile/LogFilePath/12345123123/内存.md', 6, '.md', NULL);
INSERT INTO `device_logmedia` VALUES (10, '/cneedsFile/LogFilePath/12345123123/接口文档.docx', 6, '.docx', NULL);
INSERT INTO `device_logmedia` VALUES (11, '/cneedsFile/LogFilePath/12345123123111123/file.png', 10, 'png', 627712);
INSERT INTO `device_logmedia` VALUES (12, '/cneedsFile/LogFilePath/12345123123111123/file.png', 10, 'png', 627712);
INSERT INTO `device_logmedia` VALUES (13, '/cneedsFile/LogFilePath/12345123123111123/file.png', 10, 'png', 627712);
INSERT INTO `device_logmedia` VALUES (14, '/cneedsFile/LogFilePath/12345123123111123/file.png', 10, 'png', 627712);
INSERT INTO `device_logmedia` VALUES (15, '/cneedsFile/LogFilePath/12345123123111123/file.png', 10, 'png', 627712);
INSERT INTO `device_logmedia` VALUES (16, '/cneedsFile/LogFilePath/12345123123111123/file.png', 10, 'png', 627712);
INSERT INTO `device_logmedia` VALUES (17, '/cneedsFile/LogFilePath/12345123123111123/file.png', 10, 'png', 627712);
INSERT INTO `device_logmedia` VALUES (18, '/cneedsFile/LogFilePath/12345123123111123/file.png', 10, 'png', 627712);
INSERT INTO `device_logmedia` VALUES (19, '/cneedsFile/LogFilePath/12345123123111123/file.png', 10, 'png', 627712);
INSERT INTO `device_logmedia` VALUES (20, '/cneedsFile/LogFilePath/12345123123111123/20528.txt', 10, 'txt', 20528);
INSERT INTO `device_logmedia` VALUES (21, '/cneedsFile/LogFilePath/12345123123111123/20528.txt', 10, 'txt', 20528);
INSERT INTO `device_logmedia` VALUES (22, '/cneedsFile/LogFilePath/12345123123111123/20528.txt', 10, 'txt', 20528);
-- ----------------------------
-- Table structure for device_logsetting
-- 暂时用不上,设备日志设置信息表
-- ----------------------------
DROP TABLE IF EXISTS `device_logsetting`;
CREATE TABLE `device_logsetting` (
......@@ -87,7 +283,6 @@ CREATE TABLE `device_logsetting` (
-- ----------------------------
-- Table structure for product_series
-- 设备产品系列表
-- ----------------------------
DROP TABLE IF EXISTS `product_series`;
CREATE TABLE `product_series` (
......@@ -95,12 +290,20 @@ CREATE TABLE `product_series` (
`series_num` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '产品系列号',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '产品系列详情',
`create_time` datetime(0) DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`series_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
PRIMARY KEY (`series_id`) USING BTREE,
UNIQUE INDEX `SERIES_NUM_UNIQUE`(`series_num`) USING BTREE COMMENT '系列号唯一'
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of product_series
-- ----------------------------
INSERT INTO `product_series` VALUES (1, '123123', '美行', NULL);
INSERT INTO `product_series` VALUES (3, '1111111', 'test1', '2020-03-23 04:48:52');
INSERT INTO `product_series` VALUES (4, '300468', 'carlife旋钮版标准版', '2020-04-27 21:49:53');
INSERT INTO `product_series` VALUES (5, '12312311111111111', '12312312', '2020-05-12 06:01:59');
-- ----------------------------
-- Table structure for sys_dept
-- 系统-部门(客户)表
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept` (
......@@ -122,10 +325,12 @@ INSERT INTO `sys_dept` VALUES (2, 1, '长沙分公司', 0, NULL, NULL);
INSERT INTO `sys_dept` VALUES (3, 1, '上海分公司', 0, NULL, NULL);
INSERT INTO `sys_dept` VALUES (4, 3, '技术部', 0, NULL, NULL);
INSERT INTO `sys_dept` VALUES (5, 3, '销售部', 0, NULL, NULL);
INSERT INTO `sys_dept` VALUES (8, NULL, NULL, NULL, NULL, '123');
INSERT INTO `sys_dept` VALUES (9, NULL, NULL, NULL, NULL, '123');
INSERT INTO `sys_dept` VALUES (10, NULL, NULL, NULL, NULL, '123');
-- ----------------------------
-- Table structure for sys_func
-- 系统 - 功能表
-- ----------------------------
DROP TABLE IF EXISTS `sys_func`;
CREATE TABLE `sys_func` (
......@@ -137,51 +342,65 @@ CREATE TABLE `sys_func` (
`type` int(11) DEFAULT NULL,
`order_num` int(11) DEFAULT NULL,
PRIMARY KEY (`func_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 36 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '功能表' ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 69 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '功能表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_func
-- ----------------------------
INSERT INTO `sys_func` VALUES (1, 0, '系统管理', NULL, NULL, 0, 0);
INSERT INTO `sys_func` VALUES (2, 1, '用户管理', 'modules/sys/user.html', NULL, 1, 1);
INSERT INTO `sys_func` VALUES (3, 1, '角色管理', 'modules/sys/role.html', NULL, 1, 2);
INSERT INTO `sys_func` VALUES (4, 1, '菜单管理', 'modules/sys/menu.html', NULL, 1, 3);
INSERT INTO `sys_func` VALUES (15, 2, '查看', NULL, 'sys:user:list,sys:user:info', 2, 0);
INSERT INTO `sys_func` VALUES (16, 2, '新增', NULL, 'sys:user:save,sys:role:select', 2, 0);
INSERT INTO `sys_func` VALUES (17, 2, '修改', NULL, 'sys:user:update,sys:role:select', 2, 0);
INSERT INTO `sys_func` VALUES (1, 0, '系统管理', NULL, 'sys', 1, 1);
INSERT INTO `sys_func` VALUES (2, 1, '用户管理', 'modules/sys/user.html', 'sys:user', 1, 1);
INSERT INTO `sys_func` VALUES (3, 1, '角色管理', 'modules/sys/role.html', 'sys:role', 1, 2);
INSERT INTO `sys_func` VALUES (4, 1, '菜单管理', 'modules/sys/menu.html', 'sys:module', 1, 3);
INSERT INTO `sys_func` VALUES (15, 2, '查看', NULL, 'sys:user:list', 2, 0);
INSERT INTO `sys_func` VALUES (16, 2, '新增', NULL, 'sys:user:add', 2, 0);
INSERT INTO `sys_func` VALUES (17, 2, '修改', NULL, 'sys:user:edit', 2, 0);
INSERT INTO `sys_func` VALUES (18, 2, '删除', NULL, 'sys:user:delete', 2, 0);
INSERT INTO `sys_func` VALUES (19, 3, '查看', NULL, 'sys:role:list,sys:role:info', 2, 0);
INSERT INTO `sys_func` VALUES (20, 3, '新增', NULL, 'sys:role:save,sys:menu:perms', 2, 0);
INSERT INTO `sys_func` VALUES (21, 3, '修改', NULL, 'sys:role:update,sys:menu:perms', 2, 0);
INSERT INTO `sys_func` VALUES (19, 3, '查看', NULL, 'sys:role:list', 2, 0);
INSERT INTO `sys_func` VALUES (20, 3, '新增', NULL, 'sys:role:add', 2, 0);
INSERT INTO `sys_func` VALUES (21, 3, '修改', NULL, 'sys:role:edit', 2, 0);
INSERT INTO `sys_func` VALUES (22, 3, '删除', NULL, 'sys:role:delete', 2, 0);
INSERT INTO `sys_func` VALUES (23, 4, '查看', NULL, 'sys:menu:list,sys:menu:info', 2, 0);
INSERT INTO `sys_func` VALUES (24, 4, '新增', NULL, 'sys:menu:save,sys:menu:select', 2, 0);
INSERT INTO `sys_func` VALUES (25, 4, '修改', NULL, 'sys:menu:update,sys:menu:select', 2, 0);
INSERT INTO `sys_func` VALUES (26, 4, '删除', NULL, 'sys:menu:delete', 2, 0);
INSERT INTO `sys_func` VALUES (31, 1, '部门管理', 'modules/sys/dept.html', NULL, 1, 1);
INSERT INTO `sys_func` VALUES (32, 31, '查看', NULL, 'sys:dept:list,sys:dept:info', 2, 0);
INSERT INTO `sys_func` VALUES (33, 31, '新增', NULL, 'sys:dept:save,sys:dept:select', 2, 0);
INSERT INTO `sys_func` VALUES (34, 31, '修改', NULL, 'sys:dept:update,sys:dept:select', 2, 0);
INSERT INTO `sys_func` VALUES (23, 4, '查看', NULL, 'sys:module:list', 2, 0);
INSERT INTO `sys_func` VALUES (31, 1, '部门管理', 'modules/sys/dept.html', 'sys:dept', 1, 1);
INSERT INTO `sys_func` VALUES (32, 31, '查看', NULL, 'sys:dept:list', 2, 0);
INSERT INTO `sys_func` VALUES (33, 31, '新增', NULL, 'sys:dept:add', 2, 0);
INSERT INTO `sys_func` VALUES (34, 31, '修改', NULL, 'sys:dept:edit', 2, 0);
INSERT INTO `sys_func` VALUES (35, 31, '删除', NULL, 'sys:dept:delete', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (36, 1, '产品系列管理', NULL, 'configManagement:productSeries:list', 1, 1);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (37, 36, '添加产品系列', NULL, 'configManagement:productSeries:add', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (38, 36, '修改产品系列', NULL, 'configManagement:productSeries:edit', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (39, 1, '渠道号管理', NULL, 'configManagement:deviceChannel:list', 1, 2);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (40, 39, '添加渠道号', NULL, 'configManagement:deviceChannel:add', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (41, 39, '修改渠道号', NULL, 'configManagement:deviceChannel:edit', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (42, 1, '设备控制,设备渠道号统计', NULL, 'deviceManagement:device:list', 1, 1);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (43, 42, '导入设备', NULL, 'deviceManagement:device:add', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (44, 42, '变更产品系列,适配配置,批量配置', NULL, 'deviceManagement:device:edit', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (46, 1, '日志列表', NULL, 'remotelog:logfile:list', 1, 1);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (47, 36, '删除产品系列', NULL, 'configManagement:productSeries:delete', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (48, 42, '删除设备', NULL, 'deviceManagement:device:delete', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (49, 39, '删除渠道号', NULL, 'configManagement:deviceChannel:delete', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (50, 46, '修改日志', NULL, 'remotelog:logfile:edit', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (51, 46, '删除日志', NULL, 'remotelog:logfile:delete', 2, 0);
INSERT INTO `sys_func` VALUES (36, 0, '配置管理', NULL, 'configManagement', 1, 1);
INSERT INTO `sys_func` VALUES (37, 36, '产品系列管理', NULL, 'configManagement:productSeries', 1, 1);
INSERT INTO `sys_func` VALUES (38, 37, '查询产品系列', NULL, 'configManagement:productSeries:list', 2, 0);
INSERT INTO `sys_func` VALUES (39, 37, '添加产品系列', NULL, 'configManagement:productSeries:add', 2, 0);
INSERT INTO `sys_func` VALUES (40, 37, '修改产品系列', NULL, 'configManagement:productSeries:edit', 2, 0);
INSERT INTO `sys_func` VALUES (41, 37, '删除产品系列', NULL, 'configManagement:productSeries:delete', 2, 0);
INSERT INTO `sys_func` VALUES (42, 36, '渠道号管理', NULL, 'configManagement:deviceChannel', 1, 1);
INSERT INTO `sys_func` VALUES (43, 42, '查询渠道号', NULL, 'configManagement:deviceChannel:list', 2, 0);
INSERT INTO `sys_func` VALUES (44, 42, '添加渠道号', NULL, 'configManagement:deviceChannel:add', 2, 0);
INSERT INTO `sys_func` VALUES (45, 42, '修改渠道号', NULL, 'configManagement:deviceChannel:edit', 2, 0);
INSERT INTO `sys_func` VALUES (46, 42, '删除渠道号', NULL, 'configManagement:deviceChannel:delete', 2, 0);
INSERT INTO `sys_func` VALUES (47, 0, '设备控制', NULL, 'deviceManagement', 1, 1);
INSERT INTO `sys_func` VALUES (48, 47, '设备管理', NULL, 'deviceManagement:device', 1, 1);
INSERT INTO `sys_func` VALUES (49, 48, '查询设备', NULL, 'deviceManagement:device:list', 1, 1);
INSERT INTO `sys_func` VALUES (50, 48, '导入设备,批量导入', NULL, 'deviceManagement:device:add', 2, 0);
INSERT INTO `sys_func` VALUES (51, 48, '适配配置,批量配置', NULL, 'deviceManagement:device:edit', 2, 0);
INSERT INTO `sys_func` VALUES (52, 48, '删除设备', NULL, 'deviceManagement:device:delete', 2, 0);
INSERT INTO `sys_func` VALUES (53, 47, '渠道号查询,渠道号配置', NULL, 'deviceManagement:deviceChannel', 1, 1);
INSERT INTO `sys_func` VALUES (54, 53, '查询渠道号查询,渠道号配置', NULL, 'deviceManagement:deviceChannel:list', 2, 0);
INSERT INTO `sys_func` VALUES (55, 0, '远程日志', NULL, 'remotelog', 1, 1);
INSERT INTO `sys_func` VALUES (56, 55, '日志列表', NULL, 'remotelog:logfile', 1, 1);
INSERT INTO `sys_func` VALUES (57, 56, '查询日志', NULL, 'remotelog:logfile:list', 2, 0);
INSERT INTO `sys_func` VALUES (58, 56, '修改日志', NULL, 'remotelog:logfile:edit', 2, 0);
INSERT INTO `sys_func` VALUES (59, 56, '删除日志', NULL, 'remotelog:logfile:delete', 2, 0);
INSERT INTO `sys_func` VALUES (60, 55, '设备控制', NULL, 'remotelog:controlDevice', 1, 1);
INSERT INTO `sys_func` VALUES (61, 60, '查询状态', NULL, 'remotelog:controlDevice:list', 2, 0);
INSERT INTO `sys_func` VALUES (62, 0, '设备统计', NULL, 'deviceStatistical', 1, 1);
INSERT INTO `sys_func` VALUES (63, 62, '设备信息', NULL, 'deviceStatistical:deviceInfo', 1, 1);
INSERT INTO `sys_func` VALUES (64, 63, '查询设备信息', NULL, 'deviceStatistical:deviceInfo:list', 2, 0);
INSERT INTO `sys_func` VALUES (65, 62, '设备信息导出', NULL, 'deviceStatistical:deviceInfoExport', 1, 1);
INSERT INTO `sys_func` VALUES (66, 65, '查询设备信息导出(默认拥有下载导出权限)', NULL, 'deviceStatistical:deviceInfoExport:list', 1, 1);
INSERT INTO `sys_func` VALUES (67, 53, '修改渠道号配置', NULL, 'deviceManagement:deviceChannel:edit', 2, 0);
INSERT INTO `sys_func` VALUES (68, 53, '删除渠道号查询,渠道号配置', NULL, 'deviceManagement:deviceChannel:delete', 2, 0);
-- ----------------------------
-- Table structure for sys_role
-- 系统 - 角色表
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
......@@ -191,17 +410,16 @@ CREATE TABLE `sys_role` (
`dept_id` bigint(20) DEFAULT NULL COMMENT '部门Id',
`create_time` datetime(0) DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 27 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色表' ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (1, '管理员', '描述', 1, '2020-03-10 12:06:37');
INSERT INTO `sys_role` VALUES (26, 'zzzzzzzzzz', 'zzzzzzzzzzzzzzz', 0, '2020-03-13 04:51:20');
INSERT INTO `sys_role` VALUES (27, 'zzr123123', '123123123123', 1, '2020-03-18 04:23:32');
-- ----------------------------
-- Table structure for sys_role_dept
-- 系统 - 角色部门关系表
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept` (
......@@ -209,18 +427,23 @@ CREATE TABLE `sys_role_dept` (
`role_id` bigint(20) DEFAULT NULL COMMENT '角色id',
`dept_id` bigint(20) DEFAULT NULL COMMENT '部门id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 466 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门与角色映射表' ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 484 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门与角色映射表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------
INSERT INTO `sys_role_dept` VALUES (463, 26, 3);
INSERT INTO `sys_role_dept` VALUES (464, 26, 4);
INSERT INTO `sys_role_dept` VALUES (465, 26, 5);
INSERT INTO `sys_role_dept` VALUES (469, 27, 3);
INSERT INTO `sys_role_dept` VALUES (470, 27, 4);
INSERT INTO `sys_role_dept` VALUES (471, 27, 5);
INSERT INTO `sys_role_dept` VALUES (478, 1, 0);
INSERT INTO `sys_role_dept` VALUES (479, 1, 1);
INSERT INTO `sys_role_dept` VALUES (480, 1, 2);
INSERT INTO `sys_role_dept` VALUES (481, 1, 3);
INSERT INTO `sys_role_dept` VALUES (482, 1, 4);
INSERT INTO `sys_role_dept` VALUES (483, 1, 5);
-- ----------------------------
-- Table structure for sys_role_func
-- 系统 - 角色功能表
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_func`;
CREATE TABLE `sys_role_func` (
......@@ -228,20 +451,10 @@ CREATE TABLE `sys_role_func` (
`role_id` bigint(20) DEFAULT NULL COMMENT '角色Id',
`func_id` bigint(20) DEFAULT NULL COMMENT '功能Id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 489 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '功能与角色映射表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role_func
-- ----------------------------
INSERT INTO `sys_role_func` VALUES (484, 26, 2);
INSERT INTO `sys_role_func` VALUES (485, 26, 15);
INSERT INTO `sys_role_func` VALUES (486, 26, 16);
INSERT INTO `sys_role_func` VALUES (487, 26, 17);
INSERT INTO `sys_role_func` VALUES (488, 26, 18);
) ENGINE = InnoDB AUTO_INCREMENT = 546 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '功能与角色映射表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for sys_user
-- 系统 - 用户(账户)表
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
......@@ -249,37 +462,22 @@ CREATE TABLE `sys_user` (
`username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户名',
`password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码',
`email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '邮箱',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '简介',
`mobile` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '手机',
`status` int(11) DEFAULT NULL COMMENT '账户状态 0:禁用 1:正常',
`status` int(11) DEFAULT NULL COMMENT '账户状态',
`create_time` date DEFAULT NULL COMMENT '创建时间',
`dept_id` bigint(20) DEFAULT NULL COMMENT '部门id',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户信息表' ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 27 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (0, 'admin', '$2a$10$/uKcZ27sVZSWRRzSx9PEQ.ggLriOfc6AqILEyOYauVQQt5akh4YEm', 'YzcmCZNvbXocrsz9dm8e', 'root@cneeds.com.cn', '13612345678', 1, '2016-11-11', 0);
-- ----------------------------
-- Table structure for sys_user_role
-- 系统 - 用户角色关系表
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
`role_id` bigint(20) DEFAULT NULL COMMENT '角色id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色用户映射表' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
INSERT INTO `sys_user` VALUES (0, 'admin', '$2a$10$e.YpBjJEys4fd9fnnZGX..4MXR37Ud9QhvHi1QWXZ8qxWhO6lmUya', 'root@cneeds.com.cn', '123456', 1, '2020-07-21', 0, '');
INSERT INTO `sys_user` VALUES (25, 'zzr', '$2a$10$GIh4www8MdelsCPv.eic2.ns.aIR.c6ky16EFB7qwsxDJ52.62pYq', '12345', '123456', 1, '2020-06-05', 1, '123456');
-- ----------------------------
-- Table structure for sys_user_dept
-- 系统 - 用户部门关系表
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_dept`;
CREATE TABLE `sys_user_dept` (
......@@ -287,12 +485,23 @@ CREATE TABLE `sys_user_dept` (
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
`dept_id` bigint(20) DEFAULT NULL COMMENT '部门id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 466 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门与角色映射表' ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 576 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门与角色映射表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user_dept
-- ----------------------------
INSERT INTO `sys_user_dept` VALUES (529, 1, 3);
INSERT INTO `sys_user_dept` VALUES (530, 1, 4);
INSERT INTO `sys_user_dept` VALUES (531, 1, 5);
INSERT INTO `sys_user_dept` VALUES (570, 25, 0);
INSERT INTO `sys_user_dept` VALUES (571, 25, 1);
INSERT INTO `sys_user_dept` VALUES (572, 25, 2);
INSERT INTO `sys_user_dept` VALUES (573, 25, 3);
INSERT INTO `sys_user_dept` VALUES (574, 25, 4);
INSERT INTO `sys_user_dept` VALUES (575, 25, 5);
-- ----------------------------
-- Table structure for sys_user_func
-- 系统 - 用户功能关系表
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_func`;
CREATE TABLE `sys_user_func` (
......@@ -300,80 +509,63 @@ CREATE TABLE `sys_user_func` (
`user_id` bigint(20) DEFAULT NULL COMMENT '用户Id',
`func_id` bigint(20) DEFAULT NULL COMMENT '功能Id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 489 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '功能与角色映射表' ROW_FORMAT = Dynamic;
-- 2020-05-06 加唯一索引
ALTER TABLE `cneeds_server`.`device_info`
ADD UNIQUE INDEX `IMEI_UNIQUE`(`imei`) USING BTREE COMMENT 'imei唯一';
ALTER TABLE `cneeds_server`.`product_series`
ADD UNIQUE INDEX `SERIES_NUM_UNIQUE`(`series_num`) USING BTREE COMMENT '系列号唯一';
) ENGINE = InnoDB AUTO_INCREMENT = 833 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '功能与角色映射表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user_func
-- ----------------------------
INSERT INTO `sys_user_func` VALUES (805, 25, 1);
INSERT INTO `sys_user_func` VALUES (806, 25, 2);
INSERT INTO `sys_user_func` VALUES (807, 25, 15);
INSERT INTO `sys_user_func` VALUES (808, 25, 3);
INSERT INTO `sys_user_func` VALUES (809, 25, 19);
INSERT INTO `sys_user_func` VALUES (810, 25, 4);
INSERT INTO `sys_user_func` VALUES (811, 25, 23);
INSERT INTO `sys_user_func` VALUES (812, 25, 31);
INSERT INTO `sys_user_func` VALUES (813, 25, 32);
INSERT INTO `sys_user_func` VALUES (814, 25, 36);
INSERT INTO `sys_user_func` VALUES (815, 25, 37);
INSERT INTO `sys_user_func` VALUES (816, 25, 38);
INSERT INTO `sys_user_func` VALUES (817, 25, 43);
INSERT INTO `sys_user_func` VALUES (818, 25, 47);
INSERT INTO `sys_user_func` VALUES (819, 25, 48);
INSERT INTO `sys_user_func` VALUES (820, 25, 49);
INSERT INTO `sys_user_func` VALUES (821, 25, 53);
INSERT INTO `sys_user_func` VALUES (822, 25, 54);
INSERT INTO `sys_user_func` VALUES (823, 25, 55);
INSERT INTO `sys_user_func` VALUES (824, 25, 56);
INSERT INTO `sys_user_func` VALUES (825, 25, 57);
INSERT INTO `sys_user_func` VALUES (826, 25, 60);
INSERT INTO `sys_user_func` VALUES (827, 25, 61);
INSERT INTO `sys_user_func` VALUES (828, 25, 62);
INSERT INTO `sys_user_func` VALUES (829, 25, 63);
INSERT INTO `sys_user_func` VALUES (830, 25, 64);
INSERT INTO `sys_user_func` VALUES (831, 25, 65);
INSERT INTO `sys_user_func` VALUES (832, 25, 66);
-- 202-05-09
-- ----------------------------
-- Table structure for device_channel
-- 渠道号表
-- Table structure for sys_user_role
-- ----------------------------
CREATE TABLE `device_channel` (
`channel_id` bigint(20) NOT NULL AUTO_INCREMENT,
`channel_num` varchar(255) DEFAULT NULL COMMENT '渠道号',
`brand` varchar(255) DEFAULT NULL COMMENT '品牌',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`channel_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
`role_id` bigint(20) DEFAULT NULL COMMENT '权限id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色用户映射表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for device_info_channel
-- 设备信息 - 渠道号 映射表
-- Records of sys_user_role
-- ----------------------------
CREATE TABLE `device_info_channel` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`device_id` bigint(20) DEFAULT NULL,
`channel_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `sys_user_role` VALUES (1, 2, 1);
INSERT INTO `sys_user_role` VALUES (4, 5, 1);
INSERT INTO `sys_user_role` VALUES (5, 6, 1);
INSERT INTO `sys_user_role` VALUES (6, 7, 1);
INSERT INTO `sys_user_role` VALUES (7, 8, 1);
INSERT INTO `sys_user_role` VALUES (8, 9, 1);
INSERT INTO `sys_user_role` VALUES (13, 14, 1);
INSERT INTO `sys_user_role` VALUES (14, 15, 1);
INSERT INTO `sys_user_role` VALUES (15, 16, 1);
INSERT INTO `sys_user_role` VALUES (24, 25, 1);
-- 2020-05-13
ALTER TABLE `cneeds_server`.`device_info`
DROP COLUMN `channel_nums`;
-- 2020-05-14
ALTER TABLE `cneeds_server`.`device_log`
ADD COLUMN `device_version` varchar(255) COMMENT '设备版本号' AFTER `log_accept_id`;
-- 2020-06-29
ALTER TABLE `cneeds_server`.`device_info`
ADD COLUMN `sn` varchar(255) COMMENT 'sn号' AFTER `channel_rules`,
ADD COLUMN `ca_certificate_status` varchar(255) COMMENT 'ca证书状态 -1 未下载,0 已下载 类型:非量产 1 已下载 类型:量产,2 已下载 类型:非量产,未验证 3 已下载 类型:量产,未验证' AFTER `sn`;
ALTER TABLE `cneeds_server`.`device_info`
CHANGE COLUMN `status` `active_status` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci
DEFAULT NULL COMMENT '状态0未激活,1已激活' AFTER `iccid`;
-- 2020-07-14
ALTER TABLE `cneeds_server`.`device_info`
MODIFY COLUMN `active_status` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT 0 COMMENT '状态0未激活,1已激活' AFTER `iccid`,
MODIFY COLUMN `channel_rules` int(255) DEFAULT 1 COMMENT '0:白名单,1:黑名单' AFTER `channel_nums_message`,
MODIFY COLUMN `ca_certificate_status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT -1 COMMENT 'ca证书状态 -1 未下载,0 已下载 类型:非量产 1 已下载 类型:量产,2 已下载 类型:非量产,未验证 3 已下载 类型:量产,未验证' AFTER `sn`;
-- 2020-07-27
CREATE TABLE `device_info_export` (
`device_info_export_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` varchar(255) DEFAULT NULL COMMENT '名字',
`filepath` varchar(255) DEFAULT NULL COMMENT '路径',
`status` int(10) DEFAULT NULL COMMENT '状态:0未完成,1完成',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`device_info_export_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2020-07-31
ALTER TABLE `cneeds_server`.`device_info_export`
ADD UNIQUE INDEX `Name_Unique`(`name`) USING HASH;
ALTER TABLE `cneeds_server`.`device_info`
ADD COLUMN `update_time` datetime(0) COMMENT '更新时间状态' AFTER `ca_certificate_status`;
\ No newline at end of file
SET FOREIGN_KEY_CHECKS = 1;
/*
Navicat Premium Data Transfer
Source Server : linux_testmysql
Source Server Type : MySQL
Source Server Version : 50726
Source Host : 192.168.2.244:3306
Source Schema : cneeds_server
Target Server Type : MySQL
Target Server Version : 50726
File Encoding : 65001
Date: 18/03/2020 15:13:38
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for device_info
-- 设备信息表
-- ----------------------------
DROP TABLE IF EXISTS `device_info`;
CREATE TABLE `device_info` (
`device_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '设备id',
`dept_id` bigint(20) DEFAULT NULL,
`imei` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'imei',
`iccid` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT 'iccid',
`status` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '状态0未激活,1已激活',
`device_version` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '设备版本',
`product_set` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '产品系列',
`create_time` datetime(0) DEFAULT NULL COMMENT '创建时间',
`active_time` datetime(0) DEFAULT NULL COMMENT '激活时间',
`channel_nums` varchar(10000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '渠道号',
`channel_nums_message` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '渠道号提示信息',
`channel_rules` int(255) DEFAULT NULL COMMENT '0:白名单,1:黑名单',
PRIMARY KEY (`device_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备信息' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for device_log
-- 设备日志表
-- ----------------------------
DROP TABLE IF EXISTS `device_log`;
CREATE TABLE `device_log` (
`log_id` bigint(20) NOT NULL AUTO_INCREMENT,
`log_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT 'bug名字',
`create_time` datetime(0) DEFAULT NULL COMMENT '创建时间',
`device_id` bigint(20) DEFAULT NULL COMMENT '设备id',
`status` int(11) DEFAULT NULL COMMENT '情况-1不可用 0未处理,1已查看',
`create_username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建人名字',
`user_id` bigint(20) DEFAULT NULL,
`repetition_steps` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '复现步骤',
`logfile_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '日志文件存放路径',
`logfile_size` bigint(20) DEFAULT NULL COMMENT '日志文件大小',
`logfile_status` int(11) DEFAULT NULL COMMENT '日志文件上传状态,-1,失败,0上传中,1完成',
`log_accept_id` varchar (255) DEFAULT NULL COMMENT '移动端日志标识符',
PRIMARY KEY (`log_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '测试上传的日志表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for device_logmedia
-- 设备日志音频文件表
-- ----------------------------
DROP TABLE IF EXISTS `device_logmedia`;
CREATE TABLE `device_logmedia` (
`logmedia_id` bigint(20) NOT NULL AUTO_INCREMENT,
`location_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '音频路径',
`log_id` bigint(20) DEFAULT NULL,
`type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '格式',
`file_size` bigint(20) DEFAULT NULL COMMENT '文件大小',
PRIMARY KEY (`logmedia_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '日志音频表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for device_logsetting
-- 暂时用不上,设备日志设置信息表
-- ----------------------------
DROP TABLE IF EXISTS `device_logsetting`;
CREATE TABLE `device_logsetting` (
`logsetting_id` bigint(20) NOT NULL AUTO_INCREMENT,
`log_size` bigint(20) DEFAULT NULL COMMENT '日志容量(MB)',
`device_id` bigint(20) DEFAULT NULL COMMENT '设备Id',
PRIMARY KEY (`logsetting_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备日志设置' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for product_series
-- 设备产品系列表
-- ----------------------------
DROP TABLE IF EXISTS `product_series`;
CREATE TABLE `product_series` (
`series_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '系列id',
`series_num` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '产品系列号',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '产品系列详情',
`create_time` datetime(0) DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`series_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for sys_dept
-- 系统-部门(客户)表
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept` (
`dept_id` bigint(20) NOT NULL AUTO_INCREMENT,
`parent_id` bigint(20) DEFAULT NULL COMMENT '上级部门ID,一级部门为0',
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '部门名称',
`del_flag` int(11) DEFAULT NULL COMMENT '是否删除 -1:已删除 0:正常',
`distributor_num` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '渠道商号',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '描述',
PRIMARY KEY (`dept_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_dept
-- ----------------------------
INSERT INTO `sys_dept` VALUES (0, NULL, '根', 0, NULL, NULL);
INSERT INTO `sys_dept` VALUES (1, 0, '美行集团', 0, NULL, NULL);
INSERT INTO `sys_dept` VALUES (2, 1, '长沙分公司', 0, NULL, NULL);
INSERT INTO `sys_dept` VALUES (3, 1, '上海分公司', 0, NULL, NULL);
INSERT INTO `sys_dept` VALUES (4, 3, '技术部', 0, NULL, NULL);
INSERT INTO `sys_dept` VALUES (5, 3, '销售部', 0, NULL, NULL);
-- ----------------------------
-- Table structure for sys_func
-- 系统 - 功能表
-- ----------------------------
DROP TABLE IF EXISTS `sys_func`;
CREATE TABLE `sys_func` (
`func_id` bigint(20) NOT NULL AUTO_INCREMENT,
`parent_id` bigint(20) NOT NULL,
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`url` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`perms` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`type` int(11) DEFAULT NULL,
`order_num` int(11) DEFAULT NULL,
PRIMARY KEY (`func_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 36 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '功能表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_func
-- ----------------------------
INSERT INTO `sys_func` VALUES (1, 0, '系统管理', NULL, NULL, 0, 0);
INSERT INTO `sys_func` VALUES (2, 1, '用户管理', 'modules/sys/user.html', NULL, 1, 1);
INSERT INTO `sys_func` VALUES (3, 1, '角色管理', 'modules/sys/role.html', NULL, 1, 2);
INSERT INTO `sys_func` VALUES (4, 1, '菜单管理', 'modules/sys/menu.html', NULL, 1, 3);
INSERT INTO `sys_func` VALUES (15, 2, '查看', NULL, 'sys:user:list,sys:user:info', 2, 0);
INSERT INTO `sys_func` VALUES (16, 2, '新增', NULL, 'sys:user:save,sys:role:select', 2, 0);
INSERT INTO `sys_func` VALUES (17, 2, '修改', NULL, 'sys:user:update,sys:role:select', 2, 0);
INSERT INTO `sys_func` VALUES (18, 2, '删除', NULL, 'sys:user:delete', 2, 0);
INSERT INTO `sys_func` VALUES (19, 3, '查看', NULL, 'sys:role:list,sys:role:info', 2, 0);
INSERT INTO `sys_func` VALUES (20, 3, '新增', NULL, 'sys:role:save,sys:menu:perms', 2, 0);
INSERT INTO `sys_func` VALUES (21, 3, '修改', NULL, 'sys:role:update,sys:menu:perms', 2, 0);
INSERT INTO `sys_func` VALUES (22, 3, '删除', NULL, 'sys:role:delete', 2, 0);
INSERT INTO `sys_func` VALUES (23, 4, '查看', NULL, 'sys:menu:list,sys:menu:info', 2, 0);
INSERT INTO `sys_func` VALUES (24, 4, '新增', NULL, 'sys:menu:save,sys:menu:select', 2, 0);
INSERT INTO `sys_func` VALUES (25, 4, '修改', NULL, 'sys:menu:update,sys:menu:select', 2, 0);
INSERT INTO `sys_func` VALUES (26, 4, '删除', NULL, 'sys:menu:delete', 2, 0);
INSERT INTO `sys_func` VALUES (31, 1, '部门管理', 'modules/sys/dept.html', NULL, 1, 1);
INSERT INTO `sys_func` VALUES (32, 31, '查看', NULL, 'sys:dept:list,sys:dept:info', 2, 0);
INSERT INTO `sys_func` VALUES (33, 31, '新增', NULL, 'sys:dept:save,sys:dept:select', 2, 0);
INSERT INTO `sys_func` VALUES (34, 31, '修改', NULL, 'sys:dept:update,sys:dept:select', 2, 0);
INSERT INTO `sys_func` VALUES (35, 31, '删除', NULL, 'sys:dept:delete', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (36, 1, '产品系列管理', NULL, 'configManagement:productSeries:list', 1, 1);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (37, 36, '添加产品系列', NULL, 'configManagement:productSeries:add', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (38, 36, '修改产品系列', NULL, 'configManagement:productSeries:edit', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (39, 1, '渠道号管理', NULL, 'configManagement:deviceChannel:list', 1, 2);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (40, 39, '添加渠道号', NULL, 'configManagement:deviceChannel:add', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (41, 39, '修改渠道号', NULL, 'configManagement:deviceChannel:edit', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (42, 1, '设备控制,设备渠道号统计', NULL, 'deviceManagement:device:list', 1, 1);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (43, 42, '导入设备', NULL, 'deviceManagement:device:add', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (44, 42, '变更产品系列,适配配置,批量配置', NULL, 'deviceManagement:device:edit', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (46, 1, '日志列表', NULL, 'remotelog:logfile:list', 1, 1);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (47, 36, '删除产品系列', NULL, 'configManagement:productSeries:delete', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (48, 42, '删除设备', NULL, 'deviceManagement:device:delete', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (49, 39, '删除渠道号', NULL, 'configManagement:deviceChannel:delete', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (50, 46, '修改日志', NULL, 'remotelog:logfile:edit', 2, 0);
INSERT INTO `cneeds_server`.`sys_func`(`func_id`, `parent_id`, `name`, `url`, `perms`, `type`, `order_num`) VALUES (51, 46, '删除日志', NULL, 'remotelog:logfile:delete', 2, 0);
-- ----------------------------
-- Table structure for sys_role
-- 系统 - 角色表
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
`role_id` bigint(20) NOT NULL AUTO_INCREMENT,
`role_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '角色名称',
`remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注',
`dept_id` bigint(20) DEFAULT NULL COMMENT '部门Id',
`create_time` datetime(0) DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 27 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (1, '管理员', '描述', 1, '2020-03-10 12:06:37');
INSERT INTO `sys_role` VALUES (26, 'zzzzzzzzzz', 'zzzzzzzzzzzzzzz', 0, '2020-03-13 04:51:20');
-- ----------------------------
-- Table structure for sys_role_dept
-- 系统 - 角色部门关系表
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`role_id` bigint(20) DEFAULT NULL COMMENT '角色id',
`dept_id` bigint(20) DEFAULT NULL COMMENT '部门id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 466 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门与角色映射表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------
INSERT INTO `sys_role_dept` VALUES (463, 26, 3);
INSERT INTO `sys_role_dept` VALUES (464, 26, 4);
INSERT INTO `sys_role_dept` VALUES (465, 26, 5);
-- ----------------------------
-- Table structure for sys_role_func
-- 系统 - 角色功能表
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_func`;
CREATE TABLE `sys_role_func` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`role_id` bigint(20) DEFAULT NULL COMMENT '角色Id',
`func_id` bigint(20) DEFAULT NULL COMMENT '功能Id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 489 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '功能与角色映射表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role_func
-- ----------------------------
INSERT INTO `sys_role_func` VALUES (484, 26, 2);
INSERT INTO `sys_role_func` VALUES (485, 26, 15);
INSERT INTO `sys_role_func` VALUES (486, 26, 16);
INSERT INTO `sys_role_func` VALUES (487, 26, 17);
INSERT INTO `sys_role_func` VALUES (488, 26, 18);
-- ----------------------------
-- Table structure for sys_user
-- 系统 - 用户(账户)表
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
`user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户id',
`username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户名',
`password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码',
`email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '邮箱',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '简介',
`mobile` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '手机',
`status` int(11) DEFAULT NULL COMMENT '账户状态 0:禁用 1:正常',
`create_time` date DEFAULT NULL COMMENT '创建时间',
`dept_id` bigint(20) DEFAULT NULL COMMENT '部门id',
PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (0, 'admin', '$2a$10$/uKcZ27sVZSWRRzSx9PEQ.ggLriOfc6AqILEyOYauVQQt5akh4YEm', 'YzcmCZNvbXocrsz9dm8e', 'root@cneeds.com.cn', '13612345678', 1, '2016-11-11', 0);
-- ----------------------------
-- Table structure for sys_user_role
-- 系统 - 用户角色关系表
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
`role_id` bigint(20) DEFAULT NULL COMMENT '角色id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色用户映射表' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
-- ----------------------------
-- Table structure for sys_user_dept
-- 系统 - 用户部门关系表
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_dept`;
CREATE TABLE `sys_user_dept` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
`dept_id` bigint(20) DEFAULT NULL COMMENT '部门id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 466 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门与角色映射表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for sys_user_func
-- 系统 - 用户功能关系表
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_func`;
CREATE TABLE `sys_user_func` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL COMMENT '用户Id',
`func_id` bigint(20) DEFAULT NULL COMMENT '功能Id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 489 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '功能与角色映射表' ROW_FORMAT = Dynamic;
-- 2020-05-06 加唯一索引
ALTER TABLE `cneeds_server`.`device_info`
ADD UNIQUE INDEX `IMEI_UNIQUE`(`imei`) USING BTREE COMMENT 'imei唯一';
ALTER TABLE `cneeds_server`.`product_series`
ADD UNIQUE INDEX `SERIES_NUM_UNIQUE`(`series_num`) USING BTREE COMMENT '系列号唯一';
-- 202-05-09
-- ----------------------------
-- Table structure for device_channel
-- 渠道号表
-- ----------------------------
CREATE TABLE `device_channel` (
`channel_id` bigint(20) NOT NULL AUTO_INCREMENT,
`channel_num` varchar(255) DEFAULT NULL COMMENT '渠道号',
`brand` varchar(255) DEFAULT NULL COMMENT '品牌',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`channel_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for device_info_channel
-- 设备信息 - 渠道号 映射表
-- ----------------------------
CREATE TABLE `device_info_channel` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`device_id` bigint(20) DEFAULT NULL,
`channel_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2020-05-13
ALTER TABLE `cneeds_server`.`device_info`
DROP COLUMN `channel_nums`;
-- 2020-05-14
ALTER TABLE `cneeds_server`.`device_log`
ADD COLUMN `device_version` varchar(255) COMMENT '设备版本号' AFTER `log_accept_id`;
-- 2020-06-29
ALTER TABLE `cneeds_server`.`device_info`
ADD COLUMN `sn` varchar(255) COMMENT 'sn号' AFTER `channel_rules`,
ADD COLUMN `ca_certificate_status` varchar(255) COMMENT 'ca证书状态 -1 未下载,0 已下载 类型:非量产 1 已下载 类型:量产,2 已下载 类型:非量产,未验证 3 已下载 类型:量产,未验证' AFTER `sn`;
ALTER TABLE `cneeds_server`.`device_info`
CHANGE COLUMN `status` `active_status` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci
DEFAULT NULL COMMENT '状态0未激活,1已激活' AFTER `iccid`;
-- 2020-07-14
ALTER TABLE `cneeds_server`.`device_info`
MODIFY COLUMN `active_status` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT 0 COMMENT '状态0未激活,1已激活' AFTER `iccid`,
MODIFY COLUMN `channel_rules` int(255) DEFAULT 1 COMMENT '0:白名单,1:黑名单' AFTER `channel_nums_message`,
MODIFY COLUMN `ca_certificate_status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT -1 COMMENT 'ca证书状态 -1 未下载,0 已下载 类型:非量产 1 已下载 类型:量产,2 已下载 类型:非量产,未验证 3 已下载 类型:量产,未验证' AFTER `sn`;
-- 2020-07-27
CREATE TABLE `device_info_export` (
`device_info_export_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` varchar(255) DEFAULT NULL COMMENT '名字',
`filepath` varchar(255) DEFAULT NULL COMMENT '路径',
`status` int(10) DEFAULT NULL COMMENT '状态:0未完成,1完成',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`device_info_export_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2020-07-31
ALTER TABLE `cneeds_server`.`device_info_export`
ADD UNIQUE INDEX `Name_Unique`(`name`) USING HASH;
ALTER TABLE `cneeds_server`.`device_info`
ADD COLUMN `update_time` datetime(0) COMMENT '更新时间状态' AFTER `ca_certificate_status`;
\ No newline at end of file
package com.mx.cneeds.server.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mx.cneeds.server.entity.DeviceCarTypeEntity;
import com.mx.cneeds.server.entity.DeviceChannelEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* @ClassName DeviceCarTypeDao
* @Author zzrdark
* @Date 2020-08-14 14:57
* @Description TODO
**/
@Mapper
public interface DeviceCarTypeDao extends BaseMapper<DeviceCarTypeEntity> {
}
package com.mx.cneeds.server.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mx.cneeds.server.entity.DeviceLinkProtocolsEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* @ClassName DeviceCarTypeDao
* @Author zzrdark
* @Date 2020-08-14 14:57
*/
@Mapper
public interface DeviceLinkProtocolsDao extends BaseMapper<DeviceLinkProtocolsEntity> {
}
package com.mx.cneeds.server.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
/**
* @ClassName DeviceCarTypeEntity
* @Author zzrdark
* @Date 2020-08-14 15:15
* @Description TODO
**/
@Data
@TableName("device_car_type")
public class DeviceCarTypeEntity {
/**
* 车型 iD
*/
private Long carTypeId;
/**
* 品牌
*/
private String brand;
/**
* 车系
*/
private String carId;
/**
* 描述
*/
private String description;
/**
* 更新时间
*/
private Date updateTime;
}
......@@ -31,7 +31,7 @@ public class DeviceChannelEntity implements Serializable ,Cloneable {
/**
* 品牌
*/
private String brand;
private Long carTypeId;
/**
* 更新时间
......
package com.mx.cneeds.server.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
/**
* @ClassName DeviceLinkProtocolsEntity
* @Author zzrdark
* @Date 2020-08-14 15:15
* @Description TODO
**/
@Data
@TableName("device_link_protocols")
public class DeviceLinkProtocolsEntity {
/**
* 连接协议Id
*/
private Long linkProtocolsId;
/**
* 协议名称
*/
private String name;
/**
* 介绍
*/
private String description;
/**
* 更新时间
*/
private Date updateTime;
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mx.cneeds.server.dao.DeviceCarTypeDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.mx.cneeds.server.entity.DeviceCarTypeEntity" id="deviceCarTypeMap">
<result property="carTypeId" column="car_type_id"/>
<result property="brand" column="brand"/>
<result property="carId" column="car_id"/>
<result property="description" column="description"/>
<result property="updateTime" column="update_time"/>
</resultMap>
</mapper>
\ No newline at end of file
......@@ -7,7 +7,7 @@
<resultMap type="com.mx.cneeds.server.entity.DeviceChannelEntity" id="deviceChannelMap">
<result property="channelId" column="channel_id"/>
<result property="channelNum" column="channel_num"/>
<result property="brand" column="brand"/>
<result property="carTypeId" column="car_type_id"/>
<result property="updateTime" column="update_time"/>
</resultMap>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mx.cneeds.server.dao.DeviceLinkProtocolsDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.mx.cneeds.server.entity.DeviceLinkProtocolsEntity" id="deviceLinkProtocolsMap">
<result property="linkProtocolsId" column="link_protocols_id"/>
<result property="name" column="name"/>
<result property="description" column="description"/>
<result property="updateTime" column="update_time"/>
</resultMap>
</mapper>
\ No newline at end of file
package com.mx.cneeds.common.dto;
import lombok.Data;
import java.util.Date;
/**
* @ClassName DeviceCarTypeDto
* @Author zzrdark
* @Date 2020-08-14 16:48
* @Description TODO
**/
@Data
public class DeviceCarTypeDto {
private Long carTypeId;
private String brand;
private String carId;
private String description;
private Date updateTime;
}
package com.mx.cneeds.common.dto;
import lombok.Data;
import java.util.Date;
/**
* @ClassName DeviceLinkProtocolsDto
* @Author zzrdark
* @Date 2020-08-14 16:51
* @Description TODO
**/
@Data
public class DeviceLinkProtocolsDto {
/**
* 连接协议Id
*/
private Long linkProtocolsId;
/**
* 协议名称
*/
private String name;
/**
* 介绍
*/
private String description;
/**
* 更新时间
*/
private Date updateTime;
}
package com.mx.cneeds.common.vo;
import lombok.Data;
import java.util.Date;
/**
* @ClassName DeviceCarTypeDto
* @Author zzrdark
* @Date 2020-08-14 16:48
* @Description TODO
**/
@Data
public class DeviceCarTypeVo {
private Long carTypeId;
private String brand;
private String carId;
private String description;
private Date updateTime;
}
package com.mx.cneeds.common.vo;
import lombok.Data;
import java.util.Date;
/**
* @ClassName DeviceLinkProtocolsDto
* @Author zzrdark
* @Date 2020-08-14 16:51
* @Description TODO
**/
@Data
public class DeviceLinkProtocolsVo {
/**
* 连接协议Id
*/
private Long linkProtocolsId;
/**
* 协议名称
*/
private String name;
/**
* 介绍
*/
private String description;
/**
* 更新时间
*/
private Date updateTime;
}
spring:
profiles:
active: prod
active: dev
application:
name: cneeds-server-authorization
server:
......
......@@ -140,4 +140,38 @@ public interface DeviceClient {
@PostMapping("device/info/deleteDeviceInfoExportByName")
void deleteDeviceInfoExportByName(@RequestBody String fileName);
@PostMapping("/device/devicecartype/list")
PageDto DeviceCarTypeList(@RequestParam Integer page,
@RequestParam("limit") Integer pageSize,
@RequestParam("sidx") String orderField,
@RequestParam("order") String order);
@PostMapping("/device/devicecartype/queryDeviceCarTypeAll")
List<DeviceCarTypeDto> queryDeviceCarTypeAll();
@PostMapping("/device/devicecartype/save")
void addDeviceCarType(@RequestBody DeviceCarTypeDto dto);
@PostMapping("/device/devicecartype/update")
void updateDeviceCarType(@RequestBody DeviceCarTypeDto dto);
@PostMapping("/device/devicecartype/delete")
void deleteDeviceCarType(@RequestBody List<Long> carTypeIds);
@PostMapping("/device/devicelinkprotocols/list")
PageDto DeviceLinkProtocolsList(@RequestParam Integer page,
@RequestParam("limit") Integer pageSize,
@RequestParam("sidx") String orderField,
@RequestParam("order") String order);
@PostMapping("/device/devicelinkprotocols/save")
void addDeviceLinkProtocols(@RequestBody DeviceLinkProtocolsDto dto);
@PostMapping("/device/devicelinkprotocols/update")
void updateDeviceLinkProtocols(@RequestBody DeviceLinkProtocolsDto dto);
@PostMapping("/device/devicelinkprotocols/delete")
void deleteDeviceLinkProtocols(@RequestBody List<Long> linkProtocolsIds);
}
......@@ -728,4 +728,140 @@ public class DeviceController {
return R.error();
}
}
@PreAuthorize("hasRole('configManagement:productSeries:list') or hasRole('admin')")
@PostMapping("/deviceCarType/list")
public R DeviceCarTypeList(@RequestParam(required = false) Integer page,
@RequestParam(required = false) Integer pageSize,
@RequestParam(required = false) String sort){
String orderField = null;
String order = null;
if (page==null || page==0){
page = new Integer(1);
}
if (pageSize==null || pageSize==0){
pageSize = new Integer(10);
}
if (StringUtils.isNotEmpty(sort) && StringUtils.isNotBlank(sort.trim())){
if (sort.contains("+")){
order = new String("asc");
}
if (sort.contains("-")){
order = new String("desc");
}
orderField = sort.substring(1);
orderField = RequestParamterConverter.toLine(orderField);
}
PageDto pageDto = deviceClient.DeviceCarTypeList(page,pageSize,orderField,order);
return new R().put("data",pageDto);
}
@PreAuthorize("hasRole('configManagement:deviceChannel:list') or hasRole('admin')")
@PostMapping("/deviceCarType/queryDeviceCarTypeAll")
public R queryDeviceCarTypeAll(){
List<DeviceCarTypeDto> deviceCarTypeDtos = deviceClient.queryDeviceCarTypeAll();
return R.ok().put("data",deviceCarTypeDtos);
}
@PreAuthorize("hasRole('configManagement:productSeries:add') or hasRole('admin')")
@PostMapping("/deviceCarType/add")
public R addDeviceCarType(DeviceCarTypeVo deviceCarTypeVo){
DeviceCarTypeDto deviceCarTypeDto = new DeviceCarTypeDto();
BeanUtils.copyProperties(deviceCarTypeVo,deviceCarTypeDto);
deviceClient.addDeviceCarType(deviceCarTypeDto);
return R.ok();
}
@PreAuthorize("hasRole('configManagement:productSeries:edit') or hasRole('admin')")
@PostMapping("/deviceCarType/edit")
public R editDeviceCarType(DeviceCarTypeVo deviceCarTypeVo){
DeviceCarTypeDto deviceCarTypeDto = new DeviceCarTypeDto();
BeanUtils.copyProperties(deviceCarTypeVo,deviceCarTypeDto);
deviceClient.updateDeviceCarType(deviceCarTypeDto);
return R.ok();
}
@PreAuthorize("hasRole('configManagement:productSeries:delete') or hasRole('admin')")
@PostMapping("/deviceCarType/delete")
public R deleteDeviceCarType(@RequestParam(value = "ids",required = false) List<Long> carTypeIds){
deviceClient.deleteDeviceCarType(carTypeIds);
return R.ok();
}
@PreAuthorize("hasRole('configManagement:productSeries:list') or hasRole('admin')")
@PostMapping("/deviceLinkProtocols/list")
public R DeviceLinkProtocolsList(@RequestParam(required = false) Integer page,
@RequestParam(required = false) Integer pageSize,
@RequestParam(required = false) String sort){
String orderField = null;
String order = null;
if (page==null || page==0){
page = new Integer(1);
}
if (pageSize==null || pageSize==0){
pageSize = new Integer(10);
}
if (StringUtils.isNotEmpty(sort) && StringUtils.isNotBlank(sort.trim())){
if (sort.contains("+")){
order = new String("asc");
}
if (sort.contains("-")){
order = new String("desc");
}
orderField = sort.substring(1);
orderField = RequestParamterConverter.toLine(orderField);
}
PageDto pageDto = deviceClient.DeviceLinkProtocolsList(page,pageSize,orderField,order);
return new R().put("data",pageDto);
}
@PreAuthorize("hasRole('configManagement:productSeries:add') or hasRole('admin')")
@PostMapping("/deviceLinkProtocols/add")
public R addDeviceLinkProtocols(DeviceLinkProtocolsVo deviceLinkProtocolsVo){
DeviceLinkProtocolsDto deviceLinkProtocolsDto = new DeviceLinkProtocolsDto();
BeanUtils.copyProperties(deviceLinkProtocolsVo,deviceLinkProtocolsDto);
deviceClient.addDeviceLinkProtocols(deviceLinkProtocolsDto);
return R.ok();
}
@PreAuthorize("hasRole('configManagement:productSeries:edit') or hasRole('admin')")
@PostMapping("/deviceLinkProtocols/edit")
public R editDeviceLinkProtocols(DeviceLinkProtocolsVo deviceLinkProtocolsVo){
DeviceLinkProtocolsDto deviceLinkProtocolsDto = new DeviceLinkProtocolsDto();
BeanUtils.copyProperties(deviceLinkProtocolsVo,deviceLinkProtocolsDto);
deviceClient.updateDeviceLinkProtocols(deviceLinkProtocolsDto);
return R.ok();
}
@PreAuthorize("hasRole('configManagement:productSeries:delete') or hasRole('admin')")
@PostMapping("/deviceLinkProtocols/delete")
public R deleteDeviceLinkProtocols(@RequestParam(value = "ids",required = false) List<Long> linkProtocolsIds){
deviceClient.deleteDeviceLinkProtocols(linkProtocolsIds);
return R.ok();
}
}
spring:
profiles:
active: prod
active: dev
application:
name: cneeds-server-datashow
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 c(c){for(var u,t,f=c[0],d=c[1],h=c[2],k=0,o=[];k<f.length;k++)t=f[k],a[t]&&o.push(a[t][0]),a[t]=0;for(u in d)Object.prototype.hasOwnProperty.call(d,u)&&(e[u]=d[u]);b&&b(c);while(o.length)o.shift()();return r.push.apply(r,h||[]),n()}function n(){for(var e,c=0;c<r.length;c++){for(var n=r[c],u=!0,t=1;t<n.length;t++){var f=n[t];0!==a[f]&&(u=!1)}u&&(r.splice(c--,1),e=d(d.s=n[0]))}return e}var u={},t={runtime:0},a={runtime:0},r=[];function f(e){return d.p+"static/js/"+({}[e]||e)+"."+{"chunk-06aa7494":"f94477a5","chunk-06ed166b":"c635a7e4","chunk-116c2bab":"bf322429","chunk-18a40ee2":"ca7df7fe","chunk-19adc003":"b35f6df7","chunk-1a07b08b":"10e51d61","chunk-218bb4cf":"0c2db370","chunk-22e5f704":"2bee1aff","chunk-2b4823a9":"1e77baaf","chunk-2d2105d3":"c38e1553","chunk-2d230a36":"8e6ecaab","chunk-2d230fe7":"8023f254","chunk-3b59103a":"264a5f41","chunk-403c80dd":"9f880ecf","chunk-47af9ee4":"83ad9ebc","chunk-4a8d06a6":"b96c671c","chunk-4ab8490a":"c82896c8","chunk-5411756c":"3bd209ef","chunk-56d3065a":"f080c714","chunk-10f36354":"9553a70d","chunk-5c585ee6":"088c423e","chunk-636f8118":"12b71630","chunk-64238bd4":"3abc94a0","chunk-6e87ca78":"cc2ed628","chunk-2033ddf1":"a8e6dcc9","chunk-4913999e":"ec54cb20","chunk-cbd0fe76":"f7552175","chunk-723f6b88":"dbc43af7","chunk-7395e3e5":"b0b2c5bc","chunk-73bfcbf0":"3ec98a83","chunk-77a4bbf0":"1f6f4882","chunk-79a85582":"48636675","chunk-7b66cc0a":"792032ca","chunk-80fe6032":"5f89e7e1","chunk-adf11d7e":"953ed9ab","chunk-e20529e6":"3d04c0e2","chunk-e33fc590":"68e0014d","chunk-e652b80c":"5da552f0","chunk-feef4472":"8b4360ec"}[e]+".js"}function d(c){if(u[c])return u[c].exports;var n=u[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,d),n.l=!0,n.exports}d.e=function(e){var c=[],n={"chunk-06aa7494":1,"chunk-116c2bab":1,"chunk-18a40ee2":1,"chunk-19adc003":1,"chunk-1a07b08b":1,"chunk-218bb4cf":1,"chunk-2b4823a9":1,"chunk-4a8d06a6":1,"chunk-4ab8490a":1,"chunk-5411756c":1,"chunk-10f36354":1,"chunk-64238bd4":1,"chunk-2033ddf1":1,"chunk-4913999e":1,"chunk-cbd0fe76":1,"chunk-723f6b88":1,"chunk-80fe6032":1,"chunk-adf11d7e":1,"chunk-e33fc590":1,"chunk-feef4472":1};t[e]?c.push(t[e]):0!==t[e]&&n[e]&&c.push(t[e]=new Promise((function(c,n){for(var u="static/css/"+({}[e]||e)+"."+{"chunk-06aa7494":"9d63d053","chunk-06ed166b":"31d6cfe0","chunk-116c2bab":"eedc5334","chunk-18a40ee2":"9d63d053","chunk-19adc003":"9d63d053","chunk-1a07b08b":"830e1851","chunk-218bb4cf":"9d63d053","chunk-22e5f704":"31d6cfe0","chunk-2b4823a9":"9d63d053","chunk-2d2105d3":"31d6cfe0","chunk-2d230a36":"31d6cfe0","chunk-2d230fe7":"31d6cfe0","chunk-3b59103a":"31d6cfe0","chunk-403c80dd":"31d6cfe0","chunk-47af9ee4":"31d6cfe0","chunk-4a8d06a6":"e9a4618c","chunk-4ab8490a":"9d63d053","chunk-5411756c":"9d63d053","chunk-56d3065a":"31d6cfe0","chunk-10f36354":"129625a4","chunk-5c585ee6":"31d6cfe0","chunk-636f8118":"31d6cfe0","chunk-64238bd4":"70564041","chunk-6e87ca78":"31d6cfe0","chunk-2033ddf1":"7bcb44ca","chunk-4913999e":"7bcb44ca","chunk-cbd0fe76":"7bcb44ca","chunk-723f6b88":"53ac87fa","chunk-7395e3e5":"31d6cfe0","chunk-73bfcbf0":"31d6cfe0","chunk-77a4bbf0":"31d6cfe0","chunk-79a85582":"31d6cfe0","chunk-7b66cc0a":"31d6cfe0","chunk-80fe6032":"9d63d053","chunk-adf11d7e":"9d63d053","chunk-e20529e6":"31d6cfe0","chunk-e33fc590":"9d63d053","chunk-e652b80c":"31d6cfe0","chunk-feef4472":"9d63d053"}[e]+".css",a=d.p+u,r=document.getElementsByTagName("link"),f=0;f<r.length;f++){var h=r[f],k=h.getAttribute("data-href")||h.getAttribute("href");if("stylesheet"===h.rel&&(k===u||k===a))return c()}var o=document.getElementsByTagName("style");for(f=0;f<o.length;f++){h=o[f],k=h.getAttribute("data-href");if(k===u||k===a)return c()}var b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.onload=c,b.onerror=function(c){var u=c&&c.target&&c.target.src||a,r=new Error("Loading CSS chunk "+e+" failed.\n("+u+")");r.request=u,delete t[e],b.parentNode.removeChild(b),n(r)},b.href=a;var i=document.getElementsByTagName("head")[0];i.appendChild(b)})).then((function(){t[e]=0})));var u=a[e];if(0!==u)if(u)c.push(u[2]);else{var r=new Promise((function(c,n){u=a[e]=[c,n]}));c.push(u[2]=r);var h,k=document.createElement("script");k.charset="utf-8",k.timeout=120,d.nc&&k.setAttribute("nonce",d.nc),k.src=f(e),h=function(c){k.onerror=k.onload=null,clearTimeout(o);var n=a[e];if(0!==n){if(n){var u=c&&("load"===c.type?"missing":c.type),t=c&&c.target&&c.target.src,r=new Error("Loading chunk "+e+" failed.\n("+u+": "+t+")");r.type=u,r.request=t,n[1](r)}a[e]=void 0}};var o=setTimeout((function(){h({type:"timeout",target:k})}),12e4);k.onerror=k.onload=h,document.head.appendChild(k)}return Promise.all(c)},d.m=e,d.c=u,d.d=function(e,c,n){d.o(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:n})},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,c){if(1&c&&(e=d(e)),8&c)return e;if(4&c&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(d.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&c&&"string"!=typeof e)for(var u in e)d.d(n,u,function(c){return e[c]}.bind(null,u));return n},d.n=function(e){var c=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="",d.oe=function(e){throw console.error(e),e};var h=window["webpackJsonp"]=window["webpackJsonp"]||[],k=h.push.bind(h);h.push=c,h=h.slice();for(var o=0;o<h.length;o++)c(h[o]);var b=k;n()})([]);</script><script src=static/js/app.8a12c84a.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=./favicon.ico><title>springSecurity登陆demo</title><link href=static/css/chunk-libs.3dfb7769.css rel=stylesheet><link href=static/css/app.826c7dc3.css rel=stylesheet></head><body><div id=app></div><script src=static/js/chunk-elementUI.a6c12691.js></script><script src=static/js/chunk-libs.ddf89aa7.js></script><script>(function(e){function c(c){for(var u,a,h=c[0],f=c[1],r=c[2],k=0,b=[];k<h.length;k++)a=h[k],d[a]&&b.push(d[a][0]),d[a]=0;for(u in f)Object.prototype.hasOwnProperty.call(f,u)&&(e[u]=f[u]);o&&o(c);while(b.length)b.shift()();return t.push.apply(t,r||[]),n()}function n(){for(var e,c=0;c<t.length;c++){for(var n=t[c],u=!0,a=1;a<n.length;a++){var h=n[a];0!==d[h]&&(u=!1)}u&&(t.splice(c--,1),e=f(f.s=n[0]))}return e}var u={},a={runtime:0},d={runtime:0},t=[];function h(e){return f.p+"static/js/"+({}[e]||e)+"."+{"chunk-06aa7494":"f94477a5","chunk-06ed166b":"367b4225","chunk-116c2bab":"bf322429","chunk-18a40ee2":"700c4eee","chunk-19adc003":"55f6201a","chunk-1a07b08b":"10e51d61","chunk-218bb4cf":"0c2db370","chunk-21c3dd8a":"90e6049b","chunk-22e5f704":"fa7c6d8b","chunk-2b4823a9":"1e77baaf","chunk-2d2105d3":"c38e1553","chunk-2d230a36":"8e6ecaab","chunk-2d230fe7":"8023f254","chunk-30d552ac":"eeb4c694","chunk-3b59103a":"264a5f41","chunk-403c80dd":"9f880ecf","chunk-47af9ee4":"83ad9ebc","chunk-4a8d06a6":"b96c671c","chunk-4ab8490a":"c82896c8","chunk-5411756c":"3bd209ef","chunk-54a05ba9":"282974ab","chunk-55b95336":"38f6debe","chunk-56d3065a":"f080c714","chunk-10f36354":"9553a70d","chunk-5c585ee6":"f2249667","chunk-636f8118":"12b71630","chunk-64238bd4":"3abc94a0","chunk-6e87ca78":"cc2ed628","chunk-2033ddf1":"e01ad623","chunk-4913999e":"fc37a9d8","chunk-cbd0fe76":"c453b532","chunk-723f6b88":"f0e2135c","chunk-7395e3e5":"35085156","chunk-73bfcbf0":"3ec98a83","chunk-77a4bbf0":"7890f929","chunk-79a85582":"48636675","chunk-7b66cc0a":"792032ca","chunk-7cfd0469":"c865dd23","chunk-80fe6032":"79bf19cb","chunk-a21d57d6":"d77145d1","chunk-adf11d7e":"0ea277a1","chunk-e20529e6":"860dda95","chunk-e33fc590":"68e0014d","chunk-e652b80c":"5da552f0","chunk-feef4472":"15ba719b"}[e]+".js"}function f(c){if(u[c])return u[c].exports;var n=u[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,f),n.l=!0,n.exports}f.e=function(e){var c=[],n={"chunk-06aa7494":1,"chunk-116c2bab":1,"chunk-18a40ee2":1,"chunk-19adc003":1,"chunk-1a07b08b":1,"chunk-218bb4cf":1,"chunk-2b4823a9":1,"chunk-4a8d06a6":1,"chunk-4ab8490a":1,"chunk-5411756c":1,"chunk-54a05ba9":1,"chunk-55b95336":1,"chunk-10f36354":1,"chunk-64238bd4":1,"chunk-2033ddf1":1,"chunk-4913999e":1,"chunk-cbd0fe76":1,"chunk-723f6b88":1,"chunk-80fe6032":1,"chunk-adf11d7e":1,"chunk-e33fc590":1,"chunk-feef4472":1};a[e]?c.push(a[e]):0!==a[e]&&n[e]&&c.push(a[e]=new Promise((function(c,n){for(var u="static/css/"+({}[e]||e)+"."+{"chunk-06aa7494":"9d63d053","chunk-06ed166b":"31d6cfe0","chunk-116c2bab":"eedc5334","chunk-18a40ee2":"9d63d053","chunk-19adc003":"9d63d053","chunk-1a07b08b":"830e1851","chunk-218bb4cf":"9d63d053","chunk-21c3dd8a":"31d6cfe0","chunk-22e5f704":"31d6cfe0","chunk-2b4823a9":"9d63d053","chunk-2d2105d3":"31d6cfe0","chunk-2d230a36":"31d6cfe0","chunk-2d230fe7":"31d6cfe0","chunk-30d552ac":"31d6cfe0","chunk-3b59103a":"31d6cfe0","chunk-403c80dd":"31d6cfe0","chunk-47af9ee4":"31d6cfe0","chunk-4a8d06a6":"e9a4618c","chunk-4ab8490a":"9d63d053","chunk-5411756c":"9d63d053","chunk-54a05ba9":"9d63d053","chunk-55b95336":"9d63d053","chunk-56d3065a":"31d6cfe0","chunk-10f36354":"129625a4","chunk-5c585ee6":"31d6cfe0","chunk-636f8118":"31d6cfe0","chunk-64238bd4":"70564041","chunk-6e87ca78":"31d6cfe0","chunk-2033ddf1":"7bcb44ca","chunk-4913999e":"7bcb44ca","chunk-cbd0fe76":"7bcb44ca","chunk-723f6b88":"53ac87fa","chunk-7395e3e5":"31d6cfe0","chunk-73bfcbf0":"31d6cfe0","chunk-77a4bbf0":"31d6cfe0","chunk-79a85582":"31d6cfe0","chunk-7b66cc0a":"31d6cfe0","chunk-7cfd0469":"31d6cfe0","chunk-80fe6032":"9d63d053","chunk-a21d57d6":"31d6cfe0","chunk-adf11d7e":"9d63d053","chunk-e20529e6":"31d6cfe0","chunk-e33fc590":"9d63d053","chunk-e652b80c":"31d6cfe0","chunk-feef4472":"9d63d053"}[e]+".css",d=f.p+u,t=document.getElementsByTagName("link"),h=0;h<t.length;h++){var r=t[h],k=r.getAttribute("data-href")||r.getAttribute("href");if("stylesheet"===r.rel&&(k===u||k===d))return c()}var b=document.getElementsByTagName("style");for(h=0;h<b.length;h++){r=b[h],k=r.getAttribute("data-href");if(k===u||k===d)return c()}var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onload=c,o.onerror=function(c){var u=c&&c.target&&c.target.src||d,t=new Error("Loading CSS chunk "+e+" failed.\n("+u+")");t.request=u,delete a[e],o.parentNode.removeChild(o),n(t)},o.href=d;var i=document.getElementsByTagName("head")[0];i.appendChild(o)})).then((function(){a[e]=0})));var u=d[e];if(0!==u)if(u)c.push(u[2]);else{var t=new Promise((function(c,n){u=d[e]=[c,n]}));c.push(u[2]=t);var r,k=document.createElement("script");k.charset="utf-8",k.timeout=120,f.nc&&k.setAttribute("nonce",f.nc),k.src=h(e),r=function(c){k.onerror=k.onload=null,clearTimeout(b);var n=d[e];if(0!==n){if(n){var u=c&&("load"===c.type?"missing":c.type),a=c&&c.target&&c.target.src,t=new Error("Loading chunk "+e+" failed.\n("+u+": "+a+")");t.type=u,t.request=a,n[1](t)}d[e]=void 0}};var b=setTimeout((function(){r({type:"timeout",target:k})}),12e4);k.onerror=k.onload=r,document.head.appendChild(k)}return Promise.all(c)},f.m=e,f.c=u,f.d=function(e,c,n){f.o(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:n})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,c){if(1&c&&(e=f(e)),8&c)return e;if(4&c&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&c&&"string"!=typeof e)for(var u in e)f.d(n,u,function(c){return e[c]}.bind(null,u));return n},f.n=function(e){var c=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="",f.oe=function(e){throw console.error(e),e};var r=window["webpackJsonp"]=window["webpackJsonp"]||[],k=r.push.bind(r);r.push=c,r=r.slice();for(var b=0;b<r.length;b++)c(r[b]);var o=k;n()})([]);</script><script src=static/js/app.83f5e6d9.js></script></body></html>
\ 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-06ed166b"],{"0173":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:"editChannel",attrs:{model:e.channel,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"seriesNum",label:"渠道号"}},[n("el-input",{model:{value:e.channel.channelNum,callback:function(t){e.$set(e.channel,"channelNum",t)},expression:"channel.channelNum"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"remark",label:"品牌描述:"}},[n("el-input",{model:{value:e.channel.brand,callback:function(t){e.$set(e.channel,"brand",t)},expression:"channel.brand"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeviceChannelList}},[e._v("取消")])],1)],1)],1)],1)},a=[],r=(n("ac6a"),n("456d"),n("aa98")),c={channelNum:"渠道号",brand:"品牌描述"},o={data:function(){var e=function(e,t,n){0===t.length?n(new Error(c[e.field]+"必须填写")):n()};return{loading:!1,channel:{channelNum:"",brand:""},rules:{channelNum:[{validator:e}],brand:[{validator:e}]}}},mounted:function(){this.channel=this.$route.query.channel},methods:{setDefault:function(){this.$refs.editChannel.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editChannel.validate((function(t,n){if(t)Object(r["w"])(e.channel).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toDeviceChannelList()})).catch((function(){e.loading=!1}));else{var i=n[Object.keys(n)[0]][0].message;e.$message({message:i,type:"error"}),e.loading=!1}})))},handleChange:function(e){var t=e.length;t-=1,this.dept.parentId=e[t]},toDeviceChannelList:function(){this.$router.push({path:"/configManagement/deviceChannel"})}}},d=o,u=n("2877"),l=Object(u["a"])(d,i,a,!1,null,"1c8c5750",null);t["default"]=l.exports},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return r})),n.d(t,"n",(function(){return c})),n.d(t,"m",(function(){return o})),n.d(t,"p",(function(){return d})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"A",(function(){return s})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return h})),n.d(t,"u",(function(){return f})),n.d(t,"s",(function(){return v})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"w",(function(){return g})),n.d(t,"r",(function(){return j})),n.d(t,"h",(function(){return C})),n.d(t,"j",(function(){return O})),n.d(t,"z",(function(){return S})),n.d(t,"t",(function(){return y})),n.d(t,"k",(function(){return D})),n.d(t,"d",(function(){return z})),n.d(t,"a",(function(){return k})),n.d(t,"v",(function(){return I})),n.d(t,"f",(function(){return T})),n.d(t,"q",(function(){return w})),n.d(t,"c",(function(){return x})),n.d(t,"y",(function(){return N})),n.d(t,"i",(function(){return $}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function d(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function s(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function D(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function I(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function T(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function w(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function x(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function N(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function $(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06ed166b"],{"0173":function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("el-container",[t("el-main",[t("el-form",{ref:"editChannel",attrs:{model:e.channel,rules:e.rules,"label-width":"80px"}},[t("el-form-item",{attrs:{prop:"seriesNum",label:"渠道号"}},[t("el-input",{model:{value:e.channel.channelNum,callback:function(n){e.$set(e.channel,"channelNum",n)},expression:"channel.channelNum"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"remark",label:"品牌描述:"}},[t("el-input",{model:{value:e.channel.brand,callback:function(n){e.$set(e.channel,"brand",n)},expression:"channel.brand"}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),t("el-button",{on:{click:e.toDeviceChannelList}},[e._v("取消")])],1)],1)],1)],1)},i=[],r=(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(){this.channel=this.$route.query.channel},methods:{setDefault:function(){this.$refs.editChannel.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editChannel.validate((function(n,t){if(n)Object(r["p"])(e.channel).then((function(n){var t=n.msg;e.$notify({title:"操作成功",message:t,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toDeviceChannelList()})).catch((function(){e.loading=!1}));else{var a=t[Object.keys(t)[0]][0].message;e.$message({message:a,type:"error"}),e.loading=!1}})))},handleChange:function(e){var n=e.length;n-=1,this.dept.parentId=e[n]},toDeviceChannelList:function(){this.$router.push({path:"/configManagement/deviceChannel"})}}},u=o,d=t("2877"),l=Object(d["a"])(u,a,i,!1,null,"1c8c5750",null);n["default"]=l.exports},aa98:function(e,n,t){"use strict";t.d(n,"j",(function(){return i})),t.d(n,"g",(function(){return r})),t.d(n,"i",(function(){return c})),t.d(n,"h",(function(){return o})),t.d(n,"k",(function(){return u})),t.d(n,"q",(function(){return d})),t.d(n,"c",(function(){return l})),t.d(n,"s",(function(){return s})),t.d(n,"t",(function(){return h})),t.d(n,"u",(function(){return p})),t.d(n,"o",(function(){return f})),t.d(n,"m",(function(){return v})),t.d(n,"b",(function(){return m})),t.d(n,"a",(function(){return b})),t.d(n,"p",(function(){return g})),t.d(n,"l",(function(){return j})),t.d(n,"d",(function(){return C})),t.d(n,"e",(function(){return O})),t.d(n,"r",(function(){return S})),t.d(n,"n",(function(){return D})),t.d(n,"f",(function(){return y}));t("55dd");var a=t("b775");function i(e){return Object(a["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(a["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(a["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(a["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(a["a"])({url:"/device/device/importDevice",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function s(e){return Object(a["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(a["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(a["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(a["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function b(e){return Object(a["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function g(e){return Object(a["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(a["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function C(e){return Object(a["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function O(e){return Object(a["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function S(e){return Object(a["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function D(e){return Object(a["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function y(e){return Object(a["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18a40ee2"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,n){var i=c(),a=e-i,l=20,u=0;t="undefined"===typeof t?500:t;var s=function e(){u+=l;var c=Math.easeInOutQuad(u,i,a,t);o(c),u<t?r(e):n&&"function"===typeof n&&n()};s()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&l(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&l(0,800)}}},s=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(s,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},5163:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[e.$store.getters["user/hasAuthorization"]("configManagement:deviceChannel:add")?n("el-button",{on:{click:e.addPage}},[e._v("添加渠道号")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("configManagement:deviceChannel:edit")?n("el-button",{on:{click:e.editPage}},[e._v("编辑渠道号")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("configManagement:deviceChannel:delete")?n("el-button",{on:{click:e.deletePage}},[e._v("删除")]):e._e(),e._v(" "),n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"渠道号",clearable:""},on:{clear:e.handleFilter,blur:e.handleFilter},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter(t)}},model:{value:e.listQuery.channelNum,callback:function(t){e.$set(e.listQuery,"channelNum",t)},expression:"listQuery.channelNum"}}),e._v(" "),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("\n 查询\n ")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"渠道号",prop:"channelNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"渠道号详情",prop:"brand",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"更新时间",prop:"updateTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("ac6a"),n("333d")),o=n("c7a7"),c=n("aa98"),l=n("ed08"),u={components:{Pagination:r["a"]},directives:{waves:o["a"]},filters:{delFlagValueFilter:function(e){return-1===e?e="不可用":0===e&&(e="可用"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(l["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],channel:{},channelIds:[]}},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(c["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}))},refresh:function(){this.$router.push({path:"/configManagement/deviceChannel",query:this.listQuery})},addPage:function(){this.$router.push({path:"/configManagement/deviceChannel/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.channel=this.multipleSelection[0],this.$router.push({path:"/configManagement/deviceChannel/edit",query:{channel:this.channel}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.channelIds.push(t.channelId)})),this.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["d"])(e.channelIds).then((function(t){e.getList()})),e.channelIds=[],e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})}));else{var t="必须选一列";this.$message({message:t,type:"error"})}},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},s=u,d=n("2877"),p=Object(d["a"])(s,i,a,!1,null,"749cbc40",null);t["default"]=p.exports},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"g",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"k",(function(){return l})),n.d(t,"q",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"s",(function(){return d})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return h})),n.d(t,"o",(function(){return f})),n.d(t,"m",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"p",(function(){return y})),n.d(t,"l",(function(){return b})),n.d(t,"d",(function(){return S})),n.d(t,"e",(function(){return C})),n.d(t,"r",(function(){return w})),n.d(t,"n",(function(){return O})),n.d(t,"f",(function(){return j}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function l(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(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 d(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function v(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function b(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),c=r.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(o.width,o.height)+"px",r.appendChild(c)),a.type){case"center":c.style.top=o.height/2-c.offsetHeight/2+"px",c.style.left=o.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-o.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-o.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=a.color,c.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18a40ee2"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,n){var i=c(),a=e-i,u=20,l=0;t="undefined"===typeof t?500:t;var s=function e(){l+=u;var c=Math.easeInOutQuad(l,i,a,t);o(c),l<t?r(e):n&&"function"===typeof n&&n()};s()}var l={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&&u(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&u(0,800)}}},s=l,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"}},[e.$store.getters["user/hasAuthorization"]("configManagement:deviceChannel:add")?n("el-button",{on:{click:e.addPage}},[e._v("添加渠道号")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("configManagement:deviceChannel:edit")?n("el-button",{on:{click:e.editPage}},[e._v("编辑渠道号")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("configManagement:deviceChannel:delete")?n("el-button",{on:{click:e.deletePage}},[e._v("删除")]):e._e(),e._v(" "),n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"渠道号",clearable:""},on:{clear:e.handleFilter,blur:e.handleFilter},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter(t)}},model:{value:e.listQuery.channelNum,callback:function(t){e.$set(e.listQuery,"channelNum",t)},expression:"listQuery.channelNum"}}),e._v(" "),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("\n 查询\n ")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"渠道号",prop:"channelNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"渠道号详情",prop:"brand",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"更新时间",prop:"updateTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("ac6a"),n("333d")),o=n("c7a7"),c=n("aa98"),u=n("ed08"),l={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(u["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],channel:{},channelIds:[]}},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(c["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)})),this.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["h"])(e.channelIds).then((function(t){e.getList()})),e.channelIds=[],e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})}));else{var t="必须选一列";this.$message({message:t,type:"error"})}},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},s=l,d=n("2877"),p=Object(d["a"])(s,i,a,!1,null,"749cbc40",null);t["default"]=p.exports},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return r})),n.d(t,"n",(function(){return o})),n.d(t,"m",(function(){return c})),n.d(t,"p",(function(){return u})),n.d(t,"x",(function(){return l})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return d})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return h})),n.d(t,"u",(function(){return f})),n.d(t,"s",(function(){return g})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"w",(function(){return y})),n.d(t,"r",(function(){return b})),n.d(t,"h",(function(){return S})),n.d(t,"j",(function(){return C})),n.d(t,"z",(function(){return O})),n.d(t,"t",(function(){return j})),n.d(t,"k",(function(){return w})),n.d(t,"d",(function(){return z})),n.d(t,"a",(function(){return k})),n.d(t,"v",(function(){return _})),n.d(t,"f",(function(){return x})),n.d(t,"q",(function(){return T})),n.d(t,"c",(function(){return $})),n.d(t,"y",(function(){return I})),n.d(t,"i",(function(){return L}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function d(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function v(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function b(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function _(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function x(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function T(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function $(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function I(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function L(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),c=r.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(o.width,o.height)+"px",r.appendChild(c)),a.type){case"center":c.style.top=o.height/2-c.offsetHeight/2+"px",c.style.left=o.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-o.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-o.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=a.color,c.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19adc003"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),r=n.n(i);r.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)},r=[];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 a=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 c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,n){var i=c(),r=e-i,u=20,l=0;t="undefined"===typeof t?500:t;var s=function e(){l+=u;var c=Math.easeInOutQuad(l,i,r,t);o(c),l<t?a(e):n&&"function"===typeof n&&n()};s()}var l={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&&u(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&u(0,800)}}},s=l,d=(n("1cc6"),n("2877")),p=Object(d["a"])(s,i,r,!1,null,"f3b72548",null);t["a"]=p.exports},"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 o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function a(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function u(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return r})),n.d(t,"l",(function(){return a})),n.d(t,"n",(function(){return o})),n.d(t,"m",(function(){return c})),n.d(t,"p",(function(){return u})),n.d(t,"x",(function(){return l})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return d})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return h})),n.d(t,"s",(function(){return v})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return y})),n.d(t,"h",(function(){return S})),n.d(t,"j",(function(){return w})),n.d(t,"z",(function(){return O})),n.d(t,"t",(function(){return j})),n.d(t,"k",(function(){return C})),n.d(t,"d",(function(){return _})),n.d(t,"a",(function(){return z})),n.d(t,"v",(function(){return k})),n.d(t,"f",(function(){return x})),n.d(t,"q",(function(){return T})),n.d(t,"c",(function(){return I})),n.d(t,"y",(function(){return F})),n.d(t,"i",(function(){return N}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function a(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function d(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function _(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function x(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function T(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function I(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function F(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function N(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function r(e,t){function n(n){var i=Object.assign({},t.value),r=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),a=r.ele;if(a){a.style.position="relative",a.style.overflow="hidden";var o=a.getBoundingClientRect(),c=a.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(o.width,o.height)+"px",a.appendChild(c)),r.type){case"center":c.style.top=o.height/2-c.offsetHeight/2+"px",c.style.left=o.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-o.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-o.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=r.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",r(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",r(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},f547:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-select",{attrs:{clearable:"",placeholder:"请选择系列号"},model:{value:e.listQuery.seriesId,callback:function(t){e.$set(e.listQuery,"seriesId",t)},expression:"listQuery.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1),e._v(" "),n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"输入imei",clearable:""},on:{clear:e.handleFilter,blur:e.handleFilter},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter(t)}},model:{value:e.listQuery.imei,callback:function(t){e.$set(e.listQuery,"imei",t)},expression:"listQuery.imei"}}),e._v(" "),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("\n 查询\n ")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"imei",prop:"imei",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"iccid",prop:"iccid",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"sn",prop:"sn",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"证书下载状态",prop:"caCertificateStatus",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.caCertificateStatus;return[n("span",[e._v(e._s(e._f("caCertificateStatusFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"版本信息",prop:"deviceVersion",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"激活状态",prop:"activeStatus",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.activeStatus;return[n("span",[e._v(e._s(e._f("activeStatusFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"激活时间",prop:"activeTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.activeTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"更新时间",prop:"updateTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.updateTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},r=[],a=(n("96cf"),n("3b8d")),o=n("333d"),c=n("c7a7"),u=n("ed08"),l=n("aa98"),s=n("7d09"),d={components:{Pagination:o["a"]},directives:{waves:c["a"]},filters:{caCertificateStatusFilter:function(e){return"-1"===e?"未下载":"0"===e?"已下载 类型:非量产":"1"===e?"已下载 类型:量产":"2"===e?"已下载 类型:非量产,未验证":"3"===e?"已下载 类型:量产,未验证":e||"无信息"},activeStatusFilter:function(e){return"0"===e?"未激活":"1"===e?"已激活":e||"无信息"},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(u["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[],selectSeriesOptions:[]}},created:function(){},mounted:function(){this.selectSeries(),this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),r=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(r)&&this.getList()}n()},methods:{exportPage:function(){this.$router.push({path:"/deviceStatistical/deviceInfo/DeviceInfoExport"})},handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["n"])(this.listQuery).then((function(t){var n=t.data,i=n.list,r=n.totalCount;e.list=i,e.total=r,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/deviceStatistical/deviceInfo",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()},selectSeries:function(){var e=Object(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}()}},p=d,f=n("2877"),h=Object(f["a"])(p,i,r,!1,null,"c45fcf98",null);t["default"]=h.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19adc003"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,n){var i=c(),a=e-i,u=20,l=0;t="undefined"===typeof t?500:t;var s=function e(){l+=u;var c=Math.easeInOutQuad(l,i,a,t);o(c),l<t?r(e):n&&"function"===typeof n&&n()};s()}var l={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&&u(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&u(0,800)}}},s=l,d=(n("1cc6"),n("2877")),p=Object(d["a"])(s,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function r(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function u(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"g",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"k",(function(){return u})),n.d(t,"q",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"s",(function(){return d})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return f})),n.d(t,"o",(function(){return h})),n.d(t,"m",(function(){return v})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"p",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"d",(function(){return S})),n.d(t,"e",(function(){return w})),n.d(t,"r",(function(){return O})),n.d(t,"n",(function(){return C})),n.d(t,"f",(function(){return _}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function d(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function _(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),c=r.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(o.width,o.height)+"px",r.appendChild(c)),a.type){case"center":c.style.top=o.height/2-c.offsetHeight/2+"px",c.style.left=o.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-o.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-o.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=a.color,c.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},f547:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-select",{attrs:{clearable:"",placeholder:"请选择系列号"},model:{value:e.listQuery.seriesId,callback:function(t){e.$set(e.listQuery,"seriesId",t)},expression:"listQuery.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1),e._v(" "),n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"输入imei",clearable:""},on:{clear:e.handleFilter,blur:e.handleFilter},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter(t)}},model:{value:e.listQuery.imei,callback:function(t){e.$set(e.listQuery,"imei",t)},expression:"listQuery.imei"}}),e._v(" "),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("\n 查询\n ")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"imei",prop:"imei",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"iccid",prop:"iccid",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"sn",prop:"sn",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"证书下载状态",prop:"caCertificateStatus",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.caCertificateStatus;return[n("span",[e._v(e._s(e._f("caCertificateStatusFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"版本信息",prop:"deviceVersion",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"激活状态",prop:"activeStatus",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.activeStatus;return[n("span",[e._v(e._s(e._f("activeStatusFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"激活时间",prop:"activeTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.activeTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"更新时间",prop:"updateTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.updateTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("96cf"),n("3b8d")),o=n("333d"),c=n("c7a7"),u=n("ed08"),l=n("aa98"),s=n("7d09"),d={components:{Pagination:o["a"]},directives:{waves:c["a"]},filters:{caCertificateStatusFilter:function(e){return"-1"===e?"未下载":"0"===e?"已下载 类型:非量产":"1"===e?"已下载 类型:量产":"2"===e?"已下载 类型:非量产,未验证":"3"===e?"已下载 类型:量产,未验证":e||"无信息"},activeStatusFilter:function(e){return"0"===e?"未激活":"1"===e?"已激活":e||"无信息"},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(u["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[],selectSeriesOptions:[]}},created:function(){},mounted:function(){this.selectSeries(),this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{exportPage:function(){this.$router.push({path:"/deviceStatistical/deviceInfo/DeviceInfoExport"})},handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["i"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/deviceStatistical/deviceInfo",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()},selectSeries:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}},p=d,f=n("2877"),h=Object(f["a"])(p,i,a,!1,null,"c45fcf98",null);t["default"]=h.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2033ddf1"],{1:function(e,t){},2:function(e,t){},3:function(e,t){},3796:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{ref:"excel-upload-input",staticClass:"excel-upload-input",attrs:{type:"file",accept:".xlsx, .xls"},on:{change:e.handleClick}}),e._v(" "),n("div",{staticClass:"drop",on:{drop:e.handleDrop,dragover:e.handleDragover,dragenter:e.handleDragover}},[e._v("\n 点击需要上传信息的Excel文件\n "),n("el-button",{staticStyle:{"margin-left":"16px"},attrs:{loading:e.loading,size:"mini",type:"primary"},on:{click:e.handleUpload}},[e._v("\n 上传\n ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.resultShow,expression:"resultShow"}]},[e._v("\n 上传成功\n ")])],1)])},a=[],i=(n("7f7f"),n("1146")),s=n.n(i),o={props:{beforeUpload:Function,onSuccess:Function},data:function(){return{loading:!1,resultShow:!1,excelData:{header:null,results:null}}},methods:{generateData:function(e){var t=e.header,n=e.results;this.excelData.header=t,this.excelData.results=n,this.onSuccess&&this.onSuccess(this.excelData)},handleDrop:function(e){if(e.stopPropagation(),e.preventDefault(),!this.loading){var t=e.dataTransfer.files;if(1===t.length){var n=t[0];if(!this.isExcel(n))return this.$message.error("Only supports upload .xlsx, .xls, .csv suffix files"),!1;this.upload(n),e.stopPropagation(),e.preventDefault()}else this.$message.error("Only support uploading one file!")}},handleDragover:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},handleUpload:function(){this.$refs["excel-upload-input"].click()},handleClick:function(e){var t=e.target.files,n=t[0];n&&this.upload(n)},upload:function(e){if(this.$refs["excel-upload-input"].value=null,this.beforeUpload){var t=this.beforeUpload(e);t&&this.readerData(e),this.resultShow=!0}else this.readerData(e)},readerData:function(e){var t=this;return this.loading=!0,new Promise((function(n,r){var a=new FileReader;a.onload=function(e){var r=e.target.result,a=s.a.read(r,{type:"array"}),i=a.SheetNames[0],o=a.Sheets[i],c=t.getHeaderRow(o),u=s.a.utils.sheet_to_json(o);t.generateData({header:c,results:u}),t.loading=!1,n()},a.readAsArrayBuffer(e)}))},getHeaderRow:function(e){var t,n=[],r=s.a.utils.decode_range(e["!ref"]),a=r.s.r;for(t=r.s.c;t<=r.e.c;++t){var i=e[s.a.utils.encode_cell({c:t,r:a})],o="UNKNOWN "+t;i&&i.t&&(o=s.a.utils.format_cell(i)),n.push(o)}return n},isExcel:function(e){return/\.(xlsx|xls|csv)$/.test(e.name)}}},c=o,u=(n("b8e5"),n("2877")),d=Object(u["a"])(c,r,a,!1,null,"80157758",null);t["a"]=d.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return c}));n("55dd");var r=n("b775");function a(e){return Object(r["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function i(e){return Object(r["a"])({url:"/device/series/add",method:"post",data:e})}function s(e){return Object(r["a"])({url:"/device/series/edit",method:"post",data:e})}function o(e){return Object(r["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function c(){return Object(r["a"])({url:"/device/series/listAll",method:"post"})}},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"g",(function(){return i})),n.d(t,"i",(function(){return s})),n.d(t,"h",(function(){return o})),n.d(t,"k",(function(){return c})),n.d(t,"q",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"s",(function(){return l})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return f})),n.d(t,"o",(function(){return h})),n.d(t,"m",(function(){return v})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"p",(function(){return b})),n.d(t,"l",(function(){return O})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return D})),n.d(t,"r",(function(){return x})),n.d(t,"n",(function(){return S})),n.d(t,"f",(function(){return y}));n("55dd");var r=n("b775");function a(e){return Object(r["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function i(e){return Object(r["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function s(e){return Object(r["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(r["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(e){return Object(r["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function d(e){return Object(r["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(r["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(r["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(r["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(r["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(r["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(r["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(r["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(r["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function O(){return Object(r["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function j(e){return Object(r["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function D(e){return Object(r["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function x(e){return Object(r["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function S(e){return Object(r["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function y(e){return Object(r["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}},b486:function(e,t,n){},b8e5:function(e,t,n){"use strict";var r=n("b486"),a=n.n(r);a.a},f96d:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"importDeviceChannel",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("upload-excel-component",{attrs:{"on-success":e.handleSuccess,"before-upload":e.beforeUpload}}),e._v(" "),n("el-form-item",{attrs:{prop:"seriesId",label:"所属系列"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.device.seriesId,callback:function(t){e.$set(e.device,"seriesId",t)},expression:"device.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"deptId",label:"所属客户"}},[n("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},a=[],i=(n("ac6a"),n("456d"),n("96cf"),n("3b8d")),s=n("3796"),o=n("aa98"),c=n("fe05"),u=n("7d09"),d={components:{UploadExcelComponent:s["a"]},data:function(){return{loading:!1,device:{selectChannelNums:[],channelNums:[],channelNumsMessage:"",channelRules:"",imeis:[],seriesId:"",deptId:""},rules:{},selectSeriesOptions:[],tableData:"",options:[],selectDeptParents:[]}},mounted:function(){this.selectSeries(),this.selectDeptParent()},methods:{beforeUpload:function(e){var t=e.size/1024/1024<1;return!!t||(this.$message({message:"Please do not upload files larger than 1m in size.",type:"warning"}),!1)},handleSuccess:function(e){var t=e.results;e.header;this.device.infos=t},setDefault:function(){this.$refs.device=[]},selectSeries:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.importDeviceChannel.validate((function(t,n){if(t)Object(o["t"])(JSON.stringify(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 r=n[Object.keys(n)[0]][0].message;e.$message({message:r,type:"error"}),e.loading=!1}})))},toDeviceList:function(){this.$router.push({path:"/deviceManagement/device"})},handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]},selectDeptParent:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["e"])().then((function(e){var n=e.data;t.options=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}},l=d,p=n("2877"),f=Object(p["a"])(l,r,a,!1,null,"6f3a33c7",null);t["default"]=f.exports},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return u}));n("7f7f"),n("55dd");var r=n("b775");function a(e){return Object(r["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,name:e.name}})}function i(){return Object(r["a"])({url:"/sys/dept/listAll",method:"post"})}function s(){return Object(r["a"])({url:"/sys/dept/listAllTree",method:"post"})}function o(e){return Object(r["a"])({url:"/sys/dept/add",method:"post",data:e})}function c(e){return Object(r["a"])({url:"/sys/dept/edit",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2033ddf1"],{1:function(e,t){},2:function(e,t){},3:function(e,t){},3796:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{ref:"excel-upload-input",staticClass:"excel-upload-input",attrs:{type:"file",accept:".xlsx, .xls"},on:{change:e.handleClick}}),e._v(" "),n("div",{staticClass:"drop",on:{drop:e.handleDrop,dragover:e.handleDragover,dragenter:e.handleDragover}},[e._v("\n 点击需要上传信息的Excel文件\n "),n("el-button",{staticStyle:{"margin-left":"16px"},attrs:{loading:e.loading,size:"mini",type:"primary"},on:{click:e.handleUpload}},[e._v("\n 上传\n ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.resultShow,expression:"resultShow"}]},[e._v("\n 上传成功\n ")])],1)])},a=[],i=(n("7f7f"),n("1146")),o=n.n(i),s={props:{beforeUpload:Function,onSuccess:Function},data:function(){return{loading:!1,resultShow:!1,excelData:{header:null,results:null}}},methods:{generateData:function(e){var t=e.header,n=e.results;this.excelData.header=t,this.excelData.results=n,this.onSuccess&&this.onSuccess(this.excelData)},handleDrop:function(e){if(e.stopPropagation(),e.preventDefault(),!this.loading){var t=e.dataTransfer.files;if(1===t.length){var n=t[0];if(!this.isExcel(n))return this.$message.error("Only supports upload .xlsx, .xls, .csv suffix files"),!1;this.upload(n),e.stopPropagation(),e.preventDefault()}else this.$message.error("Only support uploading one file!")}},handleDragover:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},handleUpload:function(){this.$refs["excel-upload-input"].click()},handleClick:function(e){var t=e.target.files,n=t[0];n&&this.upload(n)},upload:function(e){if(this.$refs["excel-upload-input"].value=null,this.beforeUpload){var t=this.beforeUpload(e);t&&this.readerData(e),this.resultShow=!0}else this.readerData(e)},readerData:function(e){var t=this;return this.loading=!0,new Promise((function(n,r){var a=new FileReader;a.onload=function(e){var r=e.target.result,a=o.a.read(r,{type:"array"}),i=a.SheetNames[0],s=a.Sheets[i],c=t.getHeaderRow(s),u=o.a.utils.sheet_to_json(s);t.generateData({header:c,results:u}),t.loading=!1,n()},a.readAsArrayBuffer(e)}))},getHeaderRow:function(e){var t,n=[],r=o.a.utils.decode_range(e["!ref"]),a=r.s.r;for(t=r.s.c;t<=r.e.c;++t){var i=e[o.a.utils.encode_cell({c:t,r:a})],s="UNKNOWN "+t;i&&i.t&&(s=o.a.utils.format_cell(i)),n.push(s)}return n},isExcel:function(e){return/\.(xlsx|xls|csv)$/.test(e.name)}}},c=s,u=(n("b8e5"),n("2877")),d=Object(u["a"])(c,r,a,!1,null,"80157758",null);t["a"]=d.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return c}));n("55dd");var r=n("b775");function a(e){return Object(r["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function i(e){return Object(r["a"])({url:"/device/series/add",method:"post",data:e})}function o(e){return Object(r["a"])({url:"/device/series/edit",method:"post",data:e})}function s(e){return Object(r["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function c(){return Object(r["a"])({url:"/device/series/listAll",method:"post"})}},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return i})),n.d(t,"n",(function(){return o})),n.d(t,"m",(function(){return s})),n.d(t,"p",(function(){return c})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return h})),n.d(t,"s",(function(){return v})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return O})),n.d(t,"h",(function(){return j})),n.d(t,"j",(function(){return S})),n.d(t,"z",(function(){return D})),n.d(t,"t",(function(){return x})),n.d(t,"k",(function(){return y})),n.d(t,"d",(function(){return C})),n.d(t,"a",(function(){return w})),n.d(t,"v",(function(){return z})),n.d(t,"f",(function(){return I})),n.d(t,"q",(function(){return _})),n.d(t,"c",(function(){return k})),n.d(t,"y",(function(){return P})),n.d(t,"i",(function(){return N}));n("55dd");var r=n("b775");function a(e){return Object(r["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function i(e){return Object(r["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(r["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function s(e){return Object(r["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(e){return Object(r["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function d(e){return Object(r["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(r["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(r["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(r["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(r["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(r["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(r["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(r["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(r["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function O(){return Object(r["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function j(e){return Object(r["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function S(e){return Object(r["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function D(e){return Object(r["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function x(e){return Object(r["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function y(e){return Object(r["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function C(e){return Object(r["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function w(e){return Object(r["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function z(e){return Object(r["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function I(e){return Object(r["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function _(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function k(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function P(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function N(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},b486:function(e,t,n){},b8e5:function(e,t,n){"use strict";var r=n("b486"),a=n.n(r);a.a},f96d:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"importDeviceChannel",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("upload-excel-component",{attrs:{"on-success":e.handleSuccess,"before-upload":e.beforeUpload}}),e._v(" "),n("el-form-item",{attrs:{prop:"seriesId",label:"所属系列"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.device.seriesId,callback:function(t){e.$set(e.device,"seriesId",t)},expression:"device.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"deptId",label:"所属客户"}},[n("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},a=[],i=(n("ac6a"),n("456d"),n("96cf"),n("3b8d")),o=n("3796"),s=n("aa98"),c=n("fe05"),u=n("7d09"),d={components:{UploadExcelComponent:o["a"]},data:function(){return{loading:!1,device:{selectChannelNums:[],channelNums:[],channelNumsMessage:"",channelRules:"",imeis:[],seriesId:"",deptId:""},rules:{},selectSeriesOptions:[],tableData:"",options:[],selectDeptParents:[]}},mounted:function(){this.selectSeries(),this.selectDeptParent()},methods:{beforeUpload:function(e){var t=e.size/1024/1024<1;return!!t||(this.$message({message:"Please do not upload files larger than 1m in size.",type:"warning"}),!1)},handleSuccess:function(e){var t=e.results;e.header;this.device.infos=t},setDefault:function(){this.$refs.device=[]},selectSeries:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.importDeviceChannel.validate((function(t,n){if(t)Object(s["B"])(JSON.stringify(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 r=n[Object.keys(n)[0]][0].message;e.$message({message:r,type:"error"}),e.loading=!1}})))},toDeviceList:function(){this.$router.push({path:"/deviceManagement/device"})},handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]},selectDeptParent:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["e"])().then((function(e){var n=e.data;t.options=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}},l=d,p=n("2877"),f=Object(p["a"])(l,r,a,!1,null,"6f3a33c7",null);t["default"]=f.exports},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return u}));n("7f7f"),n("55dd");var r=n("b775");function a(e){return Object(r["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,name:e.name}})}function i(){return Object(r["a"])({url:"/sys/dept/listAll",method:"post"})}function o(){return Object(r["a"])({url:"/sys/dept/listAllTree",method:"post"})}function s(e){return Object(r["a"])({url:"/sys/dept/add",method:"post",data:e})}function c(e){return Object(r["a"])({url:"/sys/dept/edit",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21c3dd8a"],{"5c5e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"editCarType",attrs:{model:e.carType,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"brand",label:"渠道号"}},[n("el-input",{model:{value:e.carType.brand,callback:function(t){e.$set(e.carType,"brand",t)},expression:"carType.brand"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"carId",label:"品牌车型:"}},[n("el-input",{attrs:{placeholder:"奥迪-车系"},model:{value:e.carType.carId,callback:function(t){e.$set(e.carType,"carId",t)},expression:"carType.carId"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"description",label:"品牌车型:"}},[n("el-input",{attrs:{placeholder:"奥迪-车系"},model:{value:e.carType.description,callback:function(t){e.$set(e.carType,"description",t)},expression:"carType.description"}})],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.toDeviceChannelList}},[e._v("取消")])],1)],1)],1)],1)},i=[],a=(n("ac6a"),n("456d"),n("aa98")),c={brand:"品牌",carId:"车系"},o={data:function(){var e=function(e,t,n){0===t.length?n(new Error(c[e.field]+"必须填写")):n()};return{loading:!1,carType:{},rules:{brand:[{validator:e}],carId:[{validator:e}]}}},mounted:function(){this.carType=this.$route.query.carType},methods:{setDefault:function(){this.$refs.editCarType.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editCarType.validate((function(t,n){if(t)Object(a["v"])(e.carType).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toDeviceChannelList()})).catch((function(){e.loading=!1}));else{var r=n[Object.keys(n)[0]][0].message;e.$message({message:r,type:"error"}),e.loading=!1}})))},handleChange:function(e){var t=e.length;t-=1,this.dept.parentId=e[t]},toDeviceChannelList:function(){this.$router.push({path:"/configManagement/carType"})}}},d=o,u=n("2877"),s=Object(u["a"])(d,r,i,!1,null,"5bea8935",null);t["default"]=s.exports},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return i})),n.d(t,"l",(function(){return a})),n.d(t,"n",(function(){return c})),n.d(t,"m",(function(){return o})),n.d(t,"p",(function(){return d})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return v})),n.d(t,"s",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"w",(function(){return g})),n.d(t,"r",(function(){return j})),n.d(t,"h",(function(){return y})),n.d(t,"j",(function(){return C})),n.d(t,"z",(function(){return O})),n.d(t,"t",(function(){return T})),n.d(t,"k",(function(){return S})),n.d(t,"d",(function(){return I})),n.d(t,"a",(function(){return D})),n.d(t,"v",(function(){return z})),n.d(t,"f",(function(){return k})),n.d(t,"q",(function(){return x})),n.d(t,"c",(function(){return $})),n.d(t,"y",(function(){return w})),n.d(t,"i",(function(){return _}));n("55dd");var r=n("b775");function i(e){return Object(r["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function a(e){return Object(r["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(r["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(r["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function d(e){return Object(r["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(r["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(r["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(r["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(r["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(r["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function h(e){return Object(r["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(r["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function b(e){return Object(r["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function g(e){return Object(r["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(r["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function y(e){return Object(r["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function C(e){return Object(r["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function O(e){return Object(r["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function T(e){return Object(r["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function S(e){return Object(r["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function I(e){return Object(r["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function D(e){return Object(r["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function z(e){return Object(r["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function k(e){return Object(r["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function x(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function $(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function w(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function _(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22e5f704"],{3304:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"addChannel",attrs:{model:e.channel,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"seriesNum",label:"渠道号"}},[n("el-input",{model:{value:e.channel.channelNum,callback:function(t){e.$set(e.channel,"channelNum",t)},expression:"channel.channelNum"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"remark",label:"品牌车型:"}},[n("el-input",{attrs:{placeholder:"奥迪-车系"},model:{value:e.channel.brand,callback:function(t){e.$set(e.channel,"brand",t)},expression:"channel.brand"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),n("el-button",{on:{click:e.toSeriesList}},[e._v("取消")])],1)],1)],1)],1)},i=[],r=(n("ac6a"),n("456d"),n("aa98")),c={channelNum:"渠道号",brand:"品牌车型"},o={data:function(){var e=function(e,t,n){0===t.length?n(new Error(c[e.field]+"必须填写")):n()};return{loading:!1,channel:{channelNum:"",brand:""},rules:{channelNum:[{validator:e}],brand:[{validator:e}]}}},mounted:function(){},methods:{setDefault:function(){this.$refs.addSeries.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.addChannel.validate((function(t,n){if(t)Object(r["a"])(e.channel).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toSeriesList()})).catch((function(){e.loading=!1}));else{var a=n[Object.keys(n)[0]][0].message;e.$message({message:a,type:"error"}),e.loading=!1}})))},toSeriesList:function(){this.$router.push({path:"/configManagement/deviceChannel"})}}},d=o,u=n("2877"),l=Object(u["a"])(d,a,i,!1,null,"5398e163",null);t["default"]=l.exports},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return i})),n.d(t,"g",(function(){return r})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return o})),n.d(t,"k",(function(){return d})),n.d(t,"q",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"s",(function(){return s})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return h})),n.d(t,"o",(function(){return f})),n.d(t,"m",(function(){return v})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"p",(function(){return g})),n.d(t,"l",(function(){return j})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return C})),n.d(t,"r",(function(){return S})),n.d(t,"n",(function(){return D})),n.d(t,"f",(function(){return y}));n("55dd");var a=n("b775");function i(e){return Object(a["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(a["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(a["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(a["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function d(e){return Object(a["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function s(e){return Object(a["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(a["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(a["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(a["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function b(e){return Object(a["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function g(e){return Object(a["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(a["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(a["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function C(e){return Object(a["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function S(e){return Object(a["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function D(e){return Object(a["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function y(e){return Object(a["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22e5f704"],{3304:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"addChannel",attrs:{model:e.channel,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"seriesNum",label:"渠道号"}},[n("el-input",{model:{value:e.channel.channelNum,callback:function(t){e.$set(e.channel,"channelNum",t)},expression:"channel.channelNum"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"remark",label:"品牌车型:"}},[n("el-input",{attrs:{placeholder:"奥迪-车系"},model:{value:e.channel.brand,callback:function(t){e.$set(e.channel,"brand",t)},expression:"channel.brand"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),n("el-button",{on:{click:e.toSeriesList}},[e._v("取消")])],1)],1)],1)],1)},i=[],a=(n("ac6a"),n("456d"),n("aa98")),c={channelNum:"渠道号",brand:"品牌车型"},o={data:function(){var e=function(e,t,n){0===t.length?n(new Error(c[e.field]+"必须填写")):n()};return{loading:!1,channel:{channelNum:"",brand:""},rules:{channelNum:[{validator:e}],brand:[{validator:e}]}}},mounted:function(){},methods:{setDefault:function(){this.$refs.addSeries.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.addChannel.validate((function(t,n){if(t)Object(a["b"])(e.channel).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toSeriesList()})).catch((function(){e.loading=!1}));else{var r=n[Object.keys(n)[0]][0].message;e.$message({message:r,type:"error"}),e.loading=!1}})))},toSeriesList:function(){this.$router.push({path:"/configManagement/deviceChannel"})}}},d=o,u=n("2877"),s=Object(u["a"])(d,r,i,!1,null,"5398e163",null);t["default"]=s.exports},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return i})),n.d(t,"l",(function(){return a})),n.d(t,"n",(function(){return c})),n.d(t,"m",(function(){return o})),n.d(t,"p",(function(){return d})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return h})),n.d(t,"s",(function(){return v})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"w",(function(){return g})),n.d(t,"r",(function(){return j})),n.d(t,"h",(function(){return O})),n.d(t,"j",(function(){return C})),n.d(t,"z",(function(){return S})),n.d(t,"t",(function(){return y})),n.d(t,"k",(function(){return z})),n.d(t,"d",(function(){return k})),n.d(t,"a",(function(){return D})),n.d(t,"v",(function(){return I})),n.d(t,"f",(function(){return T})),n.d(t,"q",(function(){return x})),n.d(t,"c",(function(){return w})),n.d(t,"y",(function(){return N})),n.d(t,"i",(function(){return $}));n("55dd");var r=n("b775");function i(e){return Object(r["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function a(e){return Object(r["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(r["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(r["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function d(e){return Object(r["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(r["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(r["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(r["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(r["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(r["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(r["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(r["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function b(e){return Object(r["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function g(e){return Object(r["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(r["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(r["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function C(e){return Object(r["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function S(e){return Object(r["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function y(e){return Object(r["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function z(e){return Object(r["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function k(e){return Object(r["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function D(e){return Object(r["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function I(e){return Object(r["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function T(e){return Object(r["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function x(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function w(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function N(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function $(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-30d552ac"],{"30ed":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"addCarType",attrs:{model:e.carType,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"brand",label:"品牌:"}},[n("el-input",{model:{value:e.carType.brand,callback:function(t){e.$set(e.carType,"brand",t)},expression:"carType.brand"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"carId",label:"车系:"}},[n("el-input",{model:{value:e.carType.carId,callback:function(t){e.$set(e.carType,"carId",t)},expression:"carType.carId"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"description",label:"介绍:"}},[n("el-input",{model:{value:e.carType.description,callback:function(t){e.$set(e.carType,"description",t)},expression:"carType.description"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),n("el-button",{on:{click:e.toSeriesList}},[e._v("取消")])],1)],1)],1)],1)},i=[],a=(n("ac6a"),n("456d"),n("aa98")),c={brand:"品牌",carId:"车系"},o={data:function(){var e=function(e,t,n){0===t.length?n(new Error(c[e.field]+"必须填写")):n()};return{loading:!1,carType:{},rules:{brand:[{validator:e}],carId:[{validator:e}]}}},mounted:function(){},methods:{setDefault:function(){this.$refs.addCarType.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.addCarType.validate((function(t,n){if(t)Object(a["a"])(e.carType).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toSeriesList()})).catch((function(){e.loading=!1}));else{var r=n[Object.keys(n)[0]][0].message;e.$message({message:r,type:"error"}),e.loading=!1}})))},toSeriesList:function(){this.$router.push({path:"/configManagement/carType"})}}},d=o,u=n("2877"),s=Object(u["a"])(d,r,i,!1,null,"f5f36fba",null);t["default"]=s.exports},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return i})),n.d(t,"l",(function(){return a})),n.d(t,"n",(function(){return c})),n.d(t,"m",(function(){return o})),n.d(t,"p",(function(){return d})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return v})),n.d(t,"s",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"w",(function(){return g})),n.d(t,"r",(function(){return j})),n.d(t,"h",(function(){return y})),n.d(t,"j",(function(){return O})),n.d(t,"z",(function(){return C})),n.d(t,"t",(function(){return T})),n.d(t,"k",(function(){return S})),n.d(t,"d",(function(){return I})),n.d(t,"a",(function(){return z})),n.d(t,"v",(function(){return k})),n.d(t,"f",(function(){return D})),n.d(t,"q",(function(){return x})),n.d(t,"c",(function(){return w})),n.d(t,"y",(function(){return $})),n.d(t,"i",(function(){return _}));n("55dd");var r=n("b775");function i(e){return Object(r["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function a(e){return Object(r["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(r["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(r["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function d(e){return Object(r["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(r["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(r["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(r["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(r["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(r["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function h(e){return Object(r["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(r["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function b(e){return Object(r["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function g(e){return Object(r["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(r["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function y(e){return Object(r["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function O(e){return Object(r["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function C(e){return Object(r["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function T(e){return Object(r["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function S(e){return Object(r["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function I(e){return Object(r["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function z(e){return Object(r["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function k(e){return Object(r["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function D(e){return Object(r["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function x(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function w(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function $(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function _(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4913999e"],{"0122":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"importDeviceChannel",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("upload-excel-component",{attrs:{"on-success":e.handleSuccess,"before-upload":e.beforeUpload}}),e._v(" "),n("el-form-item",{attrs:{prop:"seriesId",label:"所属系列"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.device.seriesId,callback:function(t){e.$set(e.device,"seriesId",t)},expression:"device.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"deptId",label:"所属客户"}},[n("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"channelNumsMessage",label:"终端提示文字"}},[n("el-input",{model:{value:e.device.channelNumsMessage,callback:function(t){e.$set(e.device,"channelNumsMessage",t)},expression:"device.channelNumsMessage"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"channelRules",label:"规则"}},[n("el-select",{attrs:{placeholder:"选择"},model:{value:e.device.channelRules,callback:function(t){e.$set(e.device,"channelRules",t)},expression:"device.channelRules"}},[n("el-option",{attrs:{label:"白名单",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"黑名单",value:"1"}})],1)],1),e._v(" "),n("el-transfer",{attrs:{data:e.device.selectChannelNums,titles:e.transferTitle},model:{value:e.device.channelNums,callback:function(t){e.$set(e.device,"channelNums",t)},expression:"device.channelNums"}}),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},r=[],i=(n("456d"),n("96cf"),n("3b8d")),s=(n("ac6a"),n("3796")),c=n("aa98"),o=n("7d09"),u=n("fe05"),l={channelNumsMessage:"终端提示文字",channelRules:"规则"},d={components:{UploadExcelComponent:s["a"]},data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(l[e.field]+"必须填写")):n()};return{loading:!1,device:{selectChannelNums:[],channelNums:[],channelNumsMessage:"",channelRules:"",imeis:[],seriesId:"",deptId:""},rules:{channelNumsMessage:[{validator:e}],channelRules:[{validator:e}]},selectSeriesOptions:[],tableData:"",options:[],selectDeptParents:[],transferTitle:["渠道号列表","已选择"]}},mounted:function(){this.getTransfer(),this.selectSeries(),this.selectDeptParent()},methods:{beforeUpload:function(e){var t=e.size/1024/1024<1;return!!t||(this.$message({message:"Please do not upload files larger than 1m in size.",type:"warning"}),!1)},handleSuccess:function(e){var t=e.results;e.header;this.device.infos=t},setDefault:function(){this.$refs.device=[]},getTransfer:function(){var e=this;Object(c["l"])().then((function(t){var n=t.data;n.forEach((function(t){e.device.selectChannelNums.push({key:t.channelId,label:t.channelNum+"_"+t.brand})}))}))},selectSeries:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.importDeviceChannel.validate((function(t,n){if(console.log(JSON.stringify(e.device)),t)Object(c["s"])(JSON.stringify(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"})},handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]},selectDeptParent:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["e"])().then((function(e){var n=e.data;t.options=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}},p=d,f=n("2877"),h=Object(f["a"])(p,a,r,!1,null,"1c8540ad",null);t["default"]=h.exports},1:function(e,t){},2:function(e,t){},3:function(e,t){},3796:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{ref:"excel-upload-input",staticClass:"excel-upload-input",attrs:{type:"file",accept:".xlsx, .xls"},on:{change:e.handleClick}}),e._v(" "),n("div",{staticClass:"drop",on:{drop:e.handleDrop,dragover:e.handleDragover,dragenter:e.handleDragover}},[e._v("\n 点击需要上传信息的Excel文件\n "),n("el-button",{staticStyle:{"margin-left":"16px"},attrs:{loading:e.loading,size:"mini",type:"primary"},on:{click:e.handleUpload}},[e._v("\n 上传\n ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.resultShow,expression:"resultShow"}]},[e._v("\n 上传成功\n ")])],1)])},r=[],i=(n("7f7f"),n("1146")),s=n.n(i),c={props:{beforeUpload:Function,onSuccess:Function},data:function(){return{loading:!1,resultShow:!1,excelData:{header:null,results:null}}},methods:{generateData:function(e){var t=e.header,n=e.results;this.excelData.header=t,this.excelData.results=n,this.onSuccess&&this.onSuccess(this.excelData)},handleDrop:function(e){if(e.stopPropagation(),e.preventDefault(),!this.loading){var t=e.dataTransfer.files;if(1===t.length){var n=t[0];if(!this.isExcel(n))return this.$message.error("Only supports upload .xlsx, .xls, .csv suffix files"),!1;this.upload(n),e.stopPropagation(),e.preventDefault()}else this.$message.error("Only support uploading one file!")}},handleDragover:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},handleUpload:function(){this.$refs["excel-upload-input"].click()},handleClick:function(e){var t=e.target.files,n=t[0];n&&this.upload(n)},upload:function(e){if(this.$refs["excel-upload-input"].value=null,this.beforeUpload){var t=this.beforeUpload(e);t&&this.readerData(e),this.resultShow=!0}else this.readerData(e)},readerData:function(e){var t=this;return this.loading=!0,new Promise((function(n,a){var r=new FileReader;r.onload=function(e){var a=e.target.result,r=s.a.read(a,{type:"array"}),i=r.SheetNames[0],c=r.Sheets[i],o=t.getHeaderRow(c),u=s.a.utils.sheet_to_json(c);t.generateData({header:o,results:u}),t.loading=!1,n()},r.readAsArrayBuffer(e)}))},getHeaderRow:function(e){var t,n=[],a=s.a.utils.decode_range(e["!ref"]),r=a.s.r;for(t=a.s.c;t<=a.e.c;++t){var i=e[s.a.utils.encode_cell({c:t,r:r})],c="UNKNOWN "+t;i&&i.t&&(c=s.a.utils.format_cell(i)),n.push(c)}return n},isExcel:function(e){return/\.(xlsx|xls|csv)$/.test(e.name)}}},o=c,u=(n("b8e5"),n("2877")),l=Object(u["a"])(o,a,r,!1,null,"80157758",null);t["a"]=l.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return o}));n("55dd");var a=n("b775");function r(e){return Object(a["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function i(e){return Object(a["a"])({url:"/device/series/add",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/device/series/edit",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function o(){return Object(a["a"])({url:"/device/series/listAll",method:"post"})}},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return r})),n.d(t,"g",(function(){return i})),n.d(t,"i",(function(){return s})),n.d(t,"h",(function(){return c})),n.d(t,"k",(function(){return o})),n.d(t,"q",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"s",(function(){return d})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return f})),n.d(t,"o",(function(){return h})),n.d(t,"m",(function(){return v})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"p",(function(){return b})),n.d(t,"l",(function(){return O})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return x})),n.d(t,"r",(function(){return D})),n.d(t,"n",(function(){return S})),n.d(t,"f",(function(){return y}));n("55dd");var a=n("b775");function r(e){return Object(a["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function i(e){return Object(a["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function s(e){return Object(a["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(a["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(e){return Object(a["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function d(e){return Object(a["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(a["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(a["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(a["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(a["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(a["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(a["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function O(){return Object(a["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function j(e){return Object(a["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function x(e){return Object(a["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function D(e){return Object(a["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function S(e){return Object(a["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function y(e){return Object(a["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}},b486:function(e,t,n){},b8e5:function(e,t,n){"use strict";var a=n("b486"),r=n.n(a);r.a},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return u}));n("7f7f"),n("55dd");var a=n("b775");function r(e){return Object(a["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,name:e.name}})}function i(){return Object(a["a"])({url:"/sys/dept/listAll",method:"post"})}function s(){return Object(a["a"])({url:"/sys/dept/listAllTree",method:"post"})}function c(e){return Object(a["a"])({url:"/sys/dept/add",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/sys/dept/edit",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4913999e"],{"0122":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"importDeviceChannel",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("upload-excel-component",{attrs:{"on-success":e.handleSuccess,"before-upload":e.beforeUpload}}),e._v(" "),n("el-form-item",{attrs:{prop:"seriesId",label:"所属系列"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.device.seriesId,callback:function(t){e.$set(e.device,"seriesId",t)},expression:"device.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"deptId",label:"所属客户"}},[n("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"channelNumsMessage",label:"终端提示文字"}},[n("el-input",{model:{value:e.device.channelNumsMessage,callback:function(t){e.$set(e.device,"channelNumsMessage",t)},expression:"device.channelNumsMessage"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"channelRules",label:"规则"}},[n("el-select",{attrs:{placeholder:"选择"},model:{value:e.device.channelRules,callback:function(t){e.$set(e.device,"channelRules",t)},expression:"device.channelRules"}},[n("el-option",{attrs:{label:"白名单",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"黑名单",value:"1"}})],1)],1),e._v(" "),n("el-transfer",{attrs:{data:e.device.selectChannelNums,titles:e.transferTitle},model:{value:e.device.channelNums,callback:function(t){e.$set(e.device,"channelNums",t)},expression:"device.channelNums"}}),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},a=[],i=(n("456d"),n("96cf"),n("3b8d")),s=(n("ac6a"),n("3796")),o=n("aa98"),c=n("7d09"),u=n("fe05"),d={channelNumsMessage:"终端提示文字",channelRules:"规则"},l={components:{UploadExcelComponent:s["a"]},data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(d[e.field]+"必须填写")):n()};return{loading:!1,device:{selectChannelNums:[],channelNums:[],channelNumsMessage:"",channelRules:"",imeis:[],seriesId:"",deptId:""},rules:{channelNumsMessage:[{validator:e}],channelRules:[{validator:e}]},selectSeriesOptions:[],tableData:"",options:[],selectDeptParents:[],transferTitle:["渠道号列表","已选择"]}},mounted:function(){this.getTransfer(),this.selectSeries(),this.selectDeptParent()},methods:{beforeUpload:function(e){var t=e.size/1024/1024<1;return!!t||(this.$message({message:"Please do not upload files larger than 1m in size.",type:"warning"}),!1)},handleSuccess:function(e){var t=e.results;e.header;this.device.infos=t},setDefault:function(){this.$refs.device=[]},getTransfer:function(){var e=this;Object(o["r"])().then((function(t){var n=t.data;n.forEach((function(t){e.device.selectChannelNums.push({key:t.channelId,label:t.channelNum+"_"+t.brand})}))}))},selectSeries:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(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}(),onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.importDeviceChannel.validate((function(t,n){if(console.log(JSON.stringify(e.device)),t)Object(o["A"])(JSON.stringify(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 r=n[Object.keys(n)[0]][0].message;e.$message({message:r,type:"error"}),e.loading=!1}})))},toDeviceList:function(){this.$router.push({path:"/deviceManagement/device"})},handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]},selectDeptParent:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["e"])().then((function(e){var n=e.data;t.options=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}},p=l,f=n("2877"),h=Object(f["a"])(p,r,a,!1,null,"1c8540ad",null);t["default"]=h.exports},1:function(e,t){},2:function(e,t){},3:function(e,t){},3796:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{ref:"excel-upload-input",staticClass:"excel-upload-input",attrs:{type:"file",accept:".xlsx, .xls"},on:{change:e.handleClick}}),e._v(" "),n("div",{staticClass:"drop",on:{drop:e.handleDrop,dragover:e.handleDragover,dragenter:e.handleDragover}},[e._v("\n 点击需要上传信息的Excel文件\n "),n("el-button",{staticStyle:{"margin-left":"16px"},attrs:{loading:e.loading,size:"mini",type:"primary"},on:{click:e.handleUpload}},[e._v("\n 上传\n ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.resultShow,expression:"resultShow"}]},[e._v("\n 上传成功\n ")])],1)])},a=[],i=(n("7f7f"),n("1146")),s=n.n(i),o={props:{beforeUpload:Function,onSuccess:Function},data:function(){return{loading:!1,resultShow:!1,excelData:{header:null,results:null}}},methods:{generateData:function(e){var t=e.header,n=e.results;this.excelData.header=t,this.excelData.results=n,this.onSuccess&&this.onSuccess(this.excelData)},handleDrop:function(e){if(e.stopPropagation(),e.preventDefault(),!this.loading){var t=e.dataTransfer.files;if(1===t.length){var n=t[0];if(!this.isExcel(n))return this.$message.error("Only supports upload .xlsx, .xls, .csv suffix files"),!1;this.upload(n),e.stopPropagation(),e.preventDefault()}else this.$message.error("Only support uploading one file!")}},handleDragover:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},handleUpload:function(){this.$refs["excel-upload-input"].click()},handleClick:function(e){var t=e.target.files,n=t[0];n&&this.upload(n)},upload:function(e){if(this.$refs["excel-upload-input"].value=null,this.beforeUpload){var t=this.beforeUpload(e);t&&this.readerData(e),this.resultShow=!0}else this.readerData(e)},readerData:function(e){var t=this;return this.loading=!0,new Promise((function(n,r){var a=new FileReader;a.onload=function(e){var r=e.target.result,a=s.a.read(r,{type:"array"}),i=a.SheetNames[0],o=a.Sheets[i],c=t.getHeaderRow(o),u=s.a.utils.sheet_to_json(o);t.generateData({header:c,results:u}),t.loading=!1,n()},a.readAsArrayBuffer(e)}))},getHeaderRow:function(e){var t,n=[],r=s.a.utils.decode_range(e["!ref"]),a=r.s.r;for(t=r.s.c;t<=r.e.c;++t){var i=e[s.a.utils.encode_cell({c:t,r:a})],o="UNKNOWN "+t;i&&i.t&&(o=s.a.utils.format_cell(i)),n.push(o)}return n},isExcel:function(e){return/\.(xlsx|xls|csv)$/.test(e.name)}}},c=o,u=(n("b8e5"),n("2877")),d=Object(u["a"])(c,r,a,!1,null,"80157758",null);t["a"]=d.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return c}));n("55dd");var r=n("b775");function a(e){return Object(r["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function i(e){return Object(r["a"])({url:"/device/series/add",method:"post",data:e})}function s(e){return Object(r["a"])({url:"/device/series/edit",method:"post",data:e})}function o(e){return Object(r["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function c(){return Object(r["a"])({url:"/device/series/listAll",method:"post"})}},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return i})),n.d(t,"n",(function(){return s})),n.d(t,"m",(function(){return o})),n.d(t,"p",(function(){return c})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return h})),n.d(t,"s",(function(){return v})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return O})),n.d(t,"h",(function(){return j})),n.d(t,"j",(function(){return S})),n.d(t,"z",(function(){return x})),n.d(t,"t",(function(){return D})),n.d(t,"k",(function(){return y})),n.d(t,"d",(function(){return C})),n.d(t,"a",(function(){return w})),n.d(t,"v",(function(){return N})),n.d(t,"f",(function(){return _})),n.d(t,"q",(function(){return k})),n.d(t,"c",(function(){return I})),n.d(t,"y",(function(){return z})),n.d(t,"i",(function(){return T}));n("55dd");var r=n("b775");function a(e){return Object(r["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function i(e){return Object(r["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function s(e){return Object(r["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(r["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(e){return Object(r["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function d(e){return Object(r["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(r["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(r["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(r["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(r["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(r["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(r["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(r["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(r["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function O(){return Object(r["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function j(e){return Object(r["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function S(e){return Object(r["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function x(e){return Object(r["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function D(e){return Object(r["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function y(e){return Object(r["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function C(e){return Object(r["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function w(e){return Object(r["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function N(e){return Object(r["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function _(e){return Object(r["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function k(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function I(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function z(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function T(e){return Object(r["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},b486:function(e,t,n){},b8e5:function(e,t,n){"use strict";var r=n("b486"),a=n.n(r);a.a},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return u}));n("7f7f"),n("55dd");var r=n("b775");function a(e){return Object(r["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,name:e.name}})}function i(){return Object(r["a"])({url:"/sys/dept/listAll",method:"post"})}function s(){return Object(r["a"])({url:"/sys/dept/listAllTree",method:"post"})}function o(e){return Object(r["a"])({url:"/sys/dept/add",method:"post",data:e})}function c(e){return Object(r["a"])({url:"/sys/dept/edit",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-54a05ba9"],{"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 c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,n){var i=c(),a=e-i,u=20,d=0;t="undefined"===typeof t?500:t;var s=function e(){d+=u;var c=Math.easeInOutQuad(d,i,a,t);o(c),d<t?r(e):n&&"function"===typeof n&&n()};s()}var d={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&&u(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&u(0,800)}}},s=d,l=(n("1cc6"),n("2877")),p=Object(l["a"])(s,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"42de":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:"brand",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"车系",prop:"carId",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"介绍",prop:"description",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"更新时间",prop:"updateTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("ac6a"),n("333d")),o=n("c7a7"),c=n("aa98"),u=n("ed08"),d={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(u["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],carType:{},carTypeIds:[]}},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["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}))},refresh:function(){this.$router.push({path:"/configManagement/carType",query:this.listQuery})},addPage:function(){this.$router.push({path:"/configManagement/carType/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.carType=this.multipleSelection[0],this.$router.push({path:"/configManagement/carType/edit",query:{carType:this.carType}});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.carTypeIds.push(t.carTypeId)})),this.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["f"])(e.carTypeIds).then((function(t){e.getList()})),e.carTypeIds=[],e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})}));else{var t="必须选一列";this.$message({message:t,type:"error"})}},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},s=d,l=n("2877"),p=Object(l["a"])(s,i,a,!1,null,"4d1c7b80",null);t["default"]=p.exports},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return r})),n.d(t,"n",(function(){return o})),n.d(t,"m",(function(){return c})),n.d(t,"p",(function(){return u})),n.d(t,"x",(function(){return d})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return h})),n.d(t,"u",(function(){return f})),n.d(t,"s",(function(){return g})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"w",(function(){return y})),n.d(t,"r",(function(){return b})),n.d(t,"h",(function(){return S})),n.d(t,"j",(function(){return j})),n.d(t,"z",(function(){return C})),n.d(t,"t",(function(){return O})),n.d(t,"k",(function(){return w})),n.d(t,"d",(function(){return T})),n.d(t,"a",(function(){return z})),n.d(t,"v",(function(){return k})),n.d(t,"f",(function(){return x})),n.d(t,"q",(function(){return I})),n.d(t,"c",(function(){return _})),n.d(t,"y",(function(){return L})),n.d(t,"i",(function(){return P}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function d(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 l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function v(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function b(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function T(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function x(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function I(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function _(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function L(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function P(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),c=r.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(o.width,o.height)+"px",r.appendChild(c)),a.type){case"center":c.style.top=o.height/2-c.offsetHeight/2+"px",c.style.left=o.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-o.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-o.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=a.color,c.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-55b95336"],{"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 u(e,t,n){var i=c(),a=e-i,u=20,l=0;t="undefined"===typeof t?500:t;var s=function e(){l+=u;var c=Math.easeInOutQuad(l,i,a,t);r(c),l<t?o(e):n&&"function"===typeof n&&n()};s()}var l={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&&u(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&u(0,800)}}},s=l,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){},a11d: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:"name",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"说明",prop:"description",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"),c=n("aa98"),u=n("ed08"),l={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(u["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],linkProtocols:{},linkProtocolsIds:[]}},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["q"])(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/linkProtocols",query:this.listQuery})},addPage:function(){this.$router.push({path:"/configManagement/linkProtocols/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.linkProtocols=this.multipleSelection[0],this.$router.push({path:"/configManagement/linkProtocols/edit",query:{linkProtocols:this.linkProtocols}});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.linkProtocolsIds.push(t.linkProtocolsId)})),this.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["i"])(e.linkProtocolsIds).then((function(t){e.getList()})),e.linkProtocolsIds=[],e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})}));else{var t="必须选一列";this.$message({message:t,type:"error"})}},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},s=l,d=n("2877"),p=Object(d["a"])(s,i,a,!1,null,"3e2badba",null);t["default"]=p.exports},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return o})),n.d(t,"n",(function(){return r})),n.d(t,"m",(function(){return c})),n.d(t,"p",(function(){return u})),n.d(t,"x",(function(){return l})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return d})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return h})),n.d(t,"u",(function(){return f})),n.d(t,"s",(function(){return g})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return y})),n.d(t,"h",(function(){return S})),n.d(t,"j",(function(){return j})),n.d(t,"z",(function(){return C})),n.d(t,"t",(function(){return O})),n.d(t,"k",(function(){return w})),n.d(t,"d",(function(){return k})),n.d(t,"a",(function(){return z})),n.d(t,"v",(function(){return P})),n.d(t,"f",(function(){return T})),n.d(t,"q",(function(){return x})),n.d(t,"c",(function(){return I})),n.d(t,"y",(function(){return L})),n.d(t,"i",(function(){return _}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function d(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function v(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function P(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function T(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function x(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function I(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function L(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function _(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids: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-5c585ee6"],{"3ac7":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:"setChannel",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"channelNumsMessage",label:"终端提示文字"}},[n("el-input",{model:{value:e.device.channelNumsMessage,callback:function(t){e.$set(e.device,"channelNumsMessage",t)},expression:"device.channelNumsMessage"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"channelRules",label:"规则"}},[n("el-select",{attrs:{placeholder:"选择"},model:{value:e.device.channelRules,callback:function(t){e.$set(e.device,"channelRules",t)},expression:"device.channelRules"}},[n("el-option",{attrs:{label:"白名单",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"黑名单",value:"1"}})],1)],1),e._v(" "),n("el-transfer",{attrs:{data:e.device.selectChannelNums,titles:e.transferTitle},model:{value:e.device.channelNums,callback:function(t){e.$set(e.device,"channelNums",t)},expression:"device.channelNums"}}),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},a=[],c=(n("456d"),n("ac6a"),n("96cf"),n("3b8d")),o=n("aa98"),r={channelNumsMessage:"终端提示文字",channelRules:"规则"},u={data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(r[e.field]+"必须填写")):n()};return{loading:!1,device:{selectChannelNums:[],channelNums:[],channelNumsMessage:"",channelRules:"",imeis:[]},rules:{channelNumsMessage:[{validator:e}],channelRules:[{validator:e}]},selectSeriesOptions:[],transferTitle:["渠道号列表","已选择"]}},mounted:function(){this.device.imeis=this.$route.query.imeis,this.getFormData(),this.getTransfer()},methods:{getFormData:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.device=[]},getTransfer:function(){var e=this;Object(o["l"])().then((function(t){var n=t.data;n.forEach((function(t){e.device.selectChannelNums.push({key:t.channelId,label:t.channelNum+"_"+t.brand})}))}))},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.setChannel.validate((function(t,n){if(t)Object(o["m"])(e.device.imeis).then((function(t){var n=t.data,i=e.$createElement,a="";n.forEach((function(e){a=""===a?e:a+","+e})),e.$msgbox({title:"消息",message:i("p",null,[i("span",null,"该imei会导致覆盖 "),i("i",{style:"color: teal"},a)]),showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消(则不执行覆盖的imei)",beforeClose:function(t,i,a){if("confirm"===t)i.confirmButtonLoading=!0,i.confirmButtonText="执行中...",Object(o["o"])(e.device).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.setDefault(),e.toDeviceList(),i.confirmButtonLoading=!1,e.loading=!1,a()})).catch((function(){i.confirmButtonLoading=!1,e.loading=!1,a()}));else if("cancel"===t){i.cancelButtonLoading=!0,i.cancelButtonText="执行中...";var c=[];e.device.imeis.forEach((function(e){n.forEach((function(t){t===e&&c.push(e)}))})),e.device.imeis=c,Object(o["o"])(e.device).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.setDefault(),e.toDeviceList(),i.cancelButtonLoading=!1,e.loading=!1,a()})).catch((function(){i.cancelButtonLoading=!1,e.loading=!1,a()})),i.cancelButtonLoading=!1}else a()}}).then((function(t){"confirm"===t?e.$message({type:"info",message:"全部覆盖选项 执行成功"}):"cancel"===t&&e.$message({type:"info",message:"不覆盖选项 执行成功"})}))})).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"})}}},s=u,l=n("2877"),d=Object(l["a"])(s,i,a,!1,null,"9225a73a",null);t["default"]=d.exports},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"g",(function(){return c})),n.d(t,"i",(function(){return o})),n.d(t,"h",(function(){return r})),n.d(t,"k",(function(){return u})),n.d(t,"q",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"s",(function(){return d})),n.d(t,"t",(function(){return f})),n.d(t,"u",(function(){return h})),n.d(t,"o",(function(){return v})),n.d(t,"m",(function(){return m})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"p",(function(){return b})),n.d(t,"l",(function(){return j})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return C})),n.d(t,"r",(function(){return y})),n.d(t,"n",(function(){return D})),n.d(t,"f",(function(){return S}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function s(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 d(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function p(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function D(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c585ee6"],{"3ac7":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:"setChannel",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"channelNumsMessage",label:"终端提示文字"}},[n("el-input",{model:{value:e.device.channelNumsMessage,callback:function(t){e.$set(e.device,"channelNumsMessage",t)},expression:"device.channelNumsMessage"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"channelRules",label:"规则"}},[n("el-select",{attrs:{placeholder:"选择"},model:{value:e.device.channelRules,callback:function(t){e.$set(e.device,"channelRules",t)},expression:"device.channelRules"}},[n("el-option",{attrs:{label:"白名单",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"黑名单",value:"1"}})],1)],1),e._v(" "),n("el-transfer",{attrs:{data:e.device.selectChannelNums,titles:e.transferTitle},model:{value:e.device.channelNums,callback:function(t){e.$set(e.device,"channelNums",t)},expression:"device.channelNums"}}),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},a=[],c=(n("456d"),n("ac6a"),n("96cf"),n("3b8d")),r=n("aa98"),o={channelNumsMessage:"终端提示文字",channelRules:"规则"},u={data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(o[e.field]+"必须填写")):n()};return{loading:!1,device:{selectChannelNums:[],channelNums:[],channelNumsMessage:"",channelRules:"",imeis:[]},rules:{channelNumsMessage:[{validator:e}],channelRules:[{validator:e}]},selectSeriesOptions:[],transferTitle:["渠道号列表","已选择"]}},mounted:function(){this.device.imeis=this.$route.query.imeis,this.getFormData(),this.getTransfer()},methods:{getFormData:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.device=[]},getTransfer:function(){var e=this;Object(r["r"])().then((function(t){var n=t.data;n.forEach((function(t){e.device.selectChannelNums.push({key:t.channelId,label:t.channelNum+"_"+t.brand})}))}))},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.setChannel.validate((function(t,n){if(t)Object(r["s"])(e.device.imeis).then((function(t){var n=t.data,i=e.$createElement,a="";n.forEach((function(e){a=""===a?e:a+","+e})),e.$msgbox({title:"消息",message:i("p",null,[i("span",null,"该imei会导致覆盖 "),i("i",{style:"color: teal"},a)]),showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消(则不执行覆盖的imei)",beforeClose:function(t,i,a){if("confirm"===t)i.confirmButtonLoading=!0,i.confirmButtonText="执行中...",Object(r["u"])(e.device).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.setDefault(),e.toDeviceList(),i.confirmButtonLoading=!1,e.loading=!1,a()})).catch((function(){i.confirmButtonLoading=!1,e.loading=!1,a()}));else if("cancel"===t){i.cancelButtonLoading=!0,i.cancelButtonText="执行中...";var c=[];e.device.imeis.forEach((function(e){n.forEach((function(t){t===e&&c.push(e)}))})),e.device.imeis=c,Object(r["u"])(e.device).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.setDefault(),e.toDeviceList(),i.cancelButtonLoading=!1,e.loading=!1,a()})).catch((function(){i.cancelButtonLoading=!1,e.loading=!1,a()})),i.cancelButtonLoading=!1}else a()}}).then((function(t){"confirm"===t?e.$message({type:"info",message:"全部覆盖选项 执行成功"}):"cancel"===t&&e.$message({type:"info",message:"不覆盖选项 执行成功"})}))})).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"})}}},s=u,d=n("2877"),l=Object(d["a"])(s,i,a,!1,null,"9225a73a",null);t["default"]=l.exports},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return c})),n.d(t,"n",(function(){return r})),n.d(t,"m",(function(){return o})),n.d(t,"p",(function(){return u})),n.d(t,"x",(function(){return s})),n.d(t,"g",(function(){return d})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return f})),n.d(t,"C",(function(){return v})),n.d(t,"u",(function(){return p})),n.d(t,"s",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return j})),n.d(t,"h",(function(){return O})),n.d(t,"j",(function(){return C})),n.d(t,"z",(function(){return y})),n.d(t,"t",(function(){return S})),n.d(t,"k",(function(){return D})),n.d(t,"d",(function(){return T})),n.d(t,"a",(function(){return x})),n.d(t,"v",(function(){return N})),n.d(t,"f",(function(){return k})),n.d(t,"q",(function(){return z})),n.d(t,"c",(function(){return L})),n.d(t,"y",(function(){return $})),n.d(t,"i",(function(){return B}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function h(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function D(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function T(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function x(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function N(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function z(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function L(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function $(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function B(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-723f6b88"],{"11c3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[e.$store.getters["user/hasAuthorization"]("deviceManagement:deviceChannel:delete")?n("el-button",{on:{click:e.deletePage}},[e._v("删除")]):e._e(),e._v(" "),n("el-select",{attrs:{placeholder:"请选择渠道号",multiple:"multiple"},model:{value:e.selectChannelValue,callback:function(t){e.selectChannelValue=t},expression:"selectChannelValue"}},e._l(e.selectChannel,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),n("el-button",{on:{click:e.getList}},[e._v("确定")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"渠道号",prop:"channelNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"禁用提示文字",prop:"channelNumsMessage",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"渠道号规则",prop:"channelRules",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.channelRules;return[n("span",[e._v(e._s(e._f("channelRulesFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"所属客户",prop:"deptName",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"关联设备数量",prop:"deviceInfoDtos.length",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{fixed:"right",label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.dialogVisibleTrue(t.row)}}},[e._v("查看")])]}}])})],1),e._v(" "),n("el-dialog",{attrs:{title:e.diaTitle,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:e.closeDialogVisible}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.diaLogTableData,border:""}},[n("el-table-column",{attrs:{fixed:"",prop:"imei",label:"imei",width:"150"}}),e._v(" "),n("el-table-column",{attrs:{prop:"seriesNum",label:"产品系列",width:"120"}}),e._v(" "),n("el-table-column",{attrs:{prop:"deptName",label:"所属客户",width:"120"}})],1)],1)],1)],1)},a=[],l=(n("ac6a"),n("c7a7")),o=n("ed08"),r=n("aa98"),c={components:{},directives:{waves:l["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(o["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"},channelRulesFilter:function(e){return 0===e?"白名单":"黑名单"}},data:function(){return{selectChannel:[],selectChannelValue:"",tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[],dialogVisible:!1,diaTitle:"",diaLogTableData:[]}},mounted:function(){this.getList(),this.getSelectChannel()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{dialogVisibleTrue:function(e){this.dialogVisible=!0,this.diaTitle="详情",this.diaLogTableData=e.deviceInfoDtos,this.diaLogTableData.forEach((function(t){t.deptName=e.deptName})),console.log(this.diaLogTableData)},closeDialogVisible:function(){this.dialogVisible=!1,this.diaTitle="",this.diaLogTableData=[]},handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getSelectChannel:function(){var e=this;Object(r["l"])().then((function(t){var n=t.data;n.forEach((function(t){e.selectChannel.push({value:t.channelId,label:t.channelNum})}))}))},getList:function(){var e=this;this.listLoading=!0,Object(r["n"])(this.selectChannelValue).then((function(t){e.list=t.data,e.listLoading=!1}))},setChannelPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="不能多选";this.$message({message:e,type:"error"})}else{var t=this.multipleSelection[0];this.$router.push({path:"/deviceManagement/device/updateDeviceChannel",query:{device:t}}),console.log(t)}else{var n="必须选一列";this.$message({message:n,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var t="不能多选";this.$message({message:t,type:"error"})}else this.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r["f"])(e.multipleSelection[0]).then((function(t){e.getList()})),e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})}));else{var n="必须选一列";this.$message({message:n,type:"error"})}},refresh:function(){this.$router.push({path:"/deviceManagement/deviceChannel",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},s=c,u=n("2877"),d=Object(u["a"])(s,i,a,!1,null,"0a5bec70",null);t["default"]=d.exports},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"g",(function(){return l})),n.d(t,"i",(function(){return o})),n.d(t,"h",(function(){return r})),n.d(t,"k",(function(){return c})),n.d(t,"q",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"s",(function(){return d})),n.d(t,"t",(function(){return h})),n.d(t,"u",(function(){return p})),n.d(t,"o",(function(){return f})),n.d(t,"m",(function(){return v})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return m})),n.d(t,"p",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return S})),n.d(t,"r",(function(){return j})),n.d(t,"n",(function(){return w})),n.d(t,"f",(function(){return O}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function l(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function d(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function m(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),l=a.ele;if(l){l.style.position="relative",l.style.overflow="hidden";var o=l.getBoundingClientRect(),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)),a.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=(n.pageY-o.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(n.pageX-o.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=a.color,r.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-723f6b88"],{"11c3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[e.$store.getters["user/hasAuthorization"]("deviceManagement:deviceChannel:delete")?n("el-button",{on:{click:e.deletePage}},[e._v("删除")]):e._e(),e._v(" "),n("el-select",{attrs:{placeholder:"请选择渠道号",multiple:"multiple"},model:{value:e.selectChannelValue,callback:function(t){e.selectChannelValue=t},expression:"selectChannelValue"}},e._l(e.selectChannel,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),n("el-button",{on:{click:e.getList}},[e._v("确定")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"渠道号",prop:"channelNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"禁用提示文字",prop:"channelNumsMessage",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"渠道号规则",prop:"channelRules",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.channelRules;return[n("span",[e._v(e._s(e._f("channelRulesFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"所属客户",prop:"deptName",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"关联设备数量",prop:"deviceInfoDtos.length",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{fixed:"right",label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.dialogVisibleTrue(t.row)}}},[e._v("查看")])]}}])})],1),e._v(" "),n("el-dialog",{attrs:{title:e.diaTitle,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:e.closeDialogVisible}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.diaLogTableData,border:""}},[n("el-table-column",{attrs:{fixed:"",prop:"imei",label:"imei",width:"150"}}),e._v(" "),n("el-table-column",{attrs:{prop:"seriesNum",label:"产品系列",width:"120"}}),e._v(" "),n("el-table-column",{attrs:{prop:"deptName",label:"所属客户",width:"120"}})],1)],1)],1)],1)},a=[],l=(n("ac6a"),n("c7a7")),r=n("ed08"),o=n("aa98"),c={components:{},directives:{waves:l["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(r["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"},channelRulesFilter:function(e){return 0===e?"白名单":"黑名单"}},data:function(){return{selectChannel:[],selectChannelValue:"",tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[],dialogVisible:!1,diaTitle:"",diaLogTableData:[]}},mounted:function(){this.getList(),this.getSelectChannel()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{dialogVisibleTrue:function(e){this.dialogVisible=!0,this.diaTitle="详情",this.diaLogTableData=e.deviceInfoDtos,this.diaLogTableData.forEach((function(t){t.deptName=e.deptName})),console.log(this.diaLogTableData)},closeDialogVisible:function(){this.dialogVisible=!1,this.diaTitle="",this.diaLogTableData=[]},handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getSelectChannel:function(){var e=this;Object(o["r"])().then((function(t){var n=t.data;n.forEach((function(t){e.selectChannel.push({value:t.channelId,label:t.channelNum})}))}))},getList:function(){var e=this;this.listLoading=!0,Object(o["t"])(this.selectChannelValue).then((function(t){e.list=t.data,e.listLoading=!1}))},setChannelPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="不能多选";this.$message({message:e,type:"error"})}else{var t=this.multipleSelection[0];this.$router.push({path:"/deviceManagement/device/updateDeviceChannel",query:{device:t}}),console.log(t)}else{var n="必须选一列";this.$message({message:n,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var t="不能多选";this.$message({message:t,type:"error"})}else this.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["k"])(e.multipleSelection[0]).then((function(t){e.getList()})),e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})}));else{var n="必须选一列";this.$message({message:n,type:"error"})}},refresh:function(){this.$router.push({path:"/deviceManagement/deviceChannel",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},s=c,d=n("2877"),u=Object(d["a"])(s,i,a,!1,null,"0a5bec70",null);t["default"]=u.exports},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return l})),n.d(t,"n",(function(){return r})),n.d(t,"m",(function(){return o})),n.d(t,"p",(function(){return c})),n.d(t,"x",(function(){return s})),n.d(t,"g",(function(){return d})),n.d(t,"A",(function(){return u})),n.d(t,"B",(function(){return h})),n.d(t,"C",(function(){return p})),n.d(t,"u",(function(){return f})),n.d(t,"s",(function(){return v})),n.d(t,"e",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return y})),n.d(t,"h",(function(){return C})),n.d(t,"j",(function(){return S})),n.d(t,"z",(function(){return j})),n.d(t,"t",(function(){return O})),n.d(t,"k",(function(){return w})),n.d(t,"d",(function(){return T})),n.d(t,"a",(function(){return L})),n.d(t,"v",(function(){return _})),n.d(t,"f",(function(){return k})),n.d(t,"q",(function(){return x})),n.d(t,"c",(function(){return D})),n.d(t,"y",(function(){return z})),n.d(t,"i",(function(){return I}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function l(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function u(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function m(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function T(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function L(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function _(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function x(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function D(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function z(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function I(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),l=a.ele;if(l){l.style.position="relative",l.style.overflow="hidden";var r=l.getBoundingClientRect(),o=l.querySelector(".waves-ripple");switch(o?o.className="waves-ripple":(o=document.createElement("span"),o.className="waves-ripple",o.style.height=o.style.width=Math.max(r.width,r.height)+"px",l.appendChild(o)),a.type){case"center":o.style.top=r.height/2-o.offsetHeight/2+"px",o.style.left=r.width/2-o.offsetWidth/2+"px";break;default:o.style.top=(n.pageY-r.top-o.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",o.style.left=(n.pageX-r.left-o.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return o.style.backgroundColor=a.color,o.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7395e3e5"],{aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return c})),n.d(t,"n",(function(){return r})),n.d(t,"m",(function(){return u})),n.d(t,"p",(function(){return s})),n.d(t,"x",(function(){return d})),n.d(t,"g",(function(){return o})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return h})),n.d(t,"C",(function(){return v})),n.d(t,"u",(function(){return p})),n.d(t,"s",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return j})),n.d(t,"h",(function(){return O})),n.d(t,"j",(function(){return C})),n.d(t,"z",(function(){return S})),n.d(t,"t",(function(){return y})),n.d(t,"k",(function(){return I})),n.d(t,"d",(function(){return T})),n.d(t,"a",(function(){return D})),n.d(t,"v",(function(){return N})),n.d(t,"f",(function(){return R})),n.d(t,"q",(function(){return k})),n.d(t,"c",(function(){return z})),n.d(t,"y",(function(){return w})),n.d(t,"i",(function(){return x}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function u(e){return Object(i["a"])({url:"/device/deviceInfoExport/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 d(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function f(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function I(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function T(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function D(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function N(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function R(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function k(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function z(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function w(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function x(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},c10e: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:"update",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.selectChannelNumsData,titles:e.transferTitle},model:{value:e.device.channelIds,callback:function(t){e.$set(e.device,"channelIds",t)},expression:"device.channelIds"}}),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},a=[],c=(n("456d"),n("6762"),n("2fdb"),n("ac6a"),n("28a5"),n("96cf"),n("3b8d")),r=n("aa98"),u={channelNumsMessage:"终端提示文字",channelRules:"规则"},s={data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(u[e.field]+"必须填写")):n()};return{loading:!1,device:{channelIds:[],channelNumsMessage:"",channelRules:"",imeis:[]},rules:{channelNumsMessage:[{validator:e}],channelRules:[{validator:e}]},selectSeriesOptions:[],transferTitle:["渠道号列表","已选择"],selectChannelNumsData:[]}},mounted:function(){this.deviceT=this.$route.query.device,this.getTransfer()},methods:{selectChannelNums:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(t){var n,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:1===this.deviceT.channelRules?this.device.channelRules="黑名单":0===this.deviceT.channelRules&&(this.device.channelRules="白名单"),this.device.channelNumsMessage=this.deviceT.channelNumsMessage,this.device.deviceId=this.deviceT.deviceId,n=this.deviceT.channelNums.split(","),n.forEach((function(e){t.channelNum.includes(e)&&i.device.channelIds.push(t.channelId)}));case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.device=[]},getTransfer: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:Object(r["r"])().then((function(e){var n=e.data;n.forEach((function(e){t.selectChannelNumsData.push({key:e.channelId,label:e.channelNum+"_"+e.brand}),t.selectChannelNums(e)}))}));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.update.validate((function(t,n){if(t)"黑名单"===e.device.channelRules?e.device.channelRules=1:"白名单"===e.device.channelRules&&(e.device.channelRules=0),Object(r["z"])(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/deviceChannel"})}}},d=s,o=n("2877"),l=Object(o["a"])(d,i,a,!1,null,"1999b0f0",null);t["default"]=l.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7395e3e5"],{aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return i})),n.d(t,"g",(function(){return c})),n.d(t,"i",(function(){return r})),n.d(t,"h",(function(){return s})),n.d(t,"k",(function(){return u})),n.d(t,"q",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"s",(function(){return o})),n.d(t,"t",(function(){return h})),n.d(t,"u",(function(){return v})),n.d(t,"o",(function(){return p})),n.d(t,"m",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"p",(function(){return b})),n.d(t,"l",(function(){return j})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return C})),n.d(t,"r",(function(){return I})),n.d(t,"n",(function(){return D})),n.d(t,"f",(function(){return N}));n("55dd");var a=n("b775");function i(e){return Object(a["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(a["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(a["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function s(e){return Object(a["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(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 d(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function o(e){return Object(a["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(a["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function f(e){return Object(a["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(a["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(a["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(a["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(a["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(a["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function C(e){return Object(a["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function I(e){return Object(a["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function D(e){return Object(a["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function N(e){return Object(a["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}},c10e: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:"update",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.selectChannelNumsData,titles:e.transferTitle},model:{value:e.device.channelIds,callback:function(t){e.$set(e.device,"channelIds",t)},expression:"device.channelIds"}}),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("6762"),n("2fdb"),n("ac6a"),n("28a5"),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:{channelIds:[],channelNumsMessage:"",channelRules:"",imeis:[]},rules:{channelNumsMessage:[{validator:e}],channelRules:[{validator:e}]},selectSeriesOptions:[],transferTitle:["渠道号列表","已选择"],selectChannelNumsData:[]}},mounted:function(){this.deviceT=this.$route.query.device,this.getTransfer()},methods:{selectChannelNums:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(t){var n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:1===this.deviceT.channelRules?this.device.channelRules="黑名单":0===this.deviceT.channelRules&&(this.device.channelRules="白名单"),this.device.channelNumsMessage=this.deviceT.channelNumsMessage,this.device.deviceId=this.deviceT.deviceId,n=this.deviceT.channelNums.split(","),n.forEach((function(e){t.channelNum.includes(e)&&a.device.channelIds.push(t.channelId)}));case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.device=[]},getTransfer: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:Object(r["l"])().then((function(e){var n=e.data;n.forEach((function(e){t.selectChannelNumsData.push({key:e.channelId,label:e.channelNum+"_"+e.brand}),t.selectChannelNums(e)}))}));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.update.validate((function(t,n){if(t)"黑名单"===e.device.channelRules?e.device.channelRules=1:"白名单"===e.device.channelRules&&(e.device.channelRules=0),Object(r["r"])(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/deviceChannel"})}}},l=u,d=n("2877"),o=Object(d["a"])(l,a,i,!1,null,"1999b0f0",null);t["default"]=o.exports}}]);
\ 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 o})),n.d(t,"d",(function(){return s}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function a(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function s(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return r})),n.d(t,"g",(function(){return a})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return o})),n.d(t,"k",(function(){return s})),n.d(t,"q",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"s",(function(){return l})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return f})),n.d(t,"o",(function(){return v})),n.d(t,"m",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"p",(function(){return g})),n.d(t,"l",(function(){return j})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return I})),n.d(t,"r",(function(){return D})),n.d(t,"n",(function(){return S})),n.d(t,"f",(function(){return y}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function a(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function h(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function I(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function D(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}},f24d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"importDevice",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"deptId",label:"所属客户"}},[n("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"seriesId",label:"所属系列"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.device.seriesId,callback:function(t){e.$set(e.device,"seriesId",t)},expression:"device.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1)],1),e._v(" "),e._l(e.device.imeis,(function(t,i){return n("el-form-item",{key:i,attrs:{label:"第"+(i+1)+"个imei: ",prop:"imeis."+i+".value","label-width":"20"}},[n("el-row",[n("el-col",{attrs:{span:14}},[n("el-input",{model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"imei.value"}})],1),e._v(" "),n("el-col",{attrs:{span:5}},[n("el-button",{on:{click:function(n){return n.preventDefault(),e.removeImeis(t)}}},[e._v("\n 删除\n ")])],1)],1)],1)})),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),n("el-button",{on:{click:e.addImeis}},[e._v("新增imei")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],2)],1)],1)},r=[],a=(n("456d"),n("ac6a"),n("96cf"),n("3b8d")),c=n("fe05"),o=n("7d09"),s=n("aa98"),u={deptId:"客户Id",seriesId:"系列号",imeis:"imeis"},d={data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(u[e.field]+"必须填写")):n()};return{loading:!1,device:{deptIdList:[],seriesIdList:[],imeis:[{value:""}]},rules:{deptId:[{validator:e}],seriesId:[{validator:e}]},options:[],selectSeriesOptions:[],selectDeptParents:[],defaultProps:{children:"children",label:"label"}}},mounted:function(){this.getFormData()},methods:{getFormData:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.selectDeptParent();case 2:return e.next=4,this.selectSeries();case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.device=[]},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.importDevice.validate((function(t,n){if(t){var i=e.device.imeis;e.device.imeis=[],i.forEach((function(t){e.device.imeis.push(t.value)})),Object(s["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(t){console.log(t),e.loading=!1}))}else{var r=n[Object.keys(n)[0]][0].message;e.$message({message:r,type:"error"}),e.loading=!1}})))},toDeviceList:function(){this.$router.push({path:"/deviceManagement/device"})},selectSeries:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),selectDeptParent:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["e"])().then((function(e){var n=e.data;t.options=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]},addImeis:function(){this.device.imeis.push({value:""})},removeImeis:function(e){var t=this.device.imeis.indexOf(e);-1!==t&&this.device.imeis.splice(t,1)}}},l=d,p=n("2877"),f=Object(p["a"])(l,i,r,!1,null,"97bccd40",null);t["default"]=f.exports},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return u}));n("7f7f"),n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,name:e.name}})}function a(){return Object(i["a"])({url:"/sys/dept/listAll",method:"post"})}function c(){return Object(i["a"])({url:"/sys/dept/listAllTree",method:"post"})}function o(e){return Object(i["a"])({url:"/sys/dept/add",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/sys/dept/edit",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-77a4bbf0"],{"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return u}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function a(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function u(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return r})),n.d(t,"l",(function(){return a})),n.d(t,"n",(function(){return c})),n.d(t,"m",(function(){return o})),n.d(t,"p",(function(){return u})),n.d(t,"x",(function(){return d})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return v})),n.d(t,"s",(function(){return m})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"w",(function(){return g})),n.d(t,"r",(function(){return j})),n.d(t,"h",(function(){return O})),n.d(t,"j",(function(){return I})),n.d(t,"z",(function(){return S})),n.d(t,"t",(function(){return y})),n.d(t,"k",(function(){return C})),n.d(t,"d",(function(){return D})),n.d(t,"a",(function(){return k})),n.d(t,"v",(function(){return w})),n.d(t,"f",(function(){return x})),n.d(t,"q",(function(){return z})),n.d(t,"c",(function(){return _})),n.d(t,"y",(function(){return T})),n.d(t,"i",(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,seriesId:e.seriesId,imei:e.imei}})}function a(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function d(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 l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function h(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function I(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function D(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function w(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function x(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function z(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function _(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function T(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function P(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},f24d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"importDevice",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"deptId",label:"所属客户"}},[n("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"seriesId",label:"所属系列"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.device.seriesId,callback:function(t){e.$set(e.device,"seriesId",t)},expression:"device.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1)],1),e._v(" "),e._l(e.device.imeis,(function(t,i){return n("el-form-item",{key:i,attrs:{label:"第"+(i+1)+"个imei: ",prop:"imeis."+i+".value","label-width":"20"}},[n("el-row",[n("el-col",{attrs:{span:14}},[n("el-input",{model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"imei.value"}})],1),e._v(" "),n("el-col",{attrs:{span:5}},[n("el-button",{on:{click:function(n){return n.preventDefault(),e.removeImeis(t)}}},[e._v("\n 删除\n ")])],1)],1)],1)})),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),n("el-button",{on:{click:e.addImeis}},[e._v("新增imei")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],2)],1)],1)},r=[],a=(n("456d"),n("ac6a"),n("96cf"),n("3b8d")),c=n("fe05"),o=n("7d09"),u=n("aa98"),d={deptId:"客户Id",seriesId:"系列号",imeis:"imeis"},s={data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(d[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(u["p"])(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(o["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),selectDeptParent:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["e"])().then((function(e){var n=e.data;t.options=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]},addImeis:function(){this.device.imeis.push({value:""})},removeImeis:function(e){var t=this.device.imeis.indexOf(e);-1!==t&&this.device.imeis.splice(t,1)}}},l=s,p=n("2877"),f=Object(p["a"])(l,i,r,!1,null,"97bccd40",null);t["default"]=f.exports},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return d}));n("7f7f"),n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,name:e.name}})}function a(){return Object(i["a"])({url:"/sys/dept/listAll",method:"post"})}function c(){return Object(i["a"])({url:"/sys/dept/listAllTree",method:"post"})}function o(e){return Object(i["a"])({url:"/sys/dept/add",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/sys/dept/edit",method:"post",data:e})}function d(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-7cfd0469"],{aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return o})),n.d(t,"l",(function(){return r})),n.d(t,"n",(function(){return c})),n.d(t,"m",(function(){return a})),n.d(t,"p",(function(){return d})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return v})),n.d(t,"s",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return j})),n.d(t,"h",(function(){return O})),n.d(t,"j",(function(){return C})),n.d(t,"z",(function(){return k})),n.d(t,"t",(function(){return S})),n.d(t,"k",(function(){return y})),n.d(t,"d",(function(){return P})),n.d(t,"a",(function(){return D})),n.d(t,"v",(function(){return z})),n.d(t,"f",(function(){return I})),n.d(t,"q",(function(){return T})),n.d(t,"c",(function(){return x})),n.d(t,"y",(function(){return L})),n.d(t,"i",(function(){return w}));n("55dd");var i=n("b775");function o(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function a(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function d(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(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 l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function h(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function k(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function P(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function D(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function I(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function T(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function x(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function L(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function w(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},b4d1: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:"editLinkProtocols",attrs:{model:e.linkProtocols,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"name",label:"名字"}},[n("el-input",{model:{value:e.linkProtocols.name,callback:function(t){e.$set(e.linkProtocols,"name",t)},expression:"linkProtocols.name"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"description",label:"描述"}},[n("el-input",{model:{value:e.linkProtocols.description,callback:function(t){e.$set(e.linkProtocols,"description",t)},expression:"linkProtocols.description"}})],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.toDeviceChannelList}},[e._v("取消")])],1)],1)],1)],1)},o=[],r=(n("ac6a"),n("456d"),n("aa98")),c={name:"名字",description:"描述"},a={data:function(){var e=function(e,t,n){0===t.length?n(new Error(c[e.field]+"必须填写")):n()};return{loading:!1,linkProtocols:{},rules:{name:[{validator:e}],description:[{validator:e}]}}},mounted:function(){this.linkProtocols=this.$route.query.linkProtocols},methods:{setDefault:function(){this.$refs.editLinkProtocols.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editLinkProtocols.validate((function(t,n){if(t)Object(r["y"])(e.linkProtocols).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toDeviceChannelList()})).catch((function(){e.loading=!1}));else{var i=n[Object.keys(n)[0]][0].message;e.$message({message:i,type:"error"}),e.loading=!1}})))},handleChange:function(e){var t=e.length;t-=1,this.dept.parentId=e[t]},toDeviceChannelList:function(){this.$router.push({path:"/configManagement/linkProtocols"})}}},d=a,u=n("2877"),s=Object(u["a"])(d,i,o,!1,null,"25375a5f",null);t["default"]=s.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-80fe6032"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=c(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=s;var c=Math.easeInOutQuad(u,i,a,t);o(c),u<t?r(e):n&&"function"===typeof n&&n()};l()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},l=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(l,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function r(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function s(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},"8d41":function(e,t,n){},"99b8":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[e.$store.getters["user/hasAuthorization"]("deviceManagement:device:add")?n("el-button",{on:{click:e.addPage}},[e._v("导入设备")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:device:add")?n("el-button",{on:{click:e.importBatchPage}},[e._v("批量导入设备")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:device:edit")?n("el-button",{on:{click:e.editSeriesPage}},[e._v("变更产品系列")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:device:edit")?n("el-button",{on:{click:e.setChannelPage}},[e._v("适配配置")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:device:edit")?n("el-button",{on:{click:e.importDeviceChannel}},[e._v("批量配置")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:device:delete")?n("el-button",{on:{click:e.deletePage}},[e._v("删除设备")]):e._e(),e._v(" "),n("el-button",{on:{click:e.downloadLogFile}},[e._v("下载模板")]),e._v(" "),n("el-select",{attrs:{clearable:"",placeholder:"请选择系列号"},model:{value:e.listQuery.seriesId,callback:function(t){e.$set(e.listQuery,"seriesId",t)},expression:"listQuery.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1),e._v(" "),n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"输入imei",clearable:""},on:{clear:e.handleFilter,blur:e.handleFilter},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter(t)}},model:{value:e.listQuery.imei,callback:function(t){e.$set(e.listQuery,"imei",t)},expression:"listQuery.imei"}}),e._v(" "),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("\n 查询\n ")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"imei",prop:"imei",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("96cf"),n("3b8d")),o=(n("ac6a"),n("333d")),c=n("c7a7"),s=n("ed08"),u=n("aa98"),l=n("5f87"),d=n("7d09"),p={components:{Pagination:o["a"]},directives:{waves:c["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[],selectSeriesOptions:[]}},created:function(){},mounted:function(){this.selectSeries(),this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(u["j"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},addPage:function(){this.$router.push({path:"/deviceManagement/device/importDevice"})},importBatchPage:function(){this.$router.push({path:"/deviceManagement/device/importBatchDevice"})},editSeriesPage:function(){if(0!==this.multipleSelection.length){var e=[];this.multipleSelection.forEach((function(t){e.push(t.imei)})),this.$router.push({path:"/deviceManagement/device/editSeries",query:{imeis:e}})}else{var t="必须选一列";this.$message({message:t,type:"error"})}},setChannelPage:function(){if(0!==this.multipleSelection.length){var e=[];this.multipleSelection.forEach((function(t){e.push(t.imei)})),this.$router.push({path:"/deviceManagement/device/setChannelNum",query:{imeis:e}})}else{var t="必须选一列";this.$message({message:t,type:"error"})}},importDeviceChannel:function(){this.$router.push({path:"/deviceManagement/device/importDeviceChannel"})},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.deviceIds.push(t.deviceId)})),this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["c"])(e.deviceIds).then((function(t){e.getList()})),e.deviceIds=[],e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})})),Object(u["c"])(this.deviceIds).then((function(t){e.getList()})),this.deviceIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},refresh:function(){this.$router.push({path:"/deviceManagement/device",query:this.listQuery})},downloadLogFile:function(){var e="".concat("http://server.cneeds.com.cn:9000")+"/device/device/downloadDeviceUploadFile",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Authorization",Object(l["a"])()),t.responseType="blob",t.onload=function(){if(200===this.status){var e=this.response;if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,"模板文件.xlsx");else{var t=document.createElement("a"),n=window.URL?window.URL.createObjectURL(e):window.webkitURL.createObjectURL(e);t.href=n,t.download="模板文件.xlsx",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL(n)}}},t.send()},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()},selectSeries:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(d["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}},h=p,v=n("2877"),f=Object(v["a"])(h,i,a,!1,null,"4b494aaa",null);t["default"]=f.exports},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"g",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"k",(function(){return s})),n.d(t,"q",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"s",(function(){return d})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return h})),n.d(t,"o",(function(){return v})),n.d(t,"m",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"p",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"d",(function(){return S})),n.d(t,"e",(function(){return w})),n.d(t,"r",(function(){return O})),n.d(t,"n",(function(){return j})),n.d(t,"f",(function(){return C}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(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 d(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function f(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),c=r.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(o.width,o.height)+"px",r.appendChild(c)),a.type){case"center":c.style.top=o.height/2-c.offsetHeight/2+"px",c.style.left=o.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-o.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-o.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=a.color,c.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-80fe6032"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=c(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var d=function e(){u+=s;var c=Math.easeInOutQuad(u,i,a,t);o(c),u<t?r(e):n&&"function"===typeof n&&n()};d()}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)}}},d=u,l=(n("1cc6"),n("2877")),p=Object(l["a"])(d,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function r(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function s(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},"8d41":function(e,t,n){},"99b8":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[e.$store.getters["user/hasAuthorization"]("deviceManagement:device:add")?n("el-button",{on:{click:e.addPage}},[e._v("导入设备")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:device:add")?n("el-button",{on:{click:e.importBatchPage}},[e._v("批量导入设备")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:device:edit")?n("el-button",{on:{click:e.editSeriesPage}},[e._v("变更产品系列")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:device:edit")?n("el-button",{on:{click:e.setChannelPage}},[e._v("适配配置")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:device:edit")?n("el-button",{on:{click:e.importDeviceChannel}},[e._v("批量配置")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:device:delete")?n("el-button",{on:{click:e.deletePage}},[e._v("删除设备")]):e._e(),e._v(" "),n("el-button",{on:{click:e.downloadLogFile}},[e._v("下载模板")]),e._v(" "),n("el-select",{attrs:{clearable:"",placeholder:"请选择系列号"},model:{value:e.listQuery.seriesId,callback:function(t){e.$set(e.listQuery,"seriesId",t)},expression:"listQuery.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1),e._v(" "),n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"输入imei",clearable:""},on:{clear:e.handleFilter,blur:e.handleFilter},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter(t)}},model:{value:e.listQuery.imei,callback:function(t){e.$set(e.listQuery,"imei",t)},expression:"listQuery.imei"}}),e._v(" "),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("\n 查询\n ")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"imei",prop:"imei",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("96cf"),n("3b8d")),o=(n("ac6a"),n("333d")),c=n("c7a7"),s=n("ed08"),u=n("aa98"),d=n("5f87"),l=n("7d09"),p={components:{Pagination:o["a"]},directives:{waves:c["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[],selectSeriesOptions:[]}},created:function(){},mounted:function(){this.selectSeries(),this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(u["o"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},addPage:function(){this.$router.push({path:"/deviceManagement/device/importDevice"})},importBatchPage:function(){this.$router.push({path:"/deviceManagement/device/importBatchDevice"})},editSeriesPage:function(){if(0!==this.multipleSelection.length){var e=[];this.multipleSelection.forEach((function(t){e.push(t.imei)})),this.$router.push({path:"/deviceManagement/device/editSeries",query:{imeis:e}})}else{var t="必须选一列";this.$message({message:t,type:"error"})}},setChannelPage:function(){if(0!==this.multipleSelection.length){var e=[];this.multipleSelection.forEach((function(t){e.push(t.imei)})),this.$router.push({path:"/deviceManagement/device/setChannelNum",query:{imeis:e}})}else{var t="必须选一列";this.$message({message:t,type:"error"})}},importDeviceChannel:function(){this.$router.push({path:"/deviceManagement/device/importDeviceChannel"})},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.deviceIds.push(t.deviceId)})),this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["g"])(e.deviceIds).then((function(t){e.getList()})),e.deviceIds=[],e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})})),Object(u["g"])(this.deviceIds).then((function(t){e.getList()})),this.deviceIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},refresh:function(){this.$router.push({path:"/deviceManagement/device",query:this.listQuery})},downloadLogFile:function(){var e="".concat("http://server.cneeds.com.cn:9000")+"/device/device/downloadDeviceUploadFile",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Authorization",Object(d["a"])()),t.responseType="blob",t.onload=function(){if(200===this.status){var e=this.response;if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,"模板文件.xlsx");else{var t=document.createElement("a"),n=window.URL?window.URL.createObjectURL(e):window.webkitURL.createObjectURL(e);t.href=n,t.download="模板文件.xlsx",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL(n)}}},t.send()},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()},selectSeries:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}},h=p,v=n("2877"),f=Object(v["a"])(h,i,a,!1,null,"4b494aaa",null);t["default"]=f.exports},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return r})),n.d(t,"n",(function(){return o})),n.d(t,"m",(function(){return c})),n.d(t,"p",(function(){return s})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return h})),n.d(t,"u",(function(){return v})),n.d(t,"s",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return y})),n.d(t,"h",(function(){return S})),n.d(t,"j",(function(){return w})),n.d(t,"z",(function(){return O})),n.d(t,"t",(function(){return j})),n.d(t,"k",(function(){return C})),n.d(t,"d",(function(){return z})),n.d(t,"a",(function(){return k})),n.d(t,"v",(function(){return _})),n.d(t,"f",(function(){return x})),n.d(t,"q",(function(){return L})),n.d(t,"c",(function(){return $})),n.d(t,"y",(function(){return I})),n.d(t,"i",(function(){return T}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function f(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function _(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function x(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function L(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function $(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function I(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function T(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),c=r.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(o.width,o.height)+"px",r.appendChild(c)),a.type){case"center":c.style.top=o.height/2-c.offsetHeight/2+"px",c.style.left=o.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-o.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-o.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=a.color,c.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a21d57d6"],{"585e":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:"addLinkProtocols",attrs:{model:e.linkProtocols,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"name",label:"名字"}},[n("el-input",{model:{value:e.linkProtocols.name,callback:function(t){e.$set(e.linkProtocols,"name",t)},expression:"linkProtocols.name"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"description",label:"描述"}},[n("el-input",{model:{value:e.linkProtocols.description,callback:function(t){e.$set(e.linkProtocols,"description",t)},expression:"linkProtocols.description"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),n("el-button",{on:{click:e.toSeriesList}},[e._v("取消")])],1)],1)],1)],1)},r=[],o=(n("ac6a"),n("456d"),n("aa98")),c={name:"名字",description:"描述"},a={data:function(){var e=function(e,t,n){0===t.length?n(new Error(c[e.field]+"必须填写")):n()};return{loading:!1,linkProtocols:{},rules:{name:[{validator:e}],description:[{validator:e}]}}},mounted:function(){},methods:{setDefault:function(){this.$refs.addLinkProtocols.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.addLinkProtocols.validate((function(t,n){if(t)Object(o["c"])(e.linkProtocols).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toSeriesList()})).catch((function(){e.loading=!1}));else{var i=n[Object.keys(n)[0]][0].message;e.$message({message:i,type:"error"}),e.loading=!1}})))},toSeriesList:function(){this.$router.push({path:"/configManagement/linkProtocols"})}}},d=a,u=n("2877"),s=Object(u["a"])(d,i,r,!1,null,"28b64f77",null);t["default"]=s.exports},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return r})),n.d(t,"l",(function(){return o})),n.d(t,"n",(function(){return c})),n.d(t,"m",(function(){return a})),n.d(t,"p",(function(){return d})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return v})),n.d(t,"s",(function(){return m})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"w",(function(){return g})),n.d(t,"r",(function(){return j})),n.d(t,"h",(function(){return O})),n.d(t,"j",(function(){return k})),n.d(t,"z",(function(){return C})),n.d(t,"t",(function(){return S})),n.d(t,"k",(function(){return y})),n.d(t,"d",(function(){return P})),n.d(t,"a",(function(){return z})),n.d(t,"v",(function(){return D})),n.d(t,"f",(function(){return I})),n.d(t,"q",(function(){return T})),n.d(t,"c",(function(){return x})),n.d(t,"y",(function(){return L})),n.d(t,"i",(function(){return w}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function a(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function d(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(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 l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function h(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function k(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function P(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function D(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function I(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function T(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function x(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function L(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function w(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-adf11d7e"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=c(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=s;var c=Math.easeInOutQuad(u,i,a,t);o(c),u<t?r(e):n&&"function"===typeof n&&n()};l()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},l=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(l,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function r(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function s(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return r})),n.d(t,"n",(function(){return o})),n.d(t,"m",(function(){return c})),n.d(t,"p",(function(){return s})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"A",(function(){return d})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return h})),n.d(t,"u",(function(){return f})),n.d(t,"s",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return y})),n.d(t,"h",(function(){return S})),n.d(t,"j",(function(){return O})),n.d(t,"z",(function(){return j})),n.d(t,"t",(function(){return C})),n.d(t,"k",(function(){return w})),n.d(t,"d",(function(){return z})),n.d(t,"a",(function(){return k})),n.d(t,"v",(function(){return _})),n.d(t,"f",(function(){return x})),n.d(t,"q",(function(){return T})),n.d(t,"c",(function(){return $})),n.d(t,"y",(function(){return I})),n.d(t,"i",(function(){return N}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(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 d(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function _(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function x(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function T(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function $(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function I(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function N(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids: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"}},[e.$store.getters["user/hasAuthorization"]("deviceManagement:deviceChannel:edit")?n("el-button",{on:{click:e.setChannelPage}},[e._v("变更")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:deviceChannel:delete")?n("el-button",{on:{click:e.deletePage}},[e._v("删除")]):e._e(),e._v(" "),n("el-select",{attrs:{clearable:"",placeholder:"请选择系列号"},model:{value:e.listQuery.seriesId,callback:function(t){e.$set(e.listQuery,"seriesId",t)},expression:"listQuery.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1),e._v(" "),n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"imei",clearable:""},on:{clear:e.handleFilter,blur:e.handleFilter},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter(t)}},model:{value:e.listQuery.imei,callback:function(t){e.$set(e.listQuery,"imei",t)},expression:"listQuery.imei"}}),e._v(" "),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("\n 查询\n ")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"imei",prop:"imei",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"规则",prop:"channelRules",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.channelRules;return[n("span",[e._v(e._s(e._f("channelRulesFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"渠道号",prop:"channelNums",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"禁用提示文字",prop:"channelNumsMessage",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("96cf"),n("3b8d")),o=n("333d"),c=n("c7a7"),s=n("ed08"),u=n("aa98"),l=n("7d09"),d={components:{Pagination:o["a"]},directives:{waves:c["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"},channelRulesFilter:function(e){return 0===e?"白名单":"黑名单"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[],selectSeriesOptions:[]}},created:function(){},mounted:function(){this.selectSeries(),this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(u["l"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},setChannelPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="不能多选";this.$message({message:e,type:"error"})}else{var t=this.multipleSelection[0];this.$router.push({path:"/deviceManagement/device/updateDeviceChannel",query:{device:t}})}else{var n="必须选一列";this.$message({message:n,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var t="不能多选";this.$message({message:t,type:"error"})}else this.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["j"])(e.multipleSelection[0].deviceId).then((function(t){e.getList()})),e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})}));else{var n="必须选一列";this.$message({message:n,type:"error"})}},refresh:function(){this.$router.push({path:"/deviceManagement/deviceChannel",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()},selectSeries:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}},p=d,h=n("2877"),f=Object(h["a"])(p,i,a,!1,null,"90e04946",null);t["default"]=f.exports},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),c=r.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(o.width,o.height)+"px",r.appendChild(c)),a.type){case"center":c.style.top=o.height/2-c.offsetHeight/2+"px",c.style.left=o.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-o.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-o.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=a.color,c.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-adf11d7e"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=c(),a=e-i,s=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=s;var c=Math.easeInOutQuad(l,i,a,t);o(c),l<t?r(e):n&&"function"===typeof n&&n()};u()}var l={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=l,d=(n("1cc6"),n("2877")),p=Object(d["a"])(u,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function r(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function s(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"g",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"k",(function(){return s})),n.d(t,"q",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"s",(function(){return d})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return h})),n.d(t,"o",(function(){return f})),n.d(t,"m",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return v})),n.d(t,"p",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"d",(function(){return S})),n.d(t,"e",(function(){return w})),n.d(t,"r",(function(){return C})),n.d(t,"n",(function(){return O})),n.d(t,"f",(function(){return j}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function d(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function v(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}},b2dd:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[e.$store.getters["user/hasAuthorization"]("deviceManagement:deviceChannel:edit")?n("el-button",{on:{click:e.setChannelPage}},[e._v("变更")]):e._e(),e._v(" "),e.$store.getters["user/hasAuthorization"]("deviceManagement:deviceChannel:delete")?n("el-button",{on:{click:e.deletePage}},[e._v("删除")]):e._e(),e._v(" "),n("el-select",{attrs:{clearable:"",placeholder:"请选择系列号"},model:{value:e.listQuery.seriesId,callback:function(t){e.$set(e.listQuery,"seriesId",t)},expression:"listQuery.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1),e._v(" "),n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"imei",clearable:""},on:{clear:e.handleFilter,blur:e.handleFilter},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter(t)}},model:{value:e.listQuery.imei,callback:function(t){e.$set(e.listQuery,"imei",t)},expression:"listQuery.imei"}}),e._v(" "),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("\n 查询\n ")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"imei",prop:"imei",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"规则",prop:"channelRules",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.channelRules;return[n("span",[e._v(e._s(e._f("channelRulesFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"渠道号",prop:"channelNums",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"禁用提示文字",prop:"channelNumsMessage",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("96cf"),n("3b8d")),o=n("333d"),c=n("c7a7"),s=n("ed08"),l=n("aa98"),u=n("7d09"),d={components:{Pagination:o["a"]},directives:{waves:c["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"},channelRulesFilter:function(e){return 0===e?"白名单":"黑名单"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[],selectSeriesOptions:[]}},created:function(){},mounted:function(){this.selectSeries(),this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(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}))},setChannelPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="不能多选";this.$message({message:e,type:"error"})}else{var t=this.multipleSelection[0];this.$router.push({path:"/deviceManagement/device/updateDeviceChannel",query:{device:t}})}else{var n="必须选一列";this.$message({message:n,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var t="不能多选";this.$message({message:t,type:"error"})}else this.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["e"])(e.multipleSelection[0].deviceId).then((function(t){e.getList()})),e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})}));else{var n="必须选一列";this.$message({message:n,type:"error"})}},refresh:function(){this.$router.push({path:"/deviceManagement/deviceChannel",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()},selectSeries:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["d"])().then((function(e){var n=e.data;t.selectSeriesOptions=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}},p=d,h=n("2877"),f=Object(h["a"])(p,i,a,!1,null,"90e04946",null);t["default"]=f.exports},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),c=r.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(o.width,o.height)+"px",r.appendChild(c)),a.type){case"center":c.style.top=o.height/2-c.offsetHeight/2+"px",c.style.left=o.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-o.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-o.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=a.color,c.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cbd0fe76"],{1:function(e,t){},2:function(e,t){},3:function(e,t){},3796:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{ref:"excel-upload-input",staticClass:"excel-upload-input",attrs:{type:"file",accept:".xlsx, .xls"},on:{change:e.handleClick}}),e._v(" "),n("div",{staticClass:"drop",on:{drop:e.handleDrop,dragover:e.handleDragover,dragenter:e.handleDragover}},[e._v("\n 点击需要上传信息的Excel文件\n "),n("el-button",{staticStyle:{"margin-left":"16px"},attrs:{loading:e.loading,size:"mini",type:"primary"},on:{click:e.handleUpload}},[e._v("\n 上传\n ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.resultShow,expression:"resultShow"}]},[e._v("\n 上传成功\n ")])],1)])},i=[],r=(n("7f7f"),n("1146")),o=n.n(r),c={props:{beforeUpload:Function,onSuccess:Function},data:function(){return{loading:!1,resultShow:!1,excelData:{header:null,results:null}}},methods:{generateData:function(e){var t=e.header,n=e.results;this.excelData.header=t,this.excelData.results=n,this.onSuccess&&this.onSuccess(this.excelData)},handleDrop:function(e){if(e.stopPropagation(),e.preventDefault(),!this.loading){var t=e.dataTransfer.files;if(1===t.length){var n=t[0];if(!this.isExcel(n))return this.$message.error("Only supports upload .xlsx, .xls, .csv suffix files"),!1;this.upload(n),e.stopPropagation(),e.preventDefault()}else this.$message.error("Only support uploading one file!")}},handleDragover:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},handleUpload:function(){this.$refs["excel-upload-input"].click()},handleClick:function(e){var t=e.target.files,n=t[0];n&&this.upload(n)},upload:function(e){if(this.$refs["excel-upload-input"].value=null,this.beforeUpload){var t=this.beforeUpload(e);t&&this.readerData(e),this.resultShow=!0}else this.readerData(e)},readerData:function(e){var t=this;return this.loading=!0,new Promise((function(n,a){var i=new FileReader;i.onload=function(e){var a=e.target.result,i=o.a.read(a,{type:"array"}),r=i.SheetNames[0],c=i.Sheets[r],s=t.getHeaderRow(c),u=o.a.utils.sheet_to_json(c);t.generateData({header:s,results:u}),t.loading=!1,n()},i.readAsArrayBuffer(e)}))},getHeaderRow:function(e){var t,n=[],a=o.a.utils.decode_range(e["!ref"]),i=a.s.r;for(t=a.s.c;t<=a.e.c;++t){var r=e[o.a.utils.encode_cell({c:t,r:i})],c="UNKNOWN "+t;r&&r.t&&(c=o.a.utils.format_cell(r)),n.push(c)}return n},isExcel:function(e){return/\.(xlsx|xls|csv)$/.test(e.name)}}},s=c,u=(n("b8e5"),n("2877")),d=Object(u["a"])(s,a,i,!1,null,"80157758",null);t["a"]=d.exports},"6d7b":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"importDeviceChannel",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("upload-excel-component",{attrs:{"on-success":e.handleSuccess,"before-upload":e.beforeUpload}}),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确定")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},i=[],r=(n("ac6a"),n("456d"),n("3796")),o=n("aa98"),c={components:{UploadExcelComponent:r["a"]},data:function(){return{loading:!1,device:{selectChannelNums:[],channelNums:[],channelNumsMessage:"",channelRules:"",imeis:[],seriesId:"",deptId:""},rules:{},selectSeriesOptions:[],tableData:"",options:[],selectDeptParents:[]}},mounted:function(){},methods:{beforeUpload:function(e){var t=e.size/1024/1024<1;return!!t||(this.$message({message:"Please do not upload files larger than 1m in size.",type:"warning"}),!1)},handleSuccess:function(e){var t=e.results;e.header;this.device.infos=t},setDefault:function(){this.$refs.device=[]},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.importDeviceChannel.validate((function(t,n){if(t)Object(o["u"])(JSON.stringify(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:"/deviceStatistical/deviceInfo/DeviceInfoExport"})},handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]}}},s=c,u=n("2877"),d=Object(u["a"])(s,a,i,!1,null,"607f3dff",null);t["default"]=d.exports},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return i})),n.d(t,"g",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"k",(function(){return s})),n.d(t,"q",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"s",(function(){return l})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return f})),n.d(t,"o",(function(){return h})),n.d(t,"m",(function(){return v})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"p",(function(){return b})),n.d(t,"l",(function(){return D})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return S})),n.d(t,"r",(function(){return j})),n.d(t,"n",(function(){return O})),n.d(t,"f",(function(){return C}));n("55dd");var a=n("b775");function i(e){return Object(a["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(a["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(a["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(a["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(a["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(a["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(a["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(a["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(a["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(a["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(a["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(a["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function D(){return Object(a["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function x(e){return Object(a["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function S(e){return Object(a["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function j(e){return Object(a["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function O(e){return Object(a["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function C(e){return Object(a["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}},b486:function(e,t,n){},b8e5:function(e,t,n){"use strict";var a=n("b486"),i=n.n(a);i.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cbd0fe76"],{1:function(e,t){},2:function(e,t){},3:function(e,t){},3796:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{ref:"excel-upload-input",staticClass:"excel-upload-input",attrs:{type:"file",accept:".xlsx, .xls"},on:{change:e.handleClick}}),e._v(" "),n("div",{staticClass:"drop",on:{drop:e.handleDrop,dragover:e.handleDragover,dragenter:e.handleDragover}},[e._v("\n 点击需要上传信息的Excel文件\n "),n("el-button",{staticStyle:{"margin-left":"16px"},attrs:{loading:e.loading,size:"mini",type:"primary"},on:{click:e.handleUpload}},[e._v("\n 上传\n ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.resultShow,expression:"resultShow"}]},[e._v("\n 上传成功\n ")])],1)])},i=[],r=(n("7f7f"),n("1146")),o=n.n(r),c={props:{beforeUpload:Function,onSuccess:Function},data:function(){return{loading:!1,resultShow:!1,excelData:{header:null,results:null}}},methods:{generateData:function(e){var t=e.header,n=e.results;this.excelData.header=t,this.excelData.results=n,this.onSuccess&&this.onSuccess(this.excelData)},handleDrop:function(e){if(e.stopPropagation(),e.preventDefault(),!this.loading){var t=e.dataTransfer.files;if(1===t.length){var n=t[0];if(!this.isExcel(n))return this.$message.error("Only supports upload .xlsx, .xls, .csv suffix files"),!1;this.upload(n),e.stopPropagation(),e.preventDefault()}else this.$message.error("Only support uploading one file!")}},handleDragover:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},handleUpload:function(){this.$refs["excel-upload-input"].click()},handleClick:function(e){var t=e.target.files,n=t[0];n&&this.upload(n)},upload:function(e){if(this.$refs["excel-upload-input"].value=null,this.beforeUpload){var t=this.beforeUpload(e);t&&this.readerData(e),this.resultShow=!0}else this.readerData(e)},readerData:function(e){var t=this;return this.loading=!0,new Promise((function(n,a){var i=new FileReader;i.onload=function(e){var a=e.target.result,i=o.a.read(a,{type:"array"}),r=i.SheetNames[0],c=i.Sheets[r],s=t.getHeaderRow(c),u=o.a.utils.sheet_to_json(c);t.generateData({header:s,results:u}),t.loading=!1,n()},i.readAsArrayBuffer(e)}))},getHeaderRow:function(e){var t,n=[],a=o.a.utils.decode_range(e["!ref"]),i=a.s.r;for(t=a.s.c;t<=a.e.c;++t){var r=e[o.a.utils.encode_cell({c:t,r:i})],c="UNKNOWN "+t;r&&r.t&&(c=o.a.utils.format_cell(r)),n.push(c)}return n},isExcel:function(e){return/\.(xlsx|xls|csv)$/.test(e.name)}}},s=c,u=(n("b8e5"),n("2877")),d=Object(u["a"])(s,a,i,!1,null,"80157758",null);t["a"]=d.exports},"6d7b":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"importDeviceChannel",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("upload-excel-component",{attrs:{"on-success":e.handleSuccess,"before-upload":e.beforeUpload}}),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确定")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},i=[],r=(n("ac6a"),n("456d"),n("3796")),o=n("aa98"),c={components:{UploadExcelComponent:r["a"]},data:function(){return{loading:!1,device:{selectChannelNums:[],channelNums:[],channelNumsMessage:"",channelRules:"",imeis:[],seriesId:"",deptId:""},rules:{},selectSeriesOptions:[],tableData:"",options:[],selectDeptParents:[]}},mounted:function(){},methods:{beforeUpload:function(e){var t=e.size/1024/1024<1;return!!t||(this.$message({message:"Please do not upload files larger than 1m in size.",type:"warning"}),!1)},handleSuccess:function(e){var t=e.results;e.header;this.device.infos=t},setDefault:function(){this.$refs.device=[]},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.importDeviceChannel.validate((function(t,n){if(t)Object(o["C"])(JSON.stringify(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:"/deviceStatistical/deviceInfo/DeviceInfoExport"})},handleChange:function(e){var t=e.length;t-=1,this.device.deptId=e[t]}}},s=c,u=n("2877"),d=Object(u["a"])(s,a,i,!1,null,"607f3dff",null);t["default"]=d.exports},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return i})),n.d(t,"l",(function(){return r})),n.d(t,"n",(function(){return o})),n.d(t,"m",(function(){return c})),n.d(t,"p",(function(){return s})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return h})),n.d(t,"s",(function(){return v})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return j})),n.d(t,"h",(function(){return D})),n.d(t,"j",(function(){return O})),n.d(t,"z",(function(){return S})),n.d(t,"t",(function(){return x})),n.d(t,"k",(function(){return C})),n.d(t,"d",(function(){return y})),n.d(t,"a",(function(){return w})),n.d(t,"v",(function(){return z})),n.d(t,"f",(function(){return _})),n.d(t,"q",(function(){return I})),n.d(t,"c",(function(){return k})),n.d(t,"y",(function(){return E})),n.d(t,"i",(function(){return T}));n("55dd");var a=n("b775");function i(e){return Object(a["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(a["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(a["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(a["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(a["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(a["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(a["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(a["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(a["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(a["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(a["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(a["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(a["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function D(e){return Object(a["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function O(e){return Object(a["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function S(e){return Object(a["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function x(e){return Object(a["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function C(e){return Object(a["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function y(e){return Object(a["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function w(e){return Object(a["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function z(e){return Object(a["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function _(e){return Object(a["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function I(e){return Object(a["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function k(e){return Object(a["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function E(e){return Object(a["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function T(e){return Object(a["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},b486:function(e,t,n){},b8e5:function(e,t,n){"use strict";var a=n("b486"),i=n.n(a);i.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-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=[],a=(n("ac6a"),n("456d"),n("96cf"),n("3b8d")),c=n("7d09"),o=n("aa98"),s={seriesId:"选择系列",imeis:"要选择设备"},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:{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(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.selectSeries();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.editSeries.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editSeries.validate((function(t,n){if(t)Object(o["q"])(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(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["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]}}},d=u,l=n("2877"),p=Object(l["a"])(d,i,r,!1,null,"d29db6dc",null);t["default"]=p.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function a(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function s(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},aa98:function(e,t,n){"use strict";n.d(t,"j",(function(){return r})),n.d(t,"g",(function(){return a})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return o})),n.d(t,"k",(function(){return s})),n.d(t,"q",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"s",(function(){return l})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return v})),n.d(t,"o",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"p",(function(){return b})),n.d(t,"l",(function(){return j})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return S})),n.d(t,"r",(function(){return I})),n.d(t,"n",(function(){return C})),n.d(t,"f",(function(){return D}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function a(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function h(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function I(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function D(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e20529e6"],{4983:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"editSeries",attrs:{model:e.device,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"seriesId",label:"所属系列"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.device.seriesId,callback:function(t){e.$set(e.device,"seriesId",t)},expression:"device.seriesId"}},e._l(e.selectSeriesOptions,(function(e){return n("el-option",{key:e.seriesId,attrs:{label:e.seriesNum,value:e.seriesId}})})),1)],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeviceList}},[e._v("取消")])],1)],1)],1)],1)},r=[],c=(n("ac6a"),n("456d"),n("96cf"),n("3b8d")),a=n("7d09"),o=n("aa98"),d={seriesId:"选择系列",imeis:"要选择设备"},u={data:function(){var e=function(e,t,n){void 0===t||null===t||0===t.length?n(new Error(d[e.field]+"必须填写")):n()};return{loading:!1,device:{seriesIdList:[],imeis:[]},rules:{seriesId:[{validator:e}],imeis:[{validator:e}]},selectSeriesOptions:[]}},mounted:function(){this.device.imeis=this.$route.query.imeis,this.getFormData()},methods:{getFormData:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.selectSeries();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.editSeries.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editSeries.validate((function(t,n){if(t)Object(o["x"])(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]}}},s=u,l=n("2877"),p=Object(l["a"])(s,i,r,!1,null,"d29db6dc",null);t["default"]=p.exports},"7d09":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return d}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesNum:e.seriesNum}})}function c(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function a(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}function d(){return Object(i["a"])({url:"/device/series/listAll",method:"post"})}},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return r})),n.d(t,"l",(function(){return c})),n.d(t,"n",(function(){return a})),n.d(t,"m",(function(){return o})),n.d(t,"p",(function(){return d})),n.d(t,"x",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return v})),n.d(t,"u",(function(){return f})),n.d(t,"s",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return j})),n.d(t,"h",(function(){return O})),n.d(t,"j",(function(){return S})),n.d(t,"z",(function(){return C})),n.d(t,"t",(function(){return I})),n.d(t,"k",(function(){return y})),n.d(t,"d",(function(){return D})),n.d(t,"a",(function(){return z})),n.d(t,"v",(function(){return k})),n.d(t,"f",(function(){return w})),n.d(t,"q",(function(){return x})),n.d(t,"c",(function(){return T})),n.d(t,"y",(function(){return L})),n.d(t,"i",(function(){return $}));n("55dd");var i=n("b775");function r(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function a(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function d(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function u(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 l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function h(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function j(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function I(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function y(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function D(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function w(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function x(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function T(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function L(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function $(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-feef4472"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,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 u(e,t,n){var i=c(),a=e-i,u=20,d=0;t="undefined"===typeof t?500:t;var s=function e(){d+=u;var c=Math.easeInOutQuad(d,i,a,t);r(c),d<t?o(e):n&&"function"===typeof n&&n()};s()}var d={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&&u(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&u(0,800)}}},s=d,l=(n("1cc6"),n("2877")),p=Object(l["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,"o",(function(){return a})),n.d(t,"l",(function(){return o})),n.d(t,"n",(function(){return r})),n.d(t,"m",(function(){return c})),n.d(t,"p",(function(){return u})),n.d(t,"x",(function(){return d})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return h})),n.d(t,"s",(function(){return v})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return y})),n.d(t,"h",(function(){return S})),n.d(t,"j",(function(){return w})),n.d(t,"z",(function(){return O})),n.d(t,"t",(function(){return j})),n.d(t,"k",(function(){return C})),n.d(t,"d",(function(){return z})),n.d(t,"a",(function(){return k})),n.d(t,"v",(function(){return L})),n.d(t,"f",(function(){return x})),n.d(t,"q",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"y",(function(){return _})),n.d(t,"i",(function(){return I}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function d(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 l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function L(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function x(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function T(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function E(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function _(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function I(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},beec:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{attrs:{type:"primary"},on:{click:e.exportDevice}},[e._v("导入")]),e._v(" "),n("el-button",{on:{click:e.download}},[e._v("下载")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"名字",prop:"name",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"状态",prop:"status",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.status;return[n("span",[e._v(e._s(e._f("statusFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"更新时间",prop:"updateTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.updateTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("28a5"),n("333d")),r=n("c7a7"),c=n("ed08"),u=n("aa98"),d=n("5f87"),s={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{statusFilter:function(e){return 0===e?"正在导出中":1===e?"成功":-1===e?"失败":void 0},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(c["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[],selectSeriesOptions:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{download:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>=2){var e="只能单选";this.$message({message:e,type:"error"})}else{var t=this.multipleSelection[0],n=t.filepath.split("/"),i=n.length-2,a=t.filepath.substring(t.filepath.lastIndexOf("/")+1,t.filepath.length),o="".concat("http://server.cneeds.com.cn:9000")+"/deviceFile/deviceFileDownload/"+n[i]+"/"+a,r=new XMLHttpRequest;r.open("GET",o,!0),r.setRequestHeader("Authorization",Object(d["a"])()),r.responseType="blob",r.onload=function(){if(200===this.status){var e=this.response;if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,a);else{var t=document.createElement("a"),n=window.URL?window.URL.createObjectURL(e):window.webkitURL.createObjectURL(e);t.href=n,t.download=a,document.body.appendChild(t),t.click(),window.URL.revokeObjectURL(n)}this.refresh()}},r.send()}else{var c="一定要选择一个,如果没得选择请先导入";this.$message({message:c,type:"error"})}},exportDevice:function(){this.$router.push({path:"/deviceStatistical/deviceInfo/DeviceInfoExportUploadExcel"})},handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(u["m"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/deviceStatistical/deviceInfo/DeviceInfoExport",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},l=s,p=n("2877"),f=Object(p["a"])(l,i,a,!1,null,"18078240",null);t["default"]=f.exports},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),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-feef4472"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,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 u(e,t,n){var i=c(),a=e-i,u=20,l=0;t="undefined"===typeof t?500:t;var s=function e(){l+=u;var c=Math.easeInOutQuad(l,i,a,t);r(c),l<t?o(e):n&&"function"===typeof n&&n()};s()}var l={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&&u(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&u(0,800)}}},s=l,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,"j",(function(){return a})),n.d(t,"g",(function(){return o})),n.d(t,"i",(function(){return r})),n.d(t,"h",(function(){return c})),n.d(t,"k",(function(){return u})),n.d(t,"q",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"s",(function(){return d})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return h})),n.d(t,"o",(function(){return f})),n.d(t,"m",(function(){return v})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return m})),n.d(t,"p",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"d",(function(){return w})),n.d(t,"e",(function(){return S})),n.d(t,"r",(function(){return O})),n.d(t,"n",(function(){return j})),n.d(t,"f",(function(){return C}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function d(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function m(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}},beec:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{attrs:{type:"primary"},on:{click:e.exportDevice}},[e._v("导入")]),e._v(" "),n("el-button",{on:{click:e.download}},[e._v("下载")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"名字",prop:"name",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"状态",prop:"status",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.status;return[n("span",[e._v(e._s(e._f("statusFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"更新时间",prop:"updateTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.updateTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("28a5"),n("333d")),r=n("c7a7"),c=n("ed08"),u=n("aa98"),l=n("5f87"),s={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{statusFilter:function(e){return 0===e?"正在导出中":1===e?"成功":-1===e?"失败":void 0},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(c["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[],selectSeriesOptions:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{download:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>=2){var e="只能单选";this.$message({message:e,type:"error"})}else{var t=this.multipleSelection[0],n=t.filepath.split("/"),i=n.length-2,a=t.filepath.substring(t.filepath.lastIndexOf("/")+1,t.filepath.length),o="".concat("http://server.cneeds.com.cn:9000")+"/deviceFile/deviceFileDownload/"+n[i]+"/"+a,r=new XMLHttpRequest;r.open("GET",o,!0),r.setRequestHeader("Authorization",Object(l["a"])()),r.responseType="blob",r.onload=function(){if(200===this.status){var e=this.response;if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,a);else{var t=document.createElement("a"),n=window.URL?window.URL.createObjectURL(e):window.webkitURL.createObjectURL(e);t.href=n,t.download=a,document.body.appendChild(t),t.click(),window.URL.revokeObjectURL(n)}this.refresh()}},r.send()}else{var c="一定要选择一个,如果没得选择请先导入";this.$message({message:c,type:"error"})}},exportDevice:function(){this.$router.push({path:"/deviceStatistical/deviceInfo/DeviceInfoExportUploadExcel"})},handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(u["h"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/deviceStatistical/deviceInfo/DeviceInfoExport",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},d=s,p=n("2877"),h=Object(p["a"])(d,i,a,!1,null,"18078240",null);t["default"]=h.exports},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),c=o.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(r.width,r.height)+"px",o.appendChild(c)),a.type){case"center":c.style.top=r.height/2-c.offsetHeight/2+"px",c.style.left=r.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-r.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-r.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=a.color,c.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
package com.mx.cneeds.server.device.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mx.cneeds.common.pager.PageUtils;
import com.mx.cneeds.server.entity.DeviceCarTypeEntity;
import java.util.Map;
/**
* @ClassName DeviceCarTypeService
* @author zzr
* @date 2020-03-18 14:44:30
*/
public interface DeviceCarTypeService extends IService<DeviceCarTypeEntity> {
PageUtils queryPage(Map<String, Object> params);
}
package com.mx.cneeds.server.device.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mx.cneeds.common.pager.PageUtils;
import com.mx.cneeds.server.entity.DeviceLinkProtocolsEntity;
import java.util.Map;
public interface DeviceLinkProtocolsService extends IService<DeviceLinkProtocolsEntity> {
PageUtils queryPage(Map<String, Object> params);
}
package com.mx.cneeds.server.device.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mx.cneeds.common.pager.PageUtils;
import com.mx.cneeds.common.pager.Query;
import com.mx.cneeds.server.dao.DeviceCarTypeDao;
import com.mx.cneeds.server.device.service.DeviceCarTypeService;
import com.mx.cneeds.server.entity.DeviceCarTypeEntity;
import com.mx.cneeds.server.entity.DeviceChannelEntity;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* @ClassName DeviceCarTypeServiceImpl
* @Author zzr
* @Date 2020-08-14 16:16
* @Description TODO
**/
@Service("deviceCarTypeService")
public class DeviceCarTypeServiceImpl extends ServiceImpl<DeviceCarTypeDao, DeviceCarTypeEntity> implements DeviceCarTypeService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
QueryWrapper<DeviceCarTypeEntity> queryWrapper = new QueryWrapper<>();
/*String channelNum = (String) params.get("channelNum");
if (channelNum != null && !"".equals(channelNum)){
queryWrapper.eq("channel_num",channelNum);
}*/
IPage<DeviceCarTypeEntity> page = this.page(
new Query<DeviceCarTypeEntity>().getPage(params),
queryWrapper
);
return new PageUtils(page);
}
}
package com.mx.cneeds.server.device.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mx.cneeds.common.pager.PageUtils;
import com.mx.cneeds.common.pager.Query;
import com.mx.cneeds.server.dao.DeviceLinkProtocolsDao;
import com.mx.cneeds.server.device.service.DeviceLinkProtocolsService;
import com.mx.cneeds.server.entity.DeviceCarTypeEntity;
import com.mx.cneeds.server.entity.DeviceLinkProtocolsEntity;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* @ClassName DeviceLinkProtocolsServiceImpl
* @Author zzrdark
* @Date 2020-08-14 16:35
* @Description TODO
**/
@Service("deviceLinkProtocolsService")
public class DeviceLinkProtocolsServiceImpl extends ServiceImpl<DeviceLinkProtocolsDao, DeviceLinkProtocolsEntity> implements DeviceLinkProtocolsService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
QueryWrapper<DeviceLinkProtocolsEntity> queryWrapper = new QueryWrapper<>();
/*String channelNum = (String) params.get("channelNum");
if (channelNum != null && !"".equals(channelNum)){
queryWrapper.eq("channel_num",channelNum);
}*/
IPage<DeviceLinkProtocolsEntity> page = this.page(
new Query<DeviceLinkProtocolsEntity>().getPage(params),
queryWrapper
);
return new PageUtils(page);
}
}
package com.mx.cneeds.server.device.web;
import com.mx.cneeds.common.dto.DeviceCarTypeDto;
import com.mx.cneeds.common.pager.PageUtils;
import com.mx.cneeds.common.result.R;
import com.mx.cneeds.common.validator.ValidatorUtils;
import com.mx.cneeds.server.device.service.DeviceCarTypeService;
import com.mx.cneeds.server.entity.DeviceCarTypeEntity;
import org.springframework.beans.BeanUtils;
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.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.*;
/**
* @ClassName DeviceCarTypeController
* @Author zzrdark
* @Date 2020-08-14 16:38
* @Description TODO
**/
@RestController
@RequestMapping("device/devicecartype")
public class DeviceCarTypeController {
@Autowired
private DeviceCarTypeService deviceCarTypeService;
/**
* 列表
*/
@RequestMapping("/list")
public PageUtils list(@RequestParam Map<String, Object> params){
PageUtils page = deviceCarTypeService.queryPage(params);
List<DeviceCarTypeDto> list = new ArrayList<DeviceCarTypeDto>();
for (Object entity : page.getList()){
DeviceCarTypeDto dto = new DeviceCarTypeDto();
DeviceCarTypeEntity deviceCarTypeEntity = (DeviceCarTypeEntity) entity;
BeanUtils.copyProperties(deviceCarTypeEntity,dto);
list.add(dto);
}
page.setList(list);
return page;
}
@RequestMapping("/queryDeviceCarTypeAll")
public List<DeviceCarTypeDto> queryDeviceCarTypeAll(){
List<DeviceCarTypeEntity> deviceChannelEntities = deviceCarTypeService.list();
List<DeviceCarTypeDto> deviceCarTypeDtos = new ArrayList<>();
deviceChannelEntities.forEach(e -> {
DeviceCarTypeDto dto = new DeviceCarTypeDto();
BeanUtils.copyProperties(e,dto);
deviceCarTypeDtos.add(dto);
});
return deviceCarTypeDtos;
}
/**
* 保存
*/
@RequestMapping("/save")
public R save(@RequestBody DeviceCarTypeDto deviceCarTypeDto){
DeviceCarTypeEntity deviceCarTypeEntity = new DeviceCarTypeEntity();
BeanUtils.copyProperties(deviceCarTypeDto,deviceCarTypeEntity);
deviceCarTypeEntity.setUpdateTime(new Date());
deviceCarTypeService.save(deviceCarTypeEntity);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody DeviceCarTypeDto deviceCarTypeDto){
ValidatorUtils.validateEntity(deviceCarTypeDto);
DeviceCarTypeEntity deviceCarTypeEntity = new DeviceCarTypeEntity();
BeanUtils.copyProperties(deviceCarTypeDto,deviceCarTypeEntity);
deviceCarTypeEntity.setUpdateTime(new Date());
deviceCarTypeService.updateById(deviceCarTypeEntity);
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
@Transactional
public R delete(@RequestBody List<Long> carTypeIds){
deviceCarTypeService.removeByIds(carTypeIds);
return R.ok();
}
}
package com.mx.cneeds.server.device.web;
import com.mx.cneeds.common.dto.DeviceLinkProtocolsDto;
import com.mx.cneeds.common.pager.PageUtils;
import com.mx.cneeds.common.result.R;
import com.mx.cneeds.common.validator.ValidatorUtils;
import com.mx.cneeds.server.device.service.DeviceLinkProtocolsService;
import com.mx.cneeds.server.entity.DeviceLinkProtocolsEntity;
import org.springframework.beans.BeanUtils;
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.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.*;
/**
* @ClassName DeviceLinkProtocolsController
* @Author zzrdark
* @Date 2020-08-14 16:40
* @Description TODO
**/
@RestController
@RequestMapping("device/devicelinkprotocols")
public class DeviceLinkProtocolsController {
@Autowired
private DeviceLinkProtocolsService deviceLinkProtocolsService;
/**
* 列表
*/
@RequestMapping("/list")
public PageUtils list(@RequestParam Map<String, Object> params){
PageUtils page = deviceLinkProtocolsService.queryPage(params);
List<DeviceLinkProtocolsDto> list = new ArrayList<>();
for (Object entity : page.getList()){
DeviceLinkProtocolsDto dto = new DeviceLinkProtocolsDto();
DeviceLinkProtocolsEntity deviceLinkProtocolsEntity = (DeviceLinkProtocolsEntity) entity;
BeanUtils.copyProperties(deviceLinkProtocolsEntity,dto);
list.add(dto);
}
page.setList(list);
return page;
}
/**
* 保存
*/
@RequestMapping("/save")
public R save(@RequestBody DeviceLinkProtocolsDto deviceCarTypeDto){
DeviceLinkProtocolsEntity deviceLinkProtocolsEntity = new DeviceLinkProtocolsEntity();
BeanUtils.copyProperties(deviceCarTypeDto,deviceLinkProtocolsEntity);
deviceLinkProtocolsEntity.setUpdateTime(new Date());
deviceLinkProtocolsService.save(deviceLinkProtocolsEntity);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody DeviceLinkProtocolsDto deviceLinkProtocolsDto){
ValidatorUtils.validateEntity(deviceLinkProtocolsDto);
DeviceLinkProtocolsEntity deviceLinkProtocolsEntity = new DeviceLinkProtocolsEntity();
BeanUtils.copyProperties(deviceLinkProtocolsDto,deviceLinkProtocolsEntity);
deviceLinkProtocolsEntity.setUpdateTime(new Date());
deviceLinkProtocolsService.updateById(deviceLinkProtocolsEntity);
return R.ok();
}
/**
* 删除渠道号
*/
@RequestMapping("/delete")
@Transactional
public R delete(@RequestBody List<Long> linkProtocolsIds){
deviceLinkProtocolsService.removeByIds(linkProtocolsIds);
return R.ok();
}
}
spring:
profiles:
active: prod
active: dev
application:
name: cneeds-server-device
......
spring:
profiles:
active: prod
active: dev
application:
name: cneeds-server-user
......
......@@ -19,3 +19,11 @@ databaseChangeLog:
- sqlFile:
encoding: utf8
path: classpath:/db/sql/changeSet_2.sql
- changeSet:
id: 3
author: zzr
comments: 车型,连接协议,渠道号
changes:
- sqlFile:
encoding: utf8
path: classpath:/db/sql/changeSet_3.sql
\ No newline at end of file
DROP TABLE IF EXISTS `device_car_type`;
CREATE TABLE `device_car_type` (
`car_type_id` bigint(20) NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT '车型Id',
`brand` varchar(255) COMMENT '品牌',
`car_id` varchar(255) COMMENT '车系',
`description` varchar(255) COMMENT '介绍',
`update_time` datetime COMMENT '更新时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `device_link_protocols`;
CREATE TABLE `device_link_protocols` (
`link_protocols_id` bigint(20) NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT '连接协议Id',
`name` varchar(255) COMMENT '连接协议名称',
`description` varchar(255) COMMENT '介绍',
`update_time` datetime COMMENT '更新时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `device_channel`
DROP COLUMN `brand`;
ALTER TABLE `device_channel`
ADD COLUMN `car_type_id` bigint(0) COMMENT '车型Id' AFTER `update_time`;
\ No newline at end of file
......@@ -6,7 +6,7 @@ databaseChangeLog:
changes:
- sqlFile:
encoding: utf8
path: classpath:/db/sql/cneeds_server.sql
path: classpath:/db/sql/cneeds_server_old.sql
- changeSet:
id: 1
author: zzr
......
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