dx 5 mesiacov pred
rodič
commit
be92d17b92
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      src/views/HomeView.vue

+ 2 - 1
src/views/HomeView.vue

@@ -178,7 +178,7 @@ const onLoad = (value) => {
   listTools({
       level: '3',
       parentId: value,
-      materialName: searchValueRef.value,
+      toolName: searchValueRef.value,
       pageSize: totalPage.value,
       delFlag: 0
     }).then((res) => {
@@ -255,6 +255,7 @@ const handleChangeDropdownOfType2 = (value) => {
 
 const handleClear = () => {
   searchValueRef.value = ''
+  onLoad()
 }
 const handleDetail = (row) => {
   router.push({ path: '/detail', query: { id: row.id, toolName: row.toolName } })