|
@@ -6,8 +6,8 @@
|
|
|
<!-- 顶部区域 -->
|
|
|
<div class="left-header">
|
|
|
<div class="left-header-top">
|
|
|
- <el-button type="primary" class="search-btn" @click="handleLeftQuery">搜索</el-button>
|
|
|
- <el-button type="primary" style="width: 50%" icon="el-icon-plus" @click="handleAddTrainingCamp">新建训练营</el-button>
|
|
|
+ <el-button type="primary" class="search-btn" @click="handleLeftQuery" v-hasPermi="['course:trainingCamp:list']">搜索</el-button>
|
|
|
+ <el-button type="primary" style="width: 50%" icon="el-icon-plus" @click="handleAddTrainingCamp" v-hasPermi="['course:trainingCamp:add']">新建训练营</el-button>
|
|
|
</div>
|
|
|
<div class="search-input-wrapper">
|
|
|
<el-input
|
|
@@ -63,9 +63,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="camp-actions">
|
|
|
- <el-button type="text" class="action-btn delete-btn" @click.stop="handleDeleteCamp(item)">删除</el-button>
|
|
|
- <el-button type="text" class="action-btn copy-btn" @click.stop="handleCopyCamp(item)">复制</el-button>
|
|
|
- <el-button type="text" class="action-btn copy-btn" @click.stop="handleEditCamp(item)">编辑</el-button>
|
|
|
+ <el-button type="text" class="action-btn delete-btn" @click.stop="handleDeleteCamp(item)" v-hasPermi="['course:trainingCamp:remove']">删除</el-button>
|
|
|
+<!-- <el-button type="text" class="action-btn copy-btn" @click.stop="handleCopyCamp(item)" v-hasPermi="['course:trainingCamp:copy']">复制</el-button>-->
|
|
|
+ <el-button type="text" class="action-btn copy-btn" @click.stop="handleEditCamp(item)" v-hasPermi="['course:trainingCamp:edit']">编辑</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 底部加载更多提示 -->
|
|
@@ -120,7 +120,7 @@
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
+ <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery" v-hasPermi="['course:period:list']">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -153,7 +153,7 @@
|
|
|
icon="el-icon-edit"
|
|
|
size="mini"
|
|
|
@click="handleBatchSetRedPacket"
|
|
|
- v-hasPermi="['course:period:export']"
|
|
|
+ v-hasPermi="['course:period:setRedPacket']"
|
|
|
:disabled="batchSetRedPacketDisabled"
|
|
|
>批量设置红包</el-button>
|
|
|
</el-col>
|
|
@@ -175,7 +175,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['course:period:edit']"
|
|
|
+ v-hasPermi="['course:period:query']"
|
|
|
>修改</el-button>
|
|
|
<!-- <el-button-->
|
|
|
<!-- size="mini"-->
|
|
@@ -201,6 +201,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-circle-close"
|
|
|
@click="handleClosePeriod(scope.row)"
|
|
|
+ v-hasPermi="['course:period:close']"
|
|
|
>结束营期</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -463,7 +464,7 @@
|
|
|
icon="el-icon-plus"
|
|
|
size="mini"
|
|
|
@click="handleAddCourse"
|
|
|
- v-hasPermi="['course:period:add']"
|
|
|
+ v-hasPermi="['course:period:addCourse']"
|
|
|
>添加课程</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
@@ -472,7 +473,7 @@
|
|
|
size="mini"
|
|
|
:disabled="updateCourse.ids.length <= 0"
|
|
|
@click="handleUpdateCourse"
|
|
|
- v-hasPermi="['course:period:add']"
|
|
|
+ v-hasPermi="['course:period:updateCourseTime']"
|
|
|
>修改看课时间</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -504,12 +505,14 @@
|
|
|
type="text"
|
|
|
icon="el-icon-top"
|
|
|
@click="handleTop(scope.row)"
|
|
|
+ v-hasPermi="['course:period:courseMove']"
|
|
|
>上移</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-bottom"
|
|
|
@click="handleBottom(scope.row)"
|
|
|
+ v-hasPermi="['course:period:courseMove']"
|
|
|
>下移</el-button>
|
|
|
<!-- <el-button-->
|
|
|
<!-- size="mini"-->
|