Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
黄瑜
VueElementTemplate
Commits
575919e4
Commit
575919e4
authored
Feb 22, 2018
by
王康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决eslint警告
parent
61bad672
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
HmComplexForm.vue
src/views/haomo/components/forms/HmComplexForm.vue
+3
-3
No files found.
src/views/haomo/components/forms/HmComplexForm.vue
View file @
575919e4
...
...
@@ -130,10 +130,10 @@
// console.log(self.showFields)
}
else
{
// 如果传入了fields,则只显示传入的字段
self
.
showFields
=
JSON
.
parse
(
JSON
.
stringify
(
self
.
fields
))
console
.
log
(
'1111111'
)
//
console.log('1111111')
// console.log(self.showFields)
// 将字符串对象进行替换处理
_
.
each
(
self
.
showFields
,
function
(
column
,
index
)
{
_
.
each
(
self
.
showFields
,
function
(
column
,
index
)
{
if
(
typeof
column
===
'string'
)
{
// 生成一个新对象
const
tmp
=
_
.
keyBy
(
self
.
schema
[
'columns'
],
'code'
)[
column
.
toUpperCase
()]
...
...
@@ -142,7 +142,7 @@
self
.
$set
(
self
.
showFields
,
index
,
tmp
)
}
})
console
.
log
(
'2222222'
)
//
console.log('2222222')
console
.
log
(
self
.
showFields
)
}
// 提取v-model绑定的变量
...
...
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