lilei 1 vuosi sitten
vanhempi
commit
6526532cf9
3 muutettua tiedostoa jossa 13 lisäystä ja 9 poistoa
  1. 1 1
      public/version.json
  2. 1 1
      src/api/shelf.js
  3. 11 7
      src/views/numsGoodsShelves/shelfSet/set.vue

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1718872616216
+  "version": 1718958259597
 }

+ 1 - 1
src/api/shelf.js

@@ -95,7 +95,7 @@ export const shelfSave = (params) => {
 // 导入货架模板
 export const importShelfTemplate = params => {
   return axios({
-    url: '/shelf/importShelfTemplate',
+    url: '/shelfTemplate/importShelfTemplate',
     data: params,
     method: 'post',
     headers:{

+ 11 - 7
src/views/numsGoodsShelves/shelfSet/set.vue

@@ -309,13 +309,17 @@ export default {
     },
     // 导入模板成功
     saveTpl () {
-      this.showTplModal = false
-      importShelfTemplate({ shelfSn: this.$route.params.sn, templateSn: this.tplSn }).then(res => {
-        if (res.status == 200) {
-          this.$message.success(res.message)
-          this.resetSearchForm()
-        }
-      })
+      if (!this.spinning) {
+        this.spinning = true
+        importShelfTemplate({ shelfSn: this.$route.params.sn, templateSn: this.tplSn }).then(res => {
+          if (res.status == 200) {
+            this.$message.success(res.message)
+            this.showTplModal = false
+            this.resetSearchForm()
+          }
+          this.spinning = false
+        })
+      }
     },
     // 导出产品
     handleExport () {