新增讲师优化

This commit is contained in:
zhangsir
2024-10-16 16:53:45 +08:00
parent a13b6c27db
commit efb9279dd2

View File

@@ -93,13 +93,15 @@ const props = defineProps({
}) })
const emit = defineEmits(['update:value','update:lable','update:system','update:level','update:newlable']) const emit = defineEmits(['update:value','update:lable','update:system','update:level','update:newlable'])
const visible = ref(false); const visible = ref(false);
const selectData = ref(null);
watch(()=>props.value,(val)=>{ watch(()=>props.value,(val)=>{
if(val){ if(val){
selectData.value = val selectData.value = val
}else{
selectData.value = null
} }
}) },{immediate:true})
const teacherName = ref('') const teacherName = ref('')
const selectData = ref(null);
const selectName = ref(null) const selectName = ref(null)
const options = ref([]); const options = ref([]);
const selectOptions = ref([]) const selectOptions = ref([])
@@ -239,7 +241,7 @@ watch(()=>visible.value,(val)=>{
levelName.value = '' levelName.value = ''
neworgName.value='' neworgName.value=''
selectName.value = null selectName.value = null
selectData.value = '' // selectData.value = ''
teacherId.value = '' teacherId.value = ''
loadingChange.value = false loadingChange.value = false
// changeneworg() // changeneworg()