完善代码

server_ui_dongxiaodong
dongxiaodong 2024-03-31 22:29:33 +08:00
parent fb9bd6f533
commit c301a0d82b
2 changed files with 18 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import request from '@/utils/request'
export function listTrouble(data) {
return request({
url: '/trouble/trouble/troubleList',
method: 'get',
method: 'post',
data: data
})
}

View File

@ -177,6 +177,15 @@
<el-button @click="cance"> </el-button>
</div>
</el-dialog>
<el-pagination
@size-change="handleSize"
@current-change="handleCurrent"
:current-page="queryParams.pageNum"
:page-sizes = "[2, 3 , 5, 10]"
:page-size="queryParams.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="100"></el-pagination>
</div>
</template>
@ -309,6 +318,14 @@ export default {
getTroubleGrade().then(res => {
this.grade = res
})
},
handleSize(val) {
this.queryParams.pageSize = val
this.getList()
},
handleCurrent(val) {
this.queryParams.pageNum = val
this.getList()
}
},
// - 访this",