• Ext.js双击事件


    /**
     * 联系人列表panel
     */
    Ext.define('Op.OpBill.OpBillCustLinkGridPanel', {
        extend: 'Ext.grid.Panel',
        id: 'Op_OpBill_OpBillCustLinkGridPanel_ID',
        title: '联系人信息',
        frame: true,
        height: 300,
        sortableColumns: false,
        enableColumnHide: false,
        enableColumnMove: false,
        selType: "rowmodel",
        selModel: Ext.create('Ext.selection.CheckboxModel', {
            mode: "SINGLE"
        }),
    
        loadValuationStore: function(parentCode) {
            this.getStore().load();
        },
        constructor: function(config) {
            var me = this;
            me.store = Ext.create('Op.OpBill.OpBillCustLinkStore');
            me.tbar = [];
            me.columns = [{
                hidden: true,
                text: 'id',
                dataIndex: 'id'
            },
            {
                text: '联系人',
                dataIndex: 'custLinkman'
            },
            {
                text: '联系人手机号',
                dataIndex: 'custMobile'
            },
            {
                text: '所在省',
                dataIndex: 'custProName'
            },
            {
                text: '所在市',
                dataIndex: 'custCityName'
            },
            {
                text: '所在区',
                dataIndex: 'custCountyName'
            },
            {
                text: '所在街道',
                dataIndex: 'custStreetName'
            },
            {
                text: '详细地址',
                dataIndex: 'custAddress',
                renderer: function(value, meta, record) {
                    meta.tdAttr = 'data-qtip="' + value + '"';
                    return value;
                }
            },
            {
                text: '经纬度',
                dataIndex: 'jingwei'
            }];
            var cfg = Ext.apply({},
            config);
            me.callParent([cfg]);
        },
        listeners:{
          itemdblclick:function(dataview, record, item, index, e){
    
            var form = Ext.getCmp('Op_OpBill_OpBillForm_ID').form;
            form.findField('sendName').setValue(record.data.custLinkman);
            form.findField('sendAddress').setValue(record.data.custAddress);
            Ext.getCmp('OpBill_OpBillCustLinkWindow_ID').close();
          },
        }
    });
  • 相关阅读:
    C# Trick
    DotNet Resource
    人员角色权限
    Verticles for Web Application
    Node Addon
    EventBus
    怎么实现员工和工资大数据分析,echarts+js实现
    winform怎么实现财务上凭证录入和打印
    WPF实现大数据分析
    非常经典的面试题,方案很多,一起交流学习
  • 原文地址:https://www.cnblogs.com/feifeicui/p/10101295.html
Copyright © 2020-2023  润新知