From ca2273f8aae1e622712a2fee43bf05b5a8fcbe11 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 19 九月 2025 13:51:41 +0800
Subject: [PATCH] 优化
---
admin/src/filters/index.js | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/admin/src/filters/index.js b/admin/src/filters/index.js
index 77559ba..c5f193c 100644
--- a/admin/src/filters/index.js
+++ b/admin/src/filters/index.js
@@ -10,12 +10,17 @@
}
return '鏈煡'
})
- // 鍚敤绂佺敤
- Vue.filter('disabledText', (value) => {
- if (value) {
- return '鍋滅敤'
- }
- return '鍚敤'
+ // 鏄惁鏂囨锛圷es Or No锛�
+ Vue.filter('YONText', value => {
+ return value ? '鏄�' : '鍚�'
+ })
+ // 鏄惁鍚敤鏂囨
+ Vue.filter('enableText', value => {
+ return value ? '鍚敤' : '绂佺敤'
+ })
+ // 鏄惁绂佺敤鏂囨
+ Vue.filter('disabledText', value => {
+ return value ? '绂佺敤' : '鍚敤'
})
Vue.filter('disabledText1', (value) => {
if (value) {
--
Gitblit v1.9.3