From 41acc01d0056630ac11083cf31397f2462acaf4e Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期五, 06 三月 2026 11:28:39 +0800
Subject: [PATCH] 一些编辑功能隐藏
---
src/pages/safeProduction/hazardSourceLedger/index.vue | 49 ++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 44 insertions(+), 5 deletions(-)
diff --git a/src/pages/safeProduction/hazardSourceLedger/index.vue b/src/pages/safeProduction/hazardSourceLedger/index.vue
index 494e3b4..b33b3b6 100644
--- a/src/pages/safeProduction/hazardSourceLedger/index.vue
+++ b/src/pages/safeProduction/hazardSourceLedger/index.vue
@@ -26,7 +26,8 @@
v-if="visitList.length > 0">
<view v-for="(item, index) in visitList"
:key="index">
- <view class="ledger-item">
+ <view class="ledger-item"
+ :class="{ 'high-risk': item.riskLevel === '閲嶅ぇ椋庨櫓' }">
<view class="item-header">
<view class="item-left">
<view class="document-icon">
@@ -86,7 +87,7 @@
@click="viewDetail(item)">
鏌ョ湅璇︽儏
</u-button>
- <u-button type="primary"
+ <!-- <u-button type="primary"
size="small"
class="action-btn"
@click="editVisit(item)">
@@ -97,7 +98,7 @@
class="action-btn"
@click="deleteVisit(item)">
鍒犻櫎
- </u-button>
+ </u-button> -->
</view>
</view>
</view>
@@ -107,12 +108,12 @@
<text>鏆傛棤鎷滆璁板綍</text>
</view>
<!-- 娴姩鏂板鎸夐挳 -->
- <view class="fab-button"
+ <!-- <view class="fab-button"
@click="addVisit">
<up-icon name="plus"
size="24"
color="#ffffff"></up-icon>
- </view>
+ </view> -->
</view>
</template>
@@ -287,5 +288,43 @@
background: #667eea; // 淇濇寔椤甸潰鐗规湁鐨勮儗鏅壊
box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3); // 淇濇寔椤甸潰鐗规湁鐨勯槾褰辨晥鏋�
}
+
+ // 閲嶅ぇ椋庨櫓鐐圭殑閱掔洰璀︾ず鏍囪瘑
+ .high-risk {
+ border-left: 8rpx solid #ff4d4f;
+ box-shadow: 0 2rpx 12rpx rgba(255, 77, 79, 0.2);
+ position: relative;
+ background-color: rgba(255, 77, 79, 0.02);
+ }
+
+ .high-risk .item-header {
+ position: relative;
+ padding-left: 20rpx;
+ }
+
+ .high-risk .item-header::after {
+ // content: "閲嶅ぇ椋庨櫓";
+ position: absolute;
+ top: 16rpx;
+ right: 20rpx;
+ font-size: 24rpx;
+ font-weight: 500;
+ color: #ff4d4f;
+ background-color: rgba(255, 77, 79, 0.1);
+ padding: 4rpx 16rpx;
+ border-radius: 16rpx;
+ border: 1rpx solid rgba(255, 77, 79, 0.3);
+ }
+
+ .high-risk .detail-row:nth-child(3) .u-tag {
+ font-size: 26rpx;
+ padding: 6rpx 16rpx;
+ border-radius: 16rpx;
+ font-weight: 500;
+ }
+
+ .high-risk .detail-row {
+ padding-left: 20rpx;
+ }
</style>
--
Gitblit v1.9.3