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

优化样式,调整接口

parent 02caf15b
......@@ -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'
}})
}
......
......@@ -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'
}})
}
......
......@@ -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: 16px;
font-size: 14px;
float: right;
margin-right: 10px;
color: #0092ff
......@@ -135,9 +133,15 @@ export default {
font-weight: 900;
}
.message {
font-size: 16px;
font-size: 14px;
float: right;
margin-right: 30px;
color: #0092ff
}
</style>
<style>
.headerclass .ivu-layout-header {
height: 48px;
line-height: 48px;
}
</style>
<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: 16px;
font-size: 14px;
color: black;
font-weight: 900
}
......
<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: 16px;
font-size: 14px;
}
</style>
<style>
......
......@@ -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: 16px;
font-size: 14px;
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

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