diff --git a/src/components/project/SearchTeacher.vue b/src/components/project/SearchTeacher.vue index 4c57d866..4a4b7056 100644 --- a/src/components/project/SearchTeacher.vue +++ b/src/components/project/SearchTeacher.vue @@ -1,20 +1,20 @@ @@ -130,6 +129,9 @@ watch(()=>props.value,(val)=>{ selectData.value = null } },{immediate:true}) +onMounted(()=>{ + console.log('hahhahahahahhaha') +}) const teacherName = ref('') const selectName = ref(null) const options = ref([]); @@ -164,7 +166,18 @@ const handleChange = (e,l) => { neworgName.value= neworgName.value[ neworgName.value.length-1] } changeValue.value = l - // emit('tlevel',l) + emit('tlevel',l) + emit('tlevel',changeValue.value) + // selectData.value = teacherName.value + emit('update:value',selectData.value) + emit('update:lable',orgName.value) + emit('update:orgId',orgId.value) + // emit('update:system',systemName.value) + emit('update:level',levelName.value) + // emit('update:newlable',neworgName.value) + emit('update:id',teacherId.value) + emit('update:payrollPlaceCode',payrollPlaceCode.value) + emit('update:payrollPlaceName',payrollPlaceName.value) }; function debounce(func, wait) { let timeout; @@ -381,6 +394,7 @@ watch(()=>teacherId.value,(val)=>{ ) }) } + emit('update:system',systemName.value) } loadingChange.value = false // emit('update:system',systemName.value) @@ -425,11 +439,11 @@ const changeOut = () => { left: 0px !important; } .pover{ - ::v-deep .ant-select-selector{ - height: 30px !important; - border-radius: 4px !important; - line-height: 30px !important; - } + // ::v-deep .ant-select-selector{ + // height: 30px !important; + // border-radius: 4px !important; + // line-height: 30px !important; + // } .search{ margin-top: 10px; } diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 0f3a739b..1c25f33d 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -3958,13 +3958,18 @@ function onFocusEnd(){ // } state.addLoading = true; editPlan(postData) - .then(() => { - getTableDate3(); - handleCancelStu(); - rest(); + .then((res) => { + if(res.data.code == 200){ + getTableDate3(); + handleCancelStu(); + rest(); + }else{ + message.error(res.data.msg) + } state.addLoading = false; }) .catch((err) => { + message.error(err.data.msg) state.loading = false; console.log(err); }); diff --git a/src/views/lecturer/InsideLecturer.vue b/src/views/lecturer/InsideLecturer.vue index 861b45cc..024721c6 100644 --- a/src/views/lecturer/InsideLecturer.vue +++ b/src/views/lecturer/InsideLecturer.vue @@ -1241,7 +1241,7 @@ export default { state.formParam.description = state.formParam.description == null ? '


' : state.formParam.description state.formParam.workExperience = state.formParam.workExperience == null ? '


' : state.formParam.workExperience state.formParam.courses = state.formParam.courses == null ? '


' : state.formParam.courses - // state.formParam.photo = state.formParam.photo === null ? avatar : state.formParam.photo + state.formParam.photo = state.formParam.photo == null ? null : state.formParam.photo.includes('upload') ? res.data.data.photo : '/upload'+res.data.data.photo state.tSystemNames.systemName = res.data.data.tsystemName state.tSystemNames.systemId = res.data.data.tsystemId state.tSystemNames.systemCode = res.data.data.systemCode @@ -1378,6 +1378,15 @@ export default { };