首页 新闻 赞助 找找看

easyui datagrid 编辑单元格 editor url获取同行参数的问题

0
悬赏园豆:20 [待解决问题]
  1 $('#tableDate').datagrid({
  2             url: '../SystemManager/GetCoulmnbyCol_ID?Col_ID=' + node.id + '&tab=' + tab + '',
  3             iconCls: 'icon-edit',
  4             singleSelect: true,
  5             sortOrder: 'PT_Level',
  6             toolbar: '#tb',
  7             idField: 'PT_ID',
  8             onDblClickCell: onClickCell,
  9             onSelect: endEditing,
 10             onBeforeEdit:Getlupjiduan,
 11             nowrap: true,
 12             onAfterEdit: function (rowIndex, rowData, changes) {
 13                 save(rowIndex);
 14             },
 15             columns: [[
 16             {
 17                 field: 'Col_Name', title: '字段名称', width: 80, align: 'center'
 18             },
 19             {
 20                 field: 'Col_NameChinese', title: '中文名称', width: 80, align: 'center'
 21             },
 22             {
 23                 field: 'PT_Level', title: '优先级', width: 80, align: 'center',
 24                 editor: { type: 'numberbox', required: true }
 25             },
 26             {
 27                 field: 'PT_Source', title: '来源', width: 120,
 28                 editor: {
 29                     type: 'combobox',
 30                     options: {
 31                         valueField: 'AM_Code',
 32                         textField: 'AM_Name',
 33                         method: 'post',
 34                         url: '../SystemManager/Getsource',
 35                         required: true
 36                     }
 37                 },
 38                 formatter: function (value, row, index) {
 39                     return value;
 40                 },
 41             },
 42             {
 43                 field: 'PT_IsParagraphExtract', title: '是否逻辑段提取', width: 100, align: 'center',
 44                 formatter: function (value, row, index) {
 45                     if (value == 1) {
 46                         return "";
 47                     } else {
 48                         return "";
 49                     }
 50                 },
 51                 editor: {
 52                     type: 'combobox',
 53                     options: {
 54                         valueField: 'value',
 55                         textField: 'text',
 56                         url: '../SystemManager/isshifou',
 57                         required: true
 58                     }
 59                 }
 60             },
 61             {
 62                 field: 'PT_RelatRegexInfoCode', title: '逻辑段编号', width: 80, align: 'center',
 63                 formatter: function (value, row, index) {
 64                     return value;
 65                 },
 66                 editor: {
 67                     type: 'combobox',
 68                     options: {
 69                         valueField: 'AM_Code',   
 70                         textField: 'AM_Name',
 71                         method: 'post',
 72                         url: $("#luojiduanhide").val()
 73                     }
 74                 }
 75             },
 76             {
 77                 field: 'PT_IsDefineExtract', title: '是否自定义提取', width: 100, align: 'center',
 78                 formatter: function (value, row, index) {
 79                     if (value == 1) {
 80                         return "";
 81                     } else {
 82                         return "";
 83                     }
 84                 },
 85                 editor: {
 86                     type: 'combobox',
 87                     options: {
 88                         valueField: 'value',
 89                         textField: 'text',
 90                         url: '../SystemManager/isshifou',
 91                         required: true
 92                     }
 93                 }
 94             },
 95             {
 96                 field: 'PT_IsRelatParticpant', title: '是否关联当事人', width: 100, align: 'center',
 97                 formatter: function (value, row, index) {
 98                     if (value == 1) {
 99                         return "";
100                     } else {
101                         return "";
102                     }
103                 },
104                 editor: {
105                     type: 'combobox',
106                     options: {
107                         valueField: 'value',
108                         textField: 'text',
109                         url: '../SystemManager/isshifou',
110                         required: true
111                     }
112                 }
113             },
114             {
115                 field: 'IsRelatCaseCause', title: '是否关联案由', width: 100, align: 'center',
116                 formatter: function (value, row, index) {
117                     if (value == 1) {
118                         return "";
119                     } else {
120                         return "";
121                     }
122                 },
123                 editor: {
124                     type: 'combobox',
125                     options: {
126                         valueField: 'value',
127                         textField: 'text',
128                         url: '../SystemManager/isshifou',
129                         required: true
130                     }
131                 }
132             },
133             {
134                 field: 'PT_ID', title: '规则维护', width: 100, align: 'center',
135                 formatter: function (value, row, index) {
136                     return "<a href='http://192.168.1.160:5720/main.aspx' target='_blank'>规则维护</a>"
137                 }
138 
139             },
140             {
141                 field: 'ElementName', title: '要素名称', width: 100, align: 'center',
142                 editor: { type: 'text', required: true }
143             }
144             ]]
145         });

再双击编辑“逻辑段编号”的时候 需要获取同行的PT_Source的值做为参数。怎么获取呢?

一朵茉莉花的主页 一朵茉莉花 | 初学一级 | 园豆:182
提问于:2016-08-23 13:32
< >
分享
所有回答(1)
0
function onDblClickRow(index, field) {
        var row = $('#dg').datagrid('getRows')[index];//这就是你要的row
    }

 

刘宏玺 | 园豆:14020 (专家六级) | 2016-08-23 14:33
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册