Commit 9d7060eb by 米嘉伟

userInfo

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