From 6e1cb1b850f3536eb91b3247f2b5e6aadf6805c9 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期二, 03 二月 2026 16:52:43 +0800
Subject: [PATCH] 样式修改
---
src/pages/safeProduction/dangerInvestigation/view.vue | 203 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 203 insertions(+), 0 deletions(-)
diff --git a/src/pages/safeProduction/dangerInvestigation/view.vue b/src/pages/safeProduction/dangerInvestigation/view.vue
new file mode 100644
index 0000000..0be7245
--- /dev/null
+++ b/src/pages/safeProduction/dangerInvestigation/view.vue
@@ -0,0 +1,203 @@
+<template>
+ <view class="danger-investigation-view">
+ <PageHeader title="闅愭偅璇︽儏"
+ @back="goBack" />
+ <!-- 鍐呭瀹瑰櫒 -->
+ <view class="content-container">
+ <!-- 闅愭偅淇℃伅 -->
+ <view class="section">
+ <view class="section-title">闅愭偅淇℃伅</view>
+ <view class="info-item">
+ <text class="info-label">闅愭偅缂栧彿</text>
+ <text class="info-value">{{ form.hiddenCode || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">闅愭偅绫诲瀷</text>
+ <text class="info-value">{{ hidden_danger_type.find(i => String(i.value) === String(form.type))?.label || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">椋庨櫓绛夌骇</text>
+ <text class="info-value">{{ form.riskLevel || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">闅愭偅鎻忚堪</text>
+ <text class="info-value">{{ form.hiddenDesc || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">闅愭偅鍏蜂綋浣嶇疆</text>
+ <text class="info-value">{{ form.location || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">涓婃姤浜�</text>
+ <text class="info-value">{{ form.createUserName || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">涓婃姤鏃堕棿</text>
+ <text class="info-value">{{ form.createTime || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">鏁存敼瀹屾垚鏈熼檺</text>
+ <text class="info-value">{{ form.rectifyTime || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">鏁存敼璐d换浜�</text>
+ <text class="info-value">{{ form.rectifyUserName || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">鏁存敼璐d换浜鸿仈绯绘柟寮�</text>
+ <text class="info-value">{{ form.rectifyUserMobile || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">鏁存敼鍏蜂綋鎺柦</text>
+ <text class="info-value">{{ form.rectifyMeasures || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">瀹為檯鏁存敼瀹屾垚鏃堕棿</text>
+ <text class="info-value">{{ form.rectifyActualTime || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">楠屾敹鏃堕棿</text>
+ <text class="info-value">{{ form.verifyTime || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">楠屾敹浜�</text>
+ <text class="info-value">{{ form.verifyUserName || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">楠屾敹缁撴灉</text>
+ <text class="info-value">{{ form.verifyResult || '-' }}</text>
+ </view>
+ <view class="info-item">
+ <text class="info-label">楠屾敹鎰忚</text>
+ <text class="info-value">{{ form.verifyRemark || '-' }}</text>
+ </view>
+ </view>
+ </view>
+ </view>
+</template>
+
+<script setup>
+ // 鏇挎崲 toast 鏂规硶
+ const showToast = message => {
+ uni.showToast({
+ title: message,
+ icon: "none",
+ });
+ };
+
+ import { ref, onMounted } from "vue";
+ import PageHeader from "@/components/PageHeader.vue";
+ import useUserStore from "@/store/modules/user";
+ import { onLoad } from "@dcloudio/uni-app";
+ import { useDict } from "@/utils/dict";
+
+ const { hidden_danger_type } = useDict("hidden_danger_type");
+ const userStore = useUserStore();
+
+ // 琛ㄥ崟鏁版嵁
+ const form = ref({
+ hiddenCode: "",
+ hiddenType: "",
+ riskLevel: "",
+ hiddenDesc: "",
+ location: "",
+ createUserName: "",
+ createTime: "",
+ rectifyTime: "",
+ rectifyUserName: "",
+ rectifyUserMobile: "",
+ rectifyMeasures: "",
+ rectifyActualTime: "",
+ rectifyResult: "",
+ acceptanceTime: "",
+ acceptanceOpinion: "",
+ verifyResult: "",
+ });
+
+ // 杩斿洖涓婁竴椤�
+ const goBack = () => {
+ // 杩斿洖鏃舵竻闄ゆ湰鍦板瓨鍌ㄧ殑鏁版嵁
+ uni.removeStorageSync("dangerInvestigation");
+ uni.navigateBack();
+ };
+
+ // 鍒濆鍖栭〉闈㈡暟鎹�
+ const initPageData = () => {
+ // 浠庢湰鍦板瓨鍌ㄨ幏鍙栭殣鎮h鎯�
+ const row = uni.getStorageSync("dangerInvestigation");
+ if (row) {
+ form.value = { ...row };
+ } else {
+ showToast("鏆傛棤闅愭偅鏁版嵁");
+ }
+ };
+
+ onMounted(() => {
+ initPageData();
+ });
+</script>
+
+<style scoped lang="scss">
+ @import "@/static/scss/form-common.scss";
+ .danger-investigation-view {
+ min-height: 100vh;
+ background-color: #f8f9fa;
+ }
+
+ .content-container {
+ padding: 16px;
+ }
+
+ .section {
+ background-color: #ffffff;
+ border-radius: 12px;
+ margin-bottom: 16px;
+ overflow: hidden;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
+ }
+
+ .section-title {
+ font-size: 16px;
+ font-weight: 600;
+ color: #333333;
+ padding: 16px 16px 12px;
+ border-bottom: 1px solid #f0f0f0;
+ }
+
+ .info-item {
+ display: flex;
+ padding: 14px 16px;
+ border-bottom: 1px solid #f8f8f8;
+ align-items: flex-start;
+ }
+
+ .info-item:last-child {
+ border-bottom: none;
+ }
+
+ .info-label {
+ font-size: 14px;
+ color: #666666;
+ min-width: 80px;
+ flex-shrink: 0;
+ line-height: 22px;
+ }
+
+ .info-value {
+ font-size: 14px;
+ color: #333333;
+ flex: 1;
+ line-height: 22px;
+ text-align: right;
+ }
+
+ .multi-line {
+ text-align: left;
+ word-break: break-all;
+ line-height: 1.6;
+ }
+
+ .remark-item {
+ padding-bottom: 16px;
+ }
+</style>
\ No newline at end of file
--
Gitblit v1.9.3