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
16f95723
Commit
16f95723
authored
May 09, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加AO保留弹框增加AO续保留逻辑
parent
0403aa26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
index.vue
...mponents/components/AddExtRetentionDetailDialog/index.vue
+20
-6
No files found.
applications/dee-mes/src/privateComponents/components/AddExtRetentionDetailDialog/index.vue
View file @
16f95723
...
...
@@ -9,7 +9,7 @@
ref=
"tableCom"
:basic-data=
"
{...basicData,dictOptions}"
class="list-table"
:lay-config="
{ typeName: 'ExtProcessPlan', layKey: 'addExtRetentionLists'}
"
:lay-config="
layConfig
"
@selectionChange="selectionChange"
/>
<div
slot=
"footer"
class=
"foot-btn-box"
>
...
...
@@ -29,7 +29,7 @@ export default {
type
:
Object
,
default
:
()
=>
{}
},
parentTableData
:
{
componentProp
:
{
type
:
Object
,
default
:
()
=>
{}
}
...
...
@@ -37,11 +37,23 @@ export default {
data
()
{
return
{
selection
:
[],
dictOptions
:
[]
dictOptions
:
[],
layConfig
:
{
typeName
:
'ExtProcessPlan'
,
layKey
:
'addExtRetentionLists'
}
}
},
computed
:
{},
watch
:
{},
watch
:
{
'componentProp.name'
:
{
immediate
:
true
,
handler
(
val
)
{
if
(
val
===
'添加AO保留'
)
{
this
.
layConfig
=
{
typeName
:
'ExtProcessPlan'
,
layKey
:
'addExtRetentionLists'
}
}
else
{
this
.
layConfig
=
{
typeName
:
'ExtProcessPlan'
,
layKey
:
'addOtherExtRetentionLists'
}
}
}
}
},
created
()
{
this
.
getDictData
()
},
...
...
@@ -72,9 +84,11 @@ export default {
if
(
this
.
selection
.
length
)
{
const
showData
=
this
.
findByNameVnode
(
this
,
'DeeAsTable'
).
showData
if
(
showData
.
length
)
{
this
.
selection
=
this
.
selection
.
filter
(
item
=>
!
showData
.
some
(
x
=>
x
.
targetId
===
item
.
id
))
const
validId
=
this
.
componentProp
.
name
===
'添加AO保留'
?
'id'
:
'targetId'
this
.
selection
=
this
.
selection
.
filter
(
item
=>
!
showData
.
some
(
x
=>
x
.
targetId
===
item
[
validId
]))
}
const
data
=
this
.
selection
.
map
(
item
=>
{
const
data
=
this
.
selection
.
map
(
row
=>
{
const
item
=
this
.
componentProp
.
name
===
'添加AO保留'
?
row
:
row
.
target
return
{
operator
:
'ADD'
,
dictOptions
:
this
.
dictOptions
,
...
...
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