fix:项目内学员搜索问题

This commit is contained in:
wyx
2023-03-23 14:01:11 +08:00
parent 5544b1b152
commit d257b04e6e

View File

@@ -27,7 +27,7 @@
</template> </template>
搜索 搜索
</a-button> </a-button>
<a-button @click="resetProjectStu" style="margin-left: 20px; border-radius: 4px">重置 <a-button type="primary" @click="resetProjectStu" style="margin-left: 20px; border-radius: 4px">重置
</a-button> </a-button>
</a-form-item> </a-form-item>
</div> </div>
@@ -377,7 +377,10 @@ const stuTableRef = ref();
const projectParams = ref({ pid: props.infoId, type: props.infoType }); const projectParams = ref({ pid: props.infoId, type: props.infoType });
const getProjectStu = () => projectStuTableRef.value.fetch(); const getProjectStu = () => projectStuTableRef.value.fetch();
const resetProjectStu = () => projectStuTableRef.value.reset(); const resetProjectStu = () => {
projectParams.value.studentName = "";
projectStuTableRef.value.reset()
};
const person = ref(false); const person = ref(false);
const group = ref(false); const group = ref(false);
@@ -541,6 +544,8 @@ const orgRowSelection = computed(() => ({
const closeDrawer = () => { const closeDrawer = () => {
deleteDepSelect(); deleteDepSelect();
projectParams.value.studentName = "";
projectStuTableRef.value.reset();
visiable.value = false; visiable.value = false;
nameSearch.value.keyword = ""; nameSearch.value.keyword = "";
selectedOrgKeys.value = []; selectedOrgKeys.value = [];