fix(resettle1): 阶段架构状态字段错误问题修复
This commit is contained in:
parent
c48074a653
commit
ec31b46648
|
@ -148,7 +148,7 @@ export default {
|
|||
queryParams: {
|
||||
childNode: '',
|
||||
stage: 1,
|
||||
status: 0,
|
||||
stageStatus: 0,
|
||||
},
|
||||
stageList: [
|
||||
[
|
||||
|
@ -227,7 +227,7 @@ export default {
|
|||
this.stageName = this.stageList[0][0].label
|
||||
this.statusName = this.statusList[0][0].label
|
||||
this.queryParams.stage = this.stageList[0][0].value
|
||||
this.queryParams.status = this.statusList[0][0].value
|
||||
this.queryParams.stageStatus = this.statusList[0][0].value
|
||||
},
|
||||
//复制文字
|
||||
copyText() {
|
||||
|
@ -469,7 +469,7 @@ export default {
|
|||
this.stageListVisible = false
|
||||
},
|
||||
statusPickerHandleConfirm(e) {
|
||||
this.queryParams.status = e.value[0].value
|
||||
this.queryParams.stageStatus = e.value[0].value
|
||||
this.statusName = e.value[0].label
|
||||
this.statusListVisible = false
|
||||
},
|
||||
|
@ -487,8 +487,8 @@ export default {
|
|||
this.childNodeList = res.data
|
||||
// 格式化为picker需要的数据格式
|
||||
this.childNodeColumns = [res.data]
|
||||
this.queryParams.childNode = res.data[0].childNode
|
||||
this.selectedChildNodeName = res.data[0].childNode
|
||||
this.queryParams.childNode = res.data[0]?.childNode
|
||||
this.selectedChildNodeName = res.data[0]?.childNode
|
||||
resolve()
|
||||
}
|
||||
})
|
||||
|
@ -501,7 +501,16 @@ export default {
|
|||
},
|
||||
handleSearch() {
|
||||
this.getChildList().then(() => {
|
||||
this.getDataList()
|
||||
if (this.childNodeList.length > 0) {
|
||||
this.queryParams.childNode = this.childNodeList[0].childNode
|
||||
this.getDataList()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '当前筛选条件无数据',
|
||||
icon: 'none',
|
||||
})
|
||||
this.data = {}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
@ -510,7 +519,7 @@ export default {
|
|||
this.init()
|
||||
this.queryParams = {
|
||||
stage: this.stageList[0][0].value,
|
||||
status: this.statusList[0][0].value,
|
||||
stageStatus: this.statusList[0][0].value,
|
||||
}
|
||||
this.handleSearch()
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue