lex пре 8 месеци
родитељ
комит
9187a2fb75

+ 1 - 0
src/views/businessManager/shopManager/api.js

@@ -6,6 +6,7 @@ export function api_goodsCopyGoods(data) {
   return request2({
     url: api + "/goods/copyGoods",
     method: "post",
+    requestType: "form",
     data
   });
 }

+ 17 - 6
src/views/businessManager/shopManager/shopList.vue

@@ -538,6 +538,7 @@ import {
   api_queryGoodsCategoryList,
   api_queryGoodsBrandList
 } from "@/api/businessManager";
+import { api_goodsCopyGoods } from "./api";
 import { goodsType } from "@/utils/searchArray";
 import qs from "qs";
 import cleanDeep from "clean-deep";
@@ -810,14 +811,24 @@ export default {
     },
     async onShopOperation(type, row) {
       if (type === "copy") {
+        this.$confirm(`是否复制该商品?`, "提示", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(async () => {
+          try {
+            await api_goodsCopyGoods({
+              goodsId: row.id
+            });
+
+            this.$message.success("复制成功");
+            this.getList();
+          } catch (e) {
+            console.log(e);
+          }
+        });
         // api-web/goods/copyGoods?goodsId=106
-        try {
-          await api_goodsCopyGoods({
-            goodsId: row.id
-          });
 
-          this.getList();
-        } catch {}
         return;
       }
       //修改

+ 1 - 1
vue.config.js

@@ -19,7 +19,7 @@ const name = defaultSettings.title || "管乐迷后台管理系统"; // page tit
 // let target = "http://192.168.3.43:8805"; //邹璇
 // let target = "http://192.168.0.127:8000"; //勇哥
 // let target = "http://192.168.3.14:8005"; // 原谅
-let target = "https://dev.gym.lexiaoya.cn"; //测试环境
+let target = "https://test.gym.lexiaoya.cn"; //测试环境
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {
   /**