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
a8f2ff45
Commit
a8f2ff45
authored
Sep 24, 2021
by
若依
Committed by
Gitee
Sep 24, 2021
Browse files
Options
Browse Files
Download
Plain Diff
!331 update 代码生成编辑页面 拼写错误修正
Merge pull request !331 from 疯狂的狮子Li/master
parents
64802828
eaa3baab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
ruoyi-ui/src/views/tool/gen/editTable.vue
ruoyi-ui/src/views/tool/gen/editTable.vue
+10
-10
No files found.
ruoyi-ui/src/views/tool/gen/editTable.vue
View file @
a8f2ff45
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
<el-tab-pane
label=
"基本信息"
name=
"basic"
>
<el-tab-pane
label=
"基本信息"
name=
"basic"
>
<basic-info-form
ref=
"basicInfo"
:info=
"info"
/>
<basic-info-form
ref=
"basicInfo"
:info=
"info"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"字段信息"
name=
"c
loum
"
>
<el-tab-pane
label=
"字段信息"
name=
"c
olumnInfo
"
>
<el-table
ref=
"dragTable"
:data=
"c
lo
umns"
row-key=
"columnId"
:max-height=
"tableHeight"
>
<el-table
ref=
"dragTable"
:data=
"c
ol
umns"
row-key=
"columnId"
:max-height=
"tableHeight"
>
<el-table-column
label=
"序号"
type=
"index"
min-width=
"5%"
class-name=
"allowDrag"
/>
<el-table-column
label=
"序号"
type=
"index"
min-width=
"5%"
class-name=
"allowDrag"
/>
<el-table-column
<el-table-column
label=
"字段列名"
label=
"字段列名"
...
@@ -141,13 +141,13 @@ export default {
...
@@ -141,13 +141,13 @@ export default {
data
()
{
data
()
{
return
{
return
{
// 选中选项卡的 name
// 选中选项卡的 name
activeName
:
"
c
loum
"
,
activeName
:
"
c
olumnInfo
"
,
// 表格的高度
// 表格的高度
tableHeight
:
document
.
documentElement
.
scrollHeight
-
245
+
"
px
"
,
tableHeight
:
document
.
documentElement
.
scrollHeight
-
245
+
"
px
"
,
// 表信息
// 表信息
tables
:
[],
tables
:
[],
// 表列信息
// 表列信息
c
lo
umns
:
[],
c
ol
umns
:
[],
// 字典信息
// 字典信息
dictOptions
:
[],
dictOptions
:
[],
// 菜单信息
// 菜单信息
...
@@ -161,7 +161,7 @@ export default {
...
@@ -161,7 +161,7 @@ export default {
if
(
tableId
)
{
if
(
tableId
)
{
// 获取表详细信息
// 获取表详细信息
getGenTable
(
tableId
).
then
(
res
=>
{
getGenTable
(
tableId
).
then
(
res
=>
{
this
.
c
lo
umns
=
res
.
data
.
rows
;
this
.
c
ol
umns
=
res
.
data
.
rows
;
this
.
info
=
res
.
data
.
info
;
this
.
info
=
res
.
data
.
info
;
this
.
tables
=
res
.
data
.
tables
;
this
.
tables
=
res
.
data
.
tables
;
});
});
...
@@ -184,7 +184,7 @@ export default {
...
@@ -184,7 +184,7 @@ export default {
const
validateResult
=
res
.
every
(
item
=>
!!
item
);
const
validateResult
=
res
.
every
(
item
=>
!!
item
);
if
(
validateResult
)
{
if
(
validateResult
)
{
const
genTable
=
Object
.
assign
({},
basicForm
.
model
,
genForm
.
model
);
const
genTable
=
Object
.
assign
({},
basicForm
.
model
,
genForm
.
model
);
genTable
.
columns
=
this
.
c
lo
umns
;
genTable
.
columns
=
this
.
c
ol
umns
;
genTable
.
params
=
{
genTable
.
params
=
{
treeCode
:
genTable
.
treeCode
,
treeCode
:
genTable
.
treeCode
,
treeName
:
genTable
.
treeName
,
treeName
:
genTable
.
treeName
,
...
@@ -220,10 +220,10 @@ export default {
...
@@ -220,10 +220,10 @@ export default {
const
sortable
=
Sortable
.
create
(
el
,
{
const
sortable
=
Sortable
.
create
(
el
,
{
handle
:
"
.allowDrag
"
,
handle
:
"
.allowDrag
"
,
onEnd
:
evt
=>
{
onEnd
:
evt
=>
{
const
targetRow
=
this
.
c
lo
umns
.
splice
(
evt
.
oldIndex
,
1
)[
0
];
const
targetRow
=
this
.
c
ol
umns
.
splice
(
evt
.
oldIndex
,
1
)[
0
];
this
.
c
lo
umns
.
splice
(
evt
.
newIndex
,
0
,
targetRow
);
this
.
c
ol
umns
.
splice
(
evt
.
newIndex
,
0
,
targetRow
);
for
(
let
index
in
this
.
c
lo
umns
)
{
for
(
let
index
in
this
.
c
ol
umns
)
{
this
.
c
lo
umns
[
index
].
sort
=
parseInt
(
index
)
+
1
;
this
.
c
ol
umns
[
index
].
sort
=
parseInt
(
index
)
+
1
;
}
}
}
}
});
});
...
...
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