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
b1c08492
Commit
b1c08492
authored
Apr 12, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式修改及代码格式化
parent
a29419ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
21 deletions
+35
-21
index.vue
...Components/components/AddAoInGeberalExperRecord/index.vue
+35
-21
No files found.
applications/dee-mes/src/privateComponents/components/AddAoInGeberalExperRecord/index.vue
View file @
b1c08492
<
template
>
<
template
>
<div
class=
"addAoInGeberalExperRecord-dialog"
>
<div
class=
"addAoInGeberalExperRecord"
>
<dee-as-com
:basicData=
"basicData"
ref=
"tablelists"
class=
"list-table"
table-height=
"50vh"
:lay-config=
"
{
<dee-as-com
typeName: 'ExtProcessPlan',
ref=
"tablelists"
layKey: 'addAoInGeberalExperRecord',
:basic-data=
"basicData"
}" @selectionChange="selectionChange" />
class=
"list-table"
table-height=
"50vh"
:lay-config=
"
{
typeName: 'ExtProcessPlan',
layKey: 'addAoInGeberalExperRecord',
}"
@selectionChange="selectionChange"
/>
<div
slot=
"footer"
class=
"foot-btn-box"
>
<div
slot=
"footer"
class=
"foot-btn-box"
>
<el-button
type=
"primary"
@
click=
"submitEvent"
>
确认
</el-button>
<el-button
type=
"primary"
@
click=
"submitEvent"
>
确认
</el-button>
<el-button
@
click=
"cancelEvent"
>
取消
</el-button>
<el-button
@
click=
"cancelEvent"
>
取消
</el-button>
...
@@ -20,7 +27,7 @@ export default {
...
@@ -20,7 +27,7 @@ export default {
basicData
:
{
basicData
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{
}
}
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -35,21 +42,21 @@ export default {
...
@@ -35,21 +42,21 @@ export default {
this
.
selection
=
val
this
.
selection
=
val
},
},
submitEvent
()
{
submitEvent
()
{
if
(
!
this
.
selection
||!
this
.
selection
.
length
)
return
this
.
$utils
.
showMessageWarning
(
'请选择数据!'
)
if
(
!
this
.
selection
||
!
this
.
selection
.
length
)
return
this
.
$utils
.
showMessageWarning
(
'请选择数据!'
)
const
params
=
this
.
selection
.
map
((
item
)
=>
{
const
params
=
this
.
selection
.
map
((
item
)
=>
{
return
{
return
{
sourceId
:
this
.
basicData
.
id
,
sourceId
:
this
.
basicData
.
id
,
sourceIdType
:
this
.
basicData
.
subTypeName
,
sourceIdType
:
this
.
basicData
.
subTypeName
,
targetId
:
item
.
id
,
targetId
:
item
.
id
,
targetIdType
:
item
.
subTypeName
,
targetIdType
:
item
.
subTypeName
,
operator
:
'ADD'
operator
:
'ADD'
}
}
})
})
post
(
'/ExperimentPlanLink/recursions'
,
params
).
then
(
res
=>
{
post
(
'/ExperimentPlanLink/recursions'
,
params
).
then
(
res
=>
{
this
.
cancelEvent
()
this
.
cancelEvent
()
this
.
$utils
.
showMessageSuccess
(
'保存成功'
)
this
.
$utils
.
showMessageSuccess
(
'保存成功'
)
this
.
$bus
.
$emit
(
'refreshExperimentPlanLink'
)
this
.
$bus
.
$emit
(
'refreshExperimentPlanLink'
)
})
})
},
},
cancelEvent
()
{
cancelEvent
()
{
this
.
$emit
(
'cancel'
)
this
.
$emit
(
'cancel'
)
...
@@ -58,4 +65,11 @@ export default {
...
@@ -58,4 +65,11 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.addAoInGeberalExperRecord
{
.foot-btn-box
{
display
:
flex
;
justify-content
:
center
;
padding
:
20px
}
}
</
style
>
</
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