diff --git a/src/components/drawers/AddFaceteach.vue b/src/components/drawers/AddFaceteach.vue index 9b0295c8..6ba63ad6 100644 --- a/src/components/drawers/AddFaceteach.vue +++ b/src/components/drawers/AddFaceteach.vue @@ -92,7 +92,7 @@
{ state.courseName = ""; - state.memberValue = null; + state.memberValue = {}; state.duration = null; state.address = null; state.before=null; @@ -569,7 +569,7 @@ export default { if ( state.courseName == "" || state.chooseCourse == null || - state.memberValue == "" || + state.memberValue == {} || state.chooseTime == [] || state.duration == "" || state.address == "" @@ -718,9 +718,9 @@ export default { }; // 获取员工 const queryMember = () => { - if (!state.memberValue) return; + if (!state.memberValue || !state.memberValue.label) return; let obj = { - keyWord: state.memberValue, + keyWord: state.memberValue.label, id: 0, org: 0, pageNo: state.currentPage, @@ -747,7 +747,7 @@ export default { options.value = []; state.fetching = true; state.currentPage = 1; - state.memberValue = memberValue; + state.memberValue.label = memberValue; queryMember(); state.fetching = false; }, 300);