提交 f426355d 编写于 作者: chendeli's avatar chendeli

add

上级 c464883a
......@@ -67,8 +67,8 @@
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" min-width="200">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="edit(scope.row)">编辑</el-button> <el-button type="primary" v-if="scope.row.status == 3 || scope.row.status == 2" size="small" @click="optFun(scope.row,'发布')">发布</el-button>
<el-button type="primary" v-if="scope.row.status == 1" size="small" @click="optFun(scope.row,'下线')">下线</el-button>
<el-button type="primary" size="small" @click="edit(scope.row)">编辑</el-button> <el-button type="primary" v-if="scope.row.status == 3 || scope.row.status == 1" size="small" @click="optFun(scope.row,'发布')">发布</el-button>
<el-button type="primary" v-if="scope.row.status == 2" size="small" @click="optFun(scope.row,'下线')">下线</el-button>
</template>
</el-table-column>
......@@ -128,10 +128,10 @@ export default {
],
statuSelect: [
{
label: '发布',
label: '发布',
value: '1'
},{
label: '发布',
label: '发布',
value: '2'
},{
label: '已下架',
......@@ -232,7 +232,7 @@ export default {
optFun(row,str) {
let status = 0;
if(str == '发布'){
status = 1
status = 2
}else if(str == '下线'){
status = 3
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册