Commit 78ea4cef authored by 萌萌哒SAKURA酱's avatar 萌萌哒SAKURA酱

Upgrading ORM Framework from Mybatis Plus 2.x to Mybatis Plus 3.x

parent 133d8944
This diff is collapsed.
......@@ -32,7 +32,7 @@ export function fetchTree(query) {
export function addObj(obj) {
return request({
url: '/admin/menu/',
url: '/admin/menu',
method: 'post',
data: obj
})
......
......@@ -22,7 +22,7 @@ RouterPlugin.install = function(router, store) {
safe: this,
// 设置标题
setTitle: function(title) {
title = title ? `${title}——Avue 通用管理 系统快速开发框架` : 'Avue 通用管理 系统快速开发框架';
title = title ? `${title}——PigX微服务快速开发框架` : 'PigX微服务快速开发框架';
document.title = title;
},
closeTag: (value) => {
......@@ -143,4 +143,4 @@ RouterPlugin.install = function(router, store) {
}
}
}
export default RouterPlugin;
\ No newline at end of file
export default RouterPlugin;
......@@ -76,8 +76,8 @@ export default {
fetchList(Object.assign({
orderByField: 'create_time',
isAsc: false,
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
......
......@@ -83,8 +83,8 @@
fetchList(Object.assign({
orderByField: 'create_time',
isAsc: false,
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
......
......@@ -86,8 +86,8 @@ export default {
fetchList(Object.assign({
orderByField: 'create_time',
isAsc: false,
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
......
......@@ -98,8 +98,8 @@
getList(page,params) {
this.tableLoading = true
fetchList(Object.assign({
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
......
......@@ -76,8 +76,8 @@ export default {
getList(page,params) {
this.tableLoading = true
fetchList(Object.assign({
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
......
......@@ -76,8 +76,8 @@ export default {
getList (page,params) {
this.tableLoading = true
fetchList(Object.assign({
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
......
......@@ -84,8 +84,8 @@ export default {
getList (page,params) {
this.tableLoading = true
fetchList(Object.assign({
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
......
......@@ -71,8 +71,8 @@ export default {
fetchList(Object.assign({
orderByField: 'create_time',
isAsc: false,
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
......
......@@ -139,8 +139,8 @@ export default {
getList (page, params) {
this.listLoading = true
fetchList(Object.assign({
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.list = response.data.data.records
this.page.total = response.data.data.total
......
......@@ -84,8 +84,8 @@ export default {
getList (page,params) {
this.tableLoading = true
fetchList(Object.assign({
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
......
......@@ -68,8 +68,8 @@ export default {
getList(page,params) {
this.tableLoading = true
fetchList(Object.assign({
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
......
......@@ -192,8 +192,8 @@ export default {
getList (page, params) {
this.listLoading = true;
fetchList(Object.assign({
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.list = response.data.data.records;
this.page.total = response.data.data.total
......
......@@ -71,8 +71,8 @@ export default {
getList (page,params) {
this.tableLoading = true
fetchList(Object.assign({
page: page.currentPage,
limit: page.pageSize
current: page.currentPage,
size: page.pageSize
}, params)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment