|
@@ -8,7 +8,7 @@
|
|
|
<div class="gs-worp qy-worp tj-up">
|
|
<div class="gs-worp qy-worp tj-up">
|
|
|
<div class="qy-title" style="position: relative;">
|
|
<div class="qy-title" style="position: relative;">
|
|
|
<ul class="over">
|
|
<ul class="over">
|
|
|
- <li style="width:100%" class="left xs" v-for="(d, i) in tab" :key="i" :class= "{qyactive:nowindex == i}" @click="tabwith(i)">{{d.name}}</li>
|
|
|
|
|
|
|
+ <li class="left xs" v-for="(d, i) in tab" :key="i" :class= "{qyactive:nowindex == i}" @click="tabwith(i)">{{d.name}}</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="qy-conent" :class= "{showqiye:nowindex == 0}" style="padding-top: 60px;">
|
|
<div class="qy-conent" :class= "{showqiye:nowindex == 0}" style="padding-top: 60px;">
|
|
@@ -16,7 +16,7 @@
|
|
|
<li style="margin: 0">
|
|
<li style="margin: 0">
|
|
|
<span class="qy-biaoti"><span class="xingxing">*</span>企业名称</span>
|
|
<span class="qy-biaoti"><span class="xingxing">*</span>企业名称</span>
|
|
|
<input class="inpind" ref="qyname" @change= "spaceName" type="text" placeholder="请填写企业全称">
|
|
<input class="inpind" ref="qyname" @change= "spaceName" type="text" placeholder="请填写企业全称">
|
|
|
- <dir class="qy-Tips"><span ref="qyno" style="color:red"></span></dir>
|
|
|
|
|
|
|
+ <div class="qy-Tips Tips-buttom"><span ref="qyno" style="color:red"></span></div>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<span class="qy-biaoti">所属行业</span>
|
|
<span class="qy-biaoti">所属行业</span>
|
|
@@ -83,9 +83,9 @@
|
|
|
<div class="lookup">
|
|
<div class="lookup">
|
|
|
<ul>
|
|
<ul>
|
|
|
<li v-for="(d, i) in arr" :key="i" @click="qylist(i)" :class="{'hui':newindex === i}">
|
|
<li v-for="(d, i) in arr" :key="i" @click="qylist(i)" :class="{'hui':newindex === i}">
|
|
|
- <span>企业名称:</span><span>{{d.name}}</span>
|
|
|
|
|
- <span class="saasguanli">SaaS管理员:</span><span>{{d.admin}}</span>
|
|
|
|
|
- <span>联系方式:</span><span>{{d.adminMobile}}</span>
|
|
|
|
|
|
|
+ <span class="maxtxt">{{d.name}}</span>
|
|
|
|
|
+ <span class="maxtxt">{{d.admin}}</span>
|
|
|
|
|
+ <span>{{d.adminMobile}}</span>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
@@ -134,7 +134,7 @@ import { setTimeout } from 'timers';
|
|
|
// placeholde:{province:"", city:"", area:""},
|
|
// placeholde:{province:"", city:"", area:""},
|
|
|
tab:[
|
|
tab:[
|
|
|
{name:'创建新企业'},
|
|
{name:'创建新企业'},
|
|
|
- // {name:'加入企业'},
|
|
|
|
|
|
|
+ {name:'加入企业'},
|
|
|
],
|
|
],
|
|
|
nowindex:0,
|
|
nowindex:0,
|
|
|
newindex:'',
|
|
newindex:'',
|
|
@@ -190,9 +190,6 @@ import { setTimeout } from 'timers';
|
|
|
this.qymingzi = false;
|
|
this.qymingzi = false;
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- .catch(err=>{
|
|
|
|
|
- // console.log("请求错误",err);
|
|
|
|
|
- })
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -205,7 +202,7 @@ import { setTimeout } from 'timers';
|
|
|
this.islookup = false;
|
|
this.islookup = false;
|
|
|
} else {
|
|
} else {
|
|
|
this.$ajax({
|
|
this.$ajax({
|
|
|
- url: "http://192.168.253.41:8560/api/account/accountCenter/company/isOpen",//http://192.168.253.41:8560
|
|
|
|
|
|
|
+ url: this.$url.api+"/api/account/accountCenter/company/isOpen",//http://192.168.253.41:8560
|
|
|
method:'GET',
|
|
method:'GET',
|
|
|
params: {
|
|
params: {
|
|
|
companyName: qyname
|
|
companyName: qyname
|
|
@@ -216,16 +213,16 @@ import { setTimeout } from 'timers';
|
|
|
})
|
|
})
|
|
|
.then(res=>{
|
|
.then(res=>{
|
|
|
if (res.data.success) {
|
|
if (res.data.success) {
|
|
|
- this.arr = res.data.data
|
|
|
|
|
|
|
+ this.newindex = '';
|
|
|
|
|
+ this.arr = res.data.data;
|
|
|
this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/ok.png" alt="">';
|
|
this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/ok.png" alt="">';
|
|
|
this.islookup = true;
|
|
this.islookup = true;
|
|
|
- } else if (res.data.success = false && res.data.message != null){
|
|
|
|
|
|
|
+ } else if (res.data.success == false && res.data.message == '公司不存在') {
|
|
|
this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 该企业不存在';
|
|
this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 该企业不存在';
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error('请求失败,请重试');
|
|
this.$message.error('请求失败,请重试');
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//验证个人姓名1
|
|
//验证个人姓名1
|
|
@@ -268,7 +265,6 @@ import { setTimeout } from 'timers';
|
|
|
//加入企业提交按钮
|
|
//加入企业提交按钮
|
|
|
Submission(){
|
|
Submission(){
|
|
|
let token = this.mytoken.token;
|
|
let token = this.mytoken.token;
|
|
|
- let qyname = this.$refs.lookupqyname.value.replace(/\s+/g, "");//企业名字
|
|
|
|
|
let username = this.$refs.lookupname.value.replace(/\s+/g, "");//姓名过滤空格
|
|
let username = this.$refs.lookupname.value.replace(/\s+/g, "");//姓名过滤空格
|
|
|
if (!this.islookup) {
|
|
if (!this.islookup) {
|
|
|
this.$message.error('企业或管理员不能为空');
|
|
this.$message.error('企业或管理员不能为空');
|
|
@@ -278,7 +274,7 @@ import { setTimeout } from 'timers';
|
|
|
this.$message.error('姓名不能包含符号、数字等非法字符');
|
|
this.$message.error('姓名不能包含符号、数字等非法字符');
|
|
|
} else if (this.companyId){
|
|
} else if (this.companyId){
|
|
|
this.$ajax({
|
|
this.$ajax({
|
|
|
- url:'http://192.168.253.41:8560/api/account/accountCenter/company/join',
|
|
|
|
|
|
|
+ url: this.$url.api+'/api/account/accountCenter/company/join',
|
|
|
method:'POST',
|
|
method:'POST',
|
|
|
data:{
|
|
data:{
|
|
|
username:username,
|
|
username:username,
|
|
@@ -295,7 +291,10 @@ import { setTimeout } from 'timers';
|
|
|
this.$store.state.ishongdian = true;//显示红点
|
|
this.$store.state.ishongdian = true;//显示红点
|
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
|
this.$router.push({name:'company'});
|
|
this.$router.push({name:'company'});
|
|
|
|
|
+ document.documentElement.scrollTop = 0;
|
|
|
},3000)
|
|
},3000)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.data.message);
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
@@ -343,10 +342,9 @@ import { setTimeout } from 'timers';
|
|
|
let address = this.$refs.address.value.replace(/\s+/g, "");//公司详细地址
|
|
let address = this.$refs.address.value.replace(/\s+/g, "");//公司详细地址
|
|
|
let name = this.$refs.name.value.replace(/\s+/g, "");//个人姓名
|
|
let name = this.$refs.name.value.replace(/\s+/g, "");//个人姓名
|
|
|
let email = this.$refs.email.value;//邮箱
|
|
let email = this.$refs.email.value;//邮箱
|
|
|
- let mytoken = JSON.parse(localStorage.getItem('app-state-session'));
|
|
|
|
|
- let token = String(mytoken.token);
|
|
|
|
|
- let uu = mytoken.account.uu;
|
|
|
|
|
- let mobile = mytoken.account.mobile;//手机号
|
|
|
|
|
|
|
+ let token = this.mytoken.token;
|
|
|
|
|
+ let uu = this.mytoken.account.uu;
|
|
|
|
|
+ let mobile = this.mytoken.account.mobile;//手机号
|
|
|
let company = {'name':qyname,'address':address,'type':qyindustry};
|
|
let company = {'name':qyname,'address':address,'type':qyindustry};
|
|
|
let account = {'realname':name,'email':email,'mobile':mobile, 'uu':uu};
|
|
let account = {'realname':name,'email':email,'mobile':mobile, 'uu':uu};
|
|
|
// console.log('姓名',name)//个人姓名
|
|
// console.log('姓名',name)//个人姓名
|
|
@@ -380,7 +378,7 @@ import { setTimeout } from 'timers';
|
|
|
this.isadd = true;//添加成功弹窗
|
|
this.isadd = true;//添加成功弹窗
|
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
|
document.documentElement.scrollTop = 0;
|
|
document.documentElement.scrollTop = 0;
|
|
|
- let session = JSON.parse(window.localStorage.getItem('app-state-session'));
|
|
|
|
|
|
|
+ let session = Session.get();
|
|
|
session.account.realname = name;
|
|
session.account.realname = name;
|
|
|
Session.set(session);
|
|
Session.set(session);
|
|
|
// this.$router.push({name:'company'})
|
|
// this.$router.push({name:'company'})
|
|
@@ -496,6 +494,16 @@ import { setTimeout } from 'timers';
|
|
|
margin-right: 5px;
|
|
margin-right: 5px;
|
|
|
}
|
|
}
|
|
|
.hui {
|
|
.hui {
|
|
|
- background: #c5c5c5;
|
|
|
|
|
|
|
+ background: #c5c5c5 !important;
|
|
|
|
|
+}
|
|
|
|
|
+.lookup > ul > li:hover {
|
|
|
|
|
+ background: #f5f4f4
|
|
|
|
|
+}
|
|
|
|
|
+.lookup > ul {
|
|
|
|
|
+ height: 300px;
|
|
|
|
|
+ overflow-y: scroll;
|
|
|
|
|
+}
|
|
|
|
|
+.maxtxt {
|
|
|
|
|
+ font-size: 16px !important;
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|