竞拍明细;课程审核;课程内容仅查看

This commit is contained in:
2023-03-22 20:46:25 +08:00
parent 2382fc3f9e
commit f2825083ee
7 changed files with 243 additions and 84 deletions

View File

@@ -109,6 +109,7 @@ async function enterChapterDialog() { // 提交大章节
let func_name = ''
if(chapterForm.value.course_chapter_id) { // 编辑
func_name = 'editChapter'
params.course_id = parseInt(props.course_id)
}
else{ // 新增
func_name = 'addChapter'
@@ -182,36 +183,36 @@ function addExamFunc(data) {
<template>
<div>
<div class="btn-box" style="text-align: right;margin: 10px 0 20px;">
<el-button type="primary" icon="plus" @click="addChapterFunc">添加章节</el-button>
<!-- <el-button type="primary" icon="plus" @click="addChapterFunc">添加章节</el-button>-->
</div>
<div class="list-box">
<div class="lb-card" v-for="(item,i) in chapter_data">
<!--大章节标题-->
<div class="lb-title-part">
<div class="lbt-title">{{item.name}}</div>
<div class="lbt-btn-box">
<el-button
icon="edit"
size="small"
type="primary"
link
@click="editChapterFunc(item)"
/>
<el-button
icon="plus"
size="small"
type="primary"
link
@click="addChapterchildFunc(item)"
/>
<el-button
icon="delete"
size="small"
type="primary"
link
@click="deleteChapterFunc(item)"
/>
</div>
<!-- <div class="lbt-btn-box">-->
<!-- <el-button-->
<!-- icon="edit"-->
<!-- size="small"-->
<!-- type="primary"-->
<!-- link-->
<!-- @click="editChapterFunc(item)"-->
<!-- />-->
<!-- <el-button-->
<!-- icon="plus"-->
<!-- size="small"-->
<!-- type="primary"-->
<!-- link-->
<!-- @click="addChapterchildFunc(item)"-->
<!-- />-->
<!-- <el-button-->
<!-- icon="delete"-->
<!-- size="small"-->
<!-- type="primary"-->
<!-- link-->
<!-- @click="deleteChapterFunc(item)"-->
<!-- />-->
<!-- </div>-->
</div>
<!--表格数据-->
<div class="lb-table-part" style="margin-bottom: 20px">
@@ -240,24 +241,24 @@ function addExamFunc(data) {
{{scope.row.is_show === 1? '是':'否'}}
</template>
</el-table-column>
<el-table-column align="left" label="操作" min-width="60">
<template #default="scope">
<el-button
icon="edit"
size="small"
type="primary"
link
@click="editChapterChildFunc(scope.row)"
>编辑</el-button>
<el-button
icon="delete"
size="small"
type="primary"
link
@click="deleteChapterChildFunc(scope.row)"
>删除</el-button>
</template>
</el-table-column>
<!-- <el-table-column align="left" label="操作" min-width="60">-->
<!-- <template #default="scope">-->
<!-- <el-button-->
<!-- icon="edit"-->
<!-- size="small"-->
<!-- type="primary"-->
<!-- link-->
<!-- @click="editChapterChildFunc(scope.row)"-->
<!-- >编辑</el-button>-->
<!-- <el-button-->
<!-- icon="delete"-->
<!-- size="small"-->
<!-- type="primary"-->
<!-- link-->
<!-- @click="deleteChapterChildFunc(scope.row)"-->
<!-- >删除</el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table>
</div>
@@ -275,9 +276,9 @@ function addExamFunc(data) {
<el-form-item label="是否免费" prop="is_free">
<el-switch v-model="chapterForm.is_free" active-text="是" inactive-text="否" :active-value="1" :inactive-value="-1" />
</el-form-item>
<el-form-item label="是否展示" prop="is_show">
<el-switch v-model="chapterForm.is_show" active-text="是" inactive-text="否" :active-value="1" :inactive-value="-1" />
</el-form-item>
<!-- <el-form-item label="是否展示" prop="is_show">-->
<!-- <el-switch v-model="chapterForm.is_show" active-text="是" inactive-text="否" :active-value="1" :inactive-value="-1" />-->
<!-- </el-form-item>-->
</el-form>
<template #footer>
<div class="dialog-footer">
@@ -314,9 +315,9 @@ function addExamFunc(data) {
<el-form-item label="是否免费" prop="is_free">
<el-switch v-model="chapterChildForm.is_free" active-text="是" inactive-text="否" :active-value="1" :inactive-value="-1" />
</el-form-item>
<el-form-item label="是否展示" prop="is_show">
<el-switch v-model="chapterChildForm.is_show" active-text="是" inactive-text="否" :active-value="1" :inactive-value="-1" />
</el-form-item>
<!-- <el-form-item label="是否展示" prop="is_show">-->
<!-- <el-switch v-model="chapterChildForm.is_show" active-text="是" inactive-text="否" :active-value="1" :inactive-value="-1" />-->
<!-- </el-form-item>-->
</el-form>
<template #footer>
<div class="dialog-footer">