Commit 19cf1ebd authored by liwei's avatar liwei

修改了页面

parent 58e79085
...@@ -295,6 +295,7 @@ export default { ...@@ -295,6 +295,7 @@ export default {
getList() { getList() {
this.loading = true this.loading = true
list(this.addDateRange(this.queryParams, this.dateRange)).then(response => { list(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
if (response.rows !== undefined){
this.list = response.rows.map(item => { this.list = response.rows.map(item => {
const title = item.title const title = item.title
if (title) { if (title) {
...@@ -308,6 +309,7 @@ export default { ...@@ -308,6 +309,7 @@ export default {
} }
return item return item
}) })
}
this.total = response.total this.total = response.total
this.loading = false this.loading = false
} }
......
...@@ -340,6 +340,7 @@ export default { ...@@ -340,6 +340,7 @@ export default {
getList() { getList() {
this.loading = true this.loading = true
list(this.addDateRange(this.queryParams, this.dateRange)).then(response => { list(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
if (response.rows !== undefined) {
this.list = response.rows.map(item => { this.list = response.rows.map(item => {
const title = item.title const title = item.title
if (title) { if (title) {
...@@ -353,6 +354,7 @@ export default { ...@@ -353,6 +354,7 @@ export default {
} }
return item return item
}) })
}
this.total = response.total this.total = response.total
this.loading = false this.loading = false
} }
......
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