mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 20:49:00 +08:00
🔊 Adding logs. add method log @SysLog
This commit is contained in:
1 parent
c77668bd0a
commit
fa01371f09
17 files changed
+86
-45
No files matched your search
@@ -23,9 +23,8 @@
|
||||
:data="tableData"
|
||||
:table-loading="tableLoading"
|
||||
:option="tableOption"
|
||||
@current-change="currentChange"
|
||||
@on-load="getList"
|
||||
@refresh-change="refreshChange"
|
||||
@size-change="sizeChange"
|
||||
@row-update="handleUpdate"
|
||||
@row-save="handleSave"
|
||||
@row-del="rowDel">
|
||||
@@ -70,40 +69,28 @@
|
||||
currentPage: 1, // 当前页数
|
||||
pageSize: 20 // 每页显示多少条
|
||||
},
|
||||
listQuery: {
|
||||
page: 1,
|
||||
limit: 20
|
||||
},
|
||||
tableLoading: false,
|
||||
tableOption: tableOption
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
mounted: function() { },
|
||||
computed: {
|
||||
...mapGetters(['permissions'])
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
getList(page, params) {
|
||||
this.tableLoading = true
|
||||
fetchList(this.listQuery).then(response => {
|
||||
fetchList(Object.assign({
|
||||
page: page.currentPage,
|
||||
limit: page.pageSize
|
||||
}, params)).then(response => {
|
||||
this.tableData = response.data.records
|
||||
this.page.total = response.data.total
|
||||
this.tableLoading = false
|
||||
})
|
||||
},
|
||||
currentChange(val) {
|
||||
this.page.currentPage = val
|
||||
this.listQuery.page = val
|
||||
this.getList()
|
||||
},
|
||||
sizeChange(val) {
|
||||
this.page.pageSize = val
|
||||
this.listQuery.limit = val
|
||||
this.getList()
|
||||
},
|
||||
/**
|
||||
* @title 打开新增窗口
|
||||
* @detail 调用crud的handleadd方法即可
|
||||
@@ -154,7 +141,7 @@
|
||||
type: 'success'
|
||||
})
|
||||
done()
|
||||
this.getList()
|
||||
this.getList(this.page)
|
||||
})
|
||||
},
|
||||
/**
|
||||
@@ -172,14 +159,14 @@
|
||||
type: 'success'
|
||||
})
|
||||
done()
|
||||
this.getList()
|
||||
this.getList(this.page)
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 刷新回调
|
||||
*/
|
||||
refreshChange() {
|
||||
this.getList()
|
||||
this.getList(this.page)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user