|
|
|
|
@ -99,9 +99,10 @@
|
|
|
|
|
|
|
|
|
|
<xy-table :total="total" :list="list" :table-item="table" @pageSizeChange="pageSizeChange" @pageIndexChange="pageChange">
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="230" header-align="center">
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="300" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<Button type="primary" size="small" @click="editorShow(scope.row.id)">编辑</Button>
|
|
|
|
|
<Button type="primary" size="small" @click="editorShow(scope.row.id,'editor')">编辑</Button>
|
|
|
|
|
<Button type="primary" size="small" style="margin-left: 10px;" @click="editorShow(scope.row.id,'copy')">复制新增</Button>
|
|
|
|
|
<Poptip
|
|
|
|
|
transfer
|
|
|
|
|
confirm
|
|
|
|
|
@ -253,10 +254,10 @@ this.searchProducts();
|
|
|
|
|
this.getProducts()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
editorShow(id){
|
|
|
|
|
this.$refs['addProduct'].type = 'editor'
|
|
|
|
|
this.$refs['addProduct'].id = id
|
|
|
|
|
this.$refs['addProduct'].isShow = true
|
|
|
|
|
editorShow(id,type){
|
|
|
|
|
this.$refs['addProduct'].type = type;
|
|
|
|
|
this.$refs['addProduct'].id = id;
|
|
|
|
|
this.$refs['addProduct'].isShow = true;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getProducts(){
|
|
|
|
|
|