|
@@ -60,15 +60,15 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import { getPositionTreeClick } from '@/api/common/index'
|
|
|
|
|
|
+// import { getPositionTreeClick } from '@/api/common/index'
|
|
import { getDict } from '@/hooks/web/useDictionaries'
|
|
import { getDict } from '@/hooks/web/useDictionaries'
|
|
-
|
|
|
|
-import { reactive, ref } from 'vue';
|
|
|
|
|
|
+import { reactive, ref, defineEmits } from 'vue';
|
|
|
|
|
|
defineOptions({ name:'common-components-jobTypeCard'})
|
|
defineOptions({ name:'common-components-jobTypeCard'})
|
|
|
|
+const emits = defineEmits(['handleJobClick'])// 定义一个或多个自定义事件
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
- page: { // 是否分页
|
|
|
|
|
|
+ page: { // 左侧数据是否分页(首页有分页)
|
|
type: Boolean,
|
|
type: Boolean,
|
|
default: false
|
|
default: false
|
|
},
|
|
},
|
|
@@ -127,7 +127,8 @@ const carouselList = ref([
|
|
|
|
|
|
// 职位点击事件
|
|
// 职位点击事件
|
|
const handleJobClick = async (val) => {
|
|
const handleJobClick = async (val) => {
|
|
- await getPositionTreeClick({ id: val.id })
|
|
|
|
|
|
+ emits('jobClick', val)
|
|
|
|
+ // await getPositionTreeClick({ id: val.id })
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|