Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
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
TFMOM
TF-MOM-WEB
Commits
62af9e0d
Commit
62af9e0d
authored
Apr 11, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通用试验维护记录关联AO
parent
f1523e99
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
index.vue
...Components/components/AddAoInGeberalExperRecord/index.vue
+61
-0
No files found.
applications/dee-mes/src/privateComponents/components/AddAoInGeberalExperRecord/index.vue
0 → 100644
View file @
62af9e0d
<
template
>
<div
class=
"addAoInGeberalExperRecord-dialog"
>
<dee-as-com
:basicData=
"basicData"
ref=
"tablelists"
class=
"list-table"
table-height=
"50vh"
:lay-config=
"
{
typeName: 'ExtProcessPlan',
layKey: 'addAoInGeberalExperRecord',
}" @selectionChange="selectionChange" />
<div
slot=
"footer"
class=
"foot-btn-box"
>
<el-button
type=
"primary"
@
click=
"submitEvent"
>
确认
</el-button>
<el-button
@
click=
"cancelEvent"
>
取消
</el-button>
</div>
</div>
</
template
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
name
:
'AddAoInGeberalExperRecordDialog'
,
components
:
{},
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
{
}
},
},
data
()
{
return
{
selection
:
[]
}
},
computed
:
{},
mounted
()
{
},
methods
:
{
selectionChange
(
val
)
{
this
.
selection
=
val
},
submitEvent
()
{
if
(
!
this
.
selection
||!
this
.
selection
.
length
)
return
this
.
$utils
.
showMessageWarning
(
'请选择数据!'
)
const
params
=
this
.
selection
.
map
((
item
)
=>
{
return
{
sourceId
:
this
.
basicData
.
id
,
sourceIdType
:
this
.
basicData
.
subTypeName
,
targetId
:
item
.
id
,
targetIdType
:
item
.
subTypeName
,
operator
:
'ADD'
}
})
post
(
'/ExperimentPlanLink/recursions'
,
params
).
then
(
res
=>
{
this
.
cancelEvent
()
this
.
$utils
.
showMessageSuccess
(
'保存成功'
)
this
.
$bus
.
$emit
(
'refreshExperimentPlanLink'
)
})
},
cancelEvent
()
{
this
.
$emit
(
'cancel'
)
}
}
}
</
script
>
<
style
lang=
"scss"
>
</
style
>
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