From 2cc572c2a3c6efac102b141c574bceddbfc0d68e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 09 三月 2026 16:18:10 +0800
Subject: [PATCH] 进销存系统升级 1.部署修改
---
src/components/Dialog/FormDialog.vue | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/components/Dialog/FormDialog.vue b/src/components/Dialog/FormDialog.vue
index 5e21b1d..1425b6d 100644
--- a/src/components/Dialog/FormDialog.vue
+++ b/src/components/Dialog/FormDialog.vue
@@ -8,7 +8,13 @@
<slot></slot>
<template #footer>
<div class="dialog-footer">
- <el-button type="primary" @click="handleConfirm">纭</el-button>
+ <el-button
+ v-if="showConfirm"
+ type="primary"
+ @click="handleConfirm"
+ >
+ 纭
+ </el-button>
<el-button @click="handleCancel">鍙栨秷</el-button>
</div>
</template>
@@ -44,6 +50,9 @@
set: (val) => emit('update:modelValue', val)
})
+// 璇︽儏妯″紡涓嶅睍绀衡�滅‘璁も�濇寜閽紝鍏跺畠绫诲瀷姝e父鏄剧ず
+const showConfirm = computed(() => props.operationType !== 'detail')
+
const computedTitle = computed(() => {
if (typeof props.title === 'function') {
return props.title(props.operationType)
--
Gitblit v1.9.3