|
|
|
@ -10,7 +10,7 @@ |
|
|
|
|
<div class="left"> |
|
|
|
|
<div class="flex-between"> |
|
|
|
|
<h6 class="title">课程目录</h6> |
|
|
|
|
<el-button type="primary" size="mini" @click="addChapter" v-auth="'/curriculum:内容设置:添加章节'">新增章节</el-button> |
|
|
|
|
<el-button type="primary" size="mini" @click="addChapter">新增章节</el-button> |
|
|
|
|
</div> |
|
|
|
|
<ul class="chapters"> |
|
|
|
|
<draggable v-model="chapters" :disabled="false" :group="{ |
|
|
|
@ -31,10 +31,10 @@ |
|
|
|
|
<el-input style="width: 300px" placeholder="请输入资源名称" prefix-icon="el-icon-search" v-model="keyword" |
|
|
|
|
clearable></el-input> |
|
|
|
|
<div> |
|
|
|
|
<el-button class="action-btn" @click="showSource" v-auth="'/curriculum:内容设置:修改章节名称'">添加系统资源</el-button> |
|
|
|
|
<el-button class="action-btn" @click="addSection" v-auth="'/curriculum:内容设置:添加小节'">本地上传</el-button> |
|
|
|
|
<el-button class="action-btn" @click="move" v-auth="'/curriculum:内容设置:删除章节'">批量移动</el-button> |
|
|
|
|
<el-button class="action-btn" v-auth="'/curriculum:内容设置:删除章节'" @click="batchDelSection">批量移除</el-button> |
|
|
|
|
<el-button class="action-btn" @click="showSource">添加系统资源</el-button> |
|
|
|
|
<el-button class="action-btn" @click="addSection">本地上传</el-button> |
|
|
|
|
<el-button class="action-btn" @click="move">批量移动</el-button> |
|
|
|
|
<el-button class="action-btn" @click="batchDelSection">批量移除</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -61,13 +61,11 @@ |
|
|
|
|
<span class="name">{{ section.name }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="section-actions"> |
|
|
|
|
<el-button type="text" :disabled="section.isDownload === 0" @click="download(section)" |
|
|
|
|
v-auth="'/curriculum:内容设置:下载'">下载</el-button> |
|
|
|
|
<el-button type="text" @click="preview(section)" v-auth="'/curriculum:内容设置:查看'">预览</el-button> |
|
|
|
|
<el-button type="text" @click="editSectionName(section)" |
|
|
|
|
v-auth="'/curriculum:内容设置:修改小节名称'">修改资源名称</el-button> |
|
|
|
|
<el-button type="text" @click="switchFile(section)" v-auth="'/curriculum:内容设置:更换文件'">更换</el-button> |
|
|
|
|
<el-button type="text" @click="delSection(section)" v-auth="'/curriculum:内容设置:删除小节'">移除</el-button> |
|
|
|
|
<el-button type="text" :disabled="section.isDownload === 0" @click="download(section)">下载</el-button> |
|
|
|
|
<el-button type="text" @click="preview(section)">预览</el-button> |
|
|
|
|
<el-button type="text" @click="editSectionName(section)">修改资源名称</el-button> |
|
|
|
|
<el-button type="text" @click="switchFile(section)">更换</el-button> |
|
|
|
|
<el-button type="text" @click="delSection(section)">移除</el-button> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
</template> |
|
|
|
|