mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
修改案例的管理
This commit is contained in:
@@ -36,8 +36,8 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button-group>
|
<el-button-group>
|
||||||
<!-- <el-button type="text" @click="shareItem(scope.row)" icon="el-icon-share" style="margin:0 5px">推荐</el-button> -->
|
<!-- <el-button type="text" @click="shareItem(scope.row)" icon="el-icon-share" style="margin:0 5px">推荐</el-button> -->
|
||||||
<el-button style="margin:0 5px" v-if="scope.row.isTop==0" type="text" @click="setTop(scope.row)" :icon="scope.row.isTop==1 ? 'el-icon-bottom' : 'el-icon-top'">置顶</el-button>
|
<el-button style="margin:0 5px" v-if="!scope.row.isTop" type="text" @click="setTop(scope.row)" icon="el-icon-top">置顶</el-button>
|
||||||
<el-button style="margin:0 5px" v-else type="text" @click="setTop(scope.row)" :icon="scope.row.isTop==1 ? 'el-icon-bottom' : 'el-icon-top'">取消置顶</el-button>
|
<el-button style="margin:0 5px" v-if="scope.row.isTop" type="text" @click="setTop(scope.row)" icon="el-icon-bottom">取消置顶</el-button>
|
||||||
<el-button type="text" @click="delItem(scope.row)" icon="el-icon-delete">删除</el-button>
|
<el-button type="text" @click="delItem(scope.row)" icon="el-icon-delete">删除</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
</template>
|
</template>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
<div style="text-align: center;margin-top: 50px;">
|
<div style="text-align: center;margin-top: 50px;">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
background
|
background
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@current-change="handleCurrentChange"
|
@current-change="handleCurrentChange"
|
||||||
:current-page="queryObj.pageIndex"
|
:current-page="queryObj.pageIndex"
|
||||||
@@ -119,6 +119,7 @@ export default {
|
|||||||
queryObj: {
|
queryObj: {
|
||||||
pageIndex:1,
|
pageIndex:1,
|
||||||
pageSize:10,
|
pageSize:10,
|
||||||
|
isTop:''
|
||||||
}, //查询对象
|
}, //查询对象
|
||||||
caseList: [], //案例列表
|
caseList: [], //案例列表
|
||||||
count:0,
|
count:0,
|
||||||
@@ -225,7 +226,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
delItem(item) {
|
delItem(item) {
|
||||||
this.$confirm('您确定要删除所选文章吗?', '删除提示', {
|
this.$confirm('您确定要删除所选内容吗?', '删除提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
|
|||||||
Reference in New Issue
Block a user