Browse Source

打开模态框时重新读取模具

Reiskuchen 5 years ago
parent
commit
9cacd7a085
1 changed files with 7 additions and 2 deletions
  1. 7 2
      ys_vue/src/views/mold/moldList.vue

+ 7 - 2
ys_vue/src/views/mold/moldList.vue

@@ -221,8 +221,8 @@
             };
         },
         methods: {
-            getMsg() {
-                //获取模具
+            //获取模具
+            getMoulds(){
                 this.http.post( this.port.base.moulds, {
                     belongCompanyId: this.user.companyId
                 },
@@ -243,6 +243,10 @@
                         type: "error"
                     });
                 });
+            },
+            getMsg() {
+                //获取模具
+                this.getmoulds();
                 //新版获取公司
                 this.http.post(this.port.base.relationList, {
                     companyType: 1
@@ -373,6 +377,7 @@
 
             //添加界面
             showAdd() {
+                this.getmoulds();
                 this.addFormVisible = true;
                 this.addForm = {
                     modelNo: "",