You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
152 lines
2.8 KiB
152 lines
2.8 KiB
<template>
|
|
<view class="main">
|
|
<view class="searchBox">
|
|
<searchRow placeholder="请输入机器/命令/退出码/描述" />
|
|
</view>
|
|
<view class="tabs">
|
|
<myTab :tabList="tabList" @tabClick="tabClick"></myTab>
|
|
</view>
|
|
<view class="ul">
|
|
<view class="total">共3条</view>
|
|
<view class="card">
|
|
<view class="row">
|
|
<view class="lab">执行机器</view>
|
|
<view class="val">192.68.1.44主机</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="lab">执行命令</view>
|
|
<view class="val ">host</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="lab">退出码</view>
|
|
<view class="val blue">host</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="lab">持续时间</view>
|
|
<view class="val ">host</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="lab">执行用户</view>
|
|
<view class="val ">host</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="lab">创建时间</view>
|
|
<view class="val ">host</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="lab">描述</view>
|
|
<view class="val ">host</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="lab">状态</view>
|
|
<view class="val">
|
|
已停止 执行中 异常 未开始 已完成
|
|
</view>
|
|
</view>
|
|
<view class="status_row">
|
|
<view class="blueTxt">日志</view>
|
|
<view class="blueTxt">再次执行</view>
|
|
<view class="blueTxt" style="color: #ff2222;">删除</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
tabList: [{
|
|
name: '全部',
|
|
id: 0
|
|
}, {
|
|
name: '未开始',
|
|
}, {
|
|
name: '执行中'
|
|
},{
|
|
name: '已完成'
|
|
},{
|
|
name: '异常'
|
|
}, {
|
|
name: '已停止'
|
|
}, ]
|
|
}
|
|
},
|
|
methods: {
|
|
tabClick(item) {
|
|
console.log('item', item);
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.searchBox {
|
|
padding: 16rpx 30rpx;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.tabs {
|
|
background-color: #fff;
|
|
margin-top: 8rpx;
|
|
padding: 16rpx 0;
|
|
}
|
|
|
|
.ul {
|
|
width: 100%;
|
|
padding: 0 30rpx 40rpx 30rpx;
|
|
.total {
|
|
height: 66rpx;
|
|
line-height: 66rpx;
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
text-align: right;
|
|
}
|
|
|
|
.card {
|
|
padding: 10rpx 28rpx;
|
|
.row {
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 16rpx 0;
|
|
font-size: 26rpx;
|
|
color: #333;
|
|
.lab {
|
|
}
|
|
|
|
.val {
|
|
&.blue {
|
|
color: $themC;
|
|
}
|
|
&.hui {
|
|
color: #999;
|
|
}
|
|
&.yellow {
|
|
color: #fc7710;
|
|
}
|
|
}
|
|
.flex {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
.icon {
|
|
width: 28rpx;
|
|
height: 30rpx;
|
|
margin-right: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
.status_row {
|
|
color: $themC;
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
display: flex;
|
|
padding: 20rpx 0;
|
|
.blueTxt {
|
|
flex: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|