(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-914146ee"],{"609c":function(t,e,n){"use strict";var c=n("9cf5"),a=n.n(c);a.a},"9cf5":function(t,e,n){},be4f:function(t,e,n){"use strict";n.r(e);var c=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)])])},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v(" 第一次上传请下载 "),n("a",{attrs:{href:"https://gsb-zc.oss-cn-beijing.aliyuncs.com/%E5%95%86%E6%A0%87%E6%A8%A1%E7%89%88.csv",download:"商标上传模版.csv"}},[t._v("商标上传模板")]),t._v(" ，并严格按模板提供内容填入商标信息。 ")])}],o=(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(o["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("609c"),n("2877")),l=Object(u["a"])(r,c,a,!1,null,"25f771c1",null);e["default"]=l.exports}}]);