|
@@ -56,9 +56,9 @@ export default {
|
|
content: "", //留言内容
|
|
content: "", //留言内容
|
|
username: "", //员工姓名
|
|
username: "", //员工姓名
|
|
staff_num: "", //员工编号
|
|
staff_num: "", //员工编号
|
|
- token: sessionStorage.getItem("mytoken")
|
|
|
|
- ? sessionStorage.getItem("mytoken")
|
|
|
|
- : "", //token值保存在本地,有的话取值,没有为空
|
|
|
|
|
|
+ // token: sessionStorage.getItem("mytoken")
|
|
|
|
+ // ? sessionStorage.getItem("mytoken")
|
|
|
|
+ // : "", //token值保存在本地,有的话取值,没有为空
|
|
show: false, //tabber是否显示
|
|
show: false, //tabber是否显示
|
|
myshow:false,
|
|
myshow:false,
|
|
gettoken: "", //从url获取到token值
|
|
gettoken: "", //从url获取到token值
|
|
@@ -79,7 +79,9 @@ export default {
|
|
content: this.content,
|
|
content: this.content,
|
|
name: this.username,
|
|
name: this.username,
|
|
})
|
|
})
|
|
- .then((res) => {});
|
|
|
|
|
|
+ .then((res) => {
|
|
|
|
+ console.log(res);
|
|
|
|
+ });
|
|
//获得提示表明已提交意见
|
|
//获得提示表明已提交意见
|
|
this.$router.push(`/xixuanzhongxin/leader-mailbox/leader-success`);
|
|
this.$router.push(`/xixuanzhongxin/leader-mailbox/leader-success`);
|
|
}
|
|
}
|
|
@@ -104,6 +106,7 @@ export default {
|
|
this.$http
|
|
this.$http
|
|
.post("http://xixuan.nxjiewei.com:8011/api/user/info")
|
|
.post("http://xixuan.nxjiewei.com:8011/api/user/info")
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
+ console.log(res);
|
|
this.staff_num = res.data.data.staff_num;
|
|
this.staff_num = res.data.data.staff_num;
|
|
this.username = res.data.data.name;
|
|
this.username = res.data.data.name;
|
|
this.name = res.data.data.name;
|
|
this.name = res.data.data.name;
|