Commit 6f5255a4 authored by derong.zhang's avatar derong.zhang

优化样式,调整接口

parent 02caf15b
...@@ -18,7 +18,7 @@ export function addtitlelist (data) { ...@@ -18,7 +18,7 @@ export function addtitlelist (data) {
}}) }})
} }
export function delatetitlelist (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' 'Content-Type': 'application/json'
}}) }})
} }
...@@ -29,7 +29,7 @@ export function savechildput (data) { ...@@ -29,7 +29,7 @@ export function savechildput (data) {
} }
// 删除战略步骤 // 删除战略步骤
export function delatechildputchlid (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' 'Content-Type': 'application/json'
}}) }})
} }
...@@ -59,7 +59,7 @@ export function editsourceitem (data) { ...@@ -59,7 +59,7 @@ export function editsourceitem (data) {
} }
// 删除素材 // 删除素材
export function delatesourceitem (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' 'Content-Type': 'application/json'
}}) }})
} }
...@@ -77,7 +77,7 @@ export function edutListitem (data) { ...@@ -77,7 +77,7 @@ export function edutListitem (data) {
} }
// 删除战略详情 // 删除战略详情
export function delateListitem (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' 'Content-Type': 'application/json'
}}) }})
} }
......
...@@ -8,7 +8,7 @@ export function login (data) { ...@@ -8,7 +8,7 @@ export function login (data) {
}}) }})
} }
export function loginout () { export function loginout () {
return axios.get(`/gateway/api/login/loginOut`, {headers: { return axios.get(`${sapi}/api/login/loginOut`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
......
...@@ -13,15 +13,13 @@ ...@@ -13,15 +13,13 @@
</Menu> </Menu>
<div slot="trigger"></div> <div slot="trigger"></div>
</Sider> </Sider>
<Layout> <Layout class="headerclass">
<Header class="layout-header-bar"> <Header class="layout-header-bar">
<Header :style="{padding: 0}" 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> <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="signout" @click="logOut">退出</span>
<span class="message">{{me}}</span> <span class="message">{{me}}</span>
</Header> <!-- </Header> -->
<!-- <span class="signout" @click="logOut">退出</span>
<span class="message">{{me}}</span> -->
</Header> </Header>
<Content :style="{margin: '5px', background: '#fff', minHeight: '220px'}"> <Content :style="{margin: '5px', background: '#fff', minHeight: '220px'}">
<router-view></router-view> <router-view></router-view>
...@@ -80,7 +78,7 @@ export default { ...@@ -80,7 +78,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
.layout{ .layout{
border: 1px solid #d7dde4; /* border: 1px solid #d7dde4; */
background: #f5f7f9; background: #f5f7f9;
position: relative; position: relative;
border-radius: 4px; border-radius: 4px;
...@@ -120,7 +118,7 @@ export default { ...@@ -120,7 +118,7 @@ export default {
font-size: 22px; font-size: 22px;
} }
.signout{ .signout{
font-size: 16px; font-size: 14px;
float: right; float: right;
margin-right: 10px; margin-right: 10px;
color: #0092ff color: #0092ff
...@@ -135,9 +133,15 @@ export default { ...@@ -135,9 +133,15 @@ export default {
font-weight: 900; font-weight: 900;
} }
.message { .message {
font-size: 16px; font-size: 14px;
float: right; float: right;
margin-right: 30px; margin-right: 30px;
color: #0092ff color: #0092ff
} }
</style> </style>
<style>
.headerclass .ivu-layout-header {
height: 48px;
line-height: 48px;
}
</style>
<template> <template>
<div class="detailstrategy"> <div class="detailstrategy">
<div class="detailstrategy_title"> <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_icon"><Icon type="ios-arrow-forward" /></div>
<div class="detailstrategy_title_content">{{twotitle}}</div> <div class="detailstrategy_title_content">{{twotitle}}</div>
</div> </div>
...@@ -94,6 +94,9 @@ export default { ...@@ -94,6 +94,9 @@ export default {
item.showstatus = false item.showstatus = false
this.contentarr = [...this.contentarr] this.contentarr = [...this.contentarr]
}, },
returngo () {
this.$router.push({ path: '/strategymange' })
},
sele (item) { sele (item) {
let data = { let data = {
keyResultsUid: this.$route.query.uid, keyResultsUid: this.$route.query.uid,
...@@ -219,7 +222,8 @@ export default { ...@@ -219,7 +222,8 @@ export default {
.detailstrategy_title_large{ .detailstrategy_title_large{
width: 60px; width: 60px;
float: left; float: left;
margin-left: 20px margin-left: 20px;
cursor: pointer;
} }
.detailstrategy_title_icon{ .detailstrategy_title_icon{
width: 20px; width: 20px;
...@@ -340,7 +344,7 @@ export default { ...@@ -340,7 +344,7 @@ export default {
top: -40px */ top: -40px */
} }
.detailstrategy_title_content{ .detailstrategy_title_content{
font-size: 16px; font-size: 14px;
color: black; color: black;
font-weight: 900 font-weight: 900
} }
......
<template> <template>
<div class="sourcematerial"> <div class="sourcematerial">
<div class="sourcematerial_title"> <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_icon"><Icon type="ios-arrow-forward" /></div>
<div class="sourcematerial_title_content">素材</div> <div class="sourcematerial_title_content">素材</div>
</div> </div>
...@@ -127,6 +127,9 @@ export default { ...@@ -127,6 +127,9 @@ export default {
} }
}) })
}, },
returngo () {
this.$router.push({ path: '/strategymange' })
},
addchlidlist () { addchlidlist () {
this.contentarr.push({ this.contentarr.push({
uid: '', uid: '',
...@@ -232,7 +235,8 @@ export default { ...@@ -232,7 +235,8 @@ export default {
.sourcematerialy_title_large{ .sourcematerialy_title_large{
width: 60px; width: 60px;
float: left; float: left;
margin-left: 20px margin-left: 20px;
cursor: pointer;
} }
.sourcematerial_title_icon{ .sourcematerial_title_icon{
width: 20px; width: 20px;
...@@ -351,7 +355,7 @@ export default { ...@@ -351,7 +355,7 @@ export default {
.sourcematerial_title_content{ .sourcematerial_title_content{
color: black; color: black;
font-weight: 900; font-weight: 900;
font-size: 16px; font-size: 14px;
} }
</style> </style>
<style> <style>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class="leftdiv_title_class" @mousemove="move(item)" @mouseleave="leave(item)"> <div class="leftdiv_title_class" @mousemove="move(item)" @mouseleave="leave(item)">
<div class="classtitle_icon"> <div class="classtitle_icon">
<div v-show="item.showtitle"> <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/bianji.png" title="编辑" @click="editimgtitle(item,index)">
<img src="../../static/shanchu.png" title="删除" @click="delateedittitle(item)"> <img src="../../static/shanchu.png" title="删除" @click="delateedittitle(item)">
</div> </div>
...@@ -698,7 +698,7 @@ export default { ...@@ -698,7 +698,7 @@ export default {
height: 100%; height: 100%;
min-height: 50px; min-height: 50px;
width: 100%; width: 100%;
font-size: 16px; font-size: 14px;
background: white; background: white;
text-align: center; text-align: center;
display: flex; display: flex;
...@@ -734,7 +734,7 @@ export default { ...@@ -734,7 +734,7 @@ export default {
border: 1px solid rgba(255,255,255,0) border: 1px solid rgba(255,255,255,0)
} }
.leftdiv_title_class{ .leftdiv_title_class{
height: 30px; min-height: 30px;
/* border: 1px solid black; */ /* border: 1px solid black; */
width: 100%; width: 100%;
text-align: center; text-align: center;
...@@ -745,6 +745,7 @@ export default { ...@@ -745,6 +745,7 @@ export default {
height: 100%; height: 100%;
float: left; float: left;
cursor: pointer; cursor: pointer;
border: 1px solid rgba(255,255,255,0)
} }
.classtitle_title{ .classtitle_title{
width: 60%; width: 60%;
...@@ -753,13 +754,14 @@ export default { ...@@ -753,13 +754,14 @@ export default {
/* border: 1px solid black */ /* border: 1px solid black */
} }
.classtitle_title_title{ .classtitle_title_title{
border-bottom: 1px solid #999; /* border-bottom: 1px solid #999; */
height: 100%; height: 100%;
width: 100%; width: 100%;
display: inline-block; display: inline-block;
font-size: 18px; font-size: 18px;
cursor: pointer; cursor: pointer;
font-family:"Microsoft Yahei" font-family:"Microsoft Yahei";
color: #a2825f;
} }
.classtitle_icon img{ .classtitle_icon img{
height: 15px; height: 15px;
...@@ -809,7 +811,7 @@ export default { ...@@ -809,7 +811,7 @@ export default {
.colorlisttitle{ .colorlisttitle{
color: black; color: black;
font-weight: 900; font-weight: 900;
border-bottom: 1px solid black border-bottom: 1px solid black;
} }
</style> </style>
<style> <style>
......
static/add.png

406 Bytes

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment