alertDetail.vue
1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<template>
<view class="alert-detail-page">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<view style="border-radius: 20px;width: 688rpx;height: 573rpx;background-color: #FFFFFF;">
<u-list @scrolltolower="scrolltolower">
<u-list-item v-for="(item, index) in list" :key="index"><u-cell :title="item.name" :value="item.val"></u-cell></u-list-item>
</u-list>
</view>
<view style="color:#333333,font-size:15px;margin-top: 20rpx;">处理结果</view>
<view style="margin-top: 20rpx;;border-radius: 20px;width: 688rpx;height: 273rpx;background-color: #FFFFFF;">
<u--form labelPosition="left" :model="formModel" ref="form1">
<u-form-item label="." prop="result" ref="item3">
<u--textarea border="none" height="96" placeholder="请输入处理结果" v-model="formModel.result" count></u--textarea>
</u-form-item>
</u--form>
</view>
<view style="width: 500rpx;margin-left: 80rpx;margin-top: 44rpx;"><u-button @click="handleSubmit" type="primary" shape="circle" text="处理"></u-button></view>
<f-tabbar></f-tabbar>
</view>
</template>
<script>
import fTabbar from '@/components/module/f-tabbar/f-tabbar';
export default {
components: {
fTabbar
},
data() {
return {
formModel: {
result: ''
},
list: [
{
name: '新疆1-59-25栏位网关子设备',
val: '22'
},
{
name: '告警级别',
val: '危险'
},
{
name: '所属组织',
val: '1-59-25栏位'
},
{
name: '告警值',
val: '856'
},
{
name: '告警时间',
val: '2022-01-25 12:53:22'
},
{
name: '告警状态',
val: '激活未确认'
}
]
};
},
onLoad(e) {
// 隐藏原生的tabbar
uni.hideTabBar();
},
methods: {
handleSubmit() {}
}
};
</script>
<style lang="scss" scoped>
.alert-detail-page {
padding: 30rpx;
}
</style>