Commit 140cbb56 authored by 郝聪敏's avatar 郝聪敏

添加prettierrc配置文件

parent 16973291
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
......@@ -12,3 +12,5 @@ yarn-error.log*
*.ntvs*
*.njsproj
*.sln
.eslintcache
\ No newline at end of file
module.exports = {
"printWidth": 200,
"trailingComma": "es5",
"singleQuote": true,
}
\ No newline at end of file
......@@ -6,27 +6,27 @@
<script>
window.onload = function() {
document.addEventListener("touchstart", function(event) {
document.addEventListener('touchstart', function(event) {
if (event.touches.length > 1) {
event.preventDefault();
}
});
document.addEventListener("gesturestart", function(event) {
document.addEventListener('gesturestart', function(event) {
event.preventDefault();
});
};
export default {
name: "App",
name: 'App',
data() {
return {
appClass: "pc"
appClass: 'pc',
};
},
created: function() {
if (document.documentElement.clientWidth <= 640) {
this.appClass = "mobile";
}
this.appClass = 'mobile';
}
},
};
</script>
......@@ -38,7 +38,7 @@ export default {
width: 100%;
cursor: auto;
text-align: left;
font-family: "PingFangSC-Regular", "Avenir", Helvetica, Arial, sans-serif;
font-family: 'PingFangSC-Regular', 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #2c3e50;
......
import axios from "../service/http.service";
import { sapi } from "../config";
import qs from "qs";
import axios from '../service/http.service';
import { sapi } from '../config';
import qs from 'qs';
// 获取个人信息
export function getpersonMassage(params) {
// params=qs.stringify(params)
return axios.get(`${sapi}/api/login/me`, params, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 用户退出
......@@ -15,31 +15,31 @@ export function loginOUT() {
// params=qs.stringify(params)
return axios.get(`${sapi}/api/login/logout`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 通过某一来源查询简历信息
export function adoptOneSeeResumeList(parmars) {
return axios.post(`${sapi}/api/resume/findListBySource`, parmars, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 通过渠道机简历信息
export function getChannelMassage() {
return axios.get(`${sapi}/api/resume/getSourceList`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 判断是否为超级管理员
export function judeAdmin() {
return axios.get(`${sapi}/api/user/isAdmin`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
import axios from "../service/http.service";
import { sapi } from "../config";
import qs from "qs";
import axios from '../service/http.service';
import { sapi } from '../config';
import qs from 'qs';
// 更改约面信息
export function changeinterviewMassage(parmars) {
return axios.post(`${sapi}/api/resumeInterview/update`, parmars, {
headers: {
"Content-Type": "application/json;"
}
'Content-Type': 'application/json;',
},
});
}
// 重启面试
......@@ -14,34 +14,34 @@ export function oppenInterview(tid, tstatus) {
console.log(tid, tstatus);
return axios.post(`${sapi}/api/resumeFlow/reset/${tid}/${tstatus}`, {
headers: {
"Content-Type": "application/json;"
}
'Content-Type': 'application/json;',
},
});
}
// 终止面试
export function SInterview(tid) {
return axios.post(`${sapi}/api/resumeFlow/end/${tid}`, {
headers: {
"Content-Type": "application/json;"
}
'Content-Type': 'application/json;',
},
});
}
// 面试管理查询
export function SerchList(parmars, status) {
return axios.post(`${sapi}/api/interview/findListByQueryVO`, parmars, {
headers: {
"Content-Type": "application/json;",
"X-Requested-With": "XMLHttpRequest",
status
}
'Content-Type': 'application/json;',
'X-Requested-With': 'XMLHttpRequest',
status,
},
});
}
// 查看简历详情页
export function seedetail(parmars) {
return axios.get(`${sapi}/api/html/get/${parmars.uid}`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 面试官查询
......@@ -52,39 +52,39 @@ export function Serchinterviewor() {
export function SerchInvitationOwer() {
return axios.post(`${sapi}/api/interview/findInviterList`, {
headers: {
"Content-Type": "application/json;"
}
'Content-Type': 'application/json;',
},
});
}
// 新增约面信息
export function NewAddInterview(parmars) {
return axios.post(`${sapi}/api/resumeInterview/add`, parmars, {
headers: {
"Content-Type": "application/json;"
}
'Content-Type': 'application/json;',
},
});
}
// 查询记录
export function recodeLIST(parmars) {
return axios.post(`${sapi}/api/resumeFlow/history/${parmars.resumeId}`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 变更状态
export function changestatus(tid, tstatus) {
return axios.post(`${sapi}/api/resumeFlow/uploadStatus/${tid}/${tstatus}`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 获取终止面试前的前一个状态
export function formstatus(parmars) {
return axios.post(`${sapi}/api/resumeFlow/getPreReset/${parmars.resumeId}`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
import axios from "../service/http.service";
import { sapi } from "../config";
import qs from "qs";
import axios from '../service/http.service';
import { sapi } from '../config';
import qs from 'qs';
// 登录
export function login(params) {
// params=qs.stringify(params)
return axios.post(`${sapi}/api/login/doLogin`, params, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 修改密码
......@@ -15,7 +15,7 @@ export function updatePsd(params) {
// params=qs.stringify(params)
return axios.post(`${sapi}/api/login/modifyPassword`, params, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
import axios from "../service/http.service";
import { sapi } from "../config";
import qs from "qs";
import axios from '../service/http.service';
import { sapi } from '../config';
import qs from 'qs';
// 查询简历列表
export function serchList(parmars) {
return axios.post(`${sapi}/api/resume/findList`, parmars, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 下载简历(单条)
......@@ -14,88 +14,73 @@ export function downloadone(parmars) {
parmars = qs.stringify(parmars);
return axios.post(`${sapi}/api/resumeFile/download/formatted/one`, parmars, {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
}
'Content-Type': 'application/x-www-form-urlencoded',
},
});
}
// 搜索
export function sousuoList(parmars, status) {
return axios.post(`${sapi}/api/resume/findListByQueryVO`, parmars, {
headers: {
"Content-Type": "application/json",
status
}
'Content-Type': 'application/json',
status,
},
});
}
// 查看简历详情页
export function seedetail(parmars) {
return axios.get(`${sapi}/api/html/get/${parmars.uid}`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 简历pass
export function PASS(parmars) {
return axios.post(
`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,
"",
{
return axios.post(`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`, '', {
headers: {
"Content-Type": "application/json"
}
}
);
'Content-Type': 'application/json',
},
});
}
// 待处理
export function TODORes(parmars) {
return axios.post(
`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,
"",
{
return axios.post(`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`, '', {
headers: {
"Content-Type": "application/json"
}
}
);
'Content-Type': 'application/json',
},
});
}
// 备选
export function OPTION(parmars) {
return axios.post(
`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,
"",
{
return axios.post(`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`, '', {
headers: {
"Content-Type": "application/json"
}
}
);
'Content-Type': 'application/json',
},
});
}
// 删除简历
export function deleteREsume(deleteallArr) {
return axios.post(`${sapi}/api/resume/delete`, JSON.stringify(deleteallArr), {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 单条下载简历
export function downloadOne(parmars) {
return axios.get(
`${sapi}/api/resume/download/formatted/one?resumeId=${parmars.resumeId}`,
{
return axios.get(`${sapi}/api/resume/download/formatted/one?resumeId=${parmars.resumeId}`, {
headers: {
// 'Content-Type':'application/x-www-form-urlencoded'
}
}
);
},
});
}
// 批量下载简历
export function downloadALL() {
return axios.get(`${sapi}/api/resumeFile/download/formatted/compress`, {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
}
'Content-Type': 'application/x-www-form-urlencoded',
},
});
}
// 导出列表
......@@ -104,8 +89,8 @@ export function exportLIST(parmars) {
`${sapi}/api/excel/output?optSource=${parmars.optSource}&keywordString=${parmars.keywordString}&company=${parmars.company}&ownerSex=${parmars.ownerSex}&highestDegreeNum=${parmars.highestDegreeNum}&flowStatusList=${parmars.flowStatusList}&ownerWorkYears1=${parmars.ownerWorkYears1}&ownerWorkYears2=${parmars.ownerWorkYears2}`,
{
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
}
);
}
......@@ -113,69 +98,66 @@ export function exportLIST(parmars) {
export function recodeLIST(parmars) {
return axios.post(`${sapi}/api/resumeFlow/history/${parmars.resumeId}`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 通过某一来源查询简历信息
export function adoptOneSeeResumeList(parmars) {
return axios.post(`${sapi}/api/resume/findListBySource`, parmars, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 新增约面信息
export function addinterview(parmars) {
return axios.post(`${sapi}/api/resumeInterview/add`, parmars, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 修改流程状态
export function updatastatus(parmars) {
return axios.post(
`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,
{
return axios.post(`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`, {
headers: {
"Content-Type": "application/json"
}
}
);
'Content-Type': 'application/json',
},
});
}
// 获取邮件模板
export function getEmailMoo() {
return axios.post(`${sapi}/api/emailTemplate/getAllTemplateList`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 根据获取id邮件模板内容
export function getEmailContent(parmars) {
return axios.post(`${sapi}/api/emailTemplate/loadTemplate`, parmars, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 上传图片
export function uploadimage() {
return axios.get(`${sapi}/api/ckeditor/uploadImage`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 发送邮件
export function sendEmail(parmars) {
return axios.post(`${sapi}/api/sendMail/sendEmailTemplate`, parmars, {
headers: {
"Content-Type": "multipart/form-data"
'Content-Type': 'multipart/form-data',
// 'Content-Disposition':'multipart/form-data'
// 'Content-Type':'application/json'
}
},
});
}
export function findCompanyEmailByKey(key) {
......@@ -186,41 +168,38 @@ export function findCompanyEmailByKey(key) {
export function forwardResume(params) {
return axios.post(`${sapi}/api/resume/forwardResume`, params, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
export function getPdf(parmars) {
return axios.get(`${sapi}/api/resume/getResumePdfByResumeId/${parmars.uid}`, {
responseType: "arraybuffer",
responseType: 'arraybuffer',
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 是否展示原件的PDF
export function isShowPDF(parmars) {
return axios.get(`${sapi}/api/resume/isShowOriPdf/${parmars.uid}`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
export function getpdfUrl(parmars) {
return axios.get(`${sapi}/api/resume/getResumePdfUrl/${parmars.uid}`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 获取职位列表
export function getlist(parmars) {
return axios.get(
`${sapi}/api/resume/findPositionList?optSourceCode=${parmars.optSourceCode}`,
{
return axios.get(`${sapi}/api/resume/findPositionList?optSourceCode=${parmars.optSourceCode}`, {
headers: {
"Content-Type": "application/json"
}
}
);
'Content-Type': 'application/json',
},
});
}
import axios from "../service/http.service";
import { sapi } from "../config";
import qs from "qs";
import axios from '../service/http.service';
import { sapi } from '../config';
import qs from 'qs';
// 账号列表查询
export function queryaccountList(params) {
return axios.post(`${sapi}/api/user/findList`, params, {
headers: {
"Content-Type": "application/json;"
}
'Content-Type': 'application/json;',
},
});
}
// 添加账户
export function addAccount(params) {
return axios.post(`${sapi}/api/user/add`, params, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 删除单条账户
export function Delateaccount(parmars) {
return axios.get(`${sapi}/api/user/delete/${parmars.id}`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 批量删除
export function delateAllAccount(DelateARR) {
return axios.post(`${sapi}//api/user/delete`, JSON.stringify(DelateARR), {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 恢复初始密码
export function recoveryPassword(parmars) {
return axios.post(`${sapi}/api/user/initial/${parmars.id}`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 查询邮箱列表
export function queryemailList(parmars) {
return axios.post(`${sapi}/api/email/list`, parmars, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 同步邮箱
export function Synchronization(parmars) {
return axios.post(`${sapi}/api/email/bindAndSync`, parmars, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 解绑邮箱
export function jiebangEmail(id) {
return axios.post(`${sapi}/api/email/unbind/${id}`, {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
}
'Content-Type': 'application/x-www-form-urlencoded',
},
});
}
// 修改邮箱并重新绑定
export function updateemailTWO(parmars) {
return axios.post(`${sapi}/api/email/modify`, parmars, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 批量解绑邮箱
export function UntyingAll(UntyingAllARR) {
return axios.post(
`${sapi}/api/email/unbind/batch`,
JSON.stringify(UntyingAllARR),
{
return axios.post(`${sapi}/api/email/unbind/batch`, JSON.stringify(UntyingAllARR), {
headers: {
"Content-Type": "application/json"
}
}
);
'Content-Type': 'application/json',
},
});
}
// 获取二维码
export function getErcode() {
return axios.get(`${sapi}/api/qrCode/getInterviewQrcode`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// //修改账户
export function updateAccount(parmars) {
return axios.post(`${sapi}/api/user/modify/${parmars.id}`, parmars, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
import axios from "../service/http.service";
import { sapi } from "../config";
import qs from "qs";
import axios from '../service/http.service';
import { sapi } from '../config';
import qs from 'qs';
// 提交应聘登记表
export function submitMassage(params) {
// params=qs.stringify(params)
return axios.post(`${sapi}/api/interview/arrive`, params, {
headers: { "Content-Type": "application/json" }
headers: { 'Content-Type': 'application/json' },
});
}
import axios from "../service/http.service";
import { sapi } from "../config";
import qs from "qs";
import axios from '../service/http.service';
import { sapi } from '../config';
import qs from 'qs';
// 获取上传批次号
export function getuploadNumber() {
// params=qs.stringify(params)
return axios.get(`${sapi}/api/resume/upload/batchNum`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 上传文件
......@@ -17,31 +17,31 @@ export function uploadfile(parmars) {
// 'Content-Type':'multipart/form-data',
processData: false,
contentType: false,
async: false
}
async: false,
},
});
}
// 查询上传列表记录
export function serchList(parmars) {
return axios.post(`${sapi}/api/resume/upload/history`, parmars, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 查询简历详情
export function serchRESUMEdetail(parmars) {
return axios.get(`${sapi}/api/html/get/${parmars.uid}`, {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
// 查询简历详情
export function deleteREsumeUPLOad(deleteallArr) {
return axios.post(`${sapi}/api/resume/delete`, JSON.stringify(deleteallArr), {
headers: {
"Content-Type": "application/json"
}
'Content-Type': 'application/json',
},
});
}
......@@ -3,12 +3,7 @@
<!-- bidirectional data binding(双向数据绑定) -->
<Modal v-model="modal" :fullscreen="fullscreen">
<Input v-model="value"></Input>
<editor
@getValue="getInfo"
:uploadUrl="uploadUrl"
:value="value"
height="400px"
></editor>
<editor @getValue="getInfo" :uploadUrl="uploadUrl" :value="value" height="400px"></editor>
<div slot="footer">
<Button @click="getInfo">获取内容</Button>
</div>
......@@ -20,77 +15,69 @@
</Input>
</FormItem>
<FormItem prop="password">
<Input
type="password"
v-model="formInline.password"
placeholder="Password"
>
<Input type="password" v-model="formInline.password" placeholder="Password">
<Icon type="ios-lock-outline" slot="prepend"></Icon>
</Input>
</FormItem>
<FormItem>
<Button type="primary" @click="handleSubmit('formInline')"
>Signin</Button
>
<Button type="primary" @click="handleSubmit('formInline')">Signin</Button>
</FormItem>
</Form>
</div>
</template>
<script>
import editor from "./ckeditor.vue";
import { sapi } from "../config/index.js";
import localStorage from "../service/localstorage.service.js";
import editor from './ckeditor.vue';
import { sapi } from '../config/index.js';
import localStorage from '../service/localstorage.service.js';
export default {
data() {
return {
modal: true,
fullscreen: true,
content: "<h2>I am Example</h2>",
content1: "<h2>I am Example</h2>",
uploadUrl: `${sapi}/api/ckeditor/uploadImage?token=${localStorage.get(
"token"
)}&&backUrl=/getimage`,
value: "22",
content: '<h2>I am Example</h2>',
content1: '<h2>I am Example</h2>',
uploadUrl: `${sapi}/api/ckeditor/uploadImage?token=${localStorage.get('token')}&&backUrl=/getimage`,
value: '22',
editorOption: {
// some quill options
},
formInline: {
user: "",
password: ""
user: '',
password: '',
},
ruleInline: {
user: [
{
required: false,
message: "Please fill in the user name",
trigger: "blur",
message: 'Please fill in the user name',
trigger: 'blur',
pattern: /^1[3456789]\d{9}$/,
validator: function(rule, value, call) {
console.log(rule, value);
return call(new Error());
}
}
},
},
],
password: [
{
required: true,
message: "Please fill in the password.",
trigger: "blur"
message: 'Please fill in the password.',
trigger: 'blur',
},
{
type: "string",
type: 'string',
min: 6,
message: "The password length cannot be less than 6 bits",
trigger: "blur"
}
]
}
message: 'The password length cannot be less than 6 bits',
trigger: 'blur',
},
],
},
};
},
watch: {},
components: {
editor
editor,
},
// manually control the data synchronization
// 如果需要手动控制数据同步,父组件需要显式地处理changed事件
......@@ -106,12 +93,12 @@ export default {
// this.$Message.error('Fail!');
// }
// })
this.$refs[name].validateField("user", error => {
console.log("------", error);
this.$refs[name].validateField('user', error => {
console.log('------', error);
});
}
},
},
computed: {},
mounted() {}
mounted() {},
};
</script>
......@@ -3,17 +3,15 @@
</template>
<script>
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = window.location.search.substr(1).match(reg); // 获取url中"?"符后的字符串并正则匹配
var context = "";
var context = '';
if (r != null) {
context = r[2];
}
reg = null;
r = null;
return context == null || context == "" || context == "undefined"
? ""
: decodeURIComponent(context);
return context == null || context == '' || context == 'undefined' ? '' : decodeURIComponent(context);
}
export default {
data() {
......@@ -21,11 +19,7 @@ export default {
},
mounted() {
console.log(777);
window.parent.CKEDITOR.tools.callFunction(
GetQueryString("CKEditorFuncNum"),
GetQueryString("ImageUrl"),
GetQueryString("Message")
);
}
window.parent.CKEDITOR.tools.callFunction(GetQueryString('CKEditorFuncNum'), GetQueryString('ImageUrl'), GetQueryString('Message'));
},
};
</script>
This diff is collapsed.
<template>
<div class="loadingmark">
<div class="loading-audio">
<svg
:width="width + 'px'"
:height="height + 'px'"
xmlns="http://www.w3.org/2000/svg"
:viewBox="viewBox"
preserveAspectRatio="xMidYMid"
>
<svg :width="width + 'px'" :height="height + 'px'" xmlns="http://www.w3.org/2000/svg" :viewBox="viewBox" preserveAspectRatio="xMidYMid">
<g transform="translate(20 50)">
<circle
cx="0"
cy="0"
r="7"
fill="#11a181"
transform="scale(0.99275 0.99275)"
class="circle"
/>
<circle cx="0" cy="0" r="7" fill="#11a181" transform="scale(0.99275 0.99275)" class="circle" />
</g>
<g transform="translate(40 50)">
<circle
cx="0"
cy="0"
r="7"
fill="#11a181"
transform="scale(0.773605 0.773605)"
class="circle1"
/>
<circle cx="0" cy="0" r="7" fill="#11a181" transform="scale(0.773605 0.773605)" class="circle1" />
</g>
<g transform="translate(60 50)">
<circle
cx="0"
cy="0"
r="7"
fill="#11a181"
transform="scale(0.42525 0.42525)"
class="circle2"
/>
<circle cx="0" cy="0" r="7" fill="#11a181" transform="scale(0.42525 0.42525)" class="circle2" />
</g>
<g transform="translate(80 50)">
<circle
cx="0"
cy="0"
r="7"
fill="#11a181"
transform="scale(0.113418 0.113418)"
class="circle3"
/>
<circle cx="0" cy="0" r="7" fill="#11a181" transform="scale(0.113418 0.113418)" class="circle3" />
</g>
</svg>
</div>
......@@ -55,25 +21,25 @@
</template>
<script>
export default {
name: "loading",
name: 'loading',
props: {
width: {
type: Number,
default: 80
default: 80,
},
height: {
type: Number,
default: 80
}
default: 80,
},
},
created() {
this.viewBox = "0 0" + " " + (this.width + 10) + " " + this.height;
this.viewBox = '0 0' + ' ' + (this.width + 10) + ' ' + this.height;
},
data() {
return {
viewBox: ""
viewBox: '',
};
}
},
};
</script>
<style lang="less" scoped>
......
const sapi = "http://recruitapi-ai3.liangkebang.net";
const sapi = 'http://recruitapi-ai3.liangkebang.net';
export { sapi };
module.exports =
process.env.NODE_ENV === "production"
? require("./prod.config.js")
: require("./env.config.js");
module.exports = process.env.NODE_ENV === 'production' ? require('./prod.config.js') : require('./env.config.js');
const sapi = "//api.stantoo.com";
const sapi = '//api.stantoo.com';
export { sapi };
This diff is collapsed.
......@@ -12,44 +12,20 @@
<h3>登录</h3>
</div>
<div class="login_content">
<Form
ref="formInline"
:model="formInline"
:rules="ruleInline"
style="height:161px"
>
<Form ref="formInline" :model="formInline" :rules="ruleInline" style="height:161px">
<FormItem prop="user" style="height:60px">
<Input
type="text"
v-model="formInline.user"
placeholder="请输入企业邮箱账号"
class="wordStyle"
size="large"
>
<Input type="text" v-model="formInline.user" placeholder="请输入企业邮箱账号" class="wordStyle" size="large">
<Icon type="ios-person-outline" slot="prepend"></Icon>
</Input>
</FormItem>
<FormItem prop="password">
<Input
type="password"
v-model="formInline.password"
placeholder="请输入密码"
class="wordStyle"
@keyup.enter.native="login"
size="large"
>
<Input type="password" v-model="formInline.password" placeholder="请输入密码" class="wordStyle" @keyup.enter.native="login" size="large">
<Icon type="ios-lock-outline" slot="prepend"></Icon>
</Input>
<span
style="color:red;margin-top;5px"
v-show="noteconTime == true"
>{{ notecontent }}</span
>
<span style="color:red;margin-top;5px" v-show="noteconTime == true">{{ notecontent }}</span>
</FormItem>
</Form>
<Button type="primary" class="loginBtu" @click.prevent="login"
>登录</Button
>
<Button type="primary" class="loginBtu" @click.prevent="login">登录</Button>
</div>
<div class="copy">
......@@ -61,66 +37,66 @@
</div>
</template>
<script>
import { login } from "../../api/login.server.js";
import localstorage from "../../service/localstorage.service.js";
import { login } from '../../api/login.server.js';
import localstorage from '../../service/localstorage.service.js';
export default {
data() {
return {
channelarr: [],
notecontent: "",
notecontent: '',
noteconTime: false,
ISIDMIN: "",
ISIDMIN: '',
formInline: {
user: "",
password: ""
user: '',
password: '',
},
ruleInline: {
user: [
{
required: true,
pattern: /\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/,
message: "请输入正确的邮箱账号",
trigger: "blur"
}
message: '请输入正确的邮箱账号',
trigger: 'blur',
},
],
password: [
{ required: true, message: "请输入正确的密码", trigger: "blur" }
{ required: true, message: '请输入正确的密码', trigger: 'blur' },
// { type: 'string', min: 4, message: '请输入正确的密码', trigger: 'blur' }
]
}
],
},
};
},
methods: {
handleSubmit(name) {
this.$refs[name].validate(valid => {
if (valid) {
this.$Message.success("Success!");
this.$Message.success('Success!');
} else {
this.$Message.error("Fail!");
this.$Message.error('Fail!');
}
});
},
login() {
const params = {
userCode: this.formInline.user,
password: this.formInline.password
password: this.formInline.password,
};
if (this.formInline.user == "" || this.formInline.password == "") {
if (this.formInline.user == '' || this.formInline.password == '') {
return;
}
login(params).then(res => {
if (res.data.body.code == "100") {
if (res.data.body.code == '100') {
this.$router.push({
name: "update",
params: { userCode: this.formInline.user }
name: 'update',
params: { userCode: this.formInline.user },
});
return;
}
if (res.data.success == true) {
this.ISIDMIN = res.data.body;
localstorage.set("token", res.data.body.token);
this.$router.push({ name: "allResume" });
localstorage.set("isADMIN", JSON.stringify(this.ISIDMIN));
localstorage.set('token', res.data.body.token);
this.$router.push({ name: 'allResume' });
localstorage.set('isADMIN', JSON.stringify(this.ISIDMIN));
return;
}
if (res.data.success == false) {
......@@ -131,8 +107,8 @@ export default {
}, 3000);
}
});
}
}
},
},
};
</script>
<style scoped>
......
......@@ -14,44 +14,19 @@
<div class="updatePsd_content">
<Form ref="formInline" :model="formInline" class="formcontent">
<FormItem class="formitemcontent">
<Input
type="password"
v-model="formInline.password"
placeholder="Password"
class="wordStyle2"
@on-change="verification"
size="large"
>
<Input type="password" v-model="formInline.password" placeholder="Password" class="wordStyle2" @on-change="verification" size="large">
<Icon type="ios-lock-outline" slot="prepend"></Icon>
</Input>
<span style="color:Grey;margin-left:30px" v-show="fistcontent"
>4-20位且不得与默认密码相同</span
>
<span style="color:Grey;margin-left:30px" v-show="fistcontent">4-20位且不得与默认密码相同</span>
</FormItem>
<FormItem style="margin-top:-20px" class="formitemcontent">
<Input
type="password"
v-model="formInline.passwordTwo"
placeholder="Password"
class="wordStyle2"
@keyup.enter.native="loginT"
size="large"
>
<Input type="password" v-model="formInline.passwordTwo" placeholder="Password" class="wordStyle2" @keyup.enter.native="loginT" size="large">
<Icon type="ios-lock-outline" slot="prepend"></Icon>
</Input>
<span
style="color:Grey;margin-left:30px;color:red"
v-show="twocontent"
>{{ twocontentmessage }}</span
>
<span style="color:Grey;margin-left:30px;color:red" v-show="twocontent">{{ twocontentmessage }}</span>
</FormItem>
</Form>
<Button
type="primary"
style="height:40px;width:100%;border-radius: 5px;background:rgb(0, 146, 255);color:rgb(255,255,255);font-size:18px;margin-top:10px"
@click="loginT"
>登录</Button
>
<Button type="primary" style="height:40px;width:100%;border-radius: 5px;background:rgb(0, 146, 255);color:rgb(255,255,255);font-size:18px;margin-top:10px" @click="loginT">登录</Button>
</div>
<div class="copy">
<p>量化派为你提供全程服务</p>
......@@ -62,29 +37,29 @@
</div>
</template>
<script>
import { updatePsd } from "../../api/login.server.js";
import { updatePsd } from '../../api/login.server.js';
export default {
data() {
return {
formInline: {
passwordTwo: "",
password: ""
passwordTwo: '',
password: '',
},
fistcontent: true,
twocontent: false,
twocontentmessage: "",
twocontentmessage: '',
channelarr: [],
Massage: "",
ISIDMIN: ""
Massage: '',
ISIDMIN: '',
};
},
methods: {
handleSubmit(name) {
this.$refs[name].validate(valid => {
if (valid) {
this.$Message.success("Success!");
this.$Message.success('Success!');
} else {
this.$Message.error("Fail!");
this.$Message.error('Fail!');
}
});
},
......@@ -92,21 +67,18 @@ export default {
const params = {
userCode: this.$route.params.userCode,
password: this.formInline.password,
confirmPassWord: this.formInline.passwordTwo
confirmPassWord: this.formInline.passwordTwo,
};
if (this.formInline.passwordTwo !== this.formInline.password) {
this.twocontentmessage = "输入密码不一致,请重新输入";
this.twocontentmessage = '输入密码不一致,请重新输入';
this.twocontent = true;
setTimeout(() => {
this.twocontent = false;
}, 3000);
return;
}
if (
this.formInline.passwordTwo.length < 4 ||
this.formInline.password.length < 4
) {
this.twocontentmessage = "请输入4-20位密码";
if (this.formInline.passwordTwo.length < 4 || this.formInline.password.length < 4) {
this.twocontentmessage = '请输入4-20位密码';
this.twocontent = true;
setTimeout(() => {
this.twocontent = false;
......@@ -114,28 +86,28 @@ export default {
return;
}
if (this.formInline.password.length > 20) {
this.twocontentmessage = "请输入4-20位密码";
this.twocontentmessage = '请输入4-20位密码';
setTimeout(() => {
this.twocontent = false;
}, 3000);
return;
}
if (this.formInline.password.length < 4) {
this.twocontentmessage = "请输入4-20位密码";
this.twocontentmessage = '请输入4-20位密码';
setTimeout(() => {
this.twocontent = false;
}, 3000);
return;
}
if (this.formInline.password.length == 0) {
this.twocontentmessage = "密码不能为空";
this.twocontentmessage = '密码不能为空';
setTimeout(() => {
this.twocontent = false;
}, 3000);
return;
}
if (this.formInline.passwordTwo.length == 0) {
this.twocontentmessage = "请输入相同的确认密码";
this.twocontentmessage = '请输入相同的确认密码';
setTimeout(() => {
this.twocontent = false;
}, 3000);
......@@ -144,9 +116,9 @@ export default {
updatePsd(params).then(res => {
if (res.data.success == true) {
this.ISIDMIN = res.data.body;
localStorage.setItem("isADMIN", JSON.stringify(this.ISIDMIN));
localStorage.setItem("token", res.data.body.token);
this.$router.replace({ name: "allResume" });
localStorage.setItem('isADMIN', JSON.stringify(this.ISIDMIN));
localStorage.setItem('token', res.data.body.token);
this.$router.replace({ name: 'allResume' });
}
if (res.data.success == false) {
this.Massage = res.data.body.message;
......@@ -160,7 +132,7 @@ export default {
},
verification() {
if (this.formInline.password == 123456) {
this.twocontentmessage = "输入密码与初始密码相同,请重新输入";
this.twocontentmessage = '输入密码与初始密码相同,请重新输入';
setTimeout(() => {
this.twocontent = false;
}, 3000);
......@@ -168,7 +140,7 @@ export default {
if (this.formInline.password.length == 0) {
this.fistcontent = true;
}
if (this.formInline.password == "") {
if (this.formInline.password == '') {
this.fistcontent = true;
}
if (this.formInline.password.length < 4) {
......@@ -180,8 +152,8 @@ export default {
if (this.formInline.password.length > 20) {
this.fistcontent = true;
}
}
}
},
},
};
</script>
<style scoped>
......
This diff is collapsed.
This diff is collapsed.
......@@ -18,13 +18,13 @@
</div>
</template>
<script>
import { getErcode, downloadErcode } from "../../api/stystem.server.js";
import { sapi } from "../../config";
import { getErcode, downloadErcode } from '../../api/stystem.server.js';
import { sapi } from '../../config';
export default {
data() {
return {
url: "",
url2: ""
url: '',
url2: '',
};
},
methods: {
......@@ -38,11 +38,11 @@ export default {
},
downPic(img) {
window.location.href = `${sapi}/api/qrCode/downQrCode`;
}
},
},
mounted() {
this.getercode();
}
},
};
</script>
<style>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import Vue from "vue";
import Router from "vue-router";
import Vue from 'vue';
import Router from 'vue-router';
const home = r =>
require.ensure([], () => r(require("@/components/home.vue")), "home");
const home = r => require.ensure([], () => r(require('@/components/home.vue')), 'home');
// const changepsd = r => require.ensure([], () => r(require('@/components/changepsd.vue')), 'changepsd');
const login = r =>
require.ensure([], () => r(require("@/page/login/login.vue")), "login");
const update = r =>
require.ensure([], () => r(require("@/page/login/update.vue")), "update");
const pdfdetail = r =>
require.ensure(
[],
() => r(require("@/page/resume/pdfdetail.vue")),
"pdfdetail"
);
const resumeDetail = r =>
require.ensure(
[],
() => r(require("@/page/resume/resumeDetail.vue")),
"resumeDetail"
);
const interview = r =>
require.ensure(
[],
() => r(require("@/page/interview/interview.vue")),
"interview"
);
const allResume = r =>
require.ensure(
[],
() => r(require("@/page/resume/allResume.vue")),
"allResume"
);
const channel = r =>
require.ensure([], () => r(require("@/page/resume/channel.vue")), "channel");
const account = r =>
require.ensure([], () => r(require("@/page/system/account.vue")), "account");
const emailMange = r =>
require.ensure(
[],
() => r(require("@/page/system/emailMange.vue")),
"emailMange"
);
const QRcode = r =>
require.ensure([], () => r(require("@/page/system/QRcode.vue")), "QRcode");
const upload = r =>
require.ensure([], () => r(require("@/page/upload/upload.vue")), "upload");
const sweepCode = r =>
require.ensure(
[],
() => r(require("@/page/sweepCode/sweepCode.vue")),
"sweepCode"
);
const editor = r =>
require.ensure([], () => r(require("@/components/editor.vue")), "editor");
const getimage = r =>
require.ensure([], () => r(require("@/components/getimage.vue")), "getimage");
const login = r => require.ensure([], () => r(require('@/page/login/login.vue')), 'login');
const update = r => require.ensure([], () => r(require('@/page/login/update.vue')), 'update');
const pdfdetail = r => require.ensure([], () => r(require('@/page/resume/pdfdetail.vue')), 'pdfdetail');
const resumeDetail = r => require.ensure([], () => r(require('@/page/resume/resumeDetail.vue')), 'resumeDetail');
const interview = r => require.ensure([], () => r(require('@/page/interview/interview.vue')), 'interview');
const allResume = r => require.ensure([], () => r(require('@/page/resume/allResume.vue')), 'allResume');
const channel = r => require.ensure([], () => r(require('@/page/resume/channel.vue')), 'channel');
const account = r => require.ensure([], () => r(require('@/page/system/account.vue')), 'account');
const emailMange = r => require.ensure([], () => r(require('@/page/system/emailMange.vue')), 'emailMange');
const QRcode = r => require.ensure([], () => r(require('@/page/system/QRcode.vue')), 'QRcode');
const upload = r => require.ensure([], () => r(require('@/page/upload/upload.vue')), 'upload');
const sweepCode = r => require.ensure([], () => r(require('@/page/sweepCode/sweepCode.vue')), 'sweepCode');
const editor = r => require.ensure([], () => r(require('@/components/editor.vue')), 'editor');
const getimage = r => require.ensure([], () => r(require('@/components/getimage.vue')), 'getimage');
// z注释
Vue.use(Router);
export default new Router({
mode: "history",
mode: 'history',
routes: [
{
path: "/",
redirect: "/home"
path: '/',
redirect: '/home',
},
{
path: "/login",
name: "login",
path: '/login',
name: 'login',
component: login,
meta: {
allowBack: false
}
allowBack: false,
},
},
{
path: "/sweepCode",
name: "sweepCode",
component: sweepCode
path: '/sweepCode',
name: 'sweepCode',
component: sweepCode,
},
{
path: "/update",
name: "update",
component: update
path: '/update',
name: 'update',
component: update,
},
{
path: "/getimage",
name: "getimage",
component: getimage
path: '/getimage',
name: 'getimage',
component: getimage,
},
{
path: "/resumeDetail",
name: "resumeDetail",
component: resumeDetail
path: '/resumeDetail',
name: 'resumeDetail',
component: resumeDetail,
},
{
path: "/pdfdetail",
name: "pdfdetail",
component: pdfdetail
path: '/pdfdetail',
name: 'pdfdetail',
component: pdfdetail,
},
{
path: "/editor",
name: "editor",
component: editor
path: '/editor',
name: 'editor',
component: editor,
},
{
path: "/home",
name: "home",
path: '/home',
name: 'home',
component: home,
children: [
{
path: "/interview",
name: "interview",
component: interview
path: '/interview',
name: 'interview',
component: interview,
},
{
path: "/allResume",
name: "allResume",
component: allResume
path: '/allResume',
name: 'allResume',
component: allResume,
},
{
path: "/channel/:channelname",
name: "channel",
component: channel
path: '/channel/:channelname',
name: 'channel',
component: channel,
},
{
path: "/account",
name: "account",
component: account
path: '/account',
name: 'account',
component: account,
},
{
path: "/emailMange",
name: "emailMange",
component: emailMange
path: '/emailMange',
name: 'emailMange',
component: emailMange,
},
{
path: "/QRcode",
name: "QRcode",
component: QRcode
path: '/QRcode',
name: 'QRcode',
component: QRcode,
},
{
path: "/upload",
name: "upload",
component: upload
}
]
}
]
path: '/upload',
name: 'upload',
component: upload,
},
],
},
],
});
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
module.exports = require("es6-promise");
module.exports = require('es6-promise');
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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