Commit 9d7060eb by 米嘉伟

userInfo

parent 820d6be3
......@@ -369,8 +369,6 @@ export default {
this.fcxInfo.queryCount = response.data.ret.queryCount;
this.fcxInfo.queryType = response.data.ret.queryType;
this.fcxInfo.hitStatus = response.data.ret.hitStatus;
//console.info("查询结果===>", this.tableDate);
// this.userInfo = this.getUserInfo(this.tableDate);
} else {
this.$message.error(response.data.message);
}
......
......@@ -864,7 +864,7 @@ export default {
if (this.type == 'ry') {
reqUrl = '/api/query'
let queryRequest = {
userid: JSON.parse(localStorage.getItem('userInfo')).id, //
userid: JSON.parse(localStorage.getItem('userInfo')).user.id, //
queryClass: '', // 优先级
matchCount: '', // 候选个数
srcDataType: [],// 源数据类型1,2,3,7
......@@ -942,7 +942,7 @@ export default {
} else if (this.type == 'aj') {
reqUrl = '/api/query'
let queryRequest = {
userid: JSON.parse(localStorage.getItem('userInfo')).id, // 用户ID localStorage.getItem('userInfo').id
userid: JSON.parse(localStorage.getItem('userInfo')).user.id, // 用户ID
queryClass: '', // 优先级
matchCount: '', // 候选个数
srcQueryDataList: [],
......@@ -1070,7 +1070,7 @@ export default {
// 发查询条数
getQueryCount () {
this.$axios
.get("/api/queryCount/getQueryCountByUserId/" + JSON.parse(localStorage.getItem('userInfo')).id) // localStorage.getItem('userInfo').id
.get("/api/queryCount/getQueryCountByUserId/" + JSON.parse(localStorage.getItem('userInfo')).user.id)
.then(response => {
if (response.data.code === 0) {
this.totalCount = response.data.detail.totalCount // 本月总数
......
......@@ -637,8 +637,6 @@ export default {
this.fcxInfo.queryCount = response.data.ret.queryCount;
this.fcxInfo.queryType = response.data.ret.queryType;
this.fcxInfo.hitStatus = response.data.ret.hitStatus;
//console.info("查询结果===>", this.tableDate);
// this.userInfo = this.getUserInfo(this.tableDate);
} else {
this.$message.error(response.data.message);
}
......
......@@ -46,9 +46,9 @@
/>用户信息
<div class="rolelist">
<ul>
<li>用户名:{{ userInfo.username }}</li>
<li>&nbsp;&nbsp;&nbsp;名:{{ userInfo.name }}</li>
<li>&nbsp;&nbsp;&nbsp;位:{{ userInfo.unitName }}</li>
<li>用户名:{{ userInfo.user.username }}</li>
<li>&nbsp;&nbsp;&nbsp;名:{{ userInfo.user.name }}</li>
<li>&nbsp;&nbsp;&nbsp;位:{{ userInfo.user.unitName }}</li>
</ul>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment