chunk-ed237bcc.d4089262.js 9.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ed237bcc"],{3586:function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("article-detail",{attrs:{"is-edit":!0}})},s=[],a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"createPost-container"},[o("el-form",{ref:"postForm",staticClass:"form-container",attrs:{"label-position":t.labelPosition,model:t.postForm,rules:t.rules,"label-width":"200px"}},[o("div",{staticClass:"createPost-main-container"},[o("el-form-item",{attrs:{prop:"meet_people",label:"对接人"}},[o("el-input",{staticStyle:{width:"300px"},model:{value:t.postForm.meet_people,callback:function(e){t.$set(t.postForm,"meet_people",e)},expression:"postForm.meet_people"}})],1),o("el-form-item",{attrs:{prop:"name",label:"申请人姓名"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}})],1),o("el-form-item",{attrs:{prop:"mobile",label:"手机号"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.mobile,callback:function(e){t.$set(t.postForm,"mobile",e)},expression:"postForm.mobile"}})],1),o("el-form-item",{attrs:{prop:"id_card",label:"身份证"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.id_card,callback:function(e){t.$set(t.postForm,"id_card",e)},expression:"postForm.id_card"}})],1),o("el-form-item",{attrs:{prop:"education",label:"学历"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.education,callback:function(e){t.$set(t.postForm,"education",e)},expression:"postForm.education"}})],1),o("el-form-item",{attrs:{prop:"address",label:"开店地址"}},[o("el-input",{staticStyle:{width:"600px"},attrs:{placeholder:""},model:{value:t.postForm.address,callback:function(e){t.$set(t.postForm,"address",e)},expression:"postForm.address"}})],1),o("el-form-item",{attrs:{prop:"investment_money",label:"投资金额"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.investment_money,callback:function(e){t.$set(t.postForm,"investment_money",e)},expression:"postForm.investment_money"}})],1),o("el-form-item",{attrs:{prop:"money_from",label:"资金来源"}},[[o("el-radio-group",{model:{value:t.postForm.money_from,callback:function(e){t.$set(t.postForm,"money_from",e)},expression:"postForm.money_from"}},[o("el-radio",{attrs:{label:1}},[t._v("自有")]),o("el-radio",{attrs:{label:2}},[t._v("借贷")])],1)]],2),o("el-form-item",{attrs:{prop:"loan_ration",label:"借贷比例"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.loan_ration,callback:function(e){t.$set(t.postForm,"loan_ration",e)},expression:"postForm.loan_ration"}})],1),o("el-form-item",{attrs:{prop:"is_partners",label:"是否有合作伙伴"}},[[o("el-radio-group",{model:{value:t.postForm.is_partners,callback:function(e){t.$set(t.postForm,"is_partners",e)},expression:"postForm.is_partners"}},[o("el-radio",{attrs:{label:0}},[t._v("无")]),o("el-radio",{attrs:{label:1}},[t._v("有")])],1)]],2),o("el-form-item",{attrs:{prop:"partners",label:"有几位,占股如何"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.partners,callback:function(e){t.$set(t.postForm,"partners",e)},expression:"postForm.partners"}})],1),o("el-form-item",{attrs:{prop:"has_clerk",label:"是否有二位以上的店员"}},[[o("el-radio-group",{model:{value:t.postForm.has_clerk,callback:function(e){t.$set(t.postForm,"has_clerk",e)},expression:"postForm.has_clerk"}},[o("el-radio",{attrs:{label:0}},[t._v("无")]),o("el-radio",{attrs:{label:1}},[t._v("有")])],1)]],2),o("el-form-item",{attrs:{prop:"is_manage",label:"是否可以全职在店经营"}},[[o("el-radio-group",{model:{value:t.postForm.is_manage,callback:function(e){t.$set(t.postForm,"is_manage",e)},expression:"postForm.is_manage"}},[o("el-radio",{attrs:{label:0}},[t._v("无")]),o("el-radio",{attrs:{label:1}},[t._v("有")])],1)]],2),o("el-form-item",{attrs:{prop:"experience",label:"是否有开店经验/创业经验/管理经验"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.experience,callback:function(e){t.$set(t.postForm,"experience",e)},expression:"postForm.experience"}})],1),o("el-form-item",{attrs:{prop:"sub_ayi",label:"关注沪上阿姨多长时间了"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.sub_ayi,callback:function(e){t.$set(t.postForm,"sub_ayi",e)},expression:"postForm.sub_ayi"}})],1),o("el-form-item",{attrs:{prop:"channel",label:"通过那个渠道了解阿姨"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.channel,callback:function(e){t.$set(t.postForm,"channel",e)},expression:"postForm.channel"}})],1),o("el-form-item",{attrs:{prop:"friend",label:"是否有认识的人正在经营沪上阿姨"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.friend,callback:function(e){t.$set(t.postForm,"friend",e)},expression:"postForm.friend"}})],1),o("el-form-item",{attrs:{prop:"use_product",label:"喝过沪上阿姨几款产品"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.use_product,callback:function(e){t.$set(t.postForm,"use_product",e)},expression:"postForm.use_product"}})],1),o("el-form-item",{attrs:{prop:"often_product",label:"经常喝哪一款"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.often_product,callback:function(e){t.$set(t.postForm,"often_product",e)},expression:"postForm.often_product"}})],1),o("el-form-item",{attrs:{prop:"tea_view",label:"对茶饮行业的看法"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.tea_view,callback:function(e){t.$set(t.postForm,"tea_view",e)},expression:"postForm.tea_view"}})],1),o("el-form-item",{attrs:{prop:"why_join",label:"为什么想加入沪上阿姨"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.why_join,callback:function(e){t.$set(t.postForm,"why_join",e)},expression:"postForm.why_join"}})],1),o("el-form-item",{attrs:{prop:"resource",label:"是否有寻找店铺的资源"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.resource,callback:function(e){t.$set(t.postForm,"resource",e)},expression:"postForm.resource"}})],1),o("el-form-item",{attrs:{prop:"user_id",label:"用户id"}},[o("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:""},model:{value:t.postForm.user_id,callback:function(e){t.$set(t.postForm,"user_id",e)},expression:"postForm.user_id"}})],1),o("el-row",[t.isEdit?t._e():o("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{type:"success"},on:{click:t.submitForm}},[t._v(" 查看 ")]),t.isEdit?o("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{type:"success"},on:{click:t.updateArticle}},[t._v(" 查看 ")]):t._e()],1)],1)])],1)},l=[],i=o("ddc2"),n={redirect:"",status:!0,position:1,url:"",cover_img:"",display_time:void 0,id:void 0,platforms:["a-platform"],comment_disabled:!1,importance:0},p={name:"ArticleDetail",components:{},props:{isEdit:{type:Boolean,default:!1}},data:function(){return{postForm:Object.assign({},n),loading:!1,userListOptions:[],rules:{},tempRoute:{},labelPosition:"left"}},computed:{},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}this.tempRoute=Object.assign({},this.$route)},methods:{fetchData:function(t){var e=this;Object(i["b"])(t).then((function(t){e.postForm=t.data.info})).catch((function(t){console.log(t)}))},setPageTitle:function(){var t="Edit Article";document.title="".concat(t," - ").concat(this.postForm.id)},submitForm:function(){var t=this;this.$refs.postForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0}))},updateArticle:function(){console.log(this.postForm),this.$router.push("/join/list")},draftForm:function(){0!==this.postForm.content.length&&0!==this.postForm.title.length?(this.$message({message:"保存成功",type:"success",showClose:!0,duration:1e3}),this.postForm.status="draft"):this.$message({message:"请填写必要的标题和内容",type:"warning"})},formatCreatePosition:function(t){switch(t){case 1:return"HOME";case 2:return"ACTIVITY"}},editPosition:function(t){switch(t){case"HOME":return 1;case"ACTIVITY":return 2}}}},c=p,m=(o("8091"),o("2877")),u=Object(m["a"])(c,a,l,!1,null,"4f84af70",null),d=u.exports,f={name:"EditForm",components:{ArticleDetail:d}},b=f,h=Object(m["a"])(b,r,s,!1,null,null,null);e["default"]=h.exports},6339:function(t,e,o){},8091:function(t,e,o){"use strict";var r=o("6339"),s=o.n(r);s.a},ddc2:function(t,e,o){"use strict";o.d(e,"c",(function(){return s})),o.d(e,"b",(function(){return a})),o.d(e,"a",(function(){return l}));var r=o("b775");function s(t){return Object(r["a"])({url:"/join/index",method:"get",params:t})}function a(t){return Object(r["a"])({url:"/join/read",method:"get",params:{id:t}})}function l(t){return Object(r["a"])({url:"/Join/delete?id="+t,method:"get"})}}}]);