|  |  |  | 
|---|
|  |  |  | function getCol() { | 
|---|
|  |  |  | var cols = [ | 
|---|
|  |  |  | {type: 'checkbox'} | 
|---|
|  |  |  | ,{field: 'tagId$', align: 'center',title: '归类', templet: '#tagTpl'} | 
|---|
|  |  |  | ,{field: 'tagId$', align: 'center',title: '归类', templet: '#tagTpl',hide:true} | 
|---|
|  |  |  | ]; | 
|---|
|  |  |  | cols.push.apply(cols, matCols); | 
|---|
|  |  |  | cols.push( | 
|---|
|  |  |  | {fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | return cols; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 表单提交事件 | 
|---|
|  |  |  | form.on('submit(editSubmit)', function (data) { | 
|---|
|  |  |  | console.log(data) | 
|---|
|  |  |  | data.field.tagId = insXmSel.getValue('valueStr'); | 
|---|
|  |  |  | if (isEmpty(data.field.tagId)) { | 
|---|
|  |  |  | layer.msg('分类不能为空', {icon: 2}); | 
|---|