Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
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
中汽测评-信息安全测评系统
web
Commits
155a4121
Commit
155a4121
authored
Mar 19, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 创建/修改任务 - 样品信息不允许删除最后一个
parent
8c3e0824
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
CarInfo.vue
src/views/task/new/components/CarInfo.vue
+9
-0
PartInfo.vue
src/views/task/new/components/PartInfo.vue
+8
-0
No files found.
src/views/task/new/components/CarInfo.vue
View file @
155a4121
...
@@ -140,6 +140,15 @@ export default {
...
@@ -140,6 +140,15 @@ export default {
},
},
removeCard
(
index
)
{
removeCard
(
index
)
{
this
.
cards
.
splice
(
index
,
1
)
this
.
cards
.
splice
(
index
,
1
)
if
(
index
===
0
)
{
this
.
cards
.
push
({
flag
:
0
,
sampleId
:
''
,
// 样品编号id
identificationCode
:
''
,
sampleNumber
:
''
,
sampleName
:
''
})
}
},
},
emitChange
()
{
emitChange
()
{
this
.
$emit
(
'change'
,
this
.
cards
)
this
.
$emit
(
'change'
,
this
.
cards
)
...
...
src/views/task/new/components/PartInfo.vue
View file @
155a4121
...
@@ -108,6 +108,14 @@ export default {
...
@@ -108,6 +108,14 @@ export default {
},
},
removeCard
(
index
)
{
removeCard
(
index
)
{
this
.
cards
.
splice
(
index
,
1
)
this
.
cards
.
splice
(
index
,
1
)
if
(
index
===
0
)
{
this
.
cards
.
push
({
flag
:
1
,
sampleId
:
''
,
// 样品编号id
sampleNumber
:
''
,
// 样品编号
sampleName
:
''
// 样品名称
})
}
},
},
emitChange
()
{
emitChange
()
{
this
.
$emit
(
'change'
,
this
.
cards
)
this
.
$emit
(
'change'
,
this
.
cards
)
...
...
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