Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-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
mes
mes-ui
Commits
a7623668
Commit
a7623668
authored
Jan 27, 2024
by
hiyonx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化样式
parent
3c7d11b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
index.vue
src/components/SapPropertyData/index.vue
+3
-7
No files found.
src/components/SapPropertyData/index.vue
View file @
a7623668
...
...
@@ -4,7 +4,7 @@
<el-row
class=
"form-wrap"
:gutter=
"gutter"
>
<div>
<template
v-for=
"(sapProperties, key) in sapPropertyMap"
>
<
div
class=
"separator"
>
{{
getViewTypeName
(
key
)
}}
</div
>
<
el-col
:span=
"24"
class=
"separator"
>
{{
getViewTypeName
(
key
)
}}
</el-col
>
<template
v-for=
"item in sapProperties"
>
<el-col
:span=
"span"
:key=
"item.id"
>
<el-form-item
:label=
"item.name"
:prop=
"key + '.' + item.sapField"
...
...
@@ -98,12 +98,8 @@ export default {
},
getViewTypeName
(
viewType
)
{
for
(
let
item
of
this
.
dict
.
type
.
sap_property_view
)
{
if
(
item
.
value
==
this
.
form
.
type
&&
item
.
raw
.
cssClass
===
viewType
)
{
return
item
.
label
}
}
return
viewType
let
viewTypeDict
=
this
.
dict
.
type
.
sap_property_view
.
find
(
item
=>
item
.
value
==
this
.
form
.
type
&&
item
.
raw
.
cssClass
===
viewType
)
||
{}
return
viewTypeDict
.
label
||
viewType
},
setData
(
data
,
sapData
,
sapPropertyMap
)
{
...
...
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