Browse Source

修改文件

ZaiZai 1 year ago
parent
commit
b098f2c45b
3 changed files with 36 additions and 10 deletions
  1. 1 1
      package.json
  2. 31 5
      src/views/system/user.vue
  3. 4 4
      yarn.lock

+ 1 - 1
package.json

@@ -19,7 +19,7 @@
         "dayjs": "^1.11.11",
         "echarts": "^5.5.0",
         "element-plus": "2.7.2",
-        "hc-vue3-ui": "^3.9.2",
+        "hc-vue3-ui": "^3.9.4",
         "js-base64": "^3.7.7",
         "js-fast-way": "^0.5.0",
         "js-md5": "^0.8.3",

+ 31 - 5
src/views/system/user.vue

@@ -2,15 +2,26 @@
     <hc-body split>
         <template #left>
             <hc-card scrollbar>
-                <template #header>
-                    <el-input v-model="treeKeyFilter" placeholder="请输入关键字进行过滤" />
-                </template>
-                <hc-lazy-tree :h-props="treeProps" @load="treeLoadNode">
+                <hc-lazy-tree :is-root-expand="false" :h-props="treeProps" @load="treeLoadNode">
                     <template #default="{ node }">{{ node.label }}</template>
                 </hc-lazy-tree>
             </hc-card>
         </template>
         <hc-card>
+            <template #header>
+                <div class="w-32">
+                    <el-select v-model="searchForm.type" placeholder="用户平台" filterable clearable block>
+                        <el-option label="字典编号" value="code" />
+                        <el-option label="字典名称" value="dictValue" />
+                    </el-select>
+                </div>
+                <div class="w-60">
+                    <hc-search-input v-model="searchForm.name" placeholder="请输入关键字" @search="searchClick" />
+                </div>
+            </template>
+            <template #extra>
+                <el-button hc-btn type="primary">新增</el-button>
+            </template>
             其它内容
         </hc-card>
     </hc-body>
@@ -26,7 +37,6 @@ onActivated(()=> {
 })
 
 //数据格式
-const treeKeyFilter = ref('')
 const treeProps = {
     label: 'title',
     children: 'children',
@@ -39,4 +49,20 @@ const treeLoadNode = async ({ item, level }, resolve) => {
     const { data } = await deptApi.getDeptLazyTree(parentId)
     resolve(getArrValue(data))
 }
+
+
+//搜索表单
+const searchForm = ref({ current: 1, size: 30, total: 0 })
+
+//搜索
+const searchClick = () => {
+    searchForm.value.current = 1
+    getTableData()
+}
+
+
+//获取用户数据
+const getTableData = async () => {
+
+}
 </script>

+ 4 - 4
yarn.lock

@@ -2069,10 +2069,10 @@ has-flag@^4.0.0:
   resolved "http://39.108.216.210:9000/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
   integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
 
-hc-vue3-ui@^3.9.2:
-  version "3.9.2"
-  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.9.2.tgz#0be5a9e988d1c7a1ddc4e7692cdc533418973ac2"
-  integrity sha512-VcVculLW7u2hve3F5bMk12qhjFIycZWvtGQzm7npzuwLYmUX0m7hI8NRNP5xo8FwWFqhAo0FVbHANZTq9AtTJA==
+hc-vue3-ui@^3.9.4:
+  version "3.9.4"
+  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.9.4.tgz#c2f6215a304a91fafe73b80edccc331944c2c670"
+  integrity sha512-QSrBWXD/ILFD86x7elcyV17uM9hB0nJpGmfUaiWgbEcUEt44+tfpa5Ur0x2T6Mw38SSJHr2k60epMefsL+F2uw==
   dependencies:
     axios "^1.6.8"
     dayjs "^1.11.11"