|
|
@@ -88,7 +88,7 @@
|
|
|
<p>确认复制生成花材?</p>
|
|
|
<div style="text-align: right; margin: 0">
|
|
|
<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)">确定</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-popover>
|
|
|
@@ -303,7 +303,6 @@ export default {
|
|
|
return {
|
|
|
app: null,
|
|
|
sortLink: '',
|
|
|
- showCopyProduct:false,
|
|
|
operateData: {},
|
|
|
statusOption: [{
|
|
|
value: '0',
|
|
|
@@ -416,9 +415,10 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
- copyProduct(){
|
|
|
+ copyProduct(id){
|
|
|
this.$service.product.copy({id:id}).then(res => {
|
|
|
this.$message.success('操作成功!')
|
|
|
+ this.$refs[`popover-` + id].doClose()
|
|
|
this.app.refresh()
|
|
|
}).catch(err => {})
|
|
|
},
|