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
45c18b01
Commit
45c18b01
authored
Jan 06, 2020
by
derong.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
6f5255a4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
153 additions
and
28 deletions
+153
-28
home.vue
src/components/home.vue
+49
-0
login.vue
src/components/login.vue
+1
-2
detailstrategy.vue
src/pages/detailstrategy.vue
+43
-3
sourcematerial.vue
src/pages/sourcematerial.vue
+20
-4
strategymange.vue
src/pages/strategymange.vue
+40
-19
bg.jpg
static/bg.jpg
+0
-0
logbg.jpg
static/logbg.jpg
+0
-0
loginbg.jpg
static/loginbg.jpg
+0
-0
No files found.
src/components/home.vue
View file @
45c18b01
...
@@ -138,6 +138,55 @@ export default {
...
@@ -138,6 +138,55 @@ export default {
margin-right
:
30px
;
margin-right
:
30px
;
color
:
#0092ff
color
:
#0092ff
}
}
.layout
{
border
:
1px
solid
#d7dde4
;
background
:
#f5f7f9
;
position
:
relative
;
border-radius
:
4px
;
overflow
:
hidden
;
}
.layout-header-bar
{
background
:
#fff
;
box-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
.1
);
}
.layout-logo-left
{
width
:
90%
;
height
:
30px
;
background
:
#5b6270
;
border-radius
:
3px
;
margin
:
15px
auto
;
}
.menu-icon
{
transition
:
all
.3s
;
}
.rotate-icon
{
transform
:
rotate
(
-90deg
);
}
.menu-item
span
{
display
:
inline-block
;
overflow
:
hidden
;
width
:
69px
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
vertical-align
:
bottom
;
transition
:
width
.2s
ease
.2s
;
}
.menu-item
i
{
transform
:
translateX
(
0px
);
transition
:
font-size
.2s
ease
,
transform
.2s
ease
;
vertical-align
:
middle
;
font-size
:
16px
;
}
.collapsed-menu
span
{
width
:
0px
;
transition
:
width
.2s
ease
;
}
.collapsed-menu
i
{
transform
:
translateX
(
5px
);
transition
:
font-size
.2s
ease
.2s
,
transform
.2s
ease
.2s
;
vertical-align
:
middle
;
font-size
:
22px
;
}
</
style
>
</
style
>
<
style
>
<
style
>
.headerclass
.ivu-layout-header
{
.headerclass
.ivu-layout-header
{
...
...
src/components/login.vue
View file @
45c18b01
...
@@ -82,8 +82,7 @@ export default {
...
@@ -82,8 +82,7 @@ export default {
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
position
:
relative
;
position
:
relative
;
background
:
url("../../static/logo.jpg")
repeat
;
background
:
url("../../static/bg.jpg")
no-repeat
center
0
/
cover
;
background-size
:
100%
100%
;
}
}
.logincontent
{
.logincontent
{
width
:
300px
;
width
:
300px
;
...
...
src/pages/detailstrategy.vue
View file @
45c18b01
...
@@ -209,8 +209,7 @@ export default {
...
@@ -209,8 +209,7 @@ export default {
.detailstrategy
{
.detailstrategy
{
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
background
:
url('../../static/logo.jpg')
repeat
;
background
:
url("../../static/bg.jpg")
no-repeat
center
0
/
cover
;
background-size
:
100%
100%
;
font-family
:
"Microsoft Yahei"
font-family
:
"Microsoft Yahei"
}
}
.detailstrategy_title
{
.detailstrategy_title
{
...
@@ -269,6 +268,7 @@ export default {
...
@@ -269,6 +268,7 @@ export default {
width
:
100%
;
width
:
100%
;
float
:
left
;
float
:
left
;
background
:
white
;
background
:
white
;
border-radius
:
5px
}
}
.warp_put_img
{
.warp_put_img
{
width
:
100%
;
width
:
100%
;
...
@@ -335,7 +335,7 @@ export default {
...
@@ -335,7 +335,7 @@ export default {
align-items
:
Center
;
align-items
:
Center
;
padding
:
5px
5px
;
padding
:
5px
5px
;
border
:
1px
solid
#a2825f
;
border
:
1px
solid
#a2825f
;
border-radius
:
2
px
;
border-radius
:
5
px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.spansend
{
.spansend
{
...
@@ -349,3 +349,43 @@ export default {
...
@@ -349,3 +349,43 @@ export default {
font-weight
:
900
font-weight
:
900
}
}
</
style
>
</
style
>
<
style
>
.warp_put_value
.ivu-input
{
min-height
:
50px
;
border
:
none
;
text-align
:
center
;
font-size
:
16px
;
vertical-align
:
middle
;
resize
:
none
;
background
:
rgba
(
255
,
255
,
255
,
0
);
word-wrap
:
break-word
;
word-break
:
normal
;
/* border-bottom: 1px solid #666 */
}
.warp_put_value
.ivu-input
{
min-height
:
30px
;
/* border:none; */
text-align
:
center
;
font-size
:
16px
;
vertical-align
:
middle
;
resize
:
none
;
/* background:rgba(255,255,255,0); */
word-wrap
:
break-word
;
word-break
:
normal
;
}
.ivu-input
:focus
{
outline
:
none
;
border
:
none
;
box-shadow
:
0
0
0
2px
transparent
;
}
.warp_put_value
.ivu-input
{
height
:
100%
;
min-height
:
50px
;
border
:
none
;
text-align
:
center
;
font-size
:
16px
;
vertical-align
:
middle
;
resize
:
none
;
background
:
rgba
(
255
,
255
,
255
,
0
);
}
</
style
>
src/pages/sourcematerial.vue
View file @
45c18b01
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</div>
</div>
<div
class=
"confirediv"
v-show=
"item.showselect"
>
<div
class=
"confirediv"
v-show=
"item.showselect"
>
<p
style=
"margin-top:22px"
>
<p
style=
"margin-top:22px"
>
<Button
type=
"primary"
size=
'small'
>
取消
</Button>
<Button
type=
"primary"
size=
'small'
@
click=
"cancel(item)"
>
取消
</Button>
<Button
type=
"primary"
size=
'small'
@
click=
"confireding(item)"
>
确认
</Button>
<Button
type=
"primary"
size=
'small'
@
click=
"confireding(item)"
>
确认
</Button>
</p>
</p>
</div>
</div>
...
@@ -127,6 +127,10 @@ export default {
...
@@ -127,6 +127,10 @@ export default {
}
}
})
})
},
},
cancel
(
item
)
{
item
.
showselect
=
false
this
.
contentarr
=
[...
this
.
contentarr
]
},
returngo
()
{
returngo
()
{
this
.
$router
.
push
({
path
:
'
/strategymange
'
})
this
.
$router
.
push
({
path
:
'
/strategymange
'
})
},
},
...
@@ -142,6 +146,7 @@ export default {
...
@@ -142,6 +146,7 @@ export default {
this
.
delateuid
=
item
.
uid
this
.
delateuid
=
item
.
uid
},
},
async
remoteMethod
(
query
)
{
async
remoteMethod
(
query
)
{
this
.
getNamearr
=
[]
if
(
query
!==
''
)
{
if
(
query
!==
''
)
{
setTimeout
(
async
()
=>
{
setTimeout
(
async
()
=>
{
query
=
query
.
split
(
'
(
'
)[
0
]
query
=
query
.
split
(
'
(
'
)[
0
]
...
@@ -161,6 +166,7 @@ export default {
...
@@ -161,6 +166,7 @@ export default {
this
.
contentarr
=
[...
this
.
contentarr
]
this
.
contentarr
=
[...
this
.
contentarr
]
},
},
ding
(
item
)
{
ding
(
item
)
{
this
.
getNamearr
=
[]
item
.
showselect
=
true
item
.
showselect
=
true
this
.
contentarr
=
[...
this
.
contentarr
]
this
.
contentarr
=
[...
this
.
contentarr
]
},
},
...
@@ -222,8 +228,7 @@ export default {
...
@@ -222,8 +228,7 @@ export default {
.sourcematerial
{
.sourcematerial
{
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
background
:
url('../../static/logo.jpg')
repeat
;
background
:
url("../../static/bg.jpg")
no-repeat
center
0
/
cover
;
background-size
:
100%
100%
;
font-family
:
"Microsoft Yahei"
font-family
:
"Microsoft Yahei"
}
}
.sourcematerial_title
{
.sourcematerial_title
{
...
@@ -285,6 +290,7 @@ export default {
...
@@ -285,6 +290,7 @@ export default {
width
:
100%
;
width
:
100%
;
float
:
left
;
float
:
left
;
background
:
white
;
background
:
white
;
border-radius
:
5px
}
}
.warp_put_img
{
.warp_put_img
{
width
:
100%
;
width
:
100%
;
...
@@ -325,7 +331,7 @@ export default {
...
@@ -325,7 +331,7 @@ export default {
align-items
:
Center
;
align-items
:
Center
;
padding
:
5px
5px
;
padding
:
5px
5px
;
border
:
1px
solid
#a2825f
;
border
:
1px
solid
#a2825f
;
border-radius
:
2
px
;
border-radius
:
5
px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.classtitle_add
{
.classtitle_add
{
...
@@ -372,4 +378,14 @@ export default {
...
@@ -372,4 +378,14 @@ export default {
word-break
:
normal
;
word-break
:
normal
;
/* border-bottom: 1px solid #666 */
/* border-bottom: 1px solid #666 */
}
}
.warp_put_value
.ivu-input
{
height
:
100%
;
min-height
:
50px
;
border
:
none
;
text-align
:
center
;
font-size
:
16px
;
vertical-align
:
middle
;
resize
:
none
;
background
:
rgba
(
255
,
255
,
255
,
0
);
}
</
style
>
</
style
>
src/pages/strategymange.vue
View file @
45c18b01
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<div
class=
"leftdiv_title_icon"
>
<div
class=
"leftdiv_title_icon"
>
<div
v-show=
"element.showtitlechlid"
>
<div
v-show=
"element.showtitlechlid"
>
<p>
<p>
<img
src=
"../../static/bianji.png"
title=
"编辑"
@
click=
"editchliidput(element)"
>
<img
src=
"../../static/bianji.png"
title=
"编辑"
@
click=
"editchliidput(element
,index, index1
)"
>
</p>
</p>
<p>
<p>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delatechlidListleft(element)"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delatechlidListleft(element)"
>
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
</div>
</div>
<div
class=
"leftdiv_title_title"
>
<div
class=
"leftdiv_title_title"
>
<Input
v-model=
"element.title"
style=
"width:99%"
type=
"textarea"
v-show=
"element.elementeditsta"
@
on-blur=
"saveeditchildputright(element)"
/>
<Input
v-model=
"element.title"
style=
"width:99%"
type=
"textarea"
v-show=
"element.elementeditsta"
@
on-blur=
"saveeditchildputright(element)"
/>
<span
v-show=
"element.elementeditput"
class=
"valuespan"
:class=
"
{'colorlistvaluespan':element.showtitlechlid}">
{{
element
.
title
}}
</span>
<span
v-show=
"element.elementeditput"
class=
"valuespan"
:class=
"
{'colorlistvaluespan':element.showtitlechlid}"
@click="toscordpage(element.title,element)"
>
{{
element
.
title
}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -257,6 +257,10 @@ export default {
...
@@ -257,6 +257,10 @@ export default {
this
.
rightarr
=
[...
this
.
rightarr
]
this
.
rightarr
=
[...
this
.
rightarr
]
},
},
saveedittitle
(
item
,
ind
)
{
saveedittitle
(
item
,
ind
)
{
if
(
item
.
title
===
''
)
{
this
.
$Message
.
error
(
'
内容为空,请输入。
'
)
return
false
}
this
.
leftarr
[
ind
].
editshowstaus
=
true
this
.
leftarr
[
ind
].
editshowstaus
=
true
this
.
leftarr
[
ind
].
editstaus
=
false
this
.
leftarr
[
ind
].
editstaus
=
false
this
.
leftarr
[
ind
].
title
=
item
.
title
this
.
leftarr
[
ind
].
title
=
item
.
title
...
@@ -272,12 +276,18 @@ export default {
...
@@ -272,12 +276,18 @@ export default {
if
(
data
.
data
.
success
===
true
)
{
if
(
data
.
data
.
success
===
true
)
{
this
.
objectivesUid
=
data
.
data
.
body
.
uid
this
.
objectivesUid
=
data
.
data
.
body
.
uid
this
.
$Message
.
success
(
'
保存成功
'
)
this
.
$Message
.
success
(
'
保存成功
'
)
this
.
getList
()
}
else
{
}
else
{
this
.
$Message
.
error
(
data
.
data
.
body
.
message
)
this
.
$Message
.
error
(
data
.
data
.
body
.
message
)
this
.
getList
()
}
}
})
})
},
},
saveedittitleright
(
item
,
ind
)
{
saveedittitleright
(
item
,
ind
)
{
if
(
item
.
title
===
''
)
{
this
.
$Message
.
error
(
'
内容为空,请输入
'
)
return
false
}
this
.
rightarr
[
ind
].
editshowstaus
=
true
this
.
rightarr
[
ind
].
editshowstaus
=
true
this
.
rightarr
[
ind
].
editstaus
=
false
this
.
rightarr
[
ind
].
editstaus
=
false
this
.
rightarr
[
ind
].
title
=
item
.
title
this
.
rightarr
[
ind
].
title
=
item
.
title
...
@@ -307,8 +317,8 @@ export default {
...
@@ -307,8 +317,8 @@ export default {
uid
:
''
,
uid
:
''
,
title
:
''
,
title
:
''
,
orderNo
:
0
,
orderNo
:
0
,
elementeditput
:
tru
e
,
elementeditput
:
fals
e
,
elementeditsta
:
fals
e
,
elementeditsta
:
tru
e
,
showtitlechlid
:
false
showtitlechlid
:
false
})
})
}
else
{
}
else
{
...
@@ -317,8 +327,8 @@ export default {
...
@@ -317,8 +327,8 @@ export default {
uid
:
''
,
uid
:
''
,
title
:
''
,
title
:
''
,
orderNo
:
0
,
orderNo
:
0
,
elementeditput
:
tru
e
,
elementeditput
:
fals
e
,
elementeditsta
:
fals
e
,
elementeditsta
:
tru
e
,
showtitlechlid
:
false
showtitlechlid
:
false
})
})
}
}
...
@@ -331,8 +341,8 @@ export default {
...
@@ -331,8 +341,8 @@ export default {
uid
:
''
,
uid
:
''
,
title
:
''
,
title
:
''
,
orderNo
:
0
,
orderNo
:
0
,
elementeditput
:
tru
e
,
elementeditput
:
fals
e
,
elementeditsta
:
fals
e
,
elementeditsta
:
tru
e
,
showtitlechlid
:
false
showtitlechlid
:
false
})
})
}
else
{
}
else
{
...
@@ -341,13 +351,13 @@ export default {
...
@@ -341,13 +351,13 @@ export default {
uid
:
''
,
uid
:
''
,
title
:
''
,
title
:
''
,
orderNo
:
0
,
orderNo
:
0
,
elementeditput
:
tru
e
,
elementeditput
:
fals
e
,
elementeditsta
:
fals
e
,
elementeditsta
:
tru
e
,
showtitlechlid
:
false
showtitlechlid
:
false
})
})
}
}
},
},
editchliidput
(
item
)
{
editchliidput
(
item
,
index
,
index1
)
{
// 1
// 1
// Vue.set(this.leftarr[index]['keyResultsVOList'], index1, { ...item, elementeditput: false })
// Vue.set(this.leftarr[index]['keyResultsVOList'], index1, { ...item, elementeditput: false })
// 2
// 2
...
@@ -362,6 +372,7 @@ export default {
...
@@ -362,6 +372,7 @@ export default {
item
.
elementeditput
=
!
item
.
elementeditput
item
.
elementeditput
=
!
item
.
elementeditput
item
.
elementeditsta
=
!
item
.
elementeditsta
item
.
elementeditsta
=
!
item
.
elementeditsta
item
.
showtitlechlid
=
!
item
.
showtitlechlid
item
.
showtitlechlid
=
!
item
.
showtitlechlid
// this.$refs['input'].focus()
this
.
leftarr
=
[...
this
.
leftarr
]
this
.
leftarr
=
[...
this
.
leftarr
]
},
},
delatechlidListleft
(
element
)
{
delatechlidListleft
(
element
)
{
...
@@ -386,6 +397,10 @@ export default {
...
@@ -386,6 +397,10 @@ export default {
})
})
},
},
saveeditchildput
(
item
)
{
saveeditchildput
(
item
)
{
if
(
item
.
title
===
''
)
{
this
.
$Message
.
error
(
'
内容为空,请输入
'
)
return
false
}
item
.
elementeditput
=
!
item
.
elementeditput
item
.
elementeditput
=
!
item
.
elementeditput
item
.
elementeditsta
=
!
item
.
elementeditsta
item
.
elementeditsta
=
!
item
.
elementeditsta
this
.
leftarr
=
[...
this
.
leftarr
]
this
.
leftarr
=
[...
this
.
leftarr
]
...
@@ -403,6 +418,10 @@ export default {
...
@@ -403,6 +418,10 @@ export default {
})
})
},
},
saveeditchildputright
(
item
)
{
saveeditchildputright
(
item
)
{
if
(
item
.
title
===
''
)
{
this
.
$Message
.
error
(
'
内容为空,请输入
'
)
return
false
}
item
.
elementeditput
=
!
item
.
elementeditput
item
.
elementeditput
=
!
item
.
elementeditput
item
.
elementeditsta
=
!
item
.
elementeditsta
item
.
elementeditsta
=
!
item
.
elementeditsta
this
.
rightarr
=
[...
this
.
rightarr
]
this
.
rightarr
=
[...
this
.
rightarr
]
...
@@ -477,8 +496,8 @@ export default {
...
@@ -477,8 +496,8 @@ export default {
uid
:
''
,
uid
:
''
,
title
:
''
,
title
:
''
,
orderNo
:
0
,
orderNo
:
0
,
editstaus
:
fals
e
,
editstaus
:
tru
e
,
editshowstaus
:
tru
e
,
editshowstaus
:
fals
e
,
showtitlechlid
:
false
,
showtitlechlid
:
false
,
keyResultsVOList
:
[]
keyResultsVOList
:
[]
})
})
...
@@ -489,8 +508,8 @@ export default {
...
@@ -489,8 +508,8 @@ export default {
uid
:
''
,
uid
:
''
,
title
:
''
,
title
:
''
,
orderNo
:
0
,
orderNo
:
0
,
editstaus
:
fals
e
,
editstaus
:
tru
e
,
editshowstaus
:
tru
e
,
editshowstaus
:
fals
e
,
showtitlechlid
:
false
,
showtitlechlid
:
false
,
keyResultsVOList
:
[]
keyResultsVOList
:
[]
})
})
...
@@ -571,8 +590,7 @@ export default {
...
@@ -571,8 +590,7 @@ export default {
.strategymange
{
.strategymange
{
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
background
:
url('../../static/logo.jpg')
repeat
;
background
:
url("../../static/bg.jpg")
no-repeat
center
0
/
cover
;
background-size
:
100%
100%
;
font-family
:
"Microsoft Yahei"
font-family
:
"Microsoft Yahei"
}
}
.heart
{
.heart
{
...
@@ -624,6 +642,7 @@ export default {
...
@@ -624,6 +642,7 @@ export default {
text-align
:
center
;
text-align
:
center
;
font-size
:
16px
;
font-size
:
16px
;
background
:
white
;
background
:
white
;
border-radius
:
5px
}
}
.center
{
.center
{
width
:
30%
;
width
:
30%
;
...
@@ -676,7 +695,7 @@ export default {
...
@@ -676,7 +695,7 @@ export default {
text-align
:
center
;
text-align
:
center
;
line-height
:
25px
;
line-height
:
25px
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#
848484
;
color
:
#
5E5E5E
;
margin
:
20px
0
margin
:
20px
0
}
}
.hosttitlespan
{
.hosttitlespan
{
...
@@ -706,7 +725,7 @@ export default {
...
@@ -706,7 +725,7 @@ export default {
align-items
:
Center
;
align-items
:
Center
;
padding
:
5px
5px
;
padding
:
5px
5px
;
border
:
1px
solid
#a2825f
;
border
:
1px
solid
#a2825f
;
border-radius
:
2
px
;
border-radius
:
5
px
;
cursor
:
pointer
;
cursor
:
pointer
;
font-family
:
"Microsoft Yahei"
;
font-family
:
"Microsoft Yahei"
;
overflow-y
:
auto
overflow-y
:
auto
...
@@ -739,6 +758,7 @@ export default {
...
@@ -739,6 +758,7 @@ export default {
width
:
100%
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
float
:
left
;
float
:
left
;
margin-top
:
20px
}
}
.classtitle_icon
{
.classtitle_icon
{
width
:
20%
;
width
:
20%
;
...
@@ -751,6 +771,7 @@ export default {
...
@@ -751,6 +771,7 @@ export default {
width
:
60%
;
width
:
60%
;
height
:
100%
;
height
:
100%
;
float
:
left
;
float
:
left
;
/* margin-top: 20px; */
/* border: 1px solid black */
/* border: 1px solid black */
}
}
.classtitle_title_title
{
.classtitle_title_title
{
...
...
static/bg.jpg
0 → 100644
View file @
45c18b01
182 KB
static/logbg.jpg
0 → 100644
View file @
45c18b01
128 KB
static/loginbg.jpg
0 → 100644
View file @
45c18b01
137 KB
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