|
|
|
@ -32,7 +32,7 @@ export default { |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
cardNo: { |
|
|
|
cardNo: { |
|
|
|
type: String, |
|
|
|
type: String, |
|
|
|
default: '', |
|
|
|
default: null, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: {}, |
|
|
|
components: {}, |
|
|
|
@ -175,7 +175,6 @@ export default { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
searchReset() { |
|
|
|
searchReset() { |
|
|
|
this.query = {}; |
|
|
|
this.query = {}; |
|
|
|
this.onLoad(this.page); |
|
|
|
this.onLoad(this.page); |
|
|
|
@ -215,19 +214,22 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
onLoad(page, params = {}) { |
|
|
|
onLoad(page, params = {}) { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
getWorkPlanPreserve(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
getWorkPlanPreserve(Object.assign(params, this.query)) |
|
|
|
|
|
|
|
.then(res => { |
|
|
|
this.data = res.data.data; |
|
|
|
this.data = res.data.data; |
|
|
|
this.loading = false; |
|
|
|
this.loading = false; |
|
|
|
this.page.total = res.data.data.total; |
|
|
|
// this.page.total = res.data.data.total; |
|
|
|
}).catch(err=>{ |
|
|
|
|
|
|
|
this.loading = false |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
.catch(err => { |
|
|
|
|
|
|
|
this.loading = false; |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
console.log(8989898,this.cardNo) |
|
|
|
if (this.cardNo != '') { |
|
|
|
this.query.cardNo = this.cardNo |
|
|
|
this.query.cardNo = this.cardNo; |
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|