Compare commits

...

5 Commits

1 changed files with 10 additions and 9 deletions

View File

@ -227,7 +227,7 @@ export default {
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 50,
stage: 1, stage: 1,
stageStatus: null, stageStatus: null,
childNode: '', childNode: '',
@ -259,7 +259,7 @@ export default {
// //
stageName: '阶段一', stageName: '阶段一',
statusName: '全部', statusName: '全部',
selectedStatusValue: '', // selectedStatusValue: 1, //
// //
selectedPoint: {}, selectedPoint: {},
@ -289,10 +289,11 @@ export default {
init() { init() {
this.stageName = this.stageOptions[0][0].label this.stageName = this.stageOptions[0][0].label
this.queryParams.stage = this.stageOptions[0][0].value this.queryParams.stage = this.stageOptions[0][0].value
// "" // ""
this.selectedStatusValue = this.statusOptions[0][0].value const statusIndex = 1
this.statusName = this.statusOptions[0][0].label this.selectedStatusValue = this.statusOptions[0][statusIndex].value
this.queryParams.stageStatus = this.selectedStatusValue || null this.statusName = this.statusOptions[0][statusIndex].label
this.queryParams.stageStatus = this.selectedStatusValue
this.loadPointList() this.loadPointList()
}, },
@ -307,15 +308,15 @@ export default {
const res = await arc.getAzFrameworkList(this.queryParams) const res = await arc.getAzFrameworkList(this.queryParams)
if (res.code === 200 && res.data) { if (res.code === 200 && res.rows) {
const newData = res.data.rows || [] const newData = res.rows || []
if (this.currentPage === 1) { if (this.currentPage === 1) {
this.pointList = newData this.pointList = newData
} else { } else {
this.pointList = [...this.pointList, ...newData] this.pointList = [...this.pointList, ...newData]
} }
this.total = res.data.total || 0 this.total = res.total || 0
// hasMore // hasMore
this.hasMore = this.hasMore =