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
f301b884
Commit
f301b884
authored
Jan 22, 2024
by
hiyonx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SAP数据bug修复
parent
4772c8fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
index.vue
src/components/SapPropertyData/index.vue
+6
-7
No files found.
src/components/SapPropertyData/index.vue
View file @
f301b884
...
...
@@ -7,9 +7,9 @@
<div
class=
"separator"
>
{{
getViewTypeName
(
key
)
}}
</div>
<template
v-for=
"item in sapProperties"
>
<el-col
:span=
"span"
:key=
"item.id"
>
<el-form-item
:label=
"item.name"
:prop=
"item.sapField"
:rules=
"
{required: item.required, validator: (rule, value, callback) => onValidate(rule, value, callback, item), trigger: ['
blur', '
change']}">
<el-input-all
v-model=
"sapData[item.sapField]"
:item=
"item"
/>
<el-form-item
:label=
"item.name"
:prop=
"
key + '.' +
item.sapField"
:rules=
"
{required: item.required, validator: (rule, value, callback) => onValidate(rule, value, callback, item), trigger: ['change']}">
<el-input-all
v-model=
"sapData[
key][
item.sapField]"
:item=
"item"
/>
</el-form-item>
</el-col>
</
template
>
...
...
@@ -112,12 +112,13 @@ export default {
sapData
[
key
][
property
.
sapField
]
=
propertyData
||
sapData
[
key
][
property
.
sapField
]
}
}
console
.
log
(
sapData
)
this
.
sapData
=
sapData
console
.
log
(
sapData
)
this
.
sapPropertyMap
=
sapPropertyMap
console
.
log
(
sapPropertyMap
)
},
init
(
type
,
relationId
,
data
=
{})
{
console
.
log
(
relationId
)
this
.
$refs
.
form
&&
this
.
$refs
.
form
.
resetFields
()
this
.
form
.
type
=
type
this
.
form
.
relationId
=
relationId
...
...
@@ -130,8 +131,6 @@ export default {
sapPropertyMap
[
item
.
viewType
].
push
(
item
)
return
sapPropertyMap
},
{})
console
.
log
(
sapPropertyMap
)
this
.
sapPropertyMap
=
sapPropertyMap
if
(
relationId
)
{
// 获取sap特性值
listData
({
type
,
relationId
}).
then
(
resp
=>
{
...
...
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