Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
memberTag
memberTag-web
Commits
e73d20f7
Commit
e73d20f7
authored
Jul 01, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 标签值
parent
7286cb28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
manualTagEdit.vue
src/view/manualTag/manualTagEdit.vue
+5
-4
No files found.
src/view/manualTag/manualTagEdit.vue
View file @
e73d20f7
...
...
@@ -333,12 +333,13 @@ export default {
return
this
.
$message
.
warning
(
'请不要复制多列'
);
}
const
data
=
$tds
.
filter
(
el
=>
el
.
length
>
0
).
map
(
el
=>
el
[
0
].
innerText
).
filter
(
el
=>
el
.
length
>
0
);
this
.
ruleForm
.
tagValue
=
this
.
ruleForm
.
tagValue
.
filter
(
el
=>
el
.
tagItemName
.
length
>
0
);
// 已经填写完成的标签值
const
fillData
=
this
.
ruleForm
.
tagValue
.
filter
(
el
=>
el
.
tagItemName
.
length
>
0
);
// 加上已填写的数据大于100时,不进行粘贴
if
(
this
.
ruleForm
.
tagValue
.
length
+
data
.
length
>
100
)
{
return
this
.
$message
.
warning
(
`最多可以复制
${
100
-
this
.
ruleForm
.
tagValue
.
length
}
个标签值`
);
if
(
(
fillData
.
length
+
data
.
length
)
>
100
)
{
return
this
.
$message
.
warning
(
`最多可以复制
${
100
-
fillData
.
length
}
个标签值`
);
}
this
.
ruleForm
.
tagValue
=
this
.
ruleForm
.
tagValue
.
concat
(
data
.
map
(
el
=>
{
this
.
ruleForm
.
tagValue
=
fillData
.
concat
(
data
.
map
(
el
=>
{
return
{
id
:
GenNonDuplicateID
(),
deleteFlag
:
false
,
...
...
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