From 8edf0fc193df875b6e05d77be428e9134438857b Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Tue, 16 Aug 2022 19:32:54 +0800
Subject: [PATCH] Default Changelist
---
src/views/goalManagement/IncentiveRecording/index.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/views/goalManagement/IncentiveRecording/index.vue b/src/views/goalManagement/IncentiveRecording/index.vue
index e1dd080..2bc38a7 100644
--- a/src/views/goalManagement/IncentiveRecording/index.vue
+++ b/src/views/goalManagement/IncentiveRecording/index.vue
@@ -4,7 +4,7 @@
<el-row>
<el-col :span="4">
<el-form-item size="default">
- <el-input v-model="ruleForm.searchParams.personName" placeholder="请选择被奖惩者">
+ <el-input v-model="personName" placeholder="请选择被奖惩者">
<template #append>
<el-button :icon="Search" @click="openSearch" />
</template>
@@ -92,8 +92,10 @@
},
});
// 重置
+ const personName=ref()
const resetForm = () => {
ruleForm.searchParams.personId = '';
+ personName.value = '';
listApi();
};
const listApi = () => {
@@ -229,10 +231,11 @@
};
const userId = (val: any) => {
ruleForm.searchParams.personId = val.uid;
- ruleForm.searchParams.personName = val.realName;
+ personName.value = val.realName;
};
return {
timeDate,
+ personName,
ruleForm,
userId,
resetForm,
@@ -292,4 +295,4 @@
display: flex;
justify-content: right;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.2