Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
a7376b36
Commit
a7376b36
authored
Sep 08, 2021
by
若依
Committed by
Gitee
Sep 08, 2021
Browse files
Options
Browse Files
Download
Plain Diff
!312 修复代码生成页面数据编辑保存之后总是跳转第一页的问题
Merge pull request !312 from 稚屿/master
parents
a5e38f6f
d2b61762
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
735 additions
and
732 deletions
+735
-732
ruoyi-ui/src/router/index.js
ruoyi-ui/src/router/index.js
+160
-160
ruoyi-ui/src/views/tool/gen/editTable.vue
ruoyi-ui/src/views/tool/gen/editTable.vue
+232
-232
ruoyi-ui/src/views/tool/gen/index.vue
ruoyi-ui/src/views/tool/gen/index.vue
+343
-340
No files found.
ruoyi-ui/src/router/index.js
View file @
a7376b36
...
@@ -144,7 +144,7 @@ export const constantRoutes = [
...
@@ -144,7 +144,7 @@ export const constantRoutes = [
hidden
:
true
,
hidden
:
true
,
children
:
[
children
:
[
{
{
path
:
'
index
/:tableId(
\\
d+)
'
,
path
:
'
index
'
,
component
:
(
resolve
)
=>
require
([
'
@/views/tool/gen/editTable
'
],
resolve
),
component
:
(
resolve
)
=>
require
([
'
@/views/tool/gen/editTable
'
],
resolve
),
name
:
'
GenEdit
'
,
name
:
'
GenEdit
'
,
meta
:
{
title
:
'
修改生成配置
'
,
activeMenu
:
'
/tool/gen
'
}
meta
:
{
title
:
'
修改生成配置
'
,
activeMenu
:
'
/tool/gen
'
}
...
...
ruoyi-ui/src/views/tool/gen/editTable.vue
View file @
a7376b36
...
@@ -157,7 +157,7 @@ export default {
...
@@ -157,7 +157,7 @@ export default {
};
};
},
},
created
()
{
created
()
{
const
tableId
=
this
.
$route
.
params
&&
this
.
$route
.
params
.
tableId
;
const
tableId
=
this
.
$route
.
query
&&
this
.
$route
.
query
.
tableId
;
if
(
tableId
)
{
if
(
tableId
)
{
// 获取表详细信息
// 获取表详细信息
getGenTable
(
tableId
).
then
(
res
=>
{
getGenTable
(
tableId
).
then
(
res
=>
{
...
@@ -212,7 +212,7 @@ export default {
...
@@ -212,7 +212,7 @@ export default {
/** 关闭按钮 */
/** 关闭按钮 */
close
()
{
close
()
{
this
.
$store
.
dispatch
(
"
tagsView/delView
"
,
this
.
$route
);
this
.
$store
.
dispatch
(
"
tagsView/delView
"
,
this
.
$route
);
this
.
$router
.
push
({
path
:
"
/tool/gen
"
,
query
:
{
t
:
Date
.
now
()
}})
this
.
$router
.
push
({
path
:
"
/tool/gen
"
,
query
:
{
t
:
Date
.
now
()
,
pageNum
:
this
.
$route
.
query
.
pageNum
}
})
}
}
},
},
mounted
()
{
mounted
()
{
...
...
ruoyi-ui/src/views/tool/gen/index.vue
View file @
a7376b36
...
@@ -238,7 +238,10 @@ export default {
...
@@ -238,7 +238,10 @@ export default {
const
time
=
this
.
$route
.
query
.
t
;
const
time
=
this
.
$route
.
query
.
t
;
if
(
time
!=
null
&&
time
!=
this
.
uniqueId
)
{
if
(
time
!=
null
&&
time
!=
this
.
uniqueId
)
{
this
.
uniqueId
=
time
;
this
.
uniqueId
=
time
;
this
.
resetQuery
();
this
.
queryParams
.
pageNum
=
Number
(
this
.
$route
.
query
.
pageNum
);
this
.
dateRange
=
[];
this
.
resetForm
(
"
queryForm
"
);
this
.
getList
();
}
}
},
},
methods
:
{
methods
:
{
...
@@ -319,7 +322,7 @@ export default {
...
@@ -319,7 +322,7 @@ export default {
/** 修改按钮操作 */
/** 修改按钮操作 */
handleEditTable
(
row
)
{
handleEditTable
(
row
)
{
const
tableId
=
row
.
tableId
||
this
.
ids
[
0
];
const
tableId
=
row
.
tableId
||
this
.
ids
[
0
];
this
.
$router
.
push
(
"
/tool/gen-edit/index/
"
+
tableId
);
this
.
$router
.
push
(
{
path
:
'
/tool/gen-edit/index
'
,
query
:
{
tableId
:
tableId
,
pageNum
:
this
.
queryParams
.
pageNum
}
});
},
},
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment