(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-05048d1e"],{"309d":function(e,t,a){"use strict";var r=a("3306"),n=a.n(r);n.a},3306:function(e,t,a){},"48b4":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"brand_indentlist"},[a("div",{staticClass:"brand_header"},[a("Button",{attrs:{type:"primary"},on:{click:e.excelHandler}},[e._v("Excel批量上传")]),a("Button",{attrs:{type:"primary"},on:{click:e.searchHandler}},[e._v("检索上传")])],1),a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,modelName:"trademark",metaName:"originmanage_info",packageName:"trademark",tblheight:e.adjustHeight-120,isMulti:"",isLazy:"true",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},n=[],i=a("06d3"),o=a("8770"),s=a("c1df"),d=a.n(s),c=a("7e1e"),u={components:{BizTable:i["a"],DateTime:o["a"]},data:function(){return{}},mounted:function(){this.$route.query.ids?this.$refs.bt.fetchData({ids:this.$route.query.ids}):this.$refs.bt.fetchData()},methods:{excelHandler:function(){this.$router.push("/originmanage/originmanage_excelupload")},searchHandler:function(){this.$router.push("/originmanage/originmanage_brandsearch")},onexec:function(e,t){var a=this;"detail"===e?this.$router.push({name:"originmanage_detail",query:{id:t.id}}):"down"===e&&Object(c["f"])("/web/trademark/trademarkCtl/update",{id:t.id,publish_status:"lowershelf"}).then((function(e){a.$Message.success("发布成功"),a.$refs.bt.fetchData()})).catch((function(e){a.$Message.error("发布出错")}))},formatCol:function(e,t,a){var r=e[t];if("created_at"===t)r=d()(r).format("YYYY-MM-DD");else{if("pic_url"===t)return'<img style="width: 50px;height: 50px" src="'.concat(e[t],'"/>');"deadline"===t&&(r=d()(e["tm_start_day"]||0).format("YYYY-MM-DD")+"至"+d()(e["tm_end_day"]||0).format("YYYY-MM-DD"))}return r}}},l=u,f=(a("309d"),a("2877")),h=Object(f["a"])(l,r,n,!1,null,"7b2c6108",null);t["default"]=h.exports}}]);