|
|
@@ -2,12 +2,12 @@
|
|
|
<div>
|
|
|
<span class="Tips" ref="Tips"></span>
|
|
|
<!-- 企业详细信息 -->
|
|
|
- <div v-if="xiugai">
|
|
|
+ <div v-if="modify">
|
|
|
<div class="gs-worp qy-worp" style="width:100%">
|
|
|
<div class="qy-title">
|
|
|
<span><img @click= "gobick" style="float: left;padding: 20px; cursor:pointer" src="/static/img/fanhui.png" alt=""></span>
|
|
|
<span>企业基本信息</span>
|
|
|
- <span v-if="isxiugaiId" @click="xiugaiqiye" class="qy-xiugai dianji">修改</span>
|
|
|
+ <span v-if="ismodifyId" @click="xiugaiqiye" class="qy-xiugai dianji">修改</span>
|
|
|
</div>
|
|
|
<div class="qy-conent">
|
|
|
<ul>
|
|
|
@@ -101,21 +101,21 @@
|
|
|
export default {
|
|
|
data(){
|
|
|
return {
|
|
|
- xiugai:true,
|
|
|
+ modify:true,
|
|
|
content: JSON.parse(window.sessionStorage.getItem("content")),
|
|
|
Email: '',
|
|
|
mytoken: JSON.parse(localStorage.getItem('app-state-session')),//本地储存的用户信息
|
|
|
isId: false,
|
|
|
isemail: true,//正则邮箱
|
|
|
- isxiugaiId: false
|
|
|
+ ismodifyId: false
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
//不是管理员隐藏修改按钮
|
|
|
if (this.content.adminId == this.mytoken.account.id) {
|
|
|
- this.isxiugaiId = true;
|
|
|
+ this.ismodifyId = true;
|
|
|
} else {
|
|
|
- this.isxiugaiId = false
|
|
|
+ this.ismodifyId = false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -133,7 +133,7 @@
|
|
|
//修改企业信息
|
|
|
xiugaiqiye(){
|
|
|
document.documentElement.scrollTop = 0;
|
|
|
- this.xiugai = false;
|
|
|
+ this.modify = false;
|
|
|
setTimeout(()=>{
|
|
|
this.selects()
|
|
|
},10)
|
|
|
@@ -157,7 +157,7 @@
|
|
|
// 取消修改
|
|
|
quxiaoxiugai(){
|
|
|
document.documentElement.scrollTop = 0;
|
|
|
- this.xiugai = true;
|
|
|
+ this.modify = true;
|
|
|
},
|
|
|
// 保存修改
|
|
|
baocunxiugai(){
|
|
|
@@ -188,7 +188,7 @@
|
|
|
// console.log("请求成功",res)
|
|
|
if (res.data.success) {
|
|
|
document.documentElement.scrollTop = 0;
|
|
|
- this.xiugai = true;
|
|
|
+ this.modify = true;
|
|
|
this.content.type = qyindustry;
|
|
|
this.content.adminEmail = email
|
|
|
};
|