(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{457:function(t,e,n){},528:function(t,e,n){"use strict";n(457)},606:function(t,e,n){"use strict";n.r(e);var c=n(3),r=(n(35),{data:function(){return{loading:!1,options:[],package:[{price:0},{price:0}]}},mounted:function(){this.getData()},methods:{getData:function(){var t=this;return Object(c.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("/api/admin/recruit/getConf");case 2:(n=e.sent)&&1===n.status&&(t.options=n.data.options,t.package=n.data.package);case 4:case"end":return e.stop()}}),e)})))()},onSave:function(){var t=this;return Object(c.a)(regeneratorRuntime.mark((function e(){var data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,data={content:JSON.stringify({options:t.options,package:t.package})},e.next=4,t.$post("/api/admin/recruit/saveConf",data);case 4:(n=e.sent)&&1===n.status&&(t.$message({message:"修改成功",type:"success"}),t.getData()),t.loading=!1;case 7:case"end":return e.stop()}}),e)})))()}}}),o=(n(528),n(2)),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"content_t"},[n("div",{staticClass:"content_item"},[n("span",[t._v("免费发布岗位数量")]),t._v(" "),n("el-input",{staticClass:"input_t",attrs:{type:"number"},model:{value:t.options.free_num,callback:function(e){t.$set(t.options,"free_num",e)},expression:"options.free_num"}}),t._v(" "),n("spqn",[t._v("个")])],1),t._v(" "),n("div",{staticClass:"content_item"},[n("span",[t._v("刷新岗位单次价格")]),t._v(" "),n("el-input",{staticClass:"input_t",attrs:{type:"number"},model:{value:t.package[1].price,callback:function(e){t.$set(t.package[1],"price",e)},expression:"package[1].price"}}),t._v(" "),n("spqn",[t._v("元")])],1),t._v(" "),n("div",{staticClass:"content_item"},[n("span",[t._v("单次发布岗位价格")]),t._v(" "),n("el-input",{staticClass:"input_t",attrs:{type:"number"},model:{value:t.package[0].price,callback:function(e){t.$set(t.package[0],"price",e)},expression:"package[0].price"}}),t._v(" "),n("spqn",[t._v("元")])],1),t._v(" "),t._l(t.package,(function(e,c){return["2"==e.type?n("div",[n("div",{staticClass:"conf_title"},[t._v(t._s(e.name)+":")]),t._v(" "),n("div",{staticClass:"conf_content"},[n("span",[t._v("套餐次数")]),t._v(" "),n("el-input",{staticClass:"input_t",attrs:{type:"number"},model:{value:e.num,callback:function(n){t.$set(e,"num",n)},expression:"item.num"}}),t._v(" "),n("spqn",[t._v("次")]),t._v(" "),n("span",[t._v("原价")]),t._v(" "),n("el-input",{staticClass:"input_t",attrs:{type:"number"},model:{value:e.original_price,callback:function(n){t.$set(e,"original_price",n)},expression:"item.original_price"}}),t._v(" "),n("spqn",[t._v("元")]),t._v(" "),n("spqn",[t._v("现价")]),t._v(" "),n("el-input",{staticClass:"input_t",attrs:{type:"number"},model:{value:e.price,callback:function(n){t.$set(e,"price",n)},expression:"item.price"}}),t._v(" "),n("spqn",[t._v("元")])],1)]):t._e()]})),t._v(" "),n("div",{staticClass:"save-btn"},[n("el-button",{attrs:{loading:t.loading},on:{click:t.onSave}},[t._v("保存配置")])],1)],2)}),[],!1,null,"5b9d5aa7",null);e.default=component.exports}}]);