(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6cc861f3"],{"391e":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},o=[],a=n("9ee1"),i=a["a"],c=n("9ca4"),u=Object(c["a"])(i,r,o,!1,null,null,null);t["a"]=u.exports},4585:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var r=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,tblheight:r-120,metaName:"product_typetwo",packageName:"aggregation",modelName:"producttype",isMulti:"",savebefore:e.savebefore,editbefore:e.beforedit,addbefore:e.beforeadd},on:{formevent:e.onformevent,onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},o=[],a=(n("5ab2"),n("6d57"),n("e10e"),n("ce3c")),i=n("06d3"),c=n("391e");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){Object(a["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={name:"producttypetwo_page",data:function(){return{}},mounted:function(){var e=this;this.$nextTick((function(){e.$refs.bt.$refs.searchform.formModel["p_code"]=e.$route.query.typeCode}))},components:{BizTable:i["a"],PageSpace:c["a"]},methods:{onformevent:function(e,t){},savebefore:function(e,t,n){return t=s(s({},t),{},{p_code:this.$route.query.typeCode}),n(t)},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t,n){if("auth"==e&&this.$router.push({name:"role_auth",query:{roleid:t.id,rolecode:t.code}}),"createProductTypeTwo"==e){if(this.$refs.bt.pageInfo&&this.$refs.bt.pageInfo.total>=5)return void this.$Message.warning("每个一级类目下，最多可添加5个二级类目");this.$refs.bt.doexec("create",t,n)}},oninitbtn:function(e,t){e.ishide=!1},formatCol:function(e,t,n){return"updated_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):"pic_url"==t?'<img src="'.concat(e[t],'" style="width:50px;height:50px"></img>'):"pic_size"==t?"<span>".concat((e[t]/1024).toFixed(1)," KB</span>"):e[t]}}},d=f,p=(n("cc96"),n("9ca4")),l=Object(p["a"])(d,r,o,!1,null,null,null);t["default"]=l.exports},"9ee1":function(e,t,n){"use strict";(function(e){n("163d");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 n=e("#framediv"),r=n.get()[0]||0,o=window.innerHeight-r.offsetTop-t.advalue;t.frameHeight=o,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))},cc96:function(e,t,n){"use strict";var r=n("d906"),o=n.n(r);o.a},d906:function(e,t,n){}}]);