(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d4c75ee"],{"0139":function(e,t,a){e.exports=a.p+"img/placeholder.756a7125.svg"},"48b4":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"brand_indentlist"},[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)},r=[],i=(a("7f7f"),a("06d3")),s=a("8770"),o=a("c1df"),c=a.n(o),f=a("7e1e"),d=a("0139"),l=a.n(d),u={components:{BizTable:i["a"],DateTime:s["a"]},data:function(){return{placeholder:l.a}},mounted:function(){this.$route.params.ids?this.$refs.bt.fetchData({ids:this.$route.params.ids}):this.$refs.bt.fetchData()},methods:{onexec:function(e,t){var a=this;if("detail"===e)this.$router.push({name:"originmanage_detail",params:{id:t.id}});else if("down"===e||"lowershelf"===e||"uppershelf"===e){"down"!==e&&0===this.$refs.bt.currentSels.length&&this.$Message.warning("请选择商标");var n="down"===e?[t]:this.$refs.bt.currentSels;e="down"===e?"lowershelf":e,Object(f["j"])(n,e).then((function(t){1==t.data.status&&(a.$Message.success("".concat("lowershelf"===e?"下架":"上架","成功")),a.$refs.bt.fetchData())})).catch((function(t){a.$Message.error("".concat("lowershelf"===e?"下架":"上架","出错"))}))}},formatCol:function(e,t,a){var n=e[t];if("created_at"===t)n=c()(n).format("YYYY-MM-DD");else{if("pic_url"===t)return'<img style="width: 50px;height: 50px" src="'.concat(e[t]||l.a,'"/>');"deadline"===t?n=c()(e["tm_start_day"]||0).format("YYYY-MM-DD")+"至"+c()(e["tm_end_day"]||0).format("YYYY-MM-DD"):"publishinfo"===t?n=(e["contacts"]||"")+"\n"+(e["mobile"]||""):"name"===t&&(n=e["name"]||e["excelName"])}return n}}},h=u,m=(a("aac4"),a("2877")),b=Object(m["a"])(h,n,r,!1,null,"acfca28a",null);t["default"]=b.exports},"60ee":function(e,t,a){},aac4:function(e,t,a){"use strict";var n=a("60ee"),r=a.n(n);r.a}}]);