diff --git a/src/views/jhzx/sygdSH.vue b/src/views/jhzx/sygdSH.vue index 61a6640..d9f1b30 100644 --- a/src/views/jhzx/sygdSH.vue +++ b/src/views/jhzx/sygdSH.vue @@ -430,8 +430,8 @@ export default { this.$message.warning('选择时间范围') return } - getList(this.queryParam).then((res) => { - this.list = res.data.list + getSygdList(this.queryParam).then((res) => { + this.list = res.data if (this.$refs.xGrid) { this.$refs.xGrid.loadData(this.list) } @@ -439,7 +439,11 @@ export default { }) }, tj(){ - sh(this.checkedList).then((res)=>{ + const data={ + from:this.queryParam.beginTime, + to:this.queryParam.endTime, + } + sh(data).then((res)=>{ if (res){ this.$message({ message: '提交成功', type: 'success' }) this.initList() diff --git a/src/views/jhzx/sygdWH.vue b/src/views/jhzx/sygdWH.vue index d0b5020..fd6dd34 100644 --- a/src/views/jhzx/sygdWH.vue +++ b/src/views/jhzx/sygdWH.vue @@ -431,7 +431,7 @@ export default { return } getSygdList(this.queryParam).then((res) => { - this.list = res.data.list + this.list = res.data if (this.$refs.xGrid) { this.$refs.xGrid.loadData(this.list) } @@ -439,7 +439,11 @@ export default { }) }, tj(){ - tj(this.checkedList).then((res)=>{ + const data={ + from:this.queryParam.beginTime, + to:this.queryParam.endTime, + } + tj(data).then((res)=>{ if (res){ this.$message({ message: '提交成功', type: 'success' }) this.initList()