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
c95a010d
Commit
c95a010d
authored
May 06, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加AO保留弹框自定义组件开发
parent
d74a8ab3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
95 additions
and
0 deletions
+95
-0
index.vue
...mponents/components/AddExtRetentionDetailDialog/index.vue
+95
-0
No files found.
applications/dee-mes/src/privateComponents/components/AddExtRetentionDetailDialog/index.vue
0 → 100644
View file @
c95a010d
/**
* @Description:
* @author gjn
* @date 2024/05/06
*/
<
template
>
<div
class=
"AddExtRetentionDetailDialog-dialog"
>
<dee-as-com
ref=
"tableCom"
class=
"list-table"
:lay-config=
"
{ typeName: 'ExtProcessPlan', layKey: 'addExtRetentionLists'}"
@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
>
export
default
{
componentName
:
'添加AO保留弹框'
,
name
:
'AddExtRetentionDetailDialog'
,
components
:
{},
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
{}
},
parentTableData
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{
selection
:
[],
defaultData
:
{}
}
},
computed
:
{},
watch
:
{},
mounted
()
{},
methods
:
{
findByNameVnode
(
obj
,
targetName
)
{
if
(
obj
&&
obj
.
$vnode
&&
obj
.
$vnode
.
tag
&&
obj
.
$vnode
.
tag
.
includes
(
targetName
))
{
return
obj
}
else
{
return
this
.
findByNameVnode
(
obj
.
$parent
,
targetName
)
}
},
selectionChange
(
val
)
{
this
.
selection
=
val
},
submitEvent
()
{
if
(
this
.
selection
.
length
)
{
const
showData
=
this
.
findByNameVnode
(
this
,
'DeeAsTable'
).
showData
if
(
showData
.
length
)
{
this
.
selection
=
this
.
selection
.
filter
(
item
=>
!
showData
.
some
(
x
=>
x
.
lifecycleTemplateId
===
item
.
lifecycleTemplateId
))
}
const
data
=
this
.
selection
.
map
(
item
=>
{
item
.
operator
=
'ADD'
item
.
id
=
null
return
item
})
this
.
$emit
(
'submitEvent'
,
{
formData
:
data
})
}
},
cancelEvent
()
{
this
.
$emit
(
'cancel'
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
.AddExtRetentionDetailDialog-dialog
{
.list-table
{
height
:
510px
!
important
;
}
.foot-btn-box
{
display
:
flex
;
justify-content
:
center
;
align-content
:
center
;
margin-top
:
10px
;
}
.search-box-col
{
width
:
300px
!
important
;
}
.w60
{
width
:
30px
!
important
;
}
}
</
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