|
|
|
|
@ -82,6 +82,8 @@
|
|
|
|
|
background
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
style="margin-top:16px"
|
|
|
|
|
@current-change="loadData"
|
|
|
|
|
@size-change="handleSizeChange"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<!-- 新增/编辑弹窗 -->
|
|
|
|
|
@ -213,6 +215,12 @@ function resetQuery() {
|
|
|
|
|
loadData()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 每页条数变化时重置到第1页并重新加载 */
|
|
|
|
|
function handleSizeChange() {
|
|
|
|
|
page.page = 1
|
|
|
|
|
loadData()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function handleAdd() {
|
|
|
|
|
editingId.value = null
|
|
|
|
|
Object.assign(form, { name: '', deviceCode: '', workshopId: undefined, collectAddressId: undefined, brandId: undefined, brandName: '', ipAddress: '', workerId: undefined })
|
|
|
|
|
|