|
@@ -22,7 +22,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <el-button type="text">上架</el-button>
|
|
|
<el-button type="text">下架</el-button>-->
|
|
|
- <el-button type="text">发布</el-button>
|
|
|
+ <el-button type="text" @click="getRelease(scope.row)">发布</el-button>
|
|
|
<el-button type="text" @click="getChange(scope.row)">更新</el-button>
|
|
|
<el-dropdown @command="getCommand" style="margin-left: 10px">
|
|
|
<el-button type="text">更多</el-button>
|
|
@@ -245,6 +245,13 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ // 发布
|
|
|
+ getRelease(row){
|
|
|
+ this.formUpdate = row
|
|
|
+ this.formUpdate.status = 1
|
|
|
+ this.getUpdate()
|
|
|
+ },
|
|
|
+
|
|
|
// 更新弹窗
|
|
|
getChange(row) {
|
|
|
this.dialogVisible_update = true;
|