From b83e8417c341636a6da3a8eb7db7c151ef3c00cd Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 04 十一月 2025 15:34:40 +0800
Subject: [PATCH] 巡查菜单权限设置
---
src/pages/routingInspection/upload.vue | 28 +++++++++++++++++++---------
1 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/src/pages/routingInspection/upload.vue b/src/pages/routingInspection/upload.vue
index 4e18c6b..1a50117 100644
--- a/src/pages/routingInspection/upload.vue
+++ b/src/pages/routingInspection/upload.vue
@@ -16,7 +16,12 @@
<!-- 闄勪欢鍒楄〃 -->
<view class="attachment-list">
- <wd-status-tip v-if="attachmentList.length === 0" image="content" tip="鏆傛棤闄勪欢" />
+ <wd-status-tip
+ v-if="attachmentList.length === 0"
+ image="content"
+ tip="鏆傛棤闄勪欢"
+ custom-class="status-tip-full"
+ />
<view v-for="(item, index) in attachmentList" :key="item.id || index" class="attachment-card">
<view class="media-wrapper" @click="previewAttachment(item)">
@@ -198,21 +203,21 @@
const addAttachment = () => {
// 鏄剧ず閫夋嫨鏂囦欢绫诲瀷鐨勫脊绐�
uni.showActionSheet({
- itemList: ["閫夋嫨鍥剧墖", "閫夋嫨瑙嗛", "鎷嶇収", "褰曞儚"],
+ itemList: ["閫夋嫨鍥剧墖", /* "閫夋嫨瑙嗛", */ "鎷嶇収" /* , "褰曞儚" */],
success: (res) => {
switch (res.tapIndex) {
case 0: // 閫夋嫨鍥剧墖
chooseImages();
break;
- case 1: // 閫夋嫨瑙嗛
- chooseVideos();
- break;
- case 2: // 鎷嶇収
+ // case 1: // 閫夋嫨瑙嗛
+ // chooseVideos();
+ // break;
+ case 1: // 鎷嶇収
takePhoto();
break;
- case 3: // 褰曞儚
- recordVideo();
- break;
+ // case 3: // 褰曞儚
+ // recordVideo();
+ // break;
}
},
fail: (error) => {
@@ -475,6 +480,11 @@
grid-template-columns: repeat(3, 1fr);
gap: 8px;
+ :deep(.status-tip-full) {
+ grid-column: 1 / -1;
+ width: 100%;
+ }
+
.attachment-card {
width: 100%;
position: relative;
--
Gitblit v1.9.3