tangning 1 år sedan
förälder
incheckning
4fe9a3e708
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      src/views/product/rtk/AddModal.vue

+ 3 - 1
src/views/product/rtk/AddModal.vue

@@ -208,11 +208,12 @@
         modelRef.value = data;
         resetFields();
         console.log('data', data);
+        handlertkType(data.rtkType)
         setFieldsValue(data);
       }
       function handlertkType(val) {
         console.log('val', val);
-        let ifShow = val == 0;
+        let ifShow = val != 0;
         updateSchema([
           { field: 'ipAddr', ifShow },
           { field: 'mountPoint', ifShow },
@@ -220,6 +221,7 @@
           { field: 'userName', ifShow },
           { field: 'password', ifShow },
           { field: 'operator', ifShow },
+          { field: 'rtkSnCode', ifShow },
           { field: 'cameraSnCode', ifShow },
         ]);
       }