chenlei 6 months ago
parent
commit
542a7564d2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pc/wcarrier/comp/invoice.vue

+ 2 - 1
pc/wcarrier/comp/invoice.vue

@@ -82,7 +82,8 @@ export default {
       return this.$props.readOnly || !this.isEdit
     },
     emptyArgs() {
-      return { open: this.isReadOnly, text: '[ 暂无内容 ]' }
+      // el-form :disabled 变化后,之前的变化会保留,导致空内容请不掉,所以添加此参数
+      return { open: !this.$props.disabled && this.isReadOnly, text: '[ 暂无内容 ]' }
     }
   },
   watch: {