From 13a31edf7f569cdcf15d3c43a476a2c947f47fbf Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期日, 09 十一月 2025 22:33:24 +0800
Subject: [PATCH] feat: 增加hospdata表,同步sqlserver过来
---
app/components/AttachmentUpload.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/app/components/AttachmentUpload.vue b/app/components/AttachmentUpload.vue
index 58714cd..ab0bcf5 100644
--- a/app/components/AttachmentUpload.vue
+++ b/app/components/AttachmentUpload.vue
@@ -3,7 +3,7 @@
<view class="detail-section">
<view class="section-title">
{{ title }}
- <button class="upload-btn" @click="showUploadDialog">涓婁紶闄勪欢</button>
+ <button class="upload-btn" @click="showUploadDialog" v-if="!readonly">涓婁紶闄勪欢</button>
</view>
<view v-if="attachmentList && attachmentList.length > 0">
<view class="attachment-item" v-for="(item, index) in attachmentList" :key="item.attachmentId">
@@ -20,7 +20,7 @@
</view>
<view class="attachment-actions">
<button class="action-btn view-btn" @click="viewAttachment(item)">鏌ョ湅</button>
- <button class="action-btn delete-btn" @click="deleteAttachment(item.attachmentId, index)">鍒犻櫎</button>
+ <button class="action-btn delete-btn" @click="deleteAttachment(item.attachmentId, index)" v-if="!readonly">鍒犻櫎</button>
</view>
</view>
</view>
@@ -87,6 +87,11 @@
autoLoad: {
type: Boolean,
default: true
+ },
+ // 鏄惁鍙妯″紡锛堢姝笂浼犲拰鍒犻櫎锛�
+ readonly: {
+ type: Boolean,
+ default: false
}
},
data() {
--
Gitblit v1.9.1