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) { ...@@ -32,7 +32,7 @@ export function fetchTree(query) {
export function addObj(obj) { export function addObj(obj) {
return request({ return request({
url: '/admin/menu/', url: '/admin/menu',
method: 'post', method: 'post',
data: obj data: obj
}) })
......
...@@ -22,7 +22,7 @@ RouterPlugin.install = function(router, store) { ...@@ -22,7 +22,7 @@ RouterPlugin.install = function(router, store) {
safe: this, safe: this,
// 设置标题 // 设置标题
setTitle: function(title) { setTitle: function(title) {
title = title ? `${title}——Avue 通用管理 系统快速开发框架` : 'Avue 通用管理 系统快速开发框架'; title = title ? `${title}——PigX微服务快速开发框架` : 'PigX微服务快速开发框架';
document.title = title; document.title = title;
}, },
closeTag: (value) => { closeTag: (value) => {
......
...@@ -76,8 +76,8 @@ export default { ...@@ -76,8 +76,8 @@ export default {
fetchList(Object.assign({ fetchList(Object.assign({
orderByField: 'create_time', orderByField: 'create_time',
isAsc: false, isAsc: false,
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.tableData = response.data.data.records this.tableData = response.data.data.records
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -83,8 +83,8 @@ ...@@ -83,8 +83,8 @@
fetchList(Object.assign({ fetchList(Object.assign({
orderByField: 'create_time', orderByField: 'create_time',
isAsc: false, isAsc: false,
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.tableData = response.data.data.records this.tableData = response.data.data.records
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -86,8 +86,8 @@ export default { ...@@ -86,8 +86,8 @@ export default {
fetchList(Object.assign({ fetchList(Object.assign({
orderByField: 'create_time', orderByField: 'create_time',
isAsc: false, isAsc: false,
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.tableData = response.data.data.records this.tableData = response.data.data.records
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -98,8 +98,8 @@ ...@@ -98,8 +98,8 @@
getList(page,params) { getList(page,params) {
this.tableLoading = true this.tableLoading = true
fetchList(Object.assign({ fetchList(Object.assign({
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.tableData = response.data.data.records this.tableData = response.data.data.records
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -76,8 +76,8 @@ export default { ...@@ -76,8 +76,8 @@ export default {
getList(page,params) { getList(page,params) {
this.tableLoading = true this.tableLoading = true
fetchList(Object.assign({ fetchList(Object.assign({
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.tableData = response.data.data.records this.tableData = response.data.data.records
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -76,8 +76,8 @@ export default { ...@@ -76,8 +76,8 @@ export default {
getList (page,params) { getList (page,params) {
this.tableLoading = true this.tableLoading = true
fetchList(Object.assign({ fetchList(Object.assign({
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.tableData = response.data.data.records this.tableData = response.data.data.records
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -84,8 +84,8 @@ export default { ...@@ -84,8 +84,8 @@ export default {
getList (page,params) { getList (page,params) {
this.tableLoading = true this.tableLoading = true
fetchList(Object.assign({ fetchList(Object.assign({
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.tableData = response.data.data.records this.tableData = response.data.data.records
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -71,8 +71,8 @@ export default { ...@@ -71,8 +71,8 @@ export default {
fetchList(Object.assign({ fetchList(Object.assign({
orderByField: 'create_time', orderByField: 'create_time',
isAsc: false, isAsc: false,
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.tableData = response.data.data.records this.tableData = response.data.data.records
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -139,8 +139,8 @@ export default { ...@@ -139,8 +139,8 @@ export default {
getList (page, params) { getList (page, params) {
this.listLoading = true this.listLoading = true
fetchList(Object.assign({ fetchList(Object.assign({
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.list = response.data.data.records this.list = response.data.data.records
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -84,8 +84,8 @@ export default { ...@@ -84,8 +84,8 @@ export default {
getList (page,params) { getList (page,params) {
this.tableLoading = true this.tableLoading = true
fetchList(Object.assign({ fetchList(Object.assign({
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.tableData = response.data.data.records this.tableData = response.data.data.records
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -68,8 +68,8 @@ export default { ...@@ -68,8 +68,8 @@ export default {
getList(page,params) { getList(page,params) {
this.tableLoading = true this.tableLoading = true
fetchList(Object.assign({ fetchList(Object.assign({
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.tableData = response.data.data.records this.tableData = response.data.data.records
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -192,8 +192,8 @@ export default { ...@@ -192,8 +192,8 @@ export default {
getList (page, params) { getList (page, params) {
this.listLoading = true; this.listLoading = true;
fetchList(Object.assign({ fetchList(Object.assign({
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.list = response.data.data.records; this.list = response.data.data.records;
this.page.total = response.data.data.total this.page.total = response.data.data.total
......
...@@ -71,8 +71,8 @@ export default { ...@@ -71,8 +71,8 @@ export default {
getList (page,params) { getList (page,params) {
this.tableLoading = true this.tableLoading = true
fetchList(Object.assign({ fetchList(Object.assign({
page: page.currentPage, current: page.currentPage,
limit: page.pageSize size: page.pageSize
}, params)).then(response => { }, params)).then(response => {
this.tableData = response.data.data.records this.tableData = response.data.data.records
this.page.total = response.data.data.total 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