• iview渲染的table页面更改input输入框的值,获取输入的值


    方法一:
    {
              title:'备注',
              key:'',
              align:'center',
              130,
              render:(h,params)=>{
                return h('Input',{
                  props:{
                    value:this.formInline.financeAccountBillDetailVOList[params.index].invoiceCode,
                    disabled:this.isDisabled,
                    maxlength:255
                  },
                  on:{  
                      'on-blur': (event) => {
                        params.row.invoiceCode = event.target.value
                        this.formInline.financeAccountBillDetailVOList[params.index] = params.row
                      }
                    }
                })
              }
            }
    方法二:
    {
                            title: '入库数量',
                            key: 'quantity',
                            align: 'center',
                            render: (h, params) => {
                                return h('div', [
                                    h('Input', {
                                        style: {
                                            padding: '8px'
                                        },
                                        on: {
                                            'on-change': (event) => {
                                                this.tableData[params.index].quantity = event.target.value
                                            }
                                        }
                                    })
                                ])
                            }
                        },
     tableData: [],
  • 相关阅读:
    C#之类和对象
    uml中关联与依赖
    uml中的各个关系
    数据挖掘聚类算法分类(转)
    (转)Client http persistent connection limit
    牛客网NOIP赛前集训营提高组(第七场)Solution
    训练题表
    CF1000赛后总结
    UVA3983 Robotruck 题解
    CF1034A Enlarge GCD
  • 原文地址:https://www.cnblogs.com/wssdx/p/11497366.html
Copyright © 2020-2023  润新知