160 lines
2.9 KiB
Plaintext
160 lines
2.9 KiB
Plaintext
<template>
|
|
<view class="history_wrap">
|
|
<text class="history_back_text" @click="handleBackIndex">返回</text>
|
|
<text class="history_title">历史操作记录</text>
|
|
<view class="table_wrap">
|
|
<view class="table_title">
|
|
<text class="table_title_item_one">动作</text>
|
|
<text class="table_title_item_two">实时参数</text>
|
|
<text class="table_title_item_one">时间</text>
|
|
</view>
|
|
<scroll-view
|
|
class="history_list"
|
|
scroll-x ="false"
|
|
scroll-y
|
|
onscrolltoupper="handleRefresh"
|
|
onscrolltolower="handleLoadMore"
|
|
>
|
|
<view
|
|
class="history_list_inline"
|
|
v-for="item in listData"
|
|
>
|
|
<text class="history_list_inline_item_one">{{item.name}}</text>
|
|
<text class="history_list_inline_item_two">111</text>
|
|
<text class="history_list_inline_item_one">111</text>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
name: 'history',
|
|
data() {
|
|
return{
|
|
listData:[
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'},
|
|
{name:'1'}
|
|
]
|
|
}
|
|
},
|
|
apiready(){
|
|
|
|
},
|
|
methods: {
|
|
//返回首页
|
|
handleBackIndex(){
|
|
api.navigateBack({
|
|
delta: 2,
|
|
});
|
|
},
|
|
//下拉刷新
|
|
handleRefresh(){
|
|
console.log("顶部触发");
|
|
},
|
|
//加载更多
|
|
handleLoadMore(){
|
|
console.log("加载更多");
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
<style>
|
|
.history_wrap{
|
|
width: 100%;
|
|
height: 100vh;
|
|
box-sizing: border-box;
|
|
padding: 20px;
|
|
background-image: url("../../image/login.png");
|
|
background-size: 120%;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
position: absolute;
|
|
}
|
|
.history_back_text{
|
|
font-size: 40px;
|
|
color: #ffffff;
|
|
font-weight: bold;
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 20px;
|
|
}
|
|
.history_title{
|
|
width: 100%;
|
|
text-align: center;
|
|
font-size: 40px;
|
|
font-weight: bold;
|
|
color: #ffffff;
|
|
}
|
|
.table_wrap{
|
|
width: 100%;
|
|
margin-top: 20px;
|
|
}
|
|
.table_title{
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
.table_title_item_one{
|
|
font-size: 36px;
|
|
color: #ffffff;
|
|
border: 1px solid #ffffff;
|
|
width: 20%;
|
|
box-sizing: border-box;
|
|
padding: 10px;
|
|
text-align: center;
|
|
}
|
|
.table_title_item_two{
|
|
font-size: 36px;
|
|
color: #ffffff;
|
|
border: 1px solid #ffffff;
|
|
width: 60%;
|
|
box-sizing: border-box;
|
|
padding: 10px;
|
|
text-align: center;
|
|
}
|
|
.history_list{
|
|
border: 1px solid silver;
|
|
width: 100%;
|
|
height: 70vh;
|
|
}
|
|
.history_list_inline{
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
.history_list_inline_item_one{
|
|
font-size: 32px;
|
|
color: #ffffff;
|
|
border: 1px solid #ffffff;
|
|
width: 20%;
|
|
box-sizing: border-box;
|
|
padding: 10px;
|
|
}
|
|
.history_list_inline_item_two{
|
|
font-size: 32px;
|
|
color: #ffffff;
|
|
border: 1px solid #ffffff;
|
|
width: 60%;
|
|
box-sizing: border-box;
|
|
padding: 10px;
|
|
}
|
|
</style> |