|  |  | 
 |  |  | function getCol() { | 
 |  |  |     var cols = [ | 
 |  |  |         {type: 'checkbox'} | 
 |  |  |         ,{field: 'tagId$', align: 'center',title: '归类', templet: '#tagTpl'} | 
 |  |  |         ,{field: 'tagId$', align: 'center',title: 'Классификация', templet: '#tagTpl'} | 
 |  |  |     ]; | 
 |  |  |     cols.push.apply(cols, matCols); | 
 |  |  |     cols.push( | 
 |  |  |         {fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} | 
 |  |  |         ) | 
 |  |  |         {fixed: 'right', title:'Операция', align: 'center', toolbar: '#operate', width:200} | 
 |  |  |     ) | 
 |  |  |     return cols; | 
 |  |  | } | 
 |  |  |  | 
 |  |  | 
 |  |  |             case 'deleteData': | 
 |  |  |                 var data = checkStatus.data; | 
 |  |  |                 if (data.length === 0){ | 
 |  |  |                     layer.msg('请选择数据'); | 
 |  |  |                     layer.msg('Пожалуйста, выберите данные'); | 
 |  |  |                 } else { | 
 |  |  |                     layer.confirm('确定删除'+(data.length===1?'此':data.length)+'条数据吗', function(){ | 
 |  |  |                         $.ajax({ | 
 |  |  | 
 |  |  |                 } | 
 |  |  |                 break; | 
 |  |  |             case 'exportData': | 
 |  |  |                 layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){ | 
 |  |  |                 layer.confirm('Подтвердить экспорт в Excel?', {shadeClose: true}, function(){ | 
 |  |  |                     var titles=[]; | 
 |  |  |                     var fields=[]; | 
 |  |  |                     obj.config.cols[0].map(function (col) { | 
 |  |  | 
 |  |  |         admin.open({ | 
 |  |  |             type: 1, | 
 |  |  |             area: '600px', | 
 |  |  |             title: (mData ? '修改' : '添加') + '商品', | 
 |  |  |             title: (mData ? 'Изменить' : 'Добавить'), | 
 |  |  |             content: $('#editDialog').html(), | 
 |  |  |             success: function (layero, dIndex) { | 
 |  |  |                 // 回显表单数据 | 
 |  |  | 
 |  |  |                 } | 
 |  |  |                 // 表单提交事件 | 
 |  |  |                 form.on('submit(editSubmit)', function (data) { | 
 |  |  |                     console.log(data) | 
 |  |  |                     data.field.tagId = insXmSel.getValue('valueStr'); | 
 |  |  |                     if (isEmpty(data.field.tagId)) { | 
 |  |  |                         layer.msg('分类不能为空', {icon: 2}); |