mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
讲师费管理,选择培训发生组织 , 重新处理 过滤处理
This commit is contained in:
@@ -26,12 +26,15 @@
|
||||
<a-select
|
||||
v-model:value="searchParam.trainOrgId"
|
||||
style="width: 200px"
|
||||
:options="orgListSearch"
|
||||
allowClear
|
||||
showSearch
|
||||
:filter-option="handleOrgSearch"
|
||||
:filter-option="false"
|
||||
@search="handleOrgSearch"
|
||||
placeholder="请选择培训发生组织"
|
||||
>
|
||||
<a-select-option v-for="item in filterOrgListSearch" :key="item.value" :value="item.value">
|
||||
{{ item.label }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
|
||||
<!-- <a-select style="width: 235px ;margin-bottom:20px" v-model:value="searchParam.trainOrgId"
|
||||
@@ -592,6 +595,7 @@ export default {
|
||||
tableDataSee: [],
|
||||
SeeLoading: false,
|
||||
orgList: [],
|
||||
filterOrgListSearch: [],
|
||||
orgListSearch: [],
|
||||
selectsIds: '',
|
||||
visibleConfirm: false,
|
||||
@@ -691,6 +695,9 @@ export default {
|
||||
state.orgListSearch.unshift({
|
||||
label: '全部', value: ''
|
||||
})
|
||||
|
||||
state.filterOrgListSearch = state.orgListSearch
|
||||
|
||||
})
|
||||
}
|
||||
//费用类型
|
||||
@@ -1560,11 +1567,14 @@ export default {
|
||||
}
|
||||
|
||||
//TODO4 筛查
|
||||
const handleOrgSearch = (input , option) => {
|
||||
const handleOrgSearch = (value) => {
|
||||
//克隆数据
|
||||
let temp = JSON.parse(JSON.stringify(state.orgListSearch));
|
||||
return temp.filter((item) => item.label.includes(input))
|
||||
// return `${option.label}`.toLowerCase().includes(`${input || ''}`.toLowerCase());
|
||||
//选择数据
|
||||
state.filterOrgListSearch = temp.filter(item => item.label.includes(value))
|
||||
|
||||
}
|
||||
|
||||
|
||||
const handleImport = () => {
|
||||
state.showWork = true
|
||||
|
||||
Reference in New Issue
Block a user