|
|
@ -7,6 +7,9 @@ import { addCourseApi } from '../../../api/user/crouse' |
|
|
|
import { getCourseListApi, getCourseDetailApi } from '../../../api/user/crouse' |
|
|
|
import { getCourseListApi, getCourseDetailApi } from '../../../api/user/crouse' |
|
|
|
import request from '../../../utils/request' |
|
|
|
import request from '../../../utils/request' |
|
|
|
import { tool, client } from '../../../utils/alioss.js' |
|
|
|
import { tool, client } from '../../../utils/alioss.js' |
|
|
|
|
|
|
|
import useUserStore from '@/store/modules/user' |
|
|
|
|
|
|
|
// import { useRoute } from 'vue-router' |
|
|
|
|
|
|
|
const userStore = useUserStore() |
|
|
|
// 绑定弹框 |
|
|
|
// 绑定弹框 |
|
|
|
const visibleDrawer = ref(false) |
|
|
|
const visibleDrawer = ref(false) |
|
|
|
// 绑定图片 |
|
|
|
// 绑定图片 |
|
|
@ -382,7 +385,7 @@ const upload = async (option: any) => { |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
|
<span class="dialog-footer"> |
|
|
|
<span class="dialog-footer" v-if="userStore.userInfo.roleId === 1"> |
|
|
|
<el-button @click="handleClose" size="large">取消</el-button> |
|
|
|
<el-button @click="handleClose" size="large">取消</el-button> |
|
|
|
<el-button type="primary" size="large" @click="onSubmit()"> |
|
|
|
<el-button type="primary" size="large" @click="onSubmit()"> |
|
|
|
确认 |
|
|
|
确认 |
|
|
|