From 87edc55a377c3fca459ab48010a9716b0311c4a8 Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期一, 15 八月 2022 09:21:54 +0800 Subject: [PATCH] lct --- 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