yrik 4 年之前
父節點
當前提交
93e4d7890a
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      ruoyi-ui/src/components/DynamicForms/index.vue

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

@@ -102,12 +102,13 @@
     created() {
     created() {
       this.config = {}
       this.config = {}
       // console.log(this.formConfig.mask.slice(3,4),876454)
       // 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{
       }else{
         this.formConfig.disabshow = false
         this.formConfig.disabshow = false
       }
       }
-      console.log(this.formConfig)
       this.init()
       this.init()
     },
     },
     mounted() {},
     mounted() {},