(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4e7a9433"],{"00b8":function(e,t,a){"use strict";var n=a("8c01"),i=a.n(n);i.a},"0139":function(e,t,a){e.exports=a.p+"img/placeholder.756a7125.svg"},"0801":function(e,t,a){"use strict";var n=a("8298"),i=a.n(n);i.a},"391e":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},i=[],s=a("6db5"),r=s["a"],o=a("2877"),c=Object(o["a"])(r,n,i,!1,null,null,null);t["a"]=c.exports},"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("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var n=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,modelName:"trademark",metaName:"originmanage_info",packageName:"trademark",tblheight:n-200,isMulti:""},on:{onexec:e.onexec}})]}}])})],1)},i=[],s=(a("7f7f"),a("06d3")),r=a("391e"),o=a("8770"),c=a("c1df"),u=a.n(c),f=a("7e1e"),l=a("0139"),h=a.n(l),d={components:{BizTable:s["a"],DateTime:o["a"],PageSpace:r["a"]},data:function(){return{placeholder:h.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(a.$refs.bt.searchModel))})).catch((function(t){a.$Message.error("".concat("lowershelf"===e?"下架":"上架","出错"))}))}},formatCol:function(e,t,a){var n=e[t];if("created_at"===t)n=u()(n).format("YYYY-MM-DD");else{if("pic_url"===t)return'<img style="width: 50px;height: 50px" src="'.concat(e[t]||h.a,'"/>');"deadline"===t?n=u()(e["tm_start_day"]||0).format("YYYY-MM-DD")+"至"+u()(e["tm_end_day"]||0).format("YYYY-MM-DD"):"publishinfo"===t?n=(e["contacts"]||"")+"<br/>"+(e["mobile"]||""):"name"===t?n=e["name"]||e["excelName"]:"publish_status"===t&&(n=e[!1]?e["publish_status_name"]+"(".concat(e["fail_reason"],")"):e["publish_status_name"])}return n}}},m=d,p=(a("0801"),a("00b8"),a("2877")),g=Object(p["a"])(m,n,i,!1,null,"0eb78103",null);t["default"]=g.exports},"6db5":function(e,t,a){"use strict";(function(e){a("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),n=a.get()[0],i=window.innerHeight-n.offsetTop-t.advalue;t.frameHeight=i,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("1157"))},8298:function(e,t,a){},"8c01":function(e,t,a){}}]);