(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f1119100"],{"0139":function(e,t,a){e.exports=a.p+"img/placeholder.756a7125.svg"},"23a5":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:"operation_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=[],o=a("06d3"),i=a("8770"),s=a("c1df"),c=a.n(s),d=a("7e1e"),l=a("0139"),f=a.n(l),u={components:{BizTable:o["a"],DateTime:i["a"]},data:function(){return{placeholder:f.a}},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("/operation/operation_excelupload")},searchHandler:function(){this.$router.push("/operation/operation_brandsearch")},onexec:function(e,t){var a=this;if("detail"===e)this.$router.push({name:"originmanage_detail",query:{id:t.id}});else if("down"===e||"lowershelf"===e||"uppershelf"===e){"down"!==e&&0===this.$refs.bt.currentSels.length&&this.$Message.warning("请选择商标");var r="down"===e?[t]:this.$refs.bt.currentSels;e="down"===e?"lowershelf":e,Object(d["j"])(r,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 r=e[t];if("created_at"===t)r=c()(r).format("YYYY-MM-DD");else{if("pic_url"===t)return'<img style="width: 100%;height: 100%" src="'.concat(e[t]||f.a,'"/>');"deadline"===t?r=c()(e["tm_start_day"]||0).format("YYYY-MM-DD")+"至"+c()(e["tm_end_day"]||0).format("YYYY-MM-DD"):"publishinfo"===t&&(r=e[contacts]+"\n"+e[mobile])}return r}}},h=u,b=(a("9371"),a("2877")),m=Object(b["a"])(h,r,n,!1,null,"d0a4cb18",null);t["default"]=m.exports},"6eab":function(e,t,a){},9371:function(e,t,a){"use strict";var r=a("6eab"),n=a.n(r);n.a}}]);