Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-ui
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
pda
pda-ui
Commits
5d81d436
Commit
5d81d436
authored
Jan 25, 2024
by
hiyonx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sap特性优化
parent
e3a1ec34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
index.vue
src/components/SapPropertyData/index.vue
+3
-3
No files found.
src/components/SapPropertyData/index.vue
View file @
5d81d436
...
...
@@ -118,13 +118,13 @@ export default {
console
.
log
(
sapPropertyMap
)
},
init
(
type
,
relationId
,
data
=
{})
{
init
(
type
,
viewType
,
relationId
,
data
=
{})
{
this
.
$refs
.
form
&&
this
.
$refs
.
form
.
resetFields
()
this
.
form
.
type
=
type
this
.
form
.
relationId
=
relationId
let
sapData
=
{}
// 获取sap特性列表
listByType
({
type
}).
then
(
res
=>
{
listByType
({
type
,
viewType
}).
then
(
res
=>
{
let
sapProperties
=
res
.
data
||
[]
let
sapPropertyMap
=
sapProperties
.
reduce
((
sapPropertyMap
,
item
)
=>
{
if
(
!
sapPropertyMap
[
item
.
viewType
])
sapPropertyMap
[
item
.
viewType
]
=
[]
...
...
@@ -133,7 +133,7 @@ export default {
},
{})
if
(
relationId
)
{
// 获取sap特性值
listData
({
type
,
relationId
}).
then
(
resp
=>
{
listData
({
type
,
viewType
,
relationId
}).
then
(
resp
=>
{
let
row
=
resp
.
rows
[
0
]
||
{
sapData
:
'{}'
}
this
.
form
.
id
=
row
.
id
sapData
=
JSON
.
parse
(
row
.
sapData
)
...
...
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