|
@@ -55,7 +55,7 @@
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleAdd"
|
|
@click="handleAdd"
|
|
- v-hasPermi="['course:userCourse:add']"
|
|
|
|
|
|
+ v-hasPermi="['course:userCourse:publicAdd']"
|
|
>新增
|
|
>新增
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -67,7 +67,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
:disabled="single"
|
|
:disabled="single"
|
|
@click="handleUpdate"
|
|
@click="handleUpdate"
|
|
- v-hasPermi="['course:userCourse:edit']"
|
|
|
|
|
|
+ v-hasPermi="['course:userCourse:publicEdit']"
|
|
>修改
|
|
>修改
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -79,7 +79,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
:disabled="multiple"
|
|
:disabled="multiple"
|
|
@click="handleDelete"
|
|
@click="handleDelete"
|
|
- v-hasPermi="['course:userCourse:remove']"
|
|
|
|
|
|
+ v-hasPermi="['course:userCourse:publicRemove']"
|
|
>删除
|
|
>删除
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -91,7 +91,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
:loading="exportLoading"
|
|
:loading="exportLoading"
|
|
@click="handleExport"
|
|
@click="handleExport"
|
|
- v-hasPermi="['course:userCourse:export']"
|
|
|
|
|
|
+ v-hasPermi="['course:userCourse:publicExport']"
|
|
>导出
|
|
>导出
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -104,7 +104,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
:disabled="multiple"
|
|
:disabled="multiple"
|
|
@click="putOn"
|
|
@click="putOn"
|
|
- v-hasPermi="['course:userCourse:putOn']"
|
|
|
|
|
|
+ v-hasPermi="['course:userCourse:publicPutOn']"
|
|
>上架
|
|
>上架
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -117,7 +117,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
:disabled="multiple"
|
|
:disabled="multiple"
|
|
@click="pullOff"
|
|
@click="pullOff"
|
|
- v-hasPermi="['course:userCourse:pullOff']"
|
|
|
|
|
|
+ v-hasPermi="['course:userCourse:publicPutOff']"
|
|
>下架
|
|
>下架
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -176,7 +176,7 @@
|
|
type="text"
|
|
type="text"
|
|
:icon="scope.row.isShow === 1 ? 'el-icon-close' : 'el-icon-open'"
|
|
:icon="scope.row.isShow === 1 ? 'el-icon-close' : 'el-icon-open'"
|
|
@click="handleShow(scope.row)"
|
|
@click="handleShow(scope.row)"
|
|
- v-hasPermi="['course:userCourse:editShow']"
|
|
|
|
|
|
+ v-hasPermi="['course:userCourse:publicUpdateIsShow']"
|
|
>
|
|
>
|
|
{{ scope.row.isShow === 1 ? '下架' : '上架' }}
|
|
{{ scope.row.isShow === 1 ? '下架' : '上架' }}
|
|
</el-button>
|
|
</el-button>
|
|
@@ -185,7 +185,7 @@
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@click="handleUpdate(scope.row)"
|
|
@click="handleUpdate(scope.row)"
|
|
- v-hasPermi="['course:userCourse:edit']"
|
|
|
|
|
|
+ v-hasPermi="['course:userCourse:publicEdit']"
|
|
>修改
|
|
>修改
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
@@ -193,7 +193,7 @@
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-delete"
|
|
icon="el-icon-delete"
|
|
@click="handleDelete(scope.row)"
|
|
@click="handleDelete(scope.row)"
|
|
- v-hasPermi="['course:userCourse:remove']"
|
|
|
|
|
|
+ v-hasPermi="['course:userCourse:publicRemove']"
|
|
>删除
|
|
>删除
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -452,7 +452,7 @@ import {
|
|
updateIsShow,
|
|
updateIsShow,
|
|
putOn,
|
|
putOn,
|
|
pullOff
|
|
pullOff
|
|
-} from "@/api/course/userCourse";
|
|
|
|
|
|
+} from "@/api/course/userCoursePublic";
|
|
|
|
|
|
import {getSelectableRange} from "@/api/qw/sopTemp";
|
|
import {getSelectableRange} from "@/api/qw/sopTemp";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|