| 123456789101112131415161718192021222324252627282930313233 |
- <template>
- <view class="center">
- <view class="buttom" @click="submit()">上传作业</view>
- </view>
- </template>
- <script>
- import { sethomework } from '@/api/homework.js'
- export default {
- data(){
- return{
- id: '',
- }
- },
- onLoad(option) {
- this.id = option.id
- },
- methods:{
- submit(){
- sethomework({
- timetable_id: this.id
- }).then(() =>{
-
- }).catch(err =>{
- console.log(err)
- })
- }
- }
- }
- </script>
- <style>
- </style>
|