From ef7f644b88bb63395f511ec74a01e0c3c3e52320 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期六, 30 十一月 2024 10:34:51 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/funingyunwei
---
h5/pages/operation/detail.vue | 37 ++++++++++++++++++++++++++++---------
1 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/h5/pages/operation/detail.vue b/h5/pages/operation/detail.vue
index ab1ce29..0420d6b 100644
--- a/h5/pages/operation/detail.vue
+++ b/h5/pages/operation/detail.vue
@@ -2,31 +2,47 @@
<view>
<view class="content">
<view class="name_wrap">
- <view class="name">xx璁惧</view>
- <view class="status red">姝e父</view>
+ <view class="name">{{info.deviceName}}</view>
+ <view class="status" v-if="info.status == 0">姝e父</view>
+ <view class="status red" v-if="info.status == 1">鎹熷潖</view>
+ <view class="status red" v-if="info.status == 2">鎶ュ簾</view>
</view>
- <view class="line">杩愮淮浜猴細xxx</view>
- <view class="line">杩愮淮鏃堕棿锛�121212</view>
+ <view class="line">杩愮淮浜猴細{{info.realName}}</view>
+ <view class="line">杩愮淮鏃堕棿锛歿{info.createDate}}</view>
</view>
<!-- -->
<view class="remark">
<view class="title">杩愮淮澶囨敞</view>
<view class="file_list">
- <view class="file">
-
+ <view class="file" v-for="item in info.multifileList">
+ <image v-if="item.type == 0" :src="item.fileurlFull" mode="widthFix"></image>
+ <video v-if="item.type == 1" :src="item.fileurlFull" :controls="false"></video>
</view>
</view>
- <view class="desc">remark</view>
+ <view class="desc">{{info.content}}</view>
</view>
</view>
</template>
-<script>
+<script>
+ import { ywDeviceDetail } from '@/api'
export default {
data() {
return {
-
+ id: '',
+ info: {}
};
+ },
+ onLoad(option) {
+ this.id = option.id
+ this.getDetail()
+ },
+ methods: {
+ getDetail() {
+ ywDeviceDetail(this.id).then(res => {
+ this.info = res.data
+ })
+ }
}
}
</script>
@@ -81,6 +97,9 @@
margin-right: 0;
}
}
+ image,video{
+ width: 156rpx;
+ }
}
.desc{
margin-top: 8rpx;
--
Gitblit v1.9.3