You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
5.9 KiB
2 lines
5.9 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5268f17c"],{"0648":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"contact"},[r("div",{staticClass:"contact-banner"}),r("div",{staticClass:"contact-wrapper"},[r("div",{staticClass:"zlxc-container",staticStyle:{overflow:"visible"}},[r("div",{staticClass:"bread-crumbs"},[r("el-breadcrumb",{attrs:{separator:"/"}},[r("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[e._v("首页")]),r("el-breadcrumb-item",[e._v("投诉建议")])],1)],1),r("div",{staticClass:"form-selection"},[r("el-form",{ref:"ruleForm",staticClass:"rule-form",attrs:{"label-position":"left",model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"选择类型",prop:"type"}},[r("div",{staticClass:"type-select"},[r("p",{class:["select-radio",{"is-action":"咨询"==e.ruleForm.type}],on:{click:function(t){return e.tapChangeType("咨询")}}},[e._v("咨询")]),r("p",{class:["select-radio",{"is-action":"投诉"==e.ruleForm.type}],on:{click:function(t){return e.tapChangeType("投诉")}}},[e._v("投诉")])])]),"投诉"==e.ruleForm.type?r("el-form-item",{attrs:{label:"投诉类型",prop:"complaint"}},[r("div",{staticClass:"type-select"},[r("p",{class:["select-radio",{"is-action":"服务"==e.ruleForm.complaint}],on:{click:function(t){return e.tapChangeComplaint("服务")}}},[e._v("服务")]),r("p",{class:["select-radio",{"is-action":"教学质量"==e.ruleForm.complaint}],on:{click:function(t){return e.tapChangeComplaint("教学质量")}}},[e._v("教学质量")]),r("p",{class:["select-radio",{"is-action":"费用"==e.ruleForm.complaint}],on:{click:function(t){return e.tapChangeComplaint("费用")}}},[e._v("费用")])])]):e._e(),"投诉"==e.ruleForm.type?r("el-form-item",{attrs:{label:"投诉对象",prop:"beau"}},[r("div",{staticClass:"type-select"},[r("p",{class:["select-radio",{"is-action":"驾校"==e.ruleForm.beau}],on:{click:function(t){return e.tapChangeBeau("驾校")}}},[e._v("驾校")]),r("p",{class:["select-radio",{"is-action":"教练"==e.ruleForm.beau}],on:{click:function(t){return e.tapChangeBeau("教练")}}},[e._v("教练")])])]):e._e(),"投诉"==e.ruleForm.type&&"教练"==e.ruleForm.beau?r("el-form-item",{attrs:{label:"教练姓名",prop:"coachName"}},[r("el-input",{attrs:{placeholder:"请输入教练姓名"},model:{value:e.ruleForm.coachName,callback:function(t){e.$set(e.ruleForm,"coachName",t)},expression:"ruleForm.coachName"}})],1):e._e(),"投诉"==e.ruleForm.type?r("el-form-item",{attrs:{label:"驾校名称",prop:"schoolName"}},[r("el-input",{attrs:{placeholder:"请输入驾校名称"},model:{value:e.ruleForm.schoolName,callback:function(t){e.$set(e.ruleForm,"schoolName",t)},expression:"ruleForm.schoolName"}})],1):e._e(),r("el-form-item",{attrs:{label:"联系方式",prop:"connect"}},[r("el-input",{attrs:{placeholder:"请输入您的联系方式"},model:{value:e.ruleForm.connect,callback:function(t){e.$set(e.ruleForm,"connect",t)},expression:"ruleForm.connect"}})],1),r("el-form-item",{attrs:{label:"内容详情",prop:"desc"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入您要咨询或投诉的内容"},model:{value:e.ruleForm.desc,callback:function(t){e.$set(e.ruleForm,"desc",t)},expression:"ruleForm.desc"}})],1),r("el-form-item",{attrs:{label:"上传图片"}},[r("el-upload",{attrs:{action:"/api/index/uploadFile.do","list-type":"picture-card",name:"file",limit:3,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"on-success":e.handleSuccess}},[r("i",{staticClass:"el-icon-plus"})]),r("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("提交")]),r("el-button",{on:{click:function(t){return e.resetForm("ruleForm")}}},[e._v("重置")])],1)],1)],1)])])])},l=[],o=r("1825"),i={name:"About",data:function(){return{ruleForm:{type:"咨询",complaint:"",beau:"",coachName:"",schoolName:"",connect:"",desc:""},dialogImageUrl:"",dialogVisible:!1,rules:{connect:[{required:!0,message:"请输入您的联系方式",trigger:"blur"},{min:7,max:11,message:"长度在 7 到 11 个数字",trigger:"blur"}],type:[{required:!0,message:"选择类型",trigger:"change"}],complaint:[{required:!0,message:"选择投诉类型",trigger:"change"}],beau:[{required:!0,message:"选择投诉对象",trigger:"change"}],coachName:[{required:!0,message:"请输入教练姓名",trigger:"blur"}],schoolName:[{required:!0,message:"请输入驾校名称",trigger:"blur"}],desc:[{required:!0,message:"请输入您要咨询或投诉的内容",trigger:"blur"}]}}},computed:{},methods:{getQueryCreateComplaint:function(){var e=this;Object(o["c"])({complaintId:this.ruleForm.complaint,content:this.ruleForm.desc,coachName:this.ruleForm.coachName,schoolName:this.ruleForm.schoolName,phone:this.ruleForm.connect,types:"咨询"==this.ruleForm.type?0:1}).then((function(t){0==t.code&&e.$alert("提交成功",e.ruleForm.type,{confirmButtonText:"确定",callback:function(t){e.$router.push({name:"Wrapper"})}})}))},submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.showMessage("正在开发中!")}))},resetForm:function(e){this.$refs[e].resetFields()},tapChangeType:function(e){this.ruleForm.type!=e&&("咨询"==e&&(this.ruleForm.complaint="",this.ruleForm.beau=""),this.ruleForm.type=e)},tapChangeComplaint:function(e){this.ruleForm.complaint!=e&&(this.ruleForm.complaint=e)},tapChangeBeau:function(e){this.ruleForm.beau!=e&&(this.ruleForm.beau=e)},handleRemove:function(e,t){},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleSuccess:function(e,t,r){}}},c=i,s=(r("ae1f"),r("2877")),n=Object(s["a"])(c,a,l,!1,null,"5d0d88fb",null);t["default"]=n.exports},"3a3a":function(e,t,r){},ae1f:function(e,t,r){"use strict";r("3a3a")}}]);
|
|
//# sourceMappingURL=chunk-5268f17c.908fa15b.js.map
|