Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
76c0ee1d
authored
2025-08-19 16:31:46 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
入表功调整
1 parent
5be8f1fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
src/views/data_entry/index.vue
src/views/data_entry/index.vue
View file @
76c0ee1
...
...
@@ -427,8 +427,7 @@ const inputEventChange = (val, scope, field) => {
}
// 重命名
const
setName
=
(
name
,
level
)
=>
{
const
rIndex
=
currentRow
.
value
.
$index
;
const
setName
=
(
name
,
level
,
rIndex
)
=>
{
let
rowData
=
tableData
.
value
[
rIndex
];
rowData
[
`name
${
level
}
`
]
=
name
;
}
...
...
@@ -516,7 +515,7 @@ const btnClick = async (btn, bType = null) => {
const
name
=
value
.
trim
();
if
(
type
==
'edit'
)
{
if
(
value
==
inputVal
)
return
setName
(
name
,
level
);
setName
(
name
,
level
,
rIndex
);
}
else
if
(
type
==
'add-same'
)
{
const
tData
=
rowList
.
at
(
-
1
);
const
tIndex
=
tableData
.
value
.
findIndex
(
t
=>
(
tData
.
code4
?
t
.
code4
===
tData
.
code4
:
t
.
code3
===
tData
.
code3
));
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment