|
@@ -15,9 +15,10 @@
|
|
|
<script setup>
|
|
|
import commonStyle from './commonStyle.vue'
|
|
|
import { getDict } from '@/hooks/web/useDictionaries'
|
|
|
-import { ref } from 'vue';
|
|
|
+import { ref, defineEmits } from 'vue';
|
|
|
|
|
|
defineOptions({name: 'conditionFilter-JobType'})
|
|
|
+const emits = defineEmits(['selectedItems'])
|
|
|
let items = ref()
|
|
|
const selectedItems = ref([])
|
|
|
getDict('menduner_job_type').then(({ data }) => { // 求职类型
|
|
@@ -25,9 +26,9 @@ getDict('menduner_job_type').then(({ data }) => { // 求职类型
|
|
|
items.value = data
|
|
|
})
|
|
|
const handle = (val) => {
|
|
|
- if (selectedItems.value.includes(val)) selectedItems.value.filter(i => i === val)
|
|
|
+ if (selectedItems.value.includes(val)) selectedItems.value = selectedItems.value.filter(i => i !== val)
|
|
|
else selectedItems.value.push(val)
|
|
|
- console.log('求职类型', val)
|
|
|
+ emits('selectedItems', selectedItems.value)
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|