|
|
@@ -69,8 +69,6 @@
|
|
|
<template #slot-modify="{ scope }">
|
|
|
|
|
|
<el-button type="text" @click.native.stop="replaceBtnFn(scope.row.id)" >修改</el-button>
|
|
|
- <el-button type="text" v-if="scope.row.status==2" @click.native.stop="setStatusFun(scope.row.id,1)" >上架</el-button>
|
|
|
- <el-button type="text" v-if="scope.row.status==1" @click.native.stop="setStatusFun(scope.row.id,2)" >下架</el-button>
|
|
|
|
|
|
<el-popover style="margin-left:10px;margin-right:10px;" placement="top" width="160" :ref="'popover-' + scope.row.id">
|
|
|
<p>确认复制生成花材?</p>
|
|
|
@@ -78,7 +76,7 @@
|
|
|
<el-button size="mini" type="text" @click.stop="cancelCopyProduct(scope.row.id)">取消</el-button>
|
|
|
<el-button type="primary" size="mini" @click.stop="copyProduct(scope.row.id)">确定</el-button>
|
|
|
</div>
|
|
|
- <el-button slot="reference" size="mini" type="text" plain @click.stop="">复制</el-button>
|
|
|
+ <el-button slot="reference" size="mini" type="text" plain @click.stop="">复制新建</el-button>
|
|
|
</el-popover>
|
|
|
|
|
|
<el-button type="text" v-if="scope.row.delStatus==0" @click.native.stop="setDelStatusFun(scope.row.id,1)" >停用</el-button>
|
|
|
@@ -389,11 +387,13 @@ export default {
|
|
|
}).catch(err => {})
|
|
|
},
|
|
|
copyProduct(id){
|
|
|
+ this.$message({message: '开发中',type: 'warning'});
|
|
|
+ return;
|
|
|
this.$service.product.copy({id:id}).then(res => {
|
|
|
this.$message.success('操作成功!')
|
|
|
this.$refs[`popover-` + id].doClose()
|
|
|
this.app.refresh()
|
|
|
- }).catch(err => {})
|
|
|
+ })
|
|
|
},
|
|
|
//取消复制
|
|
|
cancelCopyProduct(id) {
|
|
|
@@ -478,6 +478,8 @@ export default {
|
|
|
}).catch(err => {})
|
|
|
},
|
|
|
setDelStatusFun(id,delStatus){
|
|
|
+ this.$message({message: '开发中',type: 'warning'});
|
|
|
+ return;
|
|
|
this.$service.product.changeDelStatus({id:id,delStatus:delStatus}).then(res => {
|
|
|
this.$message.success('操作成功!')
|
|
|
this.app.refresh()
|
|
|
@@ -893,6 +895,10 @@ export default {
|
|
|
|
|
|
},
|
|
|
replaceBtnFn(id) {
|
|
|
+
|
|
|
+ this.$message({message: '开发中',type: 'warning'});
|
|
|
+ return;
|
|
|
+
|
|
|
this.addDialog = true
|
|
|
this.currentItemId = id;
|
|
|
if(id==0){
|