Commit 364039ca authored by zhangderong's avatar zhangderong

邮件发送

parent 40e9a080
...@@ -54,7 +54,6 @@ export function deleteREsume (deleteallArr) { ...@@ -54,7 +54,6 @@ export function deleteREsume (deleteallArr) {
} }
// 单条下载简历 // 单条下载简历
export function downloadOne (parmars) { export function downloadOne (parmars) {
console.log(parmars.resumeId)
return axios.get(`${sapi}/api/resume/download/formatted/one?resumeId=${parmars.resumeId}`,{headers: { return axios.get(`${sapi}/api/resume/download/formatted/one?resumeId=${parmars.resumeId}`,{headers: {
// 'Content-Type':'application/x-www-form-urlencoded' // 'Content-Type':'application/x-www-form-urlencoded'
}}) }})
...@@ -104,8 +103,21 @@ export function getEmailMoo() { ...@@ -104,8 +103,21 @@ export function getEmailMoo() {
} }
//根据获取id邮件模板内容 //根据获取id邮件模板内容
export function getEmailContent(parmars) { export function getEmailContent(parmars) {
console.log(parmars,76666666666)
return axios.post(`${sapi}/api/emailTemplate/loadTemplate`,parmars,{headers: { return axios.post(`${sapi}/api/emailTemplate/loadTemplate`,parmars,{headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
\ No newline at end of file //上传图片
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 @@ ...@@ -53,7 +53,7 @@
cloudServices_uploadUrl: 'https://your-organization-id.cke-cs.com/easyimage/upload/', cloudServices_uploadUrl: 'https://your-organization-id.cke-cs.com/easyimage/upload/',
}); });
this.editor = CKEDITOR.instances.editor; this.editor = CKEDITOR.instances.editor;
this.editor.on( 'blur', ( evt ) =>{ this.editor.on( 'change', ( evt ) =>{
// getData() returns CKEditor's HTML content. // getData() returns CKEditor's HTML content.
this.$emit('getValue', evt.editor.getData()) this.$emit('getValue', evt.editor.getData())
}); });
......
...@@ -203,7 +203,7 @@ import localstorage from '../service/localstorage.service.js' ...@@ -203,7 +203,7 @@ import localstorage from '../service/localstorage.service.js'
getChannelMenu(){ getChannelMenu(){
this.menuList[0].child[1].child = [] this.menuList[0].child[1].child = []
getChannelMassage().then(res=>{ getChannelMassage().then(res=>{
if (!res.data.status) { if (res.data.status==false) {
return return
} }
this.channelARR=res.data.body || [] this.channelARR=res.data.body || []
......
This diff is collapsed.
<template> <template>
<div id="Sweepcode"> <div id="Sweepcode">
<div class="header"> <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>
<div class="sweepcode_content"> <div class="sweepcode_content">
<Form :label-width="120" :model="formInline" :rules="ruleInline" ref="formInline" class="fontsize" label-position=left style="margin-left:3%"> <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"/> <Input placeholder="请输入" style="width:85%;" v-model="formInline.Inviter" size="large"/>
</FormItem> </FormItem>
<FormItem label="邀约人手机" style="" class="phone" prop="InviterPhoneNumber"> <FormItem label="邀约人手机" style="" class="phone">
<Input placeholder="请输入" style="width:85%;" v-model="formInline.InviterPhoneNumber" size="large" /><br> <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> --> <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>
<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" /> <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> <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>
<FormItem label="应聘职位" prop="position" class="position"> <FormItem label="应聘职位" prop="position" class="position">
...@@ -86,9 +85,9 @@ export default { ...@@ -86,9 +85,9 @@ export default {
{ required: true,message: '面试时间不能为空', trigger: 'date' }, { required: true,message: '面试时间不能为空', trigger: 'date' },
], ],
InviterPhoneNumber: [ // InviterPhoneNumber: [
{ required: false, pattern:/^[1][3,4,5,7,8,6,9][0-9]{9}$/, message: '请输入正确的手机号', trigger: 'blur' } // { required: false, pattern:/^[1][3,4,5,7,8,6,9][0-9]{9}$/, message: '请输入正确的手机号', trigger: 'blur' }
], // ],
position: [ position: [
{ required: true,message: '请输入应聘职位', trigger: 'blur' } { required: true,message: '请输入应聘职位', trigger: 'blur' }
], ],
...@@ -219,12 +218,16 @@ export default { ...@@ -219,12 +218,16 @@ export default {
this.modal3=true this.modal3=true
}, },
jedugePhone(){ jedugePhone(){
if(!(/^[1][3,4,5,7,8,6,9][0-9]{9}$/.test(this.formInline.InviterPhoneNumber))){ if(this.formInline.InviterPhoneNumber==''){
this.isV=true this.isV=false
setTimeout(() => { return
this.isV=false }
}, 3000); if(!(/^[1][3,4,5,7,8,6,9][0-9]{9}$/.test(this.formInline.InviterPhoneNumber))){
} this.isV=true
}
if((/^[1][3,4,5,7,8,6,9][0-9]{9}$/.test(this.formInline.InviterPhoneNumber))){
this.isV=false
}
}, },
// 阻止弹出键盘 // 阻止弹出键盘
defaultRRRR(){ defaultRRRR(){
...@@ -286,22 +289,22 @@ export default { ...@@ -286,22 +289,22 @@ export default {
.header{ .header{
text-align: center; text-align: center;
height: 5%; height: 5%;
/* float: left; */
} }
.submission{ .submission{
height: 20%; height: 10%;
margin-top:10px;
} }
.submission button{ .submission button{
width: 47%; width: 47%;
font-size: 0.35rem; font-size: 0.35rem;
margin-top: 15%; margin-top:20px;
margin-left: 26%; margin-left: 26%;
height: 39px; height: 39px;
} }
.sweepcode_content{ .sweepcode_content{
margin-top:0.2rem; margin-top:10px;
font-size: 0.15rem; font-size: 0.15rem;
height: 70%; height: 80%;
border-top: 1px solid rgba(241,241,241,1); border-top: 1px solid rgba(241,241,241,1);
} }
...@@ -316,10 +319,10 @@ export default { ...@@ -316,10 +319,10 @@ export default {
.fontsize .ivu-form-item-label{ .fontsize .ivu-form-item-label{
font-size: 0.28rem; font-size: 0.28rem;
} }
.dateTime .ivu-form-item-label{ /* .dateTime .ivu-form-item-label{
margin-top:6px margin-top:6px
} } */
.position .ivu-form-item-label{ /* .position .ivu-form-item-label{
margin-top:6px margin-top:6px
} }
.model2 .ivu-form-item-label{ .model2 .ivu-form-item-label{
...@@ -333,25 +336,25 @@ export default { ...@@ -333,25 +336,25 @@ export default {
} }
.phoneNUmber .ivu-form-item-label{ .phoneNUmber .ivu-form-item-label{
margin-top:6px margin-top:6px
} } */
.fontsize{ .fontsize{
height: 100%; height: 100%;
width: 100%; width: 100%;
/* border: 1px solid yellow */ /* border: 1px solid yellow */
} }
.fontsize .ivu-form-item.ivu-form-item-required{ .fontsize .ivu-form-item.ivu-form-item-required{
height:30px; height:7.5%;
} }
.fontsize .phone{ .fontsize .phone{
height:26px; height:7%;
} }
.fontsize .ivu-input.ivu-input-large{ .fontsize .ivu-input.ivu-input-large{
font-size: 0.23rem font-size: 0.23rem
} }
.dateTime .ivu-form-item-content{ /* .dateTime .ivu-form-item-content{
margin-top:6px margin-top:6px
} } */
.position .ivu-form-item-content{ /* .position .ivu-form-item-content{
margin-top:6px margin-top:6px
} }
.name .ivu-form-item-content{ .name .ivu-form-item-content{
...@@ -365,5 +368,5 @@ export default { ...@@ -365,5 +368,5 @@ export default {
} }
.model1 .ivu-form-item-content{ .model1 .ivu-form-item-content{
margin-top:6px margin-top:6px
} } */
</style> </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