|
@@ -1,10 +1,49 @@
|
|
<template>
|
|
<template>
|
|
- <div>position</div>
|
|
|
|
|
|
+ <view>
|
|
|
|
+ <view v-if="loading" class="vertical-center">{{ loadingText }}</view>
|
|
|
|
+ <view v-else>
|
|
|
|
+ {{ loadingText }}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-</script>
|
|
|
|
|
|
+// import { commissionCalculation } from '@/utils/position'
|
|
|
|
+// import loginPage from '@/views/common/loginDialog.vue'
|
|
|
|
+// import simplePage from './sendResume/simple.vue'
|
|
|
|
+// import selectPage from './sendResume/select.vue'
|
|
|
|
+import { reactive, ref } from 'vue';
|
|
|
|
+// import { getPositionDetails, jobCvRelCheckSend, getPersonJobUnfavorite, getPersonJobFavorite, getJobFavoriteCheck } from '@/api/position'
|
|
|
|
+import { dealDictObjData } from '@/utils/position'
|
|
|
|
+// import { getToken } from '@/utils/auth'
|
|
|
|
+// import Snackbar from '@/plugins/snackbar'
|
|
|
|
+import { onLoad } from '@dcloudio/uni-app';
|
|
|
|
|
|
-<style scoped lang="scss">
|
|
|
|
|
|
+const loading = ref(false)
|
|
|
|
+const loadingText = ref('加载中 . . . ')
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// 职位详情
|
|
|
|
+const info = ref({})
|
|
|
|
+const positionInfo = ref({})
|
|
|
|
+const getPositionDetail = async () => {
|
|
|
|
+ const data = await getPositionDetails({ id: jobId })
|
|
|
|
+ info.value = data
|
|
|
|
+ positionInfo.value = { ...dealDictObjData({}, info.value), ...info.value }
|
|
|
|
+}
|
|
|
|
|
|
|
|
+let jobId = ''
|
|
|
|
+onLoad((options) => {
|
|
|
|
+ jobId = options?.id || ''
|
|
|
|
+ if (jobId) {
|
|
|
|
+ loading.value = true
|
|
|
|
+ loadingText.value = '加载中 . . . '
|
|
|
|
+ getPositionDetail()
|
|
|
|
+ } else {
|
|
|
|
+ loadingText.value = '加载失败 . . . '
|
|
|
|
+ }
|
|
|
|
+})
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+</script>
|
|
|
|
+<style scoped lang="scss">
|
|
</style>
|
|
</style>
|