|
|
@@ -44,8 +44,9 @@
|
|
|
<div :class= "{gsqiye:nowindex == 0}">
|
|
|
|
|
|
<!-- 企业列表展示-------添加企业-------------企业详细信息展示 ---------------------------- -->
|
|
|
+ <!-- <keep-alive> -->
|
|
|
<router-view></router-view>
|
|
|
-
|
|
|
+ <!-- </keep-alive> -->
|
|
|
</div>
|
|
|
<!-- 个人信息------------------------------------------------------------------- -->
|
|
|
<div :class= "{gsqiye:nowindex == 1}">
|
|
|
@@ -150,9 +151,10 @@
|
|
|
<div v-if="isnews" class="my-pagination">
|
|
|
<el-pagination
|
|
|
background
|
|
|
+ :page-size=size
|
|
|
@current-change="handleCurrentChange"
|
|
|
layout="prev, pager, next"
|
|
|
- :total= list>
|
|
|
+ :total= listtotal>
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -170,7 +172,7 @@ import { setTimeout } from 'timers';
|
|
|
return{
|
|
|
nowindex: 0,//tab切换
|
|
|
tianjiaqiye: true,//添加企业切换
|
|
|
- mytoken: JSON.parse(localStorage.getItem('app-state-session')).account,//本地储存的用户信息
|
|
|
+ mytoken: Session.get().account,//本地储存的用户信息
|
|
|
mobile: null,
|
|
|
ismodifyname:true,
|
|
|
isname:true,//姓名验证
|
|
|
@@ -184,7 +186,8 @@ import { setTimeout } from 'timers';
|
|
|
{name: '消息'},
|
|
|
],
|
|
|
arr: [],
|
|
|
- list:1
|
|
|
+ listtotal:1,
|
|
|
+ size:10,//每页显示数量
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
@@ -211,15 +214,15 @@ import { setTimeout } from 'timers';
|
|
|
methods: {
|
|
|
// tab切换
|
|
|
tabswitch(index){
|
|
|
+ this.mytoken = Session.get().account;
|
|
|
if (index == 3) {
|
|
|
this.nowindex = 3;
|
|
|
- let mytoken = Session.get();
|
|
|
- let id = mytoken.account.id;
|
|
|
+ let id = this.mytoken.id;
|
|
|
let param = {
|
|
|
type:'condition',
|
|
|
value:'creatorId='+id+''
|
|
|
}
|
|
|
- // tab切换到消息的时候执行
|
|
|
+ // tab切换到消息的时候获取申请列表
|
|
|
this.$ajax({
|
|
|
url: this.$url.api+'/api/commons/remind/apply/list',
|
|
|
method:'GET',
|
|
|
@@ -227,18 +230,18 @@ import { setTimeout } from 'timers';
|
|
|
params: {
|
|
|
condition:JSON.stringify(param),
|
|
|
number:1,
|
|
|
- size:10
|
|
|
+ size:this.size
|
|
|
},
|
|
|
headers:{
|
|
|
'Access-Control-Allow-Origin':'*',
|
|
|
- "Authorization":mytoken.token,
|
|
|
+ "Authorization":Session.getToken(),
|
|
|
'Content-Type':'application/json;charset=UTF-8'
|
|
|
}
|
|
|
})
|
|
|
.then(res=>{
|
|
|
if (res.data.success) {
|
|
|
this.arr = res.data.data.list;
|
|
|
- this.list = res.data.data.total;
|
|
|
+ this.listtotal = res.data.data.total;
|
|
|
this.$store.state.ishongdian = false;
|
|
|
}
|
|
|
})
|
|
|
@@ -247,9 +250,6 @@ import { setTimeout } from 'timers';
|
|
|
}
|
|
|
|
|
|
},
|
|
|
- setTurnHome(){
|
|
|
- this.$parent.turnHome = true
|
|
|
- },
|
|
|
//重新加入
|
|
|
Rejoin(i){
|
|
|
this.$ajax({
|
|
|
@@ -268,13 +268,14 @@ import { setTimeout } from 'timers';
|
|
|
if (res.data.success) {
|
|
|
this.$message.success('提交成功,待管理员批准');
|
|
|
this.tabswitch(3);//本页面刷新
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.data.message);
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 分页
|
|
|
handleCurrentChange(val) {
|
|
|
- let mytoken = Session.get();
|
|
|
- let id = mytoken.account.id;
|
|
|
+ let id = this.mytoken.id;
|
|
|
let param = {
|
|
|
type:'condition',
|
|
|
value:'creatorId='+id+''
|
|
|
@@ -286,11 +287,11 @@ import { setTimeout } from 'timers';
|
|
|
params: {
|
|
|
condition:JSON.stringify(param),
|
|
|
number:val,
|
|
|
- size:10
|
|
|
+ size:this.size
|
|
|
},
|
|
|
headers:{
|
|
|
'Access-Control-Allow-Origin':'*',
|
|
|
- "Authorization":mytoken.token,
|
|
|
+ "Authorization":Session.getToken(),
|
|
|
'Content-Type':'application/json;charset=UTF-8'
|
|
|
}
|
|
|
})
|
|
|
@@ -300,6 +301,9 @@ import { setTimeout } from 'timers';
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ setTurnHome(){
|
|
|
+ this.$parent.turnHome = true
|
|
|
+ },
|
|
|
//退出
|
|
|
loginout(){
|
|
|
const frame = window.frames[window.frames.length - 1]
|
|
|
@@ -369,10 +373,10 @@ import { setTimeout } from 'timers';
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- //没有内容也要有一定的高度
|
|
|
+ //内容不足500固定高度
|
|
|
boxheight(){
|
|
|
let H = this.$refs.qiyebox.offsetHeight;
|
|
|
- if (H <= 500) {
|
|
|
+ if (H < 500) {
|
|
|
this.isheigh = true
|
|
|
} else {
|
|
|
this.isheigh = false
|