mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 17:26:46 +08:00
讲师管理bug
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-popover :getPopupContainer="
|
||||
<!-- <a-popover :getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
" v-model:visible="visible" placement="bottom" trigger="click">
|
||||
<template #content v-if="!disabled">
|
||||
" v-model:visible="visible" placement="bottom" trigger="click"> -->
|
||||
<!-- <template #content v-if="!disabled"> -->
|
||||
<div class="pover">
|
||||
<div class="search">
|
||||
<a-select
|
||||
v-model:value="selectName"
|
||||
:disabled="disabled"
|
||||
v-model:value="selectData"
|
||||
style="width: 100%"
|
||||
placeholder="请查询姓名或工号"
|
||||
:options="isOpen?options:selectOptions"
|
||||
:filter-option="false"
|
||||
allowClear
|
||||
showSearch
|
||||
:open="isOpen"
|
||||
:defaultOpen="false"
|
||||
@@ -28,7 +28,7 @@
|
||||
</template>
|
||||
</a-select>
|
||||
</div>
|
||||
<div class="tree">
|
||||
<!-- <div class="tree">
|
||||
<a-tree show-icon allow-clear tree-default-expand-all :tree-data="treeData" :loading="orgLoading"
|
||||
:load-data="onLoadData" @expand="onExpand" v-model:selectedKeys="stuTreeSelectKeys"
|
||||
v-model:expandedKeys="stuTreeExpandedKeys" :fieldNames="{
|
||||
@@ -44,12 +44,11 @@
|
||||
</div>
|
||||
<div class="btn">
|
||||
<div class="btn0 btn1" @click="notChange">取消</div>
|
||||
<!-- <div class="btn0 btn2" @click="changeOut">确定</div> -->
|
||||
<a-button :loading="loadingChange" @click="changeOut" class="btn0 btn2" type="primary">确定</a-button>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</template>
|
||||
<a-select
|
||||
<!-- </template> -->
|
||||
<!-- <a-select
|
||||
v-model:value="selectData"
|
||||
style="width: 100%"
|
||||
placeholder="请选择讲师"
|
||||
@@ -62,8 +61,8 @@
|
||||
<template v-if="loading" #notFoundContent>
|
||||
<a-spin size="small"/>
|
||||
</template>
|
||||
</a-select>
|
||||
</a-popover>
|
||||
</a-select> -->
|
||||
<!-- </a-popover> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user