|
@@ -24,8 +24,11 @@ import layoutPage from '@/layout'
|
|
import MList from './list'
|
|
import MList from './list'
|
|
import { getDict } from '@/hooks/useDictionaries.js'
|
|
import { getDict } from '@/hooks/useDictionaries.js'
|
|
import { getRecommendationList } from '@/api/position.js'
|
|
import { getRecommendationList } from '@/api/position.js'
|
|
-
|
|
|
|
|
|
+import { onLoad } from '@dcloudio/uni-app'
|
|
|
|
+
|
|
const current = ref(0)
|
|
const current = ref(0)
|
|
|
|
+
|
|
|
|
+// 获取参数
|
|
const controlList = ref([])
|
|
const controlList = ref([])
|
|
const controlListText = ref([])
|
|
const controlListText = ref([])
|
|
const pageInfo = ref({
|
|
const pageInfo = ref({
|
|
@@ -45,7 +48,7 @@ async function initDict () {
|
|
}
|
|
}
|
|
controlList.value = data.data
|
|
controlList.value = data.data
|
|
controlListText.value = data.data.map(e => e.label)
|
|
controlListText.value = data.data.map(e => e.label)
|
|
- current.value = +controlList.value[0].value
|
|
|
|
|
|
+ // current.value = +controlList.value[0].value
|
|
init()
|
|
init()
|
|
} catch (error) {
|
|
} catch (error) {
|
|
// console.log(error)
|
|
// console.log(error)
|
|
@@ -94,8 +97,13 @@ async function init () {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+onLoad(async (options) => {
|
|
|
|
+ if (options?.id) {
|
|
|
|
+ current.value = +options.id
|
|
|
|
+ }
|
|
|
|
+ initDict()
|
|
|
|
+})
|
|
|
|
|
|
-initDict()
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|