巡检接口
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
</view>
|
||||
<view class="item">
|
||||
<text>巡检时间:</text>
|
||||
<text>07:00:00 - 09:00:00</text>
|
||||
<text>{{ info.taskTime }}</text>
|
||||
</view>
|
||||
<view class="item">
|
||||
<text>巡检小区:</text>
|
||||
@@ -34,7 +34,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="result_box">
|
||||
<view class="result_box" v-if="baseFormData.length > 0">
|
||||
<view class="inspecton_result_title">
|
||||
<text>巡检结果</text>
|
||||
</view>
|
||||
@@ -50,15 +50,15 @@
|
||||
</view>
|
||||
<view class="inspection_items">
|
||||
<text class="label">巡检人:</text>
|
||||
<text>{{ ite.resientName }}</text>
|
||||
<text>{{ info.inspectorName }}</text>
|
||||
</view>
|
||||
<view class="inspection_items">
|
||||
<text class="label">手机号码:</text>
|
||||
<text>{{ ite.phone }}</text>
|
||||
<text>{{ info.phoneNumber }}</text>
|
||||
</view>
|
||||
<view class="inspection_items">
|
||||
<text class="label">巡检时间:</text>
|
||||
<text>{{ ite.time }}</text>
|
||||
<text>{{ ite.createTime }}</text>
|
||||
</view>
|
||||
<view class="inspection_items">
|
||||
<text class="label">巡检状态:</text>
|
||||
@@ -66,7 +66,11 @@
|
||||
</view>
|
||||
<view class="inspection_items">
|
||||
<view class="label">巡检结果:</view>
|
||||
<view class="desction_value">{{ ite.descrtion }}</view>
|
||||
<!-- <view class="desction_value"> {{ ite.desition }}</view> -->
|
||||
<view class="desction_value">
|
||||
<!-- <rich-text :nodes="ite.desition"></rich-text> -->
|
||||
<textarea class="my_textarea" disabled auto-height :value="ite.desition" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspection_items">
|
||||
<view class="label">巡检照片:</view>
|
||||
@@ -83,6 +87,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="nodata" v-else>
|
||||
<text>暂无数据</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -100,6 +107,8 @@ const info = ref({
|
||||
taskId: '',
|
||||
taskName: '',
|
||||
taskTime: '',
|
||||
inspectorName: '',
|
||||
phoneNumber: '',
|
||||
villageName: ''
|
||||
})
|
||||
const baseFormData = ref([])
|
||||
@@ -118,6 +127,7 @@ function init() {
|
||||
pointId: ite.pointId,
|
||||
pointName: ite.pointName,
|
||||
status: ite.status ?? 0,
|
||||
createTime: ite.createTime,
|
||||
desition: ite.remark,
|
||||
files: ite.imgUrl ? ite.imgUrl.split(',') : [],
|
||||
phone: '',
|
||||
@@ -134,7 +144,6 @@ function init() {
|
||||
})
|
||||
.filter(item => item !== false)
|
||||
baseFormData.value = result
|
||||
console.log(result)
|
||||
})
|
||||
.catch(err => {
|
||||
uni.showToast({
|
||||
@@ -233,7 +242,6 @@ onLoad(options => {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
margin-right: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
@@ -241,7 +249,6 @@ onLoad(options => {
|
||||
font-weight: 450;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.desction_value {
|
||||
@@ -250,6 +257,16 @@ onLoad(options => {
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
line-height: 36rpx;
|
||||
max-height: 250rpx; /* 最大高度,超出滚动 */
|
||||
overflow-y: auto; /* 超出滚动 */
|
||||
|
||||
.my_textarea {
|
||||
min-height: 80rpx;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
line-height: 36rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.linedash {
|
||||
|
||||
Reference in New Issue
Block a user