Commit 45c18b01 authored by derong.zhang's avatar derong.zhang

优化

parent 6f5255a4
......@@ -138,6 +138,55 @@ export default {
margin-right: 30px;
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>
.headerclass .ivu-layout-header {
......
......@@ -82,8 +82,7 @@ export default {
height: 100%;
width: 100%;
position: relative;
background: url("../../static/logo.jpg") repeat;
background-size: 100% 100%;
background: url("../../static/bg.jpg") no-repeat center 0 / cover;
}
.logincontent{
width:300px;
......
......@@ -209,8 +209,7 @@ export default {
.detailstrategy{
height: 100%;
width: 100%;
background: url('../../static/logo.jpg') repeat;
background-size: 100% 100%;
background: url("../../static/bg.jpg") no-repeat center 0 / cover;
font-family:"Microsoft Yahei"
}
.detailstrategy_title{
......@@ -269,6 +268,7 @@ export default {
width: 100%;
float: left;
background: white;
border-radius: 5px
}
.warp_put_img{
width: 100%;
......@@ -335,7 +335,7 @@ export default {
align-items:Center;
padding: 5px 5px;
border: 1px solid #a2825f;
border-radius: 2px;
border-radius: 5px;
cursor: pointer;
}
.spansend{
......@@ -349,3 +349,43 @@ export default {
font-weight: 900
}
</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>
......@@ -38,7 +38,7 @@
</div>
<div class="confirediv" v-show="item.showselect">
<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>
</p>
</div>
......@@ -127,6 +127,10 @@ export default {
}
})
},
cancel (item) {
item.showselect = false
this.contentarr = [...this.contentarr]
},
returngo () {
this.$router.push({ path: '/strategymange' })
},
......@@ -142,6 +146,7 @@ export default {
this.delateuid = item.uid
},
async remoteMethod (query) {
this.getNamearr = []
if (query !== '') {
setTimeout(async () => {
query = query.split('(')[0]
......@@ -161,6 +166,7 @@ export default {
this.contentarr = [...this.contentarr]
},
ding (item) {
this.getNamearr = []
item.showselect = true
this.contentarr = [...this.contentarr]
},
......@@ -222,8 +228,7 @@ export default {
.sourcematerial{
height: 100%;
width: 100%;
background: url('../../static/logo.jpg') repeat;
background-size: 100% 100%;
background: url("../../static/bg.jpg") no-repeat center 0 / cover;
font-family:"Microsoft Yahei"
}
.sourcematerial_title{
......@@ -285,6 +290,7 @@ export default {
width: 100%;
float: left;
background: white;
border-radius: 5px
}
.warp_put_img{
width: 100%;
......@@ -325,7 +331,7 @@ export default {
align-items:Center;
padding: 5px 5px;
border: 1px solid #a2825f;
border-radius: 2px;
border-radius: 5px;
cursor: pointer;
}
.classtitle_add{
......@@ -372,4 +378,14 @@ export default {
word-break: normal;
/* 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>
......@@ -30,7 +30,7 @@
<div class="leftdiv_title_icon">
<div v-show="element.showtitlechlid">
<p>
<img src="../../static/bianji.png" title="编辑" @click="editchliidput(element)">
<img src="../../static/bianji.png" title="编辑" @click="editchliidput(element,index, index1)">
</p>
<p>
<img src="../../static/shanchu.png" title="删除" @click="delatechlidListleft(element)">
......@@ -107,7 +107,7 @@
</div>
<div class="leftdiv_title_title">
<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>
......@@ -257,6 +257,10 @@ export default {
this.rightarr = [...this.rightarr]
},
saveedittitle (item, ind) {
if (item.title === '') {
this.$Message.error('内容为空,请输入。')
return false
}
this.leftarr[ind].editshowstaus = true
this.leftarr[ind].editstaus = false
this.leftarr[ind].title = item.title
......@@ -272,12 +276,18 @@ export default {
if (data.data.success === true) {
this.objectivesUid = data.data.body.uid
this.$Message.success('保存成功')
this.getList()
} else {
this.$Message.error(data.data.body.message)
this.getList()
}
})
},
saveedittitleright (item, ind) {
if (item.title === '') {
this.$Message.error('内容为空,请输入')
return false
}
this.rightarr[ind].editshowstaus = true
this.rightarr[ind].editstaus = false
this.rightarr[ind].title = item.title
......@@ -307,8 +317,8 @@ export default {
uid: '',
title: '',
orderNo: 0,
elementeditput: true,
elementeditsta: false,
elementeditput: false,
elementeditsta: true,
showtitlechlid: false
})
} else {
......@@ -317,8 +327,8 @@ export default {
uid: '',
title: '',
orderNo: 0,
elementeditput: true,
elementeditsta: false,
elementeditput: false,
elementeditsta: true,
showtitlechlid: false
})
}
......@@ -331,8 +341,8 @@ export default {
uid: '',
title: '',
orderNo: 0,
elementeditput: true,
elementeditsta: false,
elementeditput: false,
elementeditsta: true,
showtitlechlid: false
})
} else {
......@@ -341,13 +351,13 @@ export default {
uid: '',
title: '',
orderNo: 0,
elementeditput: true,
elementeditsta: false,
elementeditput: false,
elementeditsta: true,
showtitlechlid: false
})
}
},
editchliidput (item) {
editchliidput (item, index, index1) {
// 1
// Vue.set(this.leftarr[index]['keyResultsVOList'], index1, { ...item, elementeditput: false })
// 2
......@@ -362,6 +372,7 @@ export default {
item.elementeditput = !item.elementeditput
item.elementeditsta = !item.elementeditsta
item.showtitlechlid = !item.showtitlechlid
// this.$refs['input'].focus()
this.leftarr = [...this.leftarr]
},
delatechlidListleft (element) {
......@@ -386,6 +397,10 @@ export default {
})
},
saveeditchildput (item) {
if (item.title === '') {
this.$Message.error('内容为空,请输入')
return false
}
item.elementeditput = !item.elementeditput
item.elementeditsta = !item.elementeditsta
this.leftarr = [...this.leftarr]
......@@ -403,6 +418,10 @@ export default {
})
},
saveeditchildputright (item) {
if (item.title === '') {
this.$Message.error('内容为空,请输入')
return false
}
item.elementeditput = !item.elementeditput
item.elementeditsta = !item.elementeditsta
this.rightarr = [...this.rightarr]
......@@ -477,8 +496,8 @@ export default {
uid: '',
title: '',
orderNo: 0,
editstaus: false,
editshowstaus: true,
editstaus: true,
editshowstaus: false,
showtitlechlid: false,
keyResultsVOList: []
})
......@@ -489,8 +508,8 @@ export default {
uid: '',
title: '',
orderNo: 0,
editstaus: false,
editshowstaus: true,
editstaus: true,
editshowstaus: false,
showtitlechlid: false,
keyResultsVOList: []
})
......@@ -571,8 +590,7 @@ export default {
.strategymange{
height: 100%;
width: 100%;
background: url('../../static/logo.jpg') repeat;
background-size: 100% 100%;
background: url("../../static/bg.jpg") no-repeat center 0 / cover;
font-family:"Microsoft Yahei"
}
.heart{
......@@ -624,6 +642,7 @@ export default {
text-align: center;
font-size: 16px;
background: white;
border-radius: 5px
}
.center{
width: 30%;
......@@ -676,7 +695,7 @@ export default {
text-align: center;
line-height: 25px;
font-size: 16px;
color: #848484;
color: #5E5E5E;
margin: 20px 0
}
.hosttitlespan{
......@@ -706,7 +725,7 @@ export default {
align-items:Center;
padding: 5px 5px;
border: 1px solid #a2825f;
border-radius: 2px;
border-radius: 5px;
cursor: pointer;
font-family:"Microsoft Yahei";
overflow-y: auto
......@@ -739,6 +758,7 @@ export default {
width: 100%;
text-align: center;
float: left;
margin-top: 20px
}
.classtitle_icon{
width:20%;
......@@ -751,6 +771,7 @@ export default {
width: 60%;
height: 100%;
float: left;
/* margin-top: 20px; */
/* border: 1px solid black */
}
.classtitle_title_title{
......
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