mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-25 10:42:54 +08:00
授课管理, 添加授课记录
This commit is contained in:
@@ -284,8 +284,13 @@
|
||||
/>
|
||||
培训发生组织
|
||||
</template>
|
||||
<a-select v-model:value="formParam.trainOrgId" placeholder="请选择培训发生组织" allowClear showSearch
|
||||
:options="orgList" @change="changeOrg">
|
||||
<!-- TODO5 授课讲师 -->
|
||||
<a-select v-model:value="formParam.trainOrgId" placeholder="请选择培训发生组织" allowClear
|
||||
showSearch
|
||||
:filter-option="false"
|
||||
:options="filterOrgListSearch"
|
||||
@search="handleOrgSearch"
|
||||
@change="changeOrg">
|
||||
</a-select>
|
||||
<!-- <OrgClass v-model:value="formParam.sourceBelongId" v-model:name="formParam.sourceBelongFullName"></OrgClass> -->
|
||||
</a-form-item>
|
||||
@@ -963,6 +968,7 @@ export default {
|
||||
pageSize:50
|
||||
}
|
||||
queryTrainOrgPor(obj).then((res) => {
|
||||
//TODO5 赋值语句
|
||||
state.orgList = res.data.data?.map(item=>{
|
||||
return{
|
||||
label: item.affiliationName,
|
||||
@@ -978,9 +984,19 @@ export default {
|
||||
state.orgListSearch.unshift({
|
||||
label: '全部', value: ''
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
//TODO5
|
||||
const changeOrg = (e,l) => {
|
||||
console.log("changeOrg e",e);
|
||||
console.log("changeOrg l",l);
|
||||
if(l == undefined || l == null){
|
||||
state.filterOrgListSearch = state.orgListSearch;
|
||||
}
|
||||
state.formParam.trainOrgName = l?.label
|
||||
}
|
||||
const rules = {
|
||||
@@ -1489,6 +1505,16 @@ export default {
|
||||
const sendRemark = () => {
|
||||
state.formParam.remark = state.formParam.remark.replace(/\s/g, '');
|
||||
}
|
||||
|
||||
//TODO5
|
||||
const handleOrgSearch = (value) => {
|
||||
let temp = JSON.parse(JSON.stringify(state.orgListSearch));
|
||||
//选择数据
|
||||
state.filterOrgListSearch = temp.filter(item => item.label.includes(value))
|
||||
}
|
||||
|
||||
|
||||
|
||||
return {
|
||||
...toRefs(state),
|
||||
sendName,
|
||||
@@ -1548,7 +1574,8 @@ export default {
|
||||
// editTimeChange,
|
||||
scoreChange,
|
||||
locale,
|
||||
checkMenu
|
||||
checkMenu,
|
||||
handleOrgSearch
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user