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