<j-editable-table hides a list of table data

<j-editable-table hides a list of table data

hide barcode

insert image description here

The original column code is like this

  {
    
    
              title: '条码', key: 'barCode', width: '15%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}',
              validateRules: [
                {
    
     required: true, message: '${title}不能为空' },
                // { pattern: /^[1-9]\d*$/, message: '请输入零以上的正整数' },
                // { pattern: /^\d{4,13}$/, message: '4到13位数字' },
                // { handler: this.validateBarCode}
                ]
            },

modified code

     {
    
    
              title: '条码', key: 'barCode', width: '15%', type: FormTypes.hidden, defaultValue: '', placeholder: '请输入${title}',
              validateRules: [
                {
    
     required: true, message: '${title}不能为空' },
                // { pattern: /^[1-9]\d*$/, message: '请输入零以上的正整数' },
                // { pattern: /^\d{4,13}$/, message: '4到13位数字' },
                // { handler: this.validateBarCode}
                ]
            },

Mainly change FormTypes.input to FormTypes.hidden

Guess you like

Origin blog.csdn.net/weixin_48616345/article/details/131883695