| | |
| | | <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> |
| | |
| | | }, |
| | | }); |
| | | // 重置 |
| | | const personName=ref() |
| | | const resetForm = () => { |
| | | ruleForm.searchParams.personId = ''; |
| | | personName.value = ''; |
| | | listApi(); |
| | | }; |
| | | const listApi = () => { |
| | |
| | | }; |
| | | const userId = (val: any) => { |
| | | ruleForm.searchParams.personId = val.uid; |
| | | ruleForm.searchParams.personName = val.realName; |
| | | personName.value = val.realName; |
| | | }; |
| | | return { |
| | | timeDate, |
| | | personName, |
| | | ruleForm, |
| | | userId, |
| | | resetForm, |
| | |
| | | display: flex; |
| | | justify-content: right; |
| | | } |
| | | </style> |
| | | </style> |