|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<!-- 遮罩 -->
|
|
|
- <div class="zhezhao" v-if="issetDefault || isOpensaas || isNoopen"></div>
|
|
|
+ <div class="zhezhao" v-if="issetDefault || isOpensaas || isNoopen || isokopensaas"></div>
|
|
|
<!-- 设置默认弹窗 -->
|
|
|
<div class="tanchuang szmoren" v-if="issetDefault">
|
|
|
<div class="over"><img @click="guanbitc" class="right xs" src="/static/img/qiye/chahao.png" alt=""></div>
|
|
|
@@ -33,12 +33,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 该企业已开通服务弹窗 -->
|
|
|
- <div class="tanchuang qy-yikaitong" style="display: none">
|
|
|
+ <div class="tanchuang qy-yikaitong" v-if="isokopensaas">
|
|
|
<div class="over"><img @click="guanbitc" class="right xs" src="/static/img/qiye/chahao.png" alt=""></div>
|
|
|
<div>
|
|
|
<div class="tc-okkaitong"><span>该企业已开通服务,联系管理员邀请加入</span></div>
|
|
|
<div class="tc-context">
|
|
|
- <!-- <p><span>管理员:</span><span>{{arr[0].admin}}</span></p> -->
|
|
|
+ <p><span>管理员:</span><span>{{arr[0].admin}}</span></p>
|
|
|
<p><span>管理员手机号:</span><span>{{mytoken.account.mobile}}</span></p>
|
|
|
<p><span>管理员邮箱:</span><span></span></p>
|
|
|
</div>
|
|
|
@@ -73,7 +73,7 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<span v-if = "d.default_" class="gs-btn2 gs-btn3">默认企业</span>
|
|
|
- <span v-else @click="showDefaultWin(i)" class="gs-btn2 xs">设为默认</span>
|
|
|
+ <span v-if="d.saas_" @click="showDefaultWin(i)" class="gs-btn2 xs">设为默认</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -94,12 +94,12 @@
|
|
|
issetDefault: false,//设置默认
|
|
|
isOpensaas: false,//开通saas弹窗
|
|
|
isNoopen: false,//开通10个不能继续开通
|
|
|
+ isokopensaas: false,//已开通服务
|
|
|
index:0,
|
|
|
saasid:null,
|
|
|
saasindex:0,
|
|
|
ktsass: true,//开通saas
|
|
|
isDefault: true,//开通默认
|
|
|
- comdata: this.$store.state.data,//登录成功后的本地数据
|
|
|
isAutoLogin: this.$store.state.isAutoLogin,
|
|
|
mytoken: JSON.parse(localStorage.getItem('app-state-session')),//本地储存的用户信息
|
|
|
arr: []//企业列表信息
|
|
|
@@ -107,7 +107,8 @@
|
|
|
},
|
|
|
computed :{
|
|
|
setTokenPage() {
|
|
|
- return this.$url.web + '/set-token.html'
|
|
|
+ return 'http://192.168.253.39/set-token.html'
|
|
|
+ //return this.$url.web + '/set-token.html'
|
|
|
}
|
|
|
},
|
|
|
watch:{
|
|
|
@@ -189,13 +190,13 @@
|
|
|
},
|
|
|
//进入服务
|
|
|
selectServe(id){
|
|
|
- let token = this.mytoken.token;
|
|
|
+ let token1 = this.mytoken.token;
|
|
|
const frame = window.frames[window.frames.length - 1];
|
|
|
this.$ajax({
|
|
|
url: this.$url.api+'/api/auth/switch/company?companyId='+id,
|
|
|
method :'get',
|
|
|
headers: {
|
|
|
- "Authorization":token
|
|
|
+ "Authorization":token1
|
|
|
}
|
|
|
})
|
|
|
.then(res=>{
|
|
|
@@ -204,8 +205,10 @@
|
|
|
session.account.companyId=id;
|
|
|
session.span = session.timestamp - new Date().getTime();
|
|
|
session.token=mytoken;
|
|
|
+ // frame.postMessage(JSON.stringify(session), '*');
|
|
|
+ // window.location.href = this.$url.web
|
|
|
frame.postMessage(JSON.stringify(session), '*');
|
|
|
- window.location.href = this.$url.web
|
|
|
+ window.open('http://192.168.253.39:1841/#main','_blank');
|
|
|
})
|
|
|
.catch(err=>{
|
|
|
// console.log('请求失败',err)
|
|
|
@@ -242,7 +245,7 @@
|
|
|
let account = {'realname':name,'email':email,'mobile':mobile, 'uu':uu}
|
|
|
// let id = this.saasid;
|
|
|
this.$ajax({
|
|
|
- url: this.$url.api+"/api/account/accountCenter/companyAccount/save",
|
|
|
+ url: "http://192.168.253.31:8560/api/account/accountCenter/companyAccount/save",
|
|
|
method: 'post',
|
|
|
data: {
|
|
|
companyRegDTO:company,
|
|
|
@@ -254,20 +257,23 @@
|
|
|
}
|
|
|
})
|
|
|
.then(res=>{
|
|
|
- console.log('请求成功',res)
|
|
|
- if (res.data.data.success) {
|
|
|
+ // console.log('请求成功',res)
|
|
|
+ if (res.data.success) {
|
|
|
this.ktsass = false;
|
|
|
+ } else {
|
|
|
+ this.isokopensaas = true;
|
|
|
}
|
|
|
})
|
|
|
.catch(err=>{
|
|
|
- console.log('请求失败',err)
|
|
|
+ // console.log('请求失败',err)
|
|
|
})
|
|
|
},
|
|
|
//进入saas服务
|
|
|
showServeWin(){
|
|
|
let id = this.saasid;
|
|
|
this.isOpensaas = false;
|
|
|
- this.$options.methods.selectServe(id)
|
|
|
+ // this.$options.methods.selectServe(id);
|
|
|
+ this.selectServe(id)
|
|
|
},
|
|
|
//查看企业详情
|
|
|
getEnterpriseInfo(d){
|
|
|
@@ -283,7 +289,8 @@
|
|
|
guanbitc(){
|
|
|
this.issetDefault = false;
|
|
|
this.isOpensaas = false;
|
|
|
- this.isNoopen = false
|
|
|
+ this.isNoopen = false;
|
|
|
+ this.isokopensaas = false
|
|
|
},
|
|
|
//没有内容也要有一定的高度
|
|
|
boxheight(){
|