From e9283ffe6822b12ec5dd2ccf4dc13a369b227a61 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 30 三月 2026 08:32:06 +0800
Subject: [PATCH] chore: sync rsf-design from isolated worktree

---
 rsf-design/src/views/system/role/modules/role-search.vue |   97 ++++++++++++++++++++++++------------------------
 1 files changed, 49 insertions(+), 48 deletions(-)

diff --git a/rsf-design/src/views/system/role/modules/role-search.vue b/rsf-design/src/views/system/role/modules/role-search.vue
index afcb688..a8838ab 100644
--- a/rsf-design/src/views/system/role/modules/role-search.vue
+++ b/rsf-design/src/views/system/role/modules/role-search.vue
@@ -3,84 +3,85 @@
     ref="searchBarRef"
     v-model="formData"
     :items="formItems"
-    :rules="rules"
+    :showExpand="false"
     @reset="handleReset"
     @search="handleSearch"
-  >
-  </ArtSearchBar>
+  />
 </template>
 
 <script setup>
+  import { createRoleSearchState } from '../rolePage.helpers'
+
   const props = defineProps({
     modelValue: { required: true }
   })
+
   const emit = defineEmits(['update:modelValue', 'search', 'reset'])
   const searchBarRef = ref()
+
   const formData = computed({
     get: () => props.modelValue,
     set: (val) => emit('update:modelValue', val)
   })
-  const rules = {}
-  const statusOptions = ref([
-    { label: '鍚敤', value: true },
-    { label: '绂佺敤', value: false }
-  ])
+
   const formItems = computed(() => [
     {
       label: '瑙掕壊鍚嶇О',
-      key: 'roleName',
+      key: 'name',
       type: 'input',
-      placeholder: '璇疯緭鍏ヨ鑹插悕绉�',
-      clearable: true
-    },
-    {
-      label: '瑙掕壊缂栫爜',
-      key: 'roleCode',
-      type: 'input',
-      placeholder: '璇疯緭鍏ヨ鑹茬紪鐮�',
-      clearable: true
-    },
-    {
-      label: '瑙掕壊鎻忚堪',
-      key: 'description',
-      type: 'input',
-      placeholder: '璇疯緭鍏ヨ鑹叉弿杩�',
-      clearable: true
-    },
-    {
-      label: '瑙掕壊鐘舵��',
-      key: 'enabled',
-      type: 'select',
       props: {
-        placeholder: '璇烽�夋嫨鐘舵��',
-        options: statusOptions.value,
+        placeholder: '璇疯緭鍏ヨ鑹插悕绉�',
         clearable: true
       }
     },
     {
-      label: '鍒涘缓鏃ユ湡',
-      key: 'daterange',
-      type: 'datetime',
+      label: '瑙掕壊缂栫爜',
+      key: 'code',
+      type: 'input',
       props: {
-        style: { width: '100%' },
-        placeholder: '璇烽�夋嫨鏃ユ湡鑼冨洿',
-        type: 'daterange',
-        rangeSeparator: '鑷�',
-        startPlaceholder: '寮�濮嬫棩鏈�',
-        endPlaceholder: '缁撴潫鏃ユ湡',
-        valueFormat: 'YYYY-MM-DD',
-        shortcuts: [
-          { text: '浠婃棩', value: [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] },
-          { text: '鏈�杩戜竴鍛�', value: [new Date(Date.now() - 6048e5), /* @__PURE__ */ new Date()] },
-          { text: '鏈�杩戜竴涓湀', value: [new Date(Date.now() - 2592e6), /* @__PURE__ */ new Date()] }
+        placeholder: '璇疯緭鍏ヨ鑹茬紪鐮�',
+        clearable: true
+      }
+    },
+    {
+      label: '澶囨敞',
+      key: 'memo',
+      type: 'input',
+      props: {
+        placeholder: '璇疯緭鍏ュ娉�',
+        clearable: true
+      }
+    },
+    {
+      label: '鍏抽敭瀛�',
+      key: 'condition',
+      type: 'input',
+      props: {
+        placeholder: '杈撳叆鍏抽敭瀛楁悳绱�',
+        clearable: true
+      }
+    },
+    {
+      label: '鐘舵��',
+      key: 'status',
+      type: 'select',
+      props: {
+        placeholder: '璇烽�夋嫨鐘舵��',
+        clearable: true,
+        options: [
+          { label: '姝e父', value: 1 },
+          { label: '绂佺敤', value: 0 }
         ]
       }
     }
   ])
-  const handleReset = () => {
+
+  function handleReset() {
+    emit('update:modelValue', createRoleSearchState())
     emit('reset')
   }
-  const handleSearch = async (params) => {
+
+  async function handleSearch(params) {
     await searchBarRef.value.validate()
     emit('search', params)
   }

--
Gitblit v1.9.1