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
6f5255a4
Commit
6f5255a4
authored
Jan 02, 2020
by
derong.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化样式,调整接口
parent
02caf15b
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
26 deletions
+40
-26
strategymange.serve.js
src/api/strategymange.serve.js
+4
-4
user.serve.js
src/api/user.serve.js
+1
-1
home.vue
src/components/home.vue
+13
-9
detailstrategy.vue
src/pages/detailstrategy.vue
+7
-3
sourcematerial.vue
src/pages/sourcematerial.vue
+7
-3
strategymange.vue
src/pages/strategymange.vue
+8
-6
add.png
static/add.png
+0
-0
No files found.
src/api/strategymange.serve.js
View file @
6f5255a4
...
...
@@ -18,7 +18,7 @@ export function addtitlelist (data) {
}})
}
export
function
delatetitlelist
(
data
)
{
return
axios
.
delete
(
`
${
sapi
}
/api/strategyObjectives/delete/
${
data
}
`
,
{
headers
:
{
return
axios
.
post
(
`
${
sapi
}
/api/strategyObjectives/delete/
${
data
}
`
,
{
headers
:
{
'
Content-Type
'
:
'
application/json
'
}})
}
...
...
@@ -29,7 +29,7 @@ export function savechildput (data) {
}
// 删除战略步骤
export
function
delatechildputchlid
(
data
)
{
return
axios
.
delete
(
`
${
sapi
}
/api/keyresults/delete/
${
data
}
`
,
{
headers
:
{
return
axios
.
post
(
`
${
sapi
}
/api/keyresults/delete/
${
data
}
`
,
{
headers
:
{
'
Content-Type
'
:
'
application/json
'
}})
}
...
...
@@ -59,7 +59,7 @@ export function editsourceitem (data) {
}
// 删除素材
export
function
delatesourceitem
(
data
)
{
return
axios
.
delete
(
`
${
sapi
}
/api/material/delete/
${
data
}
`
,
{
headers
:
{
return
axios
.
post
(
`
${
sapi
}
/api/material/delete/
${
data
}
`
,
{
headers
:
{
'
Content-Type
'
:
'
application/json
'
}})
}
...
...
@@ -77,7 +77,7 @@ export function edutListitem (data) {
}
// 删除战略详情
export
function
delateListitem
(
data
)
{
return
axios
.
delete
(
`
${
sapi
}
/api/keyresultsDetail/delete/
${
data
}
`
,
{
headers
:
{
return
axios
.
post
(
`
${
sapi
}
/api/keyresultsDetail/delete/
${
data
}
`
,
{
headers
:
{
'
Content-Type
'
:
'
application/json
'
}})
}
...
...
src/api/user.serve.js
View file @
6f5255a4
...
...
@@ -8,7 +8,7 @@ export function login (data) {
}})
}
export
function
loginout
()
{
return
axios
.
get
(
`
/gateway
/api/login/loginOut`
,
{
headers
:
{
return
axios
.
get
(
`
${
sapi
}
/api/login/loginOut`
,
{
headers
:
{
'
Content-Type
'
:
'
application/json
'
}})
}
...
...
src/components/home.vue
View file @
6f5255a4
...
...
@@ -13,15 +13,13 @@
</Menu>
<div
slot=
"trigger"
></div>
</Sider>
<Layout>
<Layout
class=
"headerclass"
>
<Header
class=
"layout-header-bar"
>
<
Header
:style=
"
{padding: 0}" class="layout-header-bar"
>
<Icon
@
click.native=
"collapsedSider"
:class=
"rotateIcon"
:style=
"
{margin: '0 0px'}" type="md-menu" size="24">
</Icon>
<
!--
<Header
:style=
"
{padding: 0}" class="layout-header-bar"> --
>
<Icon
@
click.native=
"collapsedSider"
:class=
"rotateIcon"
:style=
"
{margin: '0 0px
0 -40px
'}" type="md-menu" size="24">
</Icon>
<span
class=
"signout"
@
click=
"logOut"
>
退出
</span>
<span
class=
"message"
>
{{
me
}}
</span>
</Header>
<!--
<span
class=
"signout"
@
click=
"logOut"
>
退出
</span>
<span
class=
"message"
>
{{
me
}}
</span>
-->
<!--
</Header>
-->
</Header>
<Content
:style=
"
{margin: '5px', background: '#fff', minHeight: '220px'}">
<router-view></router-view>
...
...
@@ -80,7 +78,7 @@ export default {
</
script
>
<
style
scoped
>
.layout
{
border
:
1px
solid
#d7dde4
;
/* border: 1px solid #d7dde4; */
background
:
#f5f7f9
;
position
:
relative
;
border-radius
:
4px
;
...
...
@@ -120,7 +118,7 @@ export default {
font-size
:
22px
;
}
.signout
{
font-size
:
1
6
px
;
font-size
:
1
4
px
;
float
:
right
;
margin-right
:
10px
;
color
:
#0092ff
...
...
@@ -135,9 +133,15 @@ export default {
font-weight
:
900
;
}
.message
{
font-size
:
1
6
px
;
font-size
:
1
4
px
;
float
:
right
;
margin-right
:
30px
;
color
:
#0092ff
}
</
style
>
<
style
>
.headerclass
.ivu-layout-header
{
height
:
48px
;
line-height
:
48px
;
}
</
style
>
src/pages/detailstrategy.vue
View file @
6f5255a4
<
template
>
<div
class=
"detailstrategy"
>
<div
class=
"detailstrategy_title"
>
<div
class=
"detailstrategy_title_large"
>
战略引擎
</div>
<div
class=
"detailstrategy_title_large"
@
click=
"returngo"
>
战略引擎
</div>
<div
class=
"detailstrategy_title_icon"
><Icon
type=
"ios-arrow-forward"
/></div>
<div
class=
"detailstrategy_title_content"
>
{{
twotitle
}}
</div>
</div>
...
...
@@ -94,6 +94,9 @@ export default {
item
.
showstatus
=
false
this
.
contentarr
=
[...
this
.
contentarr
]
},
returngo
()
{
this
.
$router
.
push
({
path
:
'
/strategymange
'
})
},
sele
(
item
)
{
let
data
=
{
keyResultsUid
:
this
.
$route
.
query
.
uid
,
...
...
@@ -219,7 +222,8 @@ export default {
.detailstrategy_title_large
{
width
:
60px
;
float
:
left
;
margin-left
:
20px
margin-left
:
20px
;
cursor
:
pointer
;
}
.detailstrategy_title_icon
{
width
:
20px
;
...
...
@@ -340,7 +344,7 @@ export default {
top: -40px */
}
.detailstrategy_title_content
{
font-size
:
1
6
px
;
font-size
:
1
4
px
;
color
:
black
;
font-weight
:
900
}
...
...
src/pages/sourcematerial.vue
View file @
6f5255a4
<
template
>
<div
class=
"sourcematerial"
>
<div
class=
"sourcematerial_title"
>
<div
class=
"sourcematerialy_title_large"
>
战略引擎
</div>
<div
class=
"sourcematerialy_title_large"
@
click=
"returngo"
>
战略引擎
</div>
<div
class=
"sourcematerial_title_icon"
><Icon
type=
"ios-arrow-forward"
/></div>
<div
class=
"sourcematerial_title_content"
>
素材
</div>
</div>
...
...
@@ -127,6 +127,9 @@ export default {
}
})
},
returngo
()
{
this
.
$router
.
push
({
path
:
'
/strategymange
'
})
},
addchlidlist
()
{
this
.
contentarr
.
push
({
uid
:
''
,
...
...
@@ -232,7 +235,8 @@ export default {
.sourcematerialy_title_large
{
width
:
60px
;
float
:
left
;
margin-left
:
20px
margin-left
:
20px
;
cursor
:
pointer
;
}
.sourcematerial_title_icon
{
width
:
20px
;
...
...
@@ -351,7 +355,7 @@ export default {
.sourcematerial_title_content
{
color
:
black
;
font-weight
:
900
;
font-size
:
1
6
px
;
font-size
:
1
4
px
;
}
</
style
>
<
style
>
...
...
src/pages/strategymange.vue
View file @
6f5255a4
...
...
@@ -9,7 +9,7 @@
<div
class=
"leftdiv_title_class"
@
mousemove=
"move(item)"
@
mouseleave=
"leave(item)"
>
<div
class=
"classtitle_icon"
>
<div
v-show=
"item.showtitle"
>
<img
src=
"../../static/
tianjia
.png"
title=
"添加"
@
click=
"oneaddtitle"
>
<img
src=
"../../static/
add
.png"
title=
"添加"
@
click=
"oneaddtitle"
>
<img
src=
"../../static/bianji.png"
title=
"编辑"
@
click=
"editimgtitle(item,index)"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delateedittitle(item)"
>
</div>
...
...
@@ -698,7 +698,7 @@ export default {
height
:
100%
;
min-height
:
50px
;
width
:
100%
;
font-size
:
1
6
px
;
font-size
:
1
4
px
;
background
:
white
;
text-align
:
center
;
display
:
flex
;
...
...
@@ -734,7 +734,7 @@ export default {
border
:
1px
solid
rgba
(
255
,
255
,
255
,
0
)
}
.leftdiv_title_class
{
height
:
30px
;
min-
height
:
30px
;
/* border: 1px solid black; */
width
:
100%
;
text-align
:
center
;
...
...
@@ -745,6 +745,7 @@ export default {
height
:
100%
;
float
:
left
;
cursor
:
pointer
;
border
:
1px
solid
rgba
(
255
,
255
,
255
,
0
)
}
.classtitle_title
{
width
:
60%
;
...
...
@@ -753,13 +754,14 @@ export default {
/* border: 1px solid black */
}
.classtitle_title_title
{
border-bottom
:
1px
solid
#999
;
/* border-bottom: 1px solid #999; */
height
:
100%
;
width
:
100%
;
display
:
inline-block
;
font-size
:
18px
;
cursor
:
pointer
;
font-family
:
"Microsoft Yahei"
font-family
:
"Microsoft Yahei"
;
color
:
#a2825f
;
}
.classtitle_icon
img
{
height
:
15px
;
...
...
@@ -809,7 +811,7 @@ export default {
.colorlisttitle
{
color
:
black
;
font-weight
:
900
;
border-bottom
:
1px
solid
black
border-bottom
:
1px
solid
black
;
}
</
style
>
<
style
>
...
...
static/add.png
0 → 100644
View file @
6f5255a4
406 Bytes
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