Skip to content

Commit

Permalink
修复bug-后台管理页面无法正常显示
Browse files Browse the repository at this point in the history
  • Loading branch information
smallsnail-wh committed Jan 14, 2019
1 parent f22c19e commit 05f804f
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions interest-web/src/views/sys/banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default {
})
.then(
function(response) {
this.interestList = response.data;
this.interestList = response.data.data;
}.bind(this)
)
.catch(
Expand Down Expand Up @@ -218,9 +218,9 @@ export default {
})
.then(
function(response) {
this.data1 = response.data.data;
this.data1 = response.data.data.data;
// this.listDateSet(this.data1);
this.total = response.data.totalCount;
this.total = response.data.data.totalCount;
}.bind(this)
)
.catch(function(error) {
Expand Down
4 changes: 2 additions & 2 deletions interest-web/src/views/sys/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default {
})
.then(
function(response) {
this.userName = response.data.name;
this.userName = response.data.data.name;
}.bind(this)
)
.catch(function(error) {
Expand All @@ -175,7 +175,7 @@ export default {
})
.then(
function(response) {
this.menuList = response.data;
this.menuList = response.data.data;
for (var i in this.menuList) {
for (var j in this.menuList[i].children) {
this.menuSub.push(this.menuList[i].children[j]);
Expand Down
6 changes: 3 additions & 3 deletions interest-web/src/views/sys/card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default {
})
.then(
function(response) {
this.interestList = response.data;
this.interestList = response.data.data;
}.bind(this)
)
.catch(
Expand Down Expand Up @@ -206,9 +206,9 @@ export default {
})
.then(
function(response) {
this.data1 = response.data.data;
this.data1 = response.data.data.data;
this.listDateSet(this.data1);
this.total = response.data.totalCount;
this.total = response.data.data.totalCount;
}.bind(this)
)
.catch(function(error) {
Expand Down
4 changes: 2 additions & 2 deletions interest-web/src/views/sys/email.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ export default {
})
.then(
function(response) {
this.data1 = response.data.data;
this.data1 = response.data.data.data;
this.listDateSet(this.data1);
this.total = response.data.totalCount;
this.total = response.data.data.totalCount;
}.bind(this)
)
.catch(function(error) {
Expand Down
6 changes: 3 additions & 3 deletions interest-web/src/views/sys/interest/interest-delete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default {
})
.then(
function(response) {
this.interestList = response.data;
this.interestList = response.data.data;
}.bind(this)
)
.catch(
Expand Down Expand Up @@ -185,9 +185,9 @@ export default {
})
.then(
function(response) {
this.data1 = response.data.data;
this.data1 = response.data.data.data;
// this.listDateSet(this.data1);
this.total = response.data.totalCount;
this.total = response.data.data.totalCount;
}.bind(this)
)
.catch(function(error) {
Expand Down
4 changes: 2 additions & 2 deletions interest-web/src/views/sys/interest/interest-edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default {
})
.then(
function(response) {
var listTemp = response.data;
var listTemp = response.data.data;
for (var i = 0; i < listTemp.length; i++) {
this.interestList.push({
value: listTemp[i].id,
Expand Down Expand Up @@ -240,7 +240,7 @@ export default {
})
.then(
function(response) {
this.entitySet(response.data);
this.entitySet(response.data.data);
this.interestContent = this.entity.content;
}.bind(this)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
props: ['interestContent'],
watch: {
interestContent: function(newQuestion, oldQuestion) {
console.log(newQuestion);
// console.log(newQuestion);
this.setContent(newQuestion);
//this.content = newQuestion+'';
}
Expand Down
6 changes: 3 additions & 3 deletions interest-web/src/views/sys/menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export default {
})
.then(
function(response) {
var listTemp = response.data;
var listTemp = response.data.data;
for (var i = 0; i < listTemp.length; i++) {
this.menuList.push({
value: listTemp[i].id,
Expand Down Expand Up @@ -418,8 +418,8 @@ export default {
})
.then(
function(response) {
this.data1 = response.data.data;
this.total = response.data.totalCount;
this.data1 = response.data.data.data;
this.total = response.data.data.totalCount;
}.bind(this)
)
.catch(function(error) {
Expand Down
6 changes: 3 additions & 3 deletions interest-web/src/views/sys/role.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default {
})
.then(
function(response) {
this.submenusList = response.data;
this.submenusList = response.data.data;
}.bind(this)
)
.catch(function(error) {
Expand Down Expand Up @@ -328,8 +328,8 @@ export default {
})
.then(
function(response) {
this.data1 = response.data.data;
this.total = response.data.totalCount;
this.data1 = response.data.data.data;
this.total = response.data.data.totalCount;
}.bind(this)
)
.catch(function(error) {
Expand Down
10 changes: 5 additions & 5 deletions interest-web/src/views/sys/user.vue
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export default {
})
.then(
function(response) {
this.data2Temp = response.data;
this.data2Temp = response.data.data;
}.bind(this)
)
.catch(function(error) {
Expand Down Expand Up @@ -377,9 +377,9 @@ export default {
})
.then(
function(response) {
this.data1 = response.data.data;
this.data1 = response.data.data.data;
this.listDateSet(this.data1);
this.total = response.data.totalCount;
this.total = response.data.data.totalCount;
}.bind(this)
)
.catch(function(error) {
Expand Down Expand Up @@ -551,8 +551,8 @@ export default {
.then(
function(response) {
var roleList = [];
for (var i in response.data) {
roleList.push(response.data[i].roleId);
for (var i in response.data.data) {
roleList.push(response.data.data[i].roleId);
}
for (var i in this.data2Temp) {
if (roleList.indexOf(this.data2Temp[i].id) == -1) {
Expand Down

0 comments on commit 05f804f

Please sign in to comment.