12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <template>
- <div class="create-success">
- <p class="tips">教材编辑项目《{{ project_name }}》创建成功,请切换到“教材管理” > “我的项目”进行管理。</p>
- <div class="btns">
- <el-button type="primary" @click="$router.push('/create_project/create')">创建新的项目</el-button>
- <el-button type="primary" @click="$router.push('/personal_workbench/project')">
- 跳转到“教材管理” > “我的项目”
- </el-button>
- </div>
- </div>
- </template>
- <script>
- import { GetProjectBaseInfo } from '@/api/project';
- export default {
- name: 'CreateSuccess',
- data() {
- return {
- id: this.$route.query.id,
- project_name: '',
- };
- },
- created() {
- this.getProjectBaseInfo();
- },
- methods: {
- async getProjectBaseInfo() {
- const { project_info } = await GetProjectBaseInfo({ id: this.id });
- this.project_name = project_info.name;
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- @use '@/styles/mixin.scss' as *;
- .create-success {
- @include page-base;
- justify-content: space-between;
- padding-top: 18%;
- .tips {
- font-size: 16px;
- color: #333;
- text-align: center;
- }
- .btns {
- display: flex;
- align-items: center;
- justify-content: end;
- .el-button {
- padding: 12px 24px;
- }
- }
- }
- </style>
|