Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
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
daywrite
bms-vue-obear
Commits
2de7ef32
Commit
2de7ef32
authored
Mar 15, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
15d6dbcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
settingMixin.js
src/components/common/settingMixin.js
+6
-5
No files found.
src/components/common/settingMixin.js
View file @
2de7ef32
...
...
@@ -5,11 +5,15 @@ import {
export
default
{
data
()
{
return
{
createdBy
Array
:
[]
retNew
Array
:
[]
}
},
computed
:
{
createdByArray
()
{
let
ret
=
this
.
retNewArray
.
find
(
item
=>
item
.
key
===
this
.
selectKeyFormat
(
'created_by'
))
return
ret
&&
[].
concat
(
ret
.
value
)
}
},
methods
:
{
...
...
@@ -27,10 +31,7 @@ export default {
getNewArray
()
{
requestWithJsonAPI
(
api
.
getSaveNew
)
.
then
((
res
)
=>
{
return
res
.
options
}).
then
((
opt
)
=>
{
let
ret
=
opt
.
find
(
item
=>
item
.
key
===
this
.
selectKeyFormat
(
'created_by'
))
this
.
createdByArray
=
ret
&&
[].
concat
(
ret
.
value
)
this
.
retNewArray
=
res
.
options
})
}
}
...
...
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