(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d9cdc768"],{"391e":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},s=[],n=a("6db5"),r=n["a"],u=a("2877"),o=Object(u["a"])(r,i,s,!1,null,null,null);t["a"]=o.exports},"4b45":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var i=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"bizopt",metaName:"allchance_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:i-120,refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},s=[],n=a("06d3"),r=a("391e"),u=a("db7f"),o=a("f121"),c=a("a026"),f=o["a"].deliverUrl.pro,l={name:"allchance_page",data:function(){return{baseUrl:f,row:null}},components:{PageSpace:r["a"],BizTable:n["a"]},created:function(){},watch:{$route:function(e){e.query.spname?(e.query.bizStatus?this.$refs.bt.initWhereData={facilitator_name:e.query.spname,business_status:e.query.bizStatus,dateType:e.query.dateType}:this.$refs.bt.initWhereData={facilitator_name:e.query.spname},this.$refs.bt.fetchData()):e.query.bizStatus&&(this.$refs.bt.initWhereData={business_status:e.query.bizStatus,dateType:e.query.dateType},this.$refs.bt.fetchData())}},mounted:function(){this.$route.query.spname?(this.$route.query.bizStatus?this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,business_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType}:this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,dateType:this.$route.query.dateType},this.$refs.bt.fetchData()):this.$route.query.bizStatus&&(this.$refs.bt.initWhereData={business_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType},this.$refs.bt.fetchData())},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){"submit_case"===e?(console.log("turn to case page: ",t),this.$router.push({name:"bizcase",query:{bizType:t.business_type,bizCode:t.demand_code}})):"bizdetails"===e&&alert("detail")},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){if("expand"==t){this.row=e;var i="<span>xxxxxxx</span>",s=Object.assign({},this.$data),n=c["default"].extend({components:{},template:"<div>".concat(i,"</div>"),data:function(){return s},methods:{}}),r=new n;return r}var o=e[t];if("business_type"===t){var f=u["a"].business_type[o];return f}if("business_status"===t){var l=u["a"].business_status[o];return l}if("source"===t){var d=u["a"].source[o];return d}}}},d=l,h=a("2877"),b=Object(h["a"])(d,i,s,!1,null,null,null);t["default"]=b.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"),i=a.get()[0],s=window.innerHeight-i.offsetTop-t.advalue;t.frameHeight=s,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);