2024-02-02 14:44:30 +08:00
|
|
|
<template>
|
2024-02-19 11:43:13 +08:00
|
|
|
<select-template ref="select" title="请选择行业" slo="" :list="skillLevel" @submit="goAdd"></select-template>
|
2024-02-02 14:44:30 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
getTrade
|
|
|
|
|
} from '@/api/resume.js'
|
|
|
|
|
import selectTemplate from './selectTemplate.vue'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
selectTemplate
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
id: "",
|
|
|
|
|
skillLevel: [],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 在test.vue页面接受参数
|
|
|
|
|
onLoad: function({
|
|
|
|
|
id
|
|
|
|
|
}) {
|
|
|
|
|
this.id = id
|
|
|
|
|
},
|
|
|
|
|
onShow: function() {
|
|
|
|
|
this.getData()
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.$refs.select.setActiveId(this.tradeId)
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getData: function() {
|
|
|
|
|
getTrade().then(res => {
|
|
|
|
|
this.skillLevel = res.data.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
goAdd(res) {
|
|
|
|
|
uni.$emit('setInd', res)
|
|
|
|
|
uni.navigateBack()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
</style>
|