Commit 364039ca authored by zhangderong's avatar zhangderong

邮件发送

parent 40e9a080
......@@ -54,7 +54,6 @@ export function deleteREsume (deleteallArr) {
}
// 单条下载简历
export function downloadOne (parmars) {
console.log(parmars.resumeId)
return axios.get(`${sapi}/api/resume/download/formatted/one?resumeId=${parmars.resumeId}`,{headers: {
// 'Content-Type':'application/x-www-form-urlencoded'
}})
......@@ -104,8 +103,21 @@ export function getEmailMoo() {
}
//根据获取id邮件模板内容
export function getEmailContent(parmars) {
console.log(parmars,76666666666)
return axios.post(`${sapi}/api/emailTemplate/loadTemplate`,parmars,{headers: {
'Content-Type':'application/json'
}})
}
//上传图片
export function uploadimage() {
return axios.get(`${sapi}/api/ckeditor/uploadImage`,{headers: {
'Content-Type':'application/json'
}})
}
// 发送邮件
export function sendEmail(parmars) {
return axios.post(`${sapi}/api/sendMail/sendEmailTemplate`,parmars,{headers: {
// 'Content-Type':'multipart/form-data',
// 'Content-Disposition':'multipart/form-data'
// 'Content-Type':'application/json'
}})
}
......@@ -53,7 +53,7 @@
cloudServices_uploadUrl: 'https://your-organization-id.cke-cs.com/easyimage/upload/',
});
this.editor = CKEDITOR.instances.editor;
this.editor.on( 'blur', ( evt ) =>{
this.editor.on( 'change', ( evt ) =>{
// getData() returns CKEditor's HTML content.
this.$emit('getValue', evt.editor.getData())
});
......
......@@ -203,7 +203,7 @@ import localstorage from '../service/localstorage.service.js'
getChannelMenu(){
this.menuList[0].child[1].child = []
getChannelMassage().then(res=>{
if (!res.data.status) {
if (res.data.status==false) {
return
}
this.channelARR=res.data.body || []
......
This diff is collapsed.
<template>
<div id="Sweepcode">
<div class="header">
<h3 style="margin-top:10px;font-size:0.35rem">应聘登记表</h3>
<h3 style="margin-top:5px;font-size:0.35rem">应聘登记表</h3>
</div>
<div class="sweepcode_content">
<Form :label-width="120" :model="formInline" :rules="ruleInline" ref="formInline" class="fontsize" label-position=left style="margin-left:3%">
<FormItem label="邀约人" prop="Inviter" style="margin-top:0.4rem;font-size:15px">
<FormItem label="邀约人" prop="Inviter" style="margin-top:10px;font-size:15px">
<Input placeholder="请输入" style="width:85%;" v-model="formInline.Inviter" size="large"/>
</FormItem>
<FormItem label="邀约人手机" style="" class="phone" prop="InviterPhoneNumber">
<Input placeholder="请输入" style="width:85%;" v-model="formInline.InviterPhoneNumber" size="large" /><br>
<!-- <span style="position: absolute;top: 100%;left: 0;line-height: 1;padding-top: 6px;color:#ed4014;display:inline-block;height:30px;" v-show="isV==true">请输入正确的手机号码</span> -->
<FormItem label="邀约人手机" style="" class="phone">
<Input placeholder="请输入" style="width:85%;" v-model="formInline.InviterPhoneNumber" size="large" @on-blur='jedugePhone'/><br>
<span style="position: absolute;top: 100%;left: 0;line-height: 1;padding-top: 6px;color:#ed4014;display:inline-block;height:30px;" v-show="isV==true">请输入正确的手机号码</span>
</FormItem>
<FormItem label="面试时间" prop="time" style="margin-top:0px" class="dateTime">
<FormItem label="面试时间" prop="time" class="dateTime">
<Input placeholder="请输入" style="width:40%;" v-model="formInline.date" :readonly="true" size="large" />
<!-- <DatePicker type="date" placeholder="请选择日期" style="width: 120px;margin-left:20px" v-model="formInline.date" @on-change="selectDate" :options="options3" ></DatePicker> -->
<TimePicker type="time" placeholder="请选择时间" style="width: 43%" v-model="formInline.time" format="HH:mm" @on-change="selectTime" @on-focus="defaultRRRR" :editable="false" size="large"></TimePicker>
</FormItem>
<FormItem label="应聘职位" prop="position" class="position">
......@@ -86,9 +85,9 @@ export default {
{ required: true,message: '面试时间不能为空', trigger: 'date' },
],
InviterPhoneNumber: [
{ required: false, pattern:/^[1][3,4,5,7,8,6,9][0-9]{9}$/, message: '请输入正确的手机号', trigger: 'blur' }
],
// InviterPhoneNumber: [
// { required: false, pattern:/^[1][3,4,5,7,8,6,9][0-9]{9}$/, message: '请输入正确的手机号', trigger: 'blur' }
// ],
position: [
{ required: true,message: '请输入应聘职位', trigger: 'blur' }
],
......@@ -219,11 +218,15 @@ export default {
this.modal3=true
},
jedugePhone(){
if(this.formInline.InviterPhoneNumber==''){
this.isV=false
return
}
if(!(/^[1][3,4,5,7,8,6,9][0-9]{9}$/.test(this.formInline.InviterPhoneNumber))){
this.isV=true
setTimeout(() => {
}
if((/^[1][3,4,5,7,8,6,9][0-9]{9}$/.test(this.formInline.InviterPhoneNumber))){
this.isV=false
}, 3000);
}
},
// 阻止弹出键盘
......@@ -286,22 +289,22 @@ export default {
.header{
text-align: center;
height: 5%;
/* float: left; */
}
.submission{
height: 20%;
height: 10%;
margin-top:10px;
}
.submission button{
width: 47%;
font-size: 0.35rem;
margin-top: 15%;
margin-top:20px;
margin-left: 26%;
height: 39px;
}
.sweepcode_content{
margin-top:0.2rem;
margin-top:10px;
font-size: 0.15rem;
height: 70%;
height: 80%;
border-top: 1px solid rgba(241,241,241,1);
}
......@@ -316,10 +319,10 @@ export default {
.fontsize .ivu-form-item-label{
font-size: 0.28rem;
}
.dateTime .ivu-form-item-label{
/* .dateTime .ivu-form-item-label{
margin-top:6px
}
.position .ivu-form-item-label{
} */
/* .position .ivu-form-item-label{
margin-top:6px
}
.model2 .ivu-form-item-label{
......@@ -333,25 +336,25 @@ export default {
}
.phoneNUmber .ivu-form-item-label{
margin-top:6px
}
} */
.fontsize{
height: 100%;
width: 100%;
/* border: 1px solid yellow */
}
.fontsize .ivu-form-item.ivu-form-item-required{
height:30px;
height:7.5%;
}
.fontsize .phone{
height:26px;
height:7%;
}
.fontsize .ivu-input.ivu-input-large{
font-size: 0.23rem
}
.dateTime .ivu-form-item-content{
/* .dateTime .ivu-form-item-content{
margin-top:6px
}
.position .ivu-form-item-content{
} */
/* .position .ivu-form-item-content{
margin-top:6px
}
.name .ivu-form-item-content{
......@@ -365,5 +368,5 @@ export default {
}
.model1 .ivu-form-item-content{
margin-top:6px
}
} */
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment