Commit a60da243 authored by liwei's avatar liwei

修改了日志查询接口接参

parent 10552f67
...@@ -295,8 +295,8 @@ export default { ...@@ -295,8 +295,8 @@ 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) { if (response.data !== undefined) {
this.list = response.rows.map(item => { this.list = response.data.map(item => {
const title = item.title const title = item.title
if (title) { if (title) {
const temp = title.split('-') const temp = title.split('-')
......
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,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 => {
this.list = response.rows this.list = response.data
this.total = response.total this.total = response.total
this.loading = false this.loading = false
}) })
......
...@@ -340,8 +340,8 @@ export default { ...@@ -340,8 +340,8 @@ 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) { if (response.data !== undefined) {
this.list = response.rows.map(item => { this.list = response.data.map(item => {
const title = item.title const title = item.title
if (title) { if (title) {
const temp = title.split('-') const temp = title.split('-')
......
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