|
@@ -457,12 +457,12 @@
|
|
|
>查看</el-button
|
|
|
>
|
|
|
|
|
|
- <!-- <el-button
|
|
|
- v-if="permission('/shopOperation/copyShop')"
|
|
|
+ <el-button
|
|
|
+ v-if="permission('goods/copyGoods')"
|
|
|
@click="onShopOperation('copy', scope.row)"
|
|
|
type="text"
|
|
|
>复制</el-button
|
|
|
- > -->
|
|
|
+ >
|
|
|
<!-- <el-button v-if="scope.row.status == 0"
|
|
|
v-permission="'goods/del'"
|
|
|
@click="onDelete(scope.row)"
|
|
@@ -808,7 +808,18 @@ export default {
|
|
|
handleError(err, file, fileList) {
|
|
|
load.endLoading();
|
|
|
},
|
|
|
- onShopOperation(type, row) {
|
|
|
+ async onShopOperation(type, row) {
|
|
|
+ if (type === "copy") {
|
|
|
+ // api-web/goods/copyGoods?goodsId=106
|
|
|
+ try {
|
|
|
+ await api_goodsCopyGoods({
|
|
|
+ goodsId: row.id
|
|
|
+ });
|
|
|
+
|
|
|
+ this.getList();
|
|
|
+ } catch {}
|
|
|
+ return;
|
|
|
+ }
|
|
|
//修改
|
|
|
this.addType = type;
|
|
|
this.addDisabled = type == "look" ? true : false;
|