Commit a7bced1c authored by zhangderong's avatar zhangderong

A

parent 2618d792
......@@ -9,14 +9,14 @@ function resolve (dir) {
}
const createLintingRule = () => ({
test: /\.(js|vue)$/,
loader: 'eslint-loader',
enforce: 'pre',
include: [resolve('src'), resolve('test')],
options: {
formatter: require('eslint-friendly-formatter'),
emitWarning: !config.dev.showEslintErrorsInOverlay
}
// test: /\.(js|vue)$/,
// loader: 'eslint-loader',
// enforce: 'pre',
// include: [resolve('src'), resolve('test')],
// options: {
// formatter: require('eslint-friendly-formatter'),
// emitWarning: !config.dev.showEslintErrorsInOverlay
// }
})
module.exports = {
......
......@@ -31,7 +31,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
hot: true,
contentBase: false, // since we use CopyWebpackPlugin.
compress: true,
host: HOST || config.dev.host,
host: '192.168.28.10' || config.dev.host,
port: PORT || config.dev.port,
open: config.dev.autoOpenBrowser,
overlay: config.dev.errorOverlay
......@@ -76,6 +76,7 @@ module.exports = new Promise((resolve, reject) => {
} else {
// publish the new Port, necessary for e2e tests
process.env.PORT = port
devWebpackConfig.devServer.host = '0.0.0.0'
// add port to devServer config
devWebpackConfig.devServer.port = port
......
......@@ -10,10 +10,19 @@ module.exports = {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
proxyTable: {
'/text':{
target:'http://recruit-ai3.liangkebang.net',
changeOrigin:true,
pathRewrite:{
'^/text':''
}
}
},
// Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST
host: '192.168.28.10', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true,
errorOverlay: true,
......
......@@ -3276,6 +3276,11 @@
"event-emitter": "~0.3.5"
}
},
"es6-promise": {
"version": "4.2.8",
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
"integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w=="
},
"es6-set": {
"version": "0.1.5",
"resolved": "http://npmprivate.quantgroups.com/es6-set/-/es6-set-0.1.5.tgz",
......
......@@ -12,6 +12,7 @@
},
"dependencies": {
"axios": "^0.19.0",
"es6-promise": "^4.2.8",
"iview": "^3.4.2",
"less": "^3.9.0",
"less-loader": "^5.0.0",
......
import axios from '../service/http.service'
import {
baseApi,contractApi
} from '../config/env.config'
import qs from 'qs'
\ No newline at end of file
import axios from '../service/http.service'
import {
baseApi,contractApi
} from '../config/env.config'
import qs from 'qs'
//登录
export function login(params) {
// params=qs.stringify(params)
return axios.post(`/text/api/login/doLogin`,params,{headers: {
'Content-Type':'application/json'
}})
}
\ No newline at end of file
import axios from '../service/http.service'
import {
baseApi,contractApi
} from '../config/env.config'
import qs from 'qs'
// 查询简历列表
export function serchList(parmars){
return axios.post(`/text/api/resume/findList`,parmars,{headers: {
'Content-Type':'application/json'
}})
}
\ No newline at end of file
......@@ -4,17 +4,58 @@ import {
} from '../config/env.config'
import qs from 'qs'
//账号列表查询
export function queryaccount(params) {
// params = checkParamsVoid(params)
params = qs.stringify(params)
return axios.post(`${contractApi}/api/user/findList`,params)
export function queryaccountList(params) {
return axios.post(`/text/api/user/findList`,params,{headers: {
'Content-Type':'application/json;',
}})
}
//添加账户
export function addAccount (params) {
console.log(params)
// params =qs.stringify(params)
return axios.post(`${contractApi}/api/user/add`,qs.stringify(params),{headers: {
'Accept':'application/json',
'Content-Type':'application/json'
return axios.post(`/text/api/user/add`,params,{headers: {
'Content-Type':'application/json',
"X-Requested-With":"XMLHttpRequest"
}})
}
//删除单条账户
export function Delateaccount(parmars){
return axios.get(`/text/api/user/delete/${parmars.id}`,{headers: {
'Content-Type':'application/json',
}})
}
//批量删除
export function delateAllAccount(params){
return axios.post(`/text//api/user/delete`,params,{headers: {
'Content-Type':'application/json',
}})
}
//恢复初始密码
export function recoveryPassword(parmars){
return axios.post(`/text/api/user/initial/${parmars.id}`,{headers: {
'Content-Type':'application/json',
}})
}
//查询邮箱列表
export function queryemailList(parmars){
console.log(parmars)
return axios.post(`/text/api/email/list`,parmars,{headers: {
'Content-Type':'application/json',
}})
}
// 同步邮箱
export function Synchronization(parmars){
parmars=qs.stringify(parmars)
console.log(parmars)
return axios.post(`/text/api/email/bind`,parmars,{headers: {
'Content-Type':'application/x-www-form-urlencoded',
'X-Requested-With':'XMLHttpRequest'
}})
}
// 解绑邮箱
export function jiebangEmail(parmars){
parmars=qs.stringify(parmars)
console.log(parmars)
return axios.post(`/text/api/email/unbind`,parmars,{headers: {
'Content-Type':'application/x-www-form-urlencoded',
'X-Requested-With':'XMLHttpRequest'
}})
}
\ No newline at end of file
const protocol = window.location.protocol
let baseApi = '',contractApi = ''
let baseApi = ''
let contractApi = ''
if(process.env.NODE_ENV === 'production'){
baseApi ='http://credit.xyqb.com'
......
This diff is collapsed.
......@@ -13,12 +13,12 @@
<div class="login_content">
<Form ref="formInline" :model="formInline" :rules="ruleInline" >
<FormItem prop="user">
<Input type="text" v-model="formInline.user" placeholder="Username" class="wordStyle">
<Input type="text" v-model="formInline.user" placeholder="Username" class="wordStyle" >
<Icon type="ios-person-outline" slot="prepend"></Icon>
</Input>
</FormItem>
<FormItem prop="password">
<Input type="password" v-model="formInline.password" placeholder="Password" class="wordStyle">
<Input type="password" v-model="formInline.password" placeholder="Password" class="wordStyle" >
<Icon type="ios-lock-outline" slot="prepend"></Icon>
</Input>
</FormItem>
......@@ -35,6 +35,8 @@
</div>
</template>
<script>
import { login} from '../../api/login.server.js'
export default {
data () {
return {
......@@ -64,8 +66,18 @@ export default {
})
},
login(){
let params={
userCode:this.formInline.user,
password:this.formInline.password
}
login(params).then(res=>{
console.log(res)
if(res.data!==''){
this.$router.push({name:"allResume"})
}
})
// this.$router.push({name:"allResume"})
}
}
}
</script>
......@@ -76,19 +88,19 @@ export default {
background: #EAEAEA;
}
.login-content{
width: 1100px;
width: 1200px;
height: 1000px;
margin-left: 500px
margin-left: 500px;
}
.loginContent-left {
float: left;
width: 600px;
height: 800px
width: 620px;
height: 740px
}
.loginContent-right{
float: left;
width: 500px;
height: 800px;
height: 740px;
background: #ffffff
}
.loginContent-left img{
......
This diff is collapsed.
<template>
<div></div>
<div>
<h3 style="color:#2d8cf0;font-size:18px;margin:14px 0 0 15px">二维码管理</h3>
<h5 style="margin:24px 0 0 15px;display:inline-block">前台扫描二维码</h5>
<div class="Qrcode">
<img src="">
</div>
<p class="xiazai">下载</p>
</div>
</template>
<script>
export default {
......@@ -7,5 +14,22 @@ export default {
}
</script>
<style>
.Qrcode{
height: 200px;
width: 200px;
border: 1px solid black;
margin: 20px 0 0 15px
}
.xiazai{
height: 30px;
width: 100px;
background:#2d8cf0;
color: white;
line-height: 30px;
text-align: center;
border-radius: 5px ;
position: absolute;
left: 230px;
top:270px
}
</style>
This diff is collapsed.
This diff is collapsed.
import axios from 'axios'
import Promise from './promise.service.js'
import {Notice} from 'iview'
import Vue from 'vue'
var instance = axios.create({});
instance.defaults.timeout = 2500;
export default axios
\ No newline at end of file
//instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
instance.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
instance.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'
instance.defaults.headers['X-auth-Token'] = 'XMLHttpRequest'
instance.interceptors.request.use(function (config) {
// 在发送请求之前做些什么
if (!config.headers['Content-Type']) {
config.headers['Content-Type'] = 'application/x-www-form-urlencoded'
}
return config;
}, function (error) {
// 对请求错误做些什么
return Promise.reject(error);
});
instance.interceptors.response.use(function (response) {
// 在发送请求之前做些什么
if(response.status >= 200 && response.status < 300){
if(response.data.success){
return Promise.resolve(response.data.body)
} else {
if (response.data.body.message){
Notice.error({desc:`${response.data.body.message}`})
}
return Promise.reject(response.data);
}
} else {
return Promise.reject(response.data);
}
if (resopnse.status == 403 || resopnse.status == 401){
if (response.data.body.message){
Notice.error({desc:`${response.data.body.messag}`})
}
window.location.replace = `${window.location.origin}/login`
}
return response;
}, error => {
console.log(error)
});
export default instance
// export default axios
module.exports = require('es6-promise');
\ 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