yrik 4 lat temu
rodzic
commit
93e4d7890a
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      ruoyi-ui/src/components/DynamicForms/index.vue

+ 4 - 3
ruoyi-ui/src/components/DynamicForms/index.vue

@@ -102,12 +102,13 @@
     created() {
       this.config = {}
       // console.log(this.formConfig.mask.slice(3,4),876454)
-      if(this.formConfig.mask.slice(3,4) == '0'){
-          this.formConfig.disabshow = true
+      if(this.formConfig.readonly == true){
+        this.formConfig.disabshow = true
+      }else if(this.formConfig.mask.slice(3,4) == '0'){
+        this.formConfig.disabshow = true
       }else{
         this.formConfig.disabshow = false
       }
-      console.log(this.formConfig)
       this.init()
     },
     mounted() {},