|
@@ -0,0 +1,149 @@
|
|
|
+<template>
|
|
|
+ <oa-scroll
|
|
|
+ customClass="invoicing-container scroll-height"
|
|
|
+ :customStyle="{}"
|
|
|
+ :refresherLoad="false"
|
|
|
+ :refresherEnabled="false"
|
|
|
+ :refresherDefaultStyle="'none'"
|
|
|
+ :refresherThreshold="44"
|
|
|
+ :refresherBackground="'#f5f6f7'"
|
|
|
+ :scrollIntoView="scrollIntoView"
|
|
|
+ :data-theme="'theme-' + proxy.$settingStore.themeColor.name"
|
|
|
+ >
|
|
|
+ <view>
|
|
|
+ <view class="menu-list mt0 mlr0" style="padding: 0.625rem">
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">事件名称</view>
|
|
|
+ <view style="color: #666666">{{ dataList.eventName }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">上报人</view>
|
|
|
+ <view style="color: #666666">{{ dataList.personnelName }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">事件类型</view>
|
|
|
+ <view style="color: #666666">{{ proxy.$common.mapping("label", "value", dataList.eventType, patrol_event_type) }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">事件等级</view>
|
|
|
+ <view style="color: #666666">{{ proxy.$common.mapping("label", "value", dataList.eventLevel, patrol_event_grade) }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">事件分类</view>
|
|
|
+ <view style="color: #666666">{{ proxy.$common.mapping("label", "value", dataList.classify, patrol_event_classify) }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">事件类型</view>
|
|
|
+ <view style="color: #666666">{{ proxy.$common.mapping("label", "value", dataList.eventType, patrol_event_type) }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">处置状态</view>
|
|
|
+ <view style="color: #666666">{{ dataList.handleStatus == 0 ? '未处置' : dataList.handleStatus == 1 ? '已处置' : '' }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">事件分类</view>
|
|
|
+ <view style="color: #666666">{{ proxy.$common.mapping("label", "value", dataList.classify, patrol_event_classify) }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">设备Id</view>
|
|
|
+ <view style="color: #666666">{{ dataList.deviceId }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">处置人</view>
|
|
|
+ <view style="color: #666666">{{ dataList.handleName }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">处置时间</view>
|
|
|
+ <view style="color: #666666"> {{ dataList.handleTime ? dataList.handleTime.replace("T", " ") : "" }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">创建人</view>
|
|
|
+ <view style="color: #666666">{{ dataList.createBy }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-cell">
|
|
|
+ <view class="menu-item">
|
|
|
+ <view style="width: 90px">创建时间</view>
|
|
|
+ <view style="color: #666666">{{ dataList.createTime }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </oa-scroll>
|
|
|
+ </template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+import { onLoad, onShow, onReady, onHide, onLaunch, onNavigationBarButtonTap, onPageScroll } from "@dcloudio/uni-app";
|
|
|
+import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue";
|
|
|
+import { errorApi } from "@/api/business/zhaf/xunJian";
|
|
|
+const { proxy } = getCurrentInstance();
|
|
|
+const { patrol_event_classify, patrol_event_grade, patrol_event_type } = proxy.useDict("patrol_event_classify", "patrol_event_grade", "patrol_event_type");
|
|
|
+const uForm = ref(null);
|
|
|
+const data = reactive({
|
|
|
+ tableData: {},
|
|
|
+ id:undefined,
|
|
|
+ scrollIntoView: "",
|
|
|
+});
|
|
|
+
|
|
|
+const { tableData, id, scrollIntoView } = toRefs(data);
|
|
|
+function pageQueryApi() {
|
|
|
+ errorApi().Select({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 1,
|
|
|
+ id:id.value,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.data.records.length > 0) {
|
|
|
+ dataList.value = res.data.records;
|
|
|
+ total.value = res.data.total;
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+onLoad((options) => {
|
|
|
+ id.value = options.id
|
|
|
+ pageQueryApi();
|
|
|
+});
|
|
|
+
|
|
|
+onReady(() => {});
|
|
|
+
|
|
|
+onShow(() => {
|
|
|
+ //调用系统主题颜色
|
|
|
+ proxy.$settingStore.systemThemeColor([1]);
|
|
|
+});
|
|
|
+
|
|
|
+// 自定义导航事件
|
|
|
+onNavigationBarButtonTap((e) => {
|
|
|
+ if (e.float == "right") {
|
|
|
+ }
|
|
|
+});
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+:deep(.uni-page-head__title) {
|
|
|
+ opacity: 1 !important;
|
|
|
+}
|
|
|
+</style>
|
|
|
+
|