Commit db74d73e by 前端

平板管理

1 parent e60e5c39
<template>
<el-dialog
title="新增信息"
:visible.sync="dialogVisible"
width="50%"
:before-close="handleClose"
>
<div class="dialog-body">
<el-timeline>
<el-timeline-item timestamp="2018/4/12" placement="top" v-for="(line,index) in lineList">
<div class="card-box">
<div class="card-item" v-for="(card,cardIndex) in line.cardList"">
<div class="card-content">运营{{ card }}</div>
<div class="card-content">原保管人:</div>
<div class="card-content">
现保管人:&nbsp;&nbsp;&nbsp;&nbsp;派发时间:
</div>
<div class="card-content">备注:</div>
<div class="card-btn">
变更
</div>
</div>
</div>
</el-timeline-item>
</el-timeline>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
</span>
</el-dialog>
</template>
<script type="text/ecmascript-6">
export default {
name: 'Timeline',
props: {
dialogVisible: {
type: Boolean,
default: true
}
},
data () {
return {
lineList: [{
time: '2020-10-02',
cardList: [1,2,3]
},{
time: '2020-10-02',
cardList: [1,2,3]
}]
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang="scss">
.dialog-body {
height: calc(100vh - 400px);
overflow-y: auto;
.card-box {
.card-item {
width: 90%;
padding: 12px;
opacity: 1;
border: 1px solid #e5e5e5;
background: #ffffff6b;
margin-bottom: 8px;
position: relative;
.card-btn {
background: #e7eefe;
line-height: 20px;
text-align: center;
position: absolute;
width: 40px;
height: 20px;
border-radius: 2px;
opacity: 1;
background: #e7eefe;
color: #185efe;
font-size: 12px;
right: 0px;
top: 0px;
}
.card-content {
color: #666666;
font-size: 12px;
line-height: 26px;
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!