فهرست منبع

硬件类型必填设置 隔离点刷新create设置

pm 11 ماه پیش
والد
کامیت
3009518de1
2فایلهای تغییر یافته به همراه10 افزوده شده و 2 حذف شده
  1. 7 2
      src/components/separationPoint/index.vue
  2. 3 0
      src/views/mes/hw/information/index.vue

+ 7 - 2
src/components/separationPoint/index.vue

@@ -39,15 +39,20 @@ export default {
         if (newval) {
           this.$nextTick(()=>{
             this.initKonva()
-
           })
         }
       }
     },
 
   },
+  created() {
+    this.initKonva()
+  },
   mounted() {
-    // this.initKonva() //暂时先注释掉这里 为了避免多次重复渲染
+
+      // this.initKonva() //暂时先注释掉这里 为了避免多次重复渲染
+
+
     console.log(this.points, 'points')
 
     console.log(

+ 3 - 0
src/views/mes/hw/information/index.vue

@@ -483,6 +483,9 @@ export default {
         hardwareName: [
           { required: true, message: "硬件名称不能为空", trigger: "blur" },
         ],
+        hardwareTypeId:[
+          { required: true, message: "硬件类型不能为空", trigger: "blur" },
+        ]
       },
       // 日期选择
       pickerOptions: {