|
|
@@ -25,7 +25,7 @@
|
|
|
</div>
|
|
|
<avue-crud ref="crud"
|
|
|
v-model="form"
|
|
|
- :page="page"
|
|
|
+ v-model:page="page"
|
|
|
:before-open="beforeOpen"
|
|
|
:data="data"
|
|
|
:option="option"
|
|
|
@@ -281,21 +281,15 @@ export default {
|
|
|
this.active = index
|
|
|
this.onLoad({ stageId: item.id === -1 ? '' : item.id })
|
|
|
},
|
|
|
- // track(id) {
|
|
|
- // this.$router.push({
|
|
|
- // path: '/home/details',
|
|
|
- // query: {id: id, type: '1'}
|
|
|
- // })
|
|
|
- // },
|
|
|
onLoad (query = {}) {
|
|
|
this.loading = true
|
|
|
const data = { ...query, ...this.page }
|
|
|
- this.$api.project.projectList(data).then(res => {
|
|
|
+ this.$api.project.projectList(this.page.current, this.page.size, data).then(res => {
|
|
|
this.loading = false
|
|
|
if (res.code === 200) {
|
|
|
this.data = res.data.content
|
|
|
this.num = res.msg
|
|
|
- this.page.total = res.data.numberOfElements
|
|
|
+ this.page.total = res.data.totalElements
|
|
|
this.loading = false
|
|
|
}
|
|
|
this.getStageList()
|
|
|
@@ -318,15 +312,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
currentChange (currentPage) {
|
|
|
- this.page.currentPage = currentPage
|
|
|
- // this.refreshChange()
|
|
|
+ this.page.current = currentPage
|
|
|
+ console.log(this.page)
|
|
|
},
|
|
|
sizeChange (pageSize) {
|
|
|
- this.page.pageSize = pageSize
|
|
|
- // this.refreshChange()
|
|
|
+ this.page.size = pageSize
|
|
|
},
|
|
|
refreshChange () {
|
|
|
- this.onLoad(this.query)
|
|
|
+ this.onLoad()
|
|
|
},
|
|
|
rowDel (row) {
|
|
|
this.$confirm('确定删除选择的项目?', {
|