| | |
| | | <span v-if="scope.row.is_virtual == 0">实物商品</span> |
| | | <span v-if="scope.row.is_virtual == 1" class="green">虚拟商品</span> |
| | | <span v-if="scope.row.is_virtual == 2" class="green">券商品</span> |
| | | <span v-if="scope.row.is_virtual == 3" class="green">服务商品</span> |
| | | <span v-if="scope.row.is_virtual == 4" class="green">团购商品</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="create_time" label="发布时间"></el-table-column> |
| | |
| | | <el-button v-if="scope.row.audit_status==10" @click="editClick(scope.row)" type="text" size="small" v-auth="'/product/product/edit'">编辑商品</el-button> |
| | | <el-button v-if="scope.row.audit_status==0" @click="editClick(scope.row)" type="text" size="small" v-auth="'/product/product/edit'">审核商品</el-button> |
| | | <el-button v-if="activeName == 'recovery'" @click="changeStatus(scope.row, 20)" type="text" size="small" v-auth="'/product/product/state'">恢复</el-button> |
| | | <el-button @click="copyClick(scope.row)" type="text" size="small" v-auth="'/product/product/copy'">一键复制</el-button> |
| | | <el-button @click="delClick(scope.row)" type="text" size="small" v-auth="'/product/product/delete'">删除商品</el-button> |
| | | </div> |
| | | </template> |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | /*打开复制*/ |
| | | copyClick(row) { |
| | | this.$router.push({ |
| | | path: '/product/product/edit', |
| | | query: { |
| | | product_id: row.product_id, |
| | | scene: 'copy' |
| | | } |
| | | }); |
| | | }, |
| | | /*删除*/ |
| | | delClick: function(row) { |
| | | let self = this; |