From 65ed51be302c35a1c06627e713469f4420e5e2ad Mon Sep 17 00:00:00 2001
From: YDKD <1606354057@qq.com>
Date: Tue, 12 Apr 2022 15:53:07 +0800
Subject: [PATCH] docs(salary): reset form
---
src/views/salary/components/salary-panel.vue | 9 ++-------
src/views/salary/hooks/useForm.ts | 4 ++--
types/components.d.ts | 1 +
3 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/src/views/salary/components/salary-panel.vue b/src/views/salary/components/salary-panel.vue
index 14d87af..d41b6e8 100644
--- a/src/views/salary/components/salary-panel.vue
+++ b/src/views/salary/components/salary-panel.vue
@@ -18,13 +18,8 @@
-
-
+
+
diff --git a/src/views/salary/hooks/useForm.ts b/src/views/salary/hooks/useForm.ts
index 40c1994..4a23197 100644
--- a/src/views/salary/hooks/useForm.ts
+++ b/src/views/salary/hooks/useForm.ts
@@ -3,7 +3,7 @@
* @Autor: YDKD
* @Date: 2022-04-12 10:27:55
* @LastEditors: YDKD
- * @LastEditTime: 2022-04-12 15:42:33
+ * @LastEditTime: 2022-04-12 15:52:23
*/
import { getWorkerSalary } from '@/api/getApi'
import { updateWorkerSalary } from '@/api/postApi'
@@ -13,7 +13,7 @@ import { computed, ref } from 'vue'
import type { SalaryForm } from '../types'
-const searchName = ref('小王')
+const searchName = ref()
const queried = ref(false)
diff --git a/types/components.d.ts b/types/components.d.ts
index b0682af..11d00f0 100644
--- a/types/components.d.ts
+++ b/types/components.d.ts
@@ -16,6 +16,7 @@ declare module 'vue' {
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
ElForm: typeof import('element-plus/es')['ElForm']
+ 'ElForm\u02DD': typeof import('element-plus/es')['ElForm\u02DD']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon']