Commit 0eaf4475 by zzrdark

laster commit

parent b8377e50
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 { ...@@ -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 @@ ...@@ -7,7 +7,7 @@
<resultMap type="com.mx.cneeds.server.entity.DeviceChannelEntity" id="deviceChannelMap"> <resultMap type="com.mx.cneeds.server.entity.DeviceChannelEntity" id="deviceChannelMap">
<result property="channelId" column="channel_id"/> <result property="channelId" column="channel_id"/>
<result property="channelNum" column="channel_num"/> <result property="channelNum" column="channel_num"/>
<result property="brand" column="brand"/> <result property="carTypeId" column="car_type_id"/>
<result property="updateTime" column="update_time"/> <result property="updateTime" column="update_time"/>
</resultMap> </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: spring:
profiles: profiles:
active: prod active: dev
application: application:
name: cneeds-server-authorization name: cneeds-server-authorization
server: server:
......
...@@ -140,4 +140,38 @@ public interface DeviceClient { ...@@ -140,4 +140,38 @@ public interface DeviceClient {
@PostMapping("device/info/deleteDeviceInfoExportByName") @PostMapping("device/info/deleteDeviceInfoExportByName")
void deleteDeviceInfoExportByName(@RequestBody String fileName); 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 { ...@@ -728,4 +728,140 @@ public class DeviceController {
return R.error(); 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: spring:
profiles: profiles:
active: prod active: dev
application: application:
name: cneeds-server-datashow name: cneeds-server-datashow
server: server:
......
.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-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-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-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-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-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-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
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: spring:
profiles: profiles:
active: prod active: dev
application: application:
name: cneeds-server-device name: cneeds-server-device
......
spring: spring:
profiles: profiles:
active: prod active: dev
application: application:
name: cneeds-server-user name: cneeds-server-user
......
...@@ -19,3 +19,11 @@ databaseChangeLog: ...@@ -19,3 +19,11 @@ databaseChangeLog:
- sqlFile: - sqlFile:
encoding: utf8 encoding: utf8
path: classpath:/db/sql/changeSet_2.sql 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: ...@@ -6,7 +6,7 @@ databaseChangeLog:
changes: changes:
- sqlFile: - sqlFile:
encoding: utf8 encoding: utf8
path: classpath:/db/sql/cneeds_server.sql path: classpath:/db/sql/cneeds_server_old.sql
- changeSet: - changeSet:
id: 1 id: 1
author: zzr 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