Compare commits
5 Commits
a6229c5fb6
...
421673afcb
Author | SHA1 | Date |
---|---|---|
|
421673afcb | |
|
0215c0c600 | |
|
64e4d87f6d | |
|
b5fa07eee4 | |
|
e754739aa3 |
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue