|
@@ -68,7 +68,6 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
//点击事件提交到领导信箱的数据库
|
|
//点击事件提交到领导信箱的数据库
|
|
submit(num) {
|
|
submit(num) {
|
|
- // console.log(id);
|
|
|
|
if (this.username == "" || this.content == "") {
|
|
if (this.username == "" || this.content == "") {
|
|
this.$toast("请填写内容");
|
|
this.$toast("请填写内容");
|
|
} else {
|
|
} else {
|
|
@@ -80,10 +79,12 @@ export default {
|
|
name: this.username,
|
|
name: this.username,
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- console.log(res);
|
|
|
|
|
|
+
|
|
});
|
|
});
|
|
//获得提示表明已提交意见
|
|
//获得提示表明已提交意见
|
|
- this.$toast("建议已提交");
|
|
|
|
|
|
+ this.$router.push(
|
|
|
|
+ `/xixuanzhongxin/leader-mailbox/leader-success`
|
|
|
|
+ );
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//获取checked的属性值
|
|
//获取checked的属性值
|
|
@@ -117,6 +118,9 @@ export default {
|
|
this.username = this.name;
|
|
this.username = this.name;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ console.log(err);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//页面进入是判断是否为领导,是领导跳转至领导信箱列表页
|
|
//页面进入是判断是否为领导,是领导跳转至领导信箱列表页
|
|
@@ -127,16 +131,17 @@ export default {
|
|
)
|
|
)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
//获取是否为领导
|
|
//获取是否为领导
|
|
- this.leader=res.data.data
|
|
|
|
|
|
+ this.leader = res.data.data;
|
|
if (this.leader == true) {
|
|
if (this.leader == true) {
|
|
- window.location.href="#/xixuanzhongxin/leader-mailbox/leader-mailbox-list"
|
|
|
|
|
|
+ window.location.href =
|
|
|
|
+ "#/xixuanzhongxin/leader-mailbox/leader-mailbox-list";
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
},
|
|
},
|
|
//这里挂载的是获取token
|
|
//这里挂载的是获取token
|
|
mounted() {
|
|
mounted() {
|
|
- document.body.style.backgroundColor="#3399ff";
|
|
|
|
|
|
+ document.body.style.backgroundColor = "#3399ff";
|
|
this.gettoken =getAllUrlParams(window.location.href).token;
|
|
this.gettoken =getAllUrlParams(window.location.href).token;
|
|
this.token = `Bearer ${this.gettoken}`;
|
|
this.token = `Bearer ${this.gettoken}`;
|
|
sessionStorage.setItem("mytoken", this.token);
|
|
sessionStorage.setItem("mytoken", this.token);
|
|
@@ -156,11 +161,11 @@ export default {
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
font-size: 20px;
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
->>>.van-cell {
|
|
|
|
|
|
+>>> .van-cell {
|
|
margin-bottom: 3%;
|
|
margin-bottom: 3%;
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
}
|
|
}
|
|
->>>.van-button--info {
|
|
|
|
|
|
+>>> .van-button--info {
|
|
color: #39f;
|
|
color: #39f;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
}
|
|
}
|
|
@@ -210,24 +215,24 @@ export default {
|
|
width: 90%;
|
|
width: 90%;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
->>>.van-checkbox {
|
|
|
|
|
|
+>>> .van-checkbox {
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
->>>.van-checkbox__icon .van-icon {
|
|
|
|
|
|
+>>> .van-checkbox__icon .van-icon {
|
|
width: 20px;
|
|
width: 20px;
|
|
height: 20px;
|
|
height: 20px;
|
|
}
|
|
}
|
|
->>>.van-checkbox__label {
|
|
|
|
|
|
+>>> .van-checkbox__label {
|
|
margin-left: 3px;
|
|
margin-left: 3px;
|
|
margin-top: 10%;
|
|
margin-top: 10%;
|
|
color: #97a3b4;
|
|
color: #97a3b4;
|
|
line-height: 10px;
|
|
line-height: 10px;
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
->>>.van-checkbox__icon {
|
|
|
|
|
|
+>>> .van-checkbox__icon {
|
|
margin-top: 5px;
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
->>>.input-message span {
|
|
|
|
|
|
+>>> .input-message span {
|
|
color: #97a3b4;
|
|
color: #97a3b4;
|
|
}
|
|
}
|
|
.leader-h1 {
|
|
.leader-h1 {
|
|
@@ -242,21 +247,21 @@ export default {
|
|
width: 15px;
|
|
width: 15px;
|
|
height: 18px;
|
|
height: 18px;
|
|
}
|
|
}
|
|
->>>.van-nav-bar {
|
|
|
|
|
|
+>>> .van-nav-bar {
|
|
background: #39f;
|
|
background: #39f;
|
|
}
|
|
}
|
|
->>>.van-field__label{
|
|
|
|
|
|
+>>> .van-field__label {
|
|
margin-right: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
->>>.van-nav-bar__title,
|
|
|
|
|
|
+>>> .van-nav-bar__title,
|
|
.van-nav-bar .van-icon,
|
|
.van-nav-bar .van-icon,
|
|
.van-nav-bar__text {
|
|
.van-nav-bar__text {
|
|
color: #fff;
|
|
color: #fff;
|
|
}
|
|
}
|
|
->>>[class*="van-hairline"]:after {
|
|
|
|
|
|
+>>> [class*="van-hairline"]:after {
|
|
border: none;
|
|
border: none;
|
|
}
|
|
}
|
|
->>>.van-field__label {
|
|
|
|
|
|
+>>> .van-field__label {
|
|
width: 3.2em;
|
|
width: 3.2em;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|