likang 3 years ago
parent
commit
4aadfdeb04
1 changed files with 11 additions and 18 deletions
  1. 11 18
      src/views/device/flange/formModel.vue

+ 11 - 18
src/views/device/flange/formModel.vue

@@ -157,29 +157,19 @@ export default {
              type: "select",
               label: "紧固方案",
               isOptions: true,
-              options: [
-                 {
-                text: "4孔单同步",
-                value: 1
-              },
-              {
-                text: "6孔两同步",
-                value: 2
-              },
-              {
-                text: "8孔四同步",
-                value: 3
-              },
-               {
-                text: "16孔六同步",
-                value: 4
-              }
-              ],
+              options: [],
               required: true,
               attrs: {
                 //查询
                 filterable:true,
                 multiple:true,
+                props: {
+                  label: "text",
+                  value: "value",
+                  emitPath: false,
+                  checkStrictly: false,
+                  multiple:false
+                }
             }
 
           },
@@ -256,6 +246,9 @@ export default {
     this.$http.get("wrenchtype").then(response => {
       this.formConfig.formDesc.wrench.options = response.data;
     });
+    this.$http.get("synschemetype").then(response => {
+      this.formConfig.formDesc.fastening_scheme.options = response.data;
+    });