From 492802e4fc1b371ba21a2a490c8dcd67d7c8b29c Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期一, 22 六月 2026 14:03:40 +0800
Subject: [PATCH] fix: 出差和请假审批新增开始与结束日期
---
src/components/Dialog/FormDialog.vue | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/components/Dialog/FormDialog.vue b/src/components/Dialog/FormDialog.vue
index 3c6a40d..a9ec7b4 100644
--- a/src/components/Dialog/FormDialog.vue
+++ b/src/components/Dialog/FormDialog.vue
@@ -14,7 +14,7 @@
@click="handleConfirm">
纭
</el-button>
- <el-button :disabled="loading" @click="handleCancel">鍙栨秷</el-button>
+ <el-button :disabled="loading" @click="handleCancel">{{ cancelButtonText }}</el-button>
</slot>
</div>
</template>
@@ -56,6 +56,9 @@
// 璇︽儏妯″紡涓嶅睍绀衡�滅‘璁も�濇寜閽紝鍏跺畠绫诲瀷姝e父鏄剧ず
const showConfirm = computed(() => props.operationType !== "detail");
+ const cancelButtonText = computed(() =>
+ props.operationType === "detail" ? "鍏抽棴" : "鍙栨秷"
+ );
const computedTitle = computed(() => {
if (typeof props.title === "function") {
@@ -83,4 +86,3 @@
text-align: center;
}
</style>
-
--
Gitblit v1.9.3