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
eaa3baab
Commit
eaa3baab
authored
Sep 24, 2021
by
疯狂的狮子li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 代码生成编辑页面 拼写错误修正
parent
64802828
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 @
eaa3baab
...
...
@@ -4,8 +4,8 @@
<el-tab-pane
label=
"基本信息"
name=
"basic"
>
<basic-info-form
ref=
"basicInfo"
:info=
"info"
/>
</el-tab-pane>
<el-tab-pane
label=
"字段信息"
name=
"c
loum
"
>
<el-table
ref=
"dragTable"
:data=
"c
lo
umns"
row-key=
"columnId"
:max-height=
"tableHeight"
>
<el-tab-pane
label=
"字段信息"
name=
"c
olumnInfo
"
>
<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=
"字段列名"
...
...
@@ -141,13 +141,13 @@ export default {
data
()
{
return
{
// 选中选项卡的 name
activeName
:
"
c
loum
"
,
activeName
:
"
c
olumnInfo
"
,
// 表格的高度
tableHeight
:
document
.
documentElement
.
scrollHeight
-
245
+
"
px
"
,
// 表信息
tables
:
[],
// 表列信息
c
lo
umns
:
[],
c
ol
umns
:
[],
// 字典信息
dictOptions
:
[],
// 菜单信息
...
...
@@ -161,7 +161,7 @@ export default {
if
(
tableId
)
{
// 获取表详细信息
getGenTable
(
tableId
).
then
(
res
=>
{
this
.
c
lo
umns
=
res
.
data
.
rows
;
this
.
c
ol
umns
=
res
.
data
.
rows
;
this
.
info
=
res
.
data
.
info
;
this
.
tables
=
res
.
data
.
tables
;
});
...
...
@@ -184,7 +184,7 @@ export default {
const
validateResult
=
res
.
every
(
item
=>
!!
item
);
if
(
validateResult
)
{
const
genTable
=
Object
.
assign
({},
basicForm
.
model
,
genForm
.
model
);
genTable
.
columns
=
this
.
c
lo
umns
;
genTable
.
columns
=
this
.
c
ol
umns
;
genTable
.
params
=
{
treeCode
:
genTable
.
treeCode
,
treeName
:
genTable
.
treeName
,
...
...
@@ -220,10 +220,10 @@ export default {
const
sortable
=
Sortable
.
create
(
el
,
{
handle
:
"
.allowDrag
"
,
onEnd
:
evt
=>
{
const
targetRow
=
this
.
c
lo
umns
.
splice
(
evt
.
oldIndex
,
1
)[
0
];
this
.
c
lo
umns
.
splice
(
evt
.
newIndex
,
0
,
targetRow
);
for
(
let
index
in
this
.
c
lo
umns
)
{
this
.
c
lo
umns
[
index
].
sort
=
parseInt
(
index
)
+
1
;
const
targetRow
=
this
.
c
ol
umns
.
splice
(
evt
.
oldIndex
,
1
)[
0
];
this
.
c
ol
umns
.
splice
(
evt
.
newIndex
,
0
,
targetRow
);
for
(
let
index
in
this
.
c
ol
umns
)
{
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