lct
Your Name
2022-08-15 87edc55a377c3fca459ab48010a9716b0311c4a8
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>
</style>