7651e4a.js 16 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[63],{515:function(e,t,r){},651:function(e,t,r){"use strict";r(515)},768:function(e,t,r){"use strict";r.r(t);var n=r(6),o=(r(30),{data:function(){return{form:{id:0,question:[{title:"",answer:""}],hzhb_img_list:[],logo_img_list:[],banner_img_list:[],liucheng_img_1_list:[],liucheng_img_2_list:[],liucheng_img_3_list:[],fwjs_img_pc_list:[],fwjs_img_h5_list:[]},positionType:[]}},mounted:function(){var e=this.$route.query.id?this.$route.query.id:0;this.form.id=e,0!=e&&this.getDetail(e),this.getPositionType()},methods:{add_question:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r={title:"",answer:""},e.form.question.push(r);case 2:case"end":return t.stop()}}),t)})))()},del_question:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t.form.question.splice(e,1);case 1:case"end":return r.stop()}}),r)})))()},getDetail:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$post("/api/admin/nav/info",{id:e});case 2:(n=r.sent)&&1===n.status&&(t.form=n.data.data);case 4:case"end":return r.stop()}}),r)})))()},save:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var data,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.form,data=JSON.stringify(e.form),t.next=4,e.$post("/api/admin/nav/add",{data:data});case 4:(r=t.sent)&&1===r.status&&(e.$message({type:"success",message:"添加成功!"}),e.$store.state.domainConfig.rooterUrl);case 6:case"end":return t.stop()}}),t)})))()},getPositionType:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$post("/api/recruit/getOptions");case 2:(r=t.sent)&&1===r.status&&function(){for(var t=r.data.direction||[],n=[],o=function(i){var e={value:t[i].occupation_id,label:t[i].occupation_name,children:function(){if(t[i].children.length>0){for(var a=[],e=0;e<t[i].children.length;e++)a[e]={value:t[i].children[e].direction_id,label:t[i].children[e].direction_name};return a}}()};n[i]=e},i=0;i<t.length;i++)o(i);e.positionType=n}();case 4:case"end":return t.stop()}}),t)})))()},handleImgSuccess:function(e,t){var r={name:"1.png",url:e.filename};this.form.logo_img_list.push(r),this.form.logo_img=e.filename},logo_img_del:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.form.logo_img_list=[],e.form.logo_img="";case 2:case"end":return t.stop()}}),t)})))()},handleBannerSuccess:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={name:"1.png",url:e.filename},r.form.banner_img_list.push(n),r.form.banner_img=e.filename;case 3:case"end":return t.stop()}}),t)})))()},del_banner_img:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.form.banner_img_list=[],e.form.banner_img="";case 2:case"end":return t.stop()}}),t)})))()},liucheng_img_1_success:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={name:"1.png",url:e.filename},r.form.liucheng_img_1_list.push(n),r.form.liucheng_img_1=e.filename;case 3:case"end":return t.stop()}}),t)})))()},del_liucheng_1_img:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.form.liucheng_img_1_list=[],e.form.liucheng_img_1="";case 2:case"end":return t.stop()}}),t)})))()},liucheng_img_2_success:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={name:"1.png",url:e.filename},r.form.liucheng_img_2_list.push(n),r.form.liucheng_img_2=e.filename;case 3:case"end":return t.stop()}}),t)})))()},del_liucheng_2_img:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.form.liucheng_img_2_list=[],e.form.liucheng_img_2="";case 2:case"end":return t.stop()}}),t)})))()},liucheng_img_3_success:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={name:"1.png",url:e.filename},r.form.liucheng_img_3_list.push(n),r.form.liucheng_img_3=e.filename;case 3:case"end":return t.stop()}}),t)})))()},del_liucheng_3_img:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.form.liucheng_img_3_list=[],e.form.liucheng_img_3="";case 2:case"end":return t.stop()}}),t)})))()},fwjs_img_pc_success:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={name:"1.png",url:e.filename},r.form.fwjs_img_pc_list.push(n),r.form.fwjs_img_pc=e.filename;case 3:case"end":return t.stop()}}),t)})))()},del_fwjs_img_pc:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.form.fwjs_img_pc_list=[],e.form.fwjs_img_pc="";case 2:case"end":return t.stop()}}),t)})))()},fwjs_img_h5_success:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={name:"1.png",url:e.filename},r.form.fwjs_img_h5_list.push(n),r.form.fwjs_img_h5=e.filename;case 3:case"end":return t.stop()}}),t)})))()},del_fwjs_img_h5:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.form.fwjs_img_h5_list=[],e.form.fwjs_img_h5="";case 2:case"end":return t.stop()}}),t)})))()},hehb_img_success:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.filename,o={name:"1.png",url:n},r.form.hzhb_img_list.push(o);case 3:case"end":return t.stop()}}),t)})))()},del_hzhb_img_list:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i=0;i<r.form.hzhb_img_list.length;i++)r.form.hzhb_img_list[i].uid==e.uid&&r.form.hzhb_img_list.splice(i,1);case 1:case"end":return t.stop()}}),t)})))()}}}),l=(r(651),r(4)),component=Object(l.a)(o,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"mainContainer"},[e._m(0),e._v(" "),t("div",{staticClass:"pform-body"},[t("el-form",{attrs:{model:e.form,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"入口标题","label-width":"120px"}},[t("el-input",{model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}}),e._v(" "),t("el-input",{attrs:{type:"hidden"},model:{value:e.form.id,callback:function(t){e.$set(e.form,"id",t)},expression:"form.id"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"入口描述","label-width":"120px"}},[t("el-input",{model:{value:e.form.summary,callback:function(t){e.$set(e.form,"summary",t)},expression:"form.summary"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"入口LOGO(80*80)","label-width":"120px"}},[t("span",{staticStyle:{position:"relative",width:"148px",height:"148px",overflow:"hidden",display:"inline-block"}},[t("el-upload",{attrs:{action:"/upload_image","list-type":"picture-card","file-list":e.form.logo_img_list,"on-remove":e.logo_img_del,"on-success":e.handleImgSuccess}},[t("i",{staticClass:"el-icon-plus"})])],1)]),e._v(" "),t("el-form-item",{attrs:{label:"排序","label-width":"120px"}},[t("el-input",{model:{value:e.form.order,callback:function(t){e.$set(e.form,"order",t)},expression:"form.order"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"banner一级标题","label-width":"120px"}},[t("el-input",{model:{value:e.form.banner_title1,callback:function(t){e.$set(e.form,"banner_title1",t)},expression:"form.banner_title1"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"banner二级标题","label-width":"120px"}},[t("el-input",{model:{value:e.form.banner_title2,callback:function(t){e.$set(e.form,"banner_title2",t)},expression:"form.banner_title2"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"banner三级标题","label-width":"120px"}},[t("el-input",{staticStyle:{"margin-bottom":"10px"},model:{value:e.form.banner_title3_1,callback:function(t){e.$set(e.form,"banner_title3_1",t)},expression:"form.banner_title3_1"}}),e._v(" "),t("el-input",{staticStyle:{"margin-bottom":"10px"},model:{value:e.form.banner_title3_2,callback:function(t){e.$set(e.form,"banner_title3_2",t)},expression:"form.banner_title3_2"}}),e._v(" "),t("el-input",{staticStyle:{"margin-bottom":"10px"},model:{value:e.form.banner_title3_3,callback:function(t){e.$set(e.form,"banner_title3_3",t)},expression:"form.banner_title3_3"}}),e._v(" "),t("el-input",{staticStyle:{"margin-bottom":"10px"},model:{value:e.form.banner_title3_4,callback:function(t){e.$set(e.form,"banner_title3_4",t)},expression:"form.banner_title3_4"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"banner图片(3600*1398)","label-width":"120px"}},[t("span",{staticStyle:{position:"relative",width:"148px",height:"148px",overflow:"hidden",display:"inline-block"}},[t("el-upload",{attrs:{action:"/upload_image","list-type":"picture-card","file-list":e.form.banner_img_list,"on-remove":e.del_banner_img,"on-success":e.handleBannerSuccess}},[t("i",{staticClass:"el-icon-plus"})])],1)]),e._v(" "),t("el-form-item",{attrs:{label:"服务介绍标题","label-width":"120px"}},[t("el-input",{model:{value:e.form.intro_title,callback:function(t){e.$set(e.form,"intro_title",t)},expression:"form.intro_title"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"服务介绍描述","label-width":"120px"}},[t("el-input",{model:{value:e.form.intro_summary,callback:function(t){e.$set(e.form,"intro_summary",t)},expression:"form.intro_summary"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"服务介绍图片(300*185)","label-width":"120px"}},[t("span",{staticStyle:{position:"relative",width:"148px",height:"148px",overflow:"hidden",display:"inline-block"}},[t("el-upload",{attrs:{action:"/upload_image","list-type":"picture-card","file-list":e.form.liucheng_img_1_list,"on-remove":e.del_liucheng_1_img,"on-success":e.liucheng_img_1_success}},[t("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),t("span",{staticStyle:{position:"relative",width:"148px",height:"148px",overflow:"hidden",display:"inline-block"}},[t("el-upload",{attrs:{action:"/upload_image","list-type":"picture-card","file-list":e.form.liucheng_img_2_list,"on-remove":e.del_liucheng_2_img,"on-success":e.liucheng_img_2_success}},[t("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),t("span",{staticStyle:{position:"relative",width:"148px",height:"148px",overflow:"hidden",display:"inline-block"}},[t("el-upload",{attrs:{action:"/upload_image","list-type":"picture-card","file-list":e.form.liucheng_img_3_list,"on-remove":e.del_liucheng_3_img,"on-success":e.liucheng_img_3_success}},[t("i",{staticClass:"el-icon-plus"})])],1)]),e._v(" "),t("el-form-item",{attrs:{label:"服务流程图片(1000*360)","label-width":"120px"}},[e._v("\n web\n "),t("span",{staticStyle:{position:"relative",width:"150px",height:"150px",overflow:"hidden",display:"inline-block"}},[t("el-upload",{attrs:{action:"/upload_image","list-type":"picture-card","file-list":e.form.fwjs_img_pc_list,"on-remove":e.del_fwjs_img_pc,"on-success":e.fwjs_img_pc_success}},[t("i",{staticClass:"el-icon-plus"})])],1),e._v("\n\n H5\n "),t("span",{staticStyle:{position:"relative",width:"148px",height:"148px",display:"inline-block",overflow:"hidden"}},[t("el-upload",{attrs:{action:"/upload_image","list-type":"picture-card","file-list":e.form.fwjs_img_h5_list,"on-remove":e.del_fwjs_img_h5,"on-success":e.fwjs_img_h5_success}},[t("i",{staticClass:"el-icon-plus"})])],1)]),e._v(" "),t("el-form-item",{attrs:{label:"人才推荐筛选","label-width":"120px"}},[t("el-switch",{model:{value:e.form.recommend_switch,callback:function(t){e.$set(e.form,"recommend_switch",t)},expression:"form.recommend_switch"}}),e._v(" "),t("el-cascader",{attrs:{options:e.positionType},model:{value:e.form.recommend_option,callback:function(t){e.$set(e.form,"recommend_option",t)},expression:"form.recommend_option"}}),e._v(" "),t("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"推荐数量"},model:{value:e.form.recommend_num,callback:function(t){e.$set(e.form,"recommend_num",t)},expression:"form.recommend_num"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"最新需求筛选","label-width":"120px"}},[t("el-switch",{model:{value:e.form.require_switch,callback:function(t){e.$set(e.form,"require_switch",t)},expression:"form.require_switch"}}),e._v(" "),t("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"推荐数量"},model:{value:e.form.require_num,callback:function(t){e.$set(e.form,"require_num",t)},expression:"form.require_num"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"合作伙伴展示(200*200)","label-width":"120px"}},[t("el-upload",{attrs:{action:"/upload_image","list-type":"picture-card","file-list":e.form.hzhb_img_list,"on-remove":e.del_hzhb_img_list,"on-success":e.hehb_img_success}},[t("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),t("el-form-item",{attrs:{label:"用户问答","label-width":"120px"}},[t("el-switch",{model:{value:e.form.faq_switch,callback:function(t){e.$set(e.form,"faq_switch",t)},expression:"form.faq_switch"}}),e._v(" "),t("el-button",{staticStyle:{"margin-left":"25px"},attrs:{type:"primary",size:"mini"},on:{click:e.add_question}},[e._v("添加问题")]),e._v(" "),e._l(e.form.question,(function(r,n){return t("div",{staticStyle:{"margin-bottom":"10px"}},[t("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"问题"},model:{value:r.title,callback:function(t){e.$set(r,"title",t)},expression:"item.title"}}),e._v(" "),t("el-input",{staticStyle:{width:"500px"},attrs:{placeholder:"回答"},model:{value:r.answer,callback:function(t){e.$set(r,"answer",t)},expression:"item.answer"}}),e._v(" "),t("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.del_question(n)}}})],1)}))],2),e._v(" "),t("el-form-item",{attrs:{label:"SEO相关","label-width":"120px"}},[t("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{placeholder:"标题"},model:{value:e.form.seo_title,callback:function(t){e.$set(e.form,"seo_title",t)},expression:"form.seo_title"}},[e._v("213")]),e._v(" "),t("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{placeholder:"关键字"},model:{value:e.form.seo_keyword,callback:function(t){e.$set(e.form,"seo_keyword",t)},expression:"form.seo_keyword"}}),e._v(" "),t("el-input",{attrs:{placeholder:"描述"},model:{value:e.form.seo_description,callback:function(t){e.$set(e.form,"seo_description",t)},expression:"form.seo_description"}})],1)],1),e._v(" "),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticStyle:{"margin-left":"120px"},attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1)],1)])}),[function(){var e=this._self._c;return e("div",{staticClass:"pform-head"},[e("h3",[this._v("二级页面配置")])])}],!1,null,null,null);t.default=component.exports}}]);