layui radio性别单选框赋值
cols: [
[
{type: 'checkbox', fixed: 'left'},
{field: 'comName', title: '单位名称', sort: true},
{
field: 'gwType', title: '岗位类型', sort: true,width: 100, templet: function (item1) {
if (item1.gwType === 1) {
return '社招';
}
if (item1.gwType === 0) {
return '校招';
}
}
},
//列操作
table.on('tool(showTable)', function (obj) {
var data = obj.data;
switch (obj.event) {
case 'del':
var ids = [];
ids.push(data.id);
tipDialog(ids);
break;
case 'edit':
$(".table_