fix(resettle1): childNode为空不请求列表

This commit is contained in:
woody 2025-09-26 09:29:22 +08:00
parent 09fabbe4ed
commit 8c33e7df41
1 changed files with 6 additions and 5 deletions

View File

@ -148,7 +148,7 @@ export default {
queryParams: { queryParams: {
childNode: '', childNode: '',
stage: 1, stage: 1,
stageStatus: 0, stageStatus: null,
}, },
stageList: [ stageList: [
[ [
@ -199,7 +199,9 @@ export default {
onLoad() { onLoad() {
this.init() this.init()
this.getChildList().then(() => { this.getChildList().then(() => {
if (this.queryParams.childNode) {
this.getDataList() this.getDataList()
}
}) })
}, },
@ -225,9 +227,8 @@ export default {
methods: { methods: {
init() { init() {
this.stageName = this.stageList[0][0].label this.stageName = this.stageList[0][0].label
this.statusName = this.statusList[0][0].label // this.statusName = this.statusList[0][0].label
this.queryParams.stage = this.stageList[0][0].value this.queryParams.stage = this.stageList[0][0].value
this.queryParams.stageStatus = this.statusList[0][0].value
}, },
// //
copyText() { copyText() {
@ -522,7 +523,7 @@ export default {
stage: this.stageList[0][0].value, stage: this.stageList[0][0].value,
stageStatus: this.statusList[0][0].value, stageStatus: this.statusList[0][0].value,
} }
this.handleSearch() // this.handleSearch()
}, },
}, },
} }