(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,"h",(function(){return i})),n.d(t,"g",(function(){return r})),n.d(t,"i",(function(){return c})),n.d(t,"o",(function(){return o})),n.d(t,"b",(function(){return d})),n.d(t,"q",(function(){return u})),n.d(t,"r",(function(){return l})),n.d(t,"s",(function(){return s})),n.d(t,"m",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"a",(function(){return v})),n.d(t,"n",(function(){return m})),n.d(t,"j",(function(){return b})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return j})),n.d(t,"p",(function(){return C})),n.d(t,"l",(function(){return O})),n.d(t,"e",(function(){return S}));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/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(e){return Object(a["a"])({url:"/device/device/importDevice",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function u(e){return Object(a["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(a["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(a["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function p(e){return Object(a["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function f(e){return Object(a["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function v(e){return Object(a["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function m(e){return Object(a["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function b(){return Object(a["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function g(e){return Object(a["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function j(e){return Object(a["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function C(e){return Object(a["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function O(e){return Object(a["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function S(e){return Object(a["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}}}]);