(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1242330d"],{be4f:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"brand_content"},[n("div",{staticClass:"brand_header"},[n("span",{on:{click:t.goBack}},[n("Icon",{attrs:{type:"md-arrow-back",size:"18",color:"#1890FF"}})],1),n("span",[t._v("Excel批量上传商标")])]),n("div",{staticClass:"brand_content_upload"},[t._m(0),n("div",[n("Upload",{attrs:{action:"","before-upload":t.beforeUpload}},[n("Button",{attrs:{icon:"ios-cloud-upload-outline"}},[t._v("上传Csv文件")]),t._v(" "+t._s(t.note)+" ")],1),n("Button",{attrs:{type:"primary"},on:{click:t.publish}},[t._v("发布")])],1)])])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v(" 第一次上传请下载 "),n("span",[t._v("商标上传模板")]),t._v(" ，并严格按模板提供内容填入商标信息。 ")])}],c=(n("7f7f"),n("ac6a"),n("c1df"),n("7e1e")),s=n("c276"),i={components:{},data:function(){return{note:"点击上传Csv文件",publishdata:[]}},methods:{goBack:function(){this.$router.go(-1)},beforeUpload:function(t){var e=this;return Object(s["e"])(t).then((function(t){t.forEach((function(t){t.channel_name=e.$store.state.user.userobj.company.name,t.channel_code=e.$store.state.user.userobj.company.id,t.execlName=t.name})),e.publishdata=t,e.note="文件已上传"})).catch((function(t){e.$Notice.warning({title:"上传出错",desc:"请检查文件格式"})})),!1},publish:function(){var t=this;Object(c["f"])("/web/trademark/trademarkCtl/publish",this.publishdata).then((function(e){t.note="点击上传Csv文件",t.$Message.success("发布成功"),console.log("details result:"+JSON.stringify(e))})).catch((function(t){console.log("details err:"+t)}))}},mounted:function(){},watch:{}},r=i,u=(n("f5ef"),n("2877")),l=Object(u["a"])(r,a,o,!1,null,"1c72056b",null);e["default"]=l.exports},f5ef:function(t,e,n){"use strict";var a=n("fe9c"),o=n.n(a);o.a},fe9c:function(t,e,n){}}]);