修改案例的管理

This commit is contained in:
daihh
2022-06-08 19:57:19 +08:00
parent 4dbce900e3
commit e6e20a67f0

View File

@@ -36,8 +36,8 @@
<template slot-scope="scope">
<el-button-group>
<!-- <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-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-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-group>
</template>
@@ -45,7 +45,7 @@
</el-table>
<div style="text-align: center;margin-top: 50px;">
<el-pagination
background
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="queryObj.pageIndex"
@@ -119,6 +119,7 @@ export default {
queryObj: {
pageIndex:1,
pageSize:10,
isTop:''
}, //查询对象
caseList: [], //案例列表
count:0,
@@ -225,7 +226,7 @@ export default {
})
},
delItem(item) {
this.$confirm('您确定要删除所选文章吗?', '删除提示', {
this.$confirm('您确定要删除所选内容吗?', '删除提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'