Parcourir la source

项目页面重新加载模具

Reiskuchen il y a 5 ans
Parent
commit
d4bd2f1866
1 fichiers modifiés avec 10 ajouts et 3 suppressions
  1. 10 3
      ys_vue/src/views/project/project.vue

+ 10 - 3
ys_vue/src/views/project/project.vue

@@ -114,7 +114,7 @@
                     ]
                 },
                 
-                addFormVisible: false,//新增界面是否显示
+                addFormVisible: false, //新增界面是否显示
 				addLoading: false,
 				//新增界面数据
 				addForm: {
@@ -126,7 +126,7 @@
 			}
 		},
 		methods: {
-            // 获取基础数据
+            //获取基础数据
             getMsg(){
                 this.http.post(this.port.project.getUserById, {
                     companyIds: this.user.companyId,
@@ -172,7 +172,12 @@
                     });
                 })
 
-                // 获取模具
+                //获取模具
+                this.getMoulds();
+            },
+
+            //获取模具
+            getMoulds(){
                 this.http.post(this.port.mold.modelList, {
                     parentId: this.user.parentId,
                     id: this.user.id
@@ -276,6 +281,8 @@
 
             //显示新增界面
 			handleAdd() {
+                //重新获取一下模具
+                this.getMoulds();
 				this.addFormVisible = true;
 				this.addForm = {
 					projectName: '',