mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
授课记录和讲师列表新增增加搜索
This commit is contained in:
@@ -1532,7 +1532,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleOrgSearch2 = (value) => {
|
const handleOrgSearch2 = (value) => {
|
||||||
let temp = JSON.parse(JSON.stringify(state.orgListSearch));
|
let temp = JSON.parse(JSON.stringify(state.orgListSearch.filter(item => item.value !== '')));
|
||||||
//选择数据
|
//选择数据
|
||||||
state.filterOrgListSearch2 = temp.filter(item => item.label.includes(value))
|
state.filterOrgListSearch2 = temp.filter(item => item.label.includes(value))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1663,10 +1663,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleOrgSearch2 = (value) => {
|
const handleOrgSearch2 = (value) => {
|
||||||
console.log("handleOrgSearch value: ",value)
|
|
||||||
console.log("handleOrgSearch state.orgListSearch: ",JSON.parse(JSON.stringify(state.orgListSearch)))
|
|
||||||
//克隆数据
|
//克隆数据
|
||||||
let temp = JSON.parse(JSON.stringify(state.orgListSearch));
|
let temp = JSON.parse(JSON.stringify(state.orgListSearch.filter(item => item.value !== '')));
|
||||||
//选择数据
|
//选择数据
|
||||||
state.filterOrgListSearch2 = temp.filter(item => item.label.includes(value))
|
state.filterOrgListSearch2 = temp.filter(item => item.label.includes(value))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user