(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=[],c=(t("ac6a"),t("456d"),t("aa98")),r={channelNum:"渠道号",brand:"品牌描述"},u={data:function(){var e=function(e,n,t){0===n.length?t(new Error(r[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(c["m"])(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"})}}},d=u,o=t("2877"),l=Object(o["a"])(d,a,i,!1,null,"1c8c5750",null);n["default"]=l.exports},aa98:function(e,n,t){"use strict";t.d(n,"g",(function(){return i})),t.d(n,"h",(function(){return c})),t.d(n,"n",(function(){return r})),t.d(n,"b",(function(){return u})),t.d(n,"p",(function(){return d})),t.d(n,"q",(function(){return o})),t.d(n,"l",(function(){return l})),t.d(n,"j",(function(){return s})),t.d(n,"f",(function(){return h})),t.d(n,"a",(function(){return v})),t.d(n,"m",(function(){return f})),t.d(n,"i",(function(){return p})),t.d(n,"c",(function(){return m})),t.d(n,"d",(function(){return b})),t.d(n,"o",(function(){return g})),t.d(n,"k",(function(){return C})),t.d(n,"e",(function(){return j}));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 c(e){return Object(a["a"])({url:"/device/device/importDevice",method:"post",data:e})}function r(e){return Object(a["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function d(e){return Object(a["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(a["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function h(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 f(e){return Object(a["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function p(){return Object(a["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function m(e){return Object(a["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function b(e){return Object(a["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function g(e){return Object(a["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function C(e){return Object(a["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function j(e){return Object(a["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}}}]);