Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
strategy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
strategy-ui
Commits
7b5ff340
Commit
7b5ff340
authored
Jan 09, 2020
by
derong.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改初始化问题
parent
40682485
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
31 deletions
+63
-31
prod.config.js
src/config/prod.config.js
+1
-1
strategymange.vue
src/pages/strategymange.vue
+62
-30
No files found.
src/config/prod.config.js
View file @
7b5ff340
const
sapi
=
'
http://s-engine.quantgroup.cn
'
const
sapi
=
'
http://
api.
s-engine.quantgroup.cn
'
export
{
sapi
}
src/pages/strategymange.vue
View file @
7b5ff340
...
...
@@ -185,8 +185,31 @@ export default {
maintitleuid
:
''
,
detailtitleuid
:
''
,
soul
:
''
,
leftarr
:
[],
rightarr
:
[],
mainUid
:
''
,
leftarr
:
[
{
strategyUid
:
''
,
uid
:
''
,
title
:
''
,
orderNo
:
''
,
editstaus
:
true
,
editshowstaus
:
false
,
showtitlechlid
:
false
,
keyResultsVOList
:
[]
}
],
rightarr
:
[
{
strategyUid
:
''
,
uid
:
''
,
title
:
''
,
orderNo
:
''
,
editstaus
:
true
,
editshowstaus
:
false
,
showtitlechlid
:
false
,
keyResultsVOList
:
[]
}
],
resultarr
:
[],
leftmyArray
:
[],
addarr
:
[],
...
...
@@ -289,7 +312,7 @@ export default {
this
.
leftarr
[
ind
].
title
=
item
.
title
this
.
leftarr
=
[...
this
.
leftarr
]
let
params
=
{
strategyUid
:
item
.
strategyUid
,
strategyUid
:
item
.
strategyUid
===
''
?
this
.
mainUid
:
item
.
strategyUid
,
uid
:
item
.
uid
,
title
:
item
.
title
,
orderNo
:
item
.
orderNo
===
''
?
this
.
leftarr
.
length
:
item
.
orderNo
,
...
...
@@ -318,7 +341,7 @@ export default {
this
.
rightarr
[
ind
].
title
=
item
.
title
this
.
rightarr
=
[...
this
.
rightarr
]
let
params
=
{
strategyUid
:
item
.
strategyUid
,
strategyUid
:
item
.
strategyUid
===
''
?
this
.
mainUid
:
item
.
strategyUid
,
uid
:
item
.
uid
,
title
:
item
.
title
,
orderNo
:
item
.
orderNo
===
''
?
this
.
rightarr
.
length
:
item
.
orderNo
,
...
...
@@ -535,7 +558,7 @@ export default {
},
oneaddtitle
()
{
this
.
leftarr
.
push
({
strategyUid
:
'
3d6768ad7c2a4eaa86a788527f05ca10
'
,
strategyUid
:
this
.
mainUid
,
uid
:
''
,
title
:
''
,
orderNo
:
''
,
...
...
@@ -547,7 +570,7 @@ export default {
},
oneaddtitleright
()
{
this
.
rightarr
.
push
({
strategyUid
:
'
3d6768ad7c2a4eaa86a788527f05ca10
'
,
strategyUid
:
this
.
mainUid
,
uid
:
''
,
title
:
''
,
orderNo
:
''
,
...
...
@@ -607,8 +630,11 @@ export default {
this
.
hosttitlespantitle
=
data
.
data
.
body
.
title
this
.
updatetime
=
data
.
data
.
body
.
modifyTime
this
.
maintitleuid
=
data
.
data
.
body
.
uid
this
.
mainUid
=
data
.
data
.
body
.
uid
if
(
data
.
data
.
body
.
leftObjectivesVOList
.
length
===
0
)
{
this
.
leftarr
=
this
.
leftarr
}
else
{
this
.
leftarr
=
data
.
data
.
body
.
leftObjectivesVOList
this
.
rightarr
=
data
.
data
.
body
.
rightObjectivesVOList
this
.
leftarr
.
map
(
item
=>
{
item
.
editstaus
=
false
item
.
editshowstaus
=
true
...
...
@@ -621,6 +647,11 @@ export default {
}))
||
null
return
item
})
}
if
(
data
.
data
.
body
.
rightObjectivesVOList
.
length
===
0
)
{
this
.
rightarr
=
this
.
rightarr
}
else
{
this
.
rightarr
=
data
.
data
.
body
.
rightObjectivesVOList
this
.
rightarr
.
map
(
item
=>
{
item
.
editstaus
=
false
item
.
editshowstaus
=
true
...
...
@@ -633,6 +664,7 @@ export default {
}))
||
null
return
item
})
}
})
}
},
...
...
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