|
@@ -1,11 +1,54 @@
|
|
<template>
|
|
<template>
|
|
- <div>searchRetrieval</div>
|
|
|
|
|
|
+ <div class="mt-3">
|
|
|
|
+ <div class="d-flex justify-center">
|
|
|
|
+ <TextInput :item="textItem" @enter="val => handleSearch('content', val)" @appendInnerClick="val => handleSearch('content', val)"></TextInput>
|
|
|
|
+ </div>
|
|
|
|
+ <Industry :selectData="industry" @select="val => industry = val"></Industry>
|
|
|
|
+ <Area></Area>
|
|
|
|
+ <CommonPage class="my-3" dictType="menduner_education_type" title="最高学历" @select="val => handleSearch('eduType', val)"></CommonPage>
|
|
|
|
+ <CommonPage dictType="menduner_exp_type" title="工作经验" @select="val => handleSearch('expType', val)"></CommonPage>
|
|
|
|
+ <v-divider class="mt-1 mb-3"></v-divider>
|
|
|
|
+ <div>
|
|
|
|
+ <div>
|
|
|
|
+ <v-chip v-for="k in industry" :key="k.id" label class="mr-3" closable @click:close="handleClose(k)">{{ k.nameCn }}</v-chip>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="industry.length" class="text-end font-size-15 color-999 cursor-pointer tips" @click="handleClear">清除选择</div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
defineOptions({ name: 'searchRetrieval' })
|
|
defineOptions({ name: 'searchRetrieval' })
|
|
|
|
+import { ref } from 'vue'
|
|
|
|
+import CommonPage from '../components/common.vue'
|
|
|
|
+import Industry from './components/industry.vue'
|
|
|
|
+import Area from './components/area.vue';
|
|
|
|
+
|
|
|
|
+const textItem = ref({
|
|
|
|
+ type: 'text',
|
|
|
|
+ width: 600,
|
|
|
|
+ value: '',
|
|
|
|
+ label: '输入关键字',
|
|
|
|
+ clearable: true,
|
|
|
|
+ appendInnerIcon: 'mdi-magnify'
|
|
|
|
+})
|
|
|
|
+
|
|
|
|
+const industry = ref([])
|
|
|
|
+const handleSearch = (key, value) => {
|
|
|
|
+ console.log(key, value, 'search')
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const handleClose = (item) => {
|
|
|
|
+ industry.value = industry.value.filter(k => k.id !== item.id)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const handleClear = () => {
|
|
|
|
+ industry.value = []
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
-
|
|
|
|
|
|
+.tips:hover {
|
|
|
|
+ color: var(--v-primary-base)
|
|
|
|
+}
|
|
</style>
|
|
</style>
|