64 lines
1.5 KiB
Vue
64 lines
1.5 KiB
Vue
|
|
<template>
|
||
|
|
<PageContainer title="项目填报" @click-back="handleClickBack">
|
||
|
|
<div class="content">
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<van-button type="primary" class="add-btn" icon="plus" @click="handleAdd">
|
||
|
|
提交
|
||
|
|
</van-button>
|
||
|
|
</PageContainer>
|
||
|
|
|
||
|
|
</template>
|
||
|
|
|
||
|
|
|
||
|
|
<script setup>
|
||
|
|
import { ref, onMounted, watch } from 'vue'
|
||
|
|
import { useRouter, useRoute } from 'vue-router'
|
||
|
|
import PageContainer from '@/components/PageContainer.vue'
|
||
|
|
import SearchInput from '@/components/SearchInput.vue'
|
||
|
|
import CurrentSite from '@/components/CurrentSite.vue'
|
||
|
|
import CardItem from '@/components/CardItem.vue'
|
||
|
|
import EmptyBox from '@/components/EmptyBox.vue'
|
||
|
|
|
||
|
|
const router = useRouter()
|
||
|
|
const route = useRoute()
|
||
|
|
|
||
|
|
onMounted(() => {
|
||
|
|
if (route.params.data) {
|
||
|
|
const data = JSON.parse(decodeURIComponent(route.params.data));
|
||
|
|
console.log('@@@@data', data);
|
||
|
|
// todo 在有传参的时候 调用接口去获取数据 并且初始化表单
|
||
|
|
} else {
|
||
|
|
console.log('无传入数据');
|
||
|
|
}
|
||
|
|
})
|
||
|
|
|
||
|
|
const handleClickBack = () => {
|
||
|
|
if (route.params.data) {
|
||
|
|
|
||
|
|
} else {
|
||
|
|
router.push('/rebuild')
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style scoped lang="scss">
|
||
|
|
.content {
|
||
|
|
padding: 16px 16px 80px 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.add-btn {
|
||
|
|
position: fixed;
|
||
|
|
bottom: 20px;
|
||
|
|
left: 16px;
|
||
|
|
right: 16px;
|
||
|
|
width: calc(100% - 32px);
|
||
|
|
margin: 0 auto;
|
||
|
|
border-radius: 24px;
|
||
|
|
font-size: 16px;
|
||
|
|
height: 44px;
|
||
|
|
z-index: 999;
|
||
|
|
}
|
||
|
|
</style>
|