<template>
|
<view class="main_app">
|
<view class="head_wrap">
|
<view class="search_wrap">
|
<image class="mr12 search" src="@/static/home/ic_search@2x.png" mode="widthFix"></image>
|
<input v-model="param.keyword" @confirm="getList()" type="text" placeholder="搜索设备名称/编号" placeholder-class="placeholder9" />
|
</view>
|
<view class="name_wrap" @click="showModal = true">
|
<view class="name">运维人</view>
|
<u-icon :name="showModal ? 'arrow-right' : 'arrow-down'" color="#999999" size="12"></u-icon>
|
</view>
|
</view>
|
<!-- -->
|
<view class="list">
|
<view class="item" v-for="item in 10" @click="itemClick(item)">
|
<image src="@/static/side/ic_shuiyu@2x.png" class="icon"></image>
|
<view class="content">
|
<view class="name_wrap">
|
<view class="name">
|
<text class="device">xx设备</text>
|
<text>D20231</text>
|
</view>
|
<view class="status red">正常</view>
|
</view>
|
<view class="line">运维人:xxx</view>
|
<view class="line">运维时间:121212</view>
|
</view>
|
|
</view>
|
</view>
|
<!-- -->
|
<u-picker :show="showModal" keyName="name" @cancel="showModal = false" @confirm='confirm'
|
:columns="columns"></u-picker>
|
</view>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
param: {},
|
columns: [],
|
showModal: false
|
};
|
},
|
methods: {
|
getList() {},
|
confirm() {
|
this.showModal = false
|
},
|
itemClick() {
|
uni.navigateTo({
|
url: '/pages/operation/detail'
|
})
|
}
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.main_app{
|
padding: 0 30rpx;
|
}
|
.head_wrap {
|
display: flex;
|
align-items: center;
|
|
.search_wrap {
|
display: flex;
|
align-items: center;
|
width: 540rpx;
|
height: 76rpx;
|
background: #F7F7F7;
|
border-radius: 38rpx;
|
padding-left: 30rpx;
|
input{
|
flex: 1;
|
}
|
.search {
|
width: 28rpx;
|
height: 28rpx;
|
}
|
}
|
|
.name_wrap {
|
display: flex;
|
align-items: center;
|
margin-left: 12rpx;
|
justify-content: flex-end;
|
flex: 1;
|
}
|
}
|
|
.list {
|
.item {
|
display: flex;
|
height: 228rpx;
|
padding: 30rpx 0;
|
border-bottom: 2rpx solid #E5E5E5;
|
.icon {
|
width: 80rpx;
|
height: 80rpx;
|
margin-right: 24rpx;
|
}
|
|
.content {
|
flex: 1;
|
color: #666666;
|
display: flex;
|
flex-direction: column;
|
justify-content: space-between;
|
.name_wrap{
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
.name{
|
display: flex;
|
align-items: flex-end;
|
font-size: 26rpx;
|
.device{
|
font-weight: 600;
|
font-size: 34rpx;
|
color: #222222;
|
margin-right: 6rpx;
|
}
|
}
|
.status{
|
color: $primaryColor;
|
}
|
}
|
}
|
}
|
}
|
</style>
|