Commit 3720cdcd authored by FE-安焕焕's avatar FE-安焕焕 👣

Loading

parent d365abf7
......@@ -23,10 +23,11 @@ export function SInterview(tid) {
}})
}
// 面试管理查询
export function SerchList(parmars) {
export function SerchList(parmars, status) {
return axios.post(`${sapi}/api/interview/findListByQueryVO`,parmars,{headers: {
'Content-Type':'application/json;',
'X-Requested-With':'XMLHttpRequest'
'X-Requested-With':'XMLHttpRequest',
status
}})
}
//查看简历详情页
......
......@@ -17,9 +17,10 @@ export function downloadone (parmars) {
}})
}
// 搜索
export function sousuoList (parmars) {
export function sousuoList (parmars, status) {
return axios.post(`${sapi}/api/resume/findListByQueryVO`,parmars,{headers: {
'Content-Type':'application/json'
'Content-Type':'application/json',
status
}})
}
//查看简历详情页
......
......@@ -16,7 +16,7 @@
</Menu>
</Col>
<Col span="21" class="content" style="width:83%;height:100%">
<Row class="header" style="height:35px">
<Row class="header" style="height:45px">
<Col span="20">
<Menu mode="horizontal" :active-name="levelOneName" @on-select="selectMenu">
<MenuItem v-for="menu in menuList" :name="menu.name" :key="menu.name" >
......@@ -327,8 +327,8 @@ import {mapState} from 'vuex'
line-height: 6%
}
.ivu-menu{
height: 35px;
line-height: 35px;
height: 43px;
line-height: 43px;
.ivu-menu-item{
padding: 0 13px;
margin: 0 49px;
......
......@@ -413,7 +413,7 @@ export default {
})
},
// 查询面试信息
serchListInterview(page) {
serchListInterview(page,status) {
page = typeof(page)=='number'?page:1
this.searchInfo.pageIndex = page
this.pageIndex = page
......@@ -428,7 +428,7 @@ export default {
inviterName:'',
}
}
SerchList(parmars).then(res=>{
SerchList(parmars,status).then(res=>{
if(res.data.success==true){
this.spinShow=false
this.totalSize=res.data.body.totalNumber
......@@ -731,7 +731,7 @@ export default {
},
mounted(){
this.serchListInterview()
this.serchListInterview(null, 'init')
// this.Serchlistinterview()
this.SerchInvitation()
this.SerchlistinterviewList()
......
This diff is collapsed.
This diff is collapsed.
......@@ -12,10 +12,10 @@ instance.defaults.withCredentials = true;
instance.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
instance.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'
let needLoadingRequestCount = 0
function startLoading() {//使用Element loading-start 方法
function startLoading() {
store.state.loading = true
}
function endLoading() { //使用Element loading-close 方法
function endLoading() {
store.state.loading = false
}
function showFullScreenLoading () {
......@@ -30,17 +30,21 @@ function tryHideFullScreenLoading() {
if (needLoadingRequestCount === 0) {
setTimeout(() => {
endLoading()
}, 1000)
}, 200)
}
}
let needLoading = ['resume/findListByQueryVO', 'sendMail/sendEmailTemplate', 'resume/forwardResume', 'interview/findListByQueryVO']
instance.interceptors.request.use(function (config) {
// 在发送请求之前做些什么
if (!config.headers['Content-Type']) {
config.headers['Content-Type'] = 'application/x-www-form-urlencoded'
}
if (config.url.indexOf('findCompanyEmailByKey')<0){
let url = config.url.split('api/')[1]
let headers = config.headers
if (headers.status!='init'&&needLoading.includes(url)){
showFullScreenLoading()
}
delete headers.status
return config;
}, function (error) {
// 对请求错误做些什么
......
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