分享一个PHP面试题汇总的微信小程序 《 PHP面试题汇总 》 ,在微信小程序中搜索 PHP面试题汇总 即可找到
----------------------------------------------------------------------------------
var columns = [
{ field : \'checked\',
checkbox: true,
align: \'center\',
valign: \'middle\',
formatter:function(value,row,index){//设置满足条件的行可以使用复选框
if(row.IS_PASS !=\'0\'){
return {
disabled : true
}
}
}
},
{
\'title\': \'资产名称\',
\'field\': \'CARD_NAME\',
\'align\': \'center\',
\'valign\': \'middle\',
},
{
\'title\': \'管理编号\',
\'field\': \'MANAGE_NO\',
\'align\': \'center\',
},
{
\'title\': \'使用机构\',
\'field\': \'USE_DEPART\',
\'align\': \'center\',
\'valign\': \'middle\',
},
{
\'title\': \'责任人\',
\'field\': \'DUTOR\',
\'align\': \'center\',
\'valign\': \'middle\',
},
{
\'title\': \'管理状态\',
\'field\': \'MANAGE_STATUS\',
\'align\': \'center\',
\'valign\': \'middle\',
},
{
\'title\': \'资产状态\',
\'field\': \'ASSET_STATUS\',
\'align\': \'center\',
\'valign\': \'middle\',
},
{
\'title\': \'资产原值\',
\'field\': \'OLD_VALUE\',
\'align\': \'center\',
},
{
\'title\': \'资产性质\',
\'field\': \'CPTL_KIND\',
\'align\': \'center\',
},
{
\'title\': \'资产类别\',
\'field\': \'ASSET_TYPE\',
\'align\': \'center\',
},
{
title: \'操作\',
field: \'id\',
align: \'center\',
formatter: function (value, row, index) {
var de = \'<button href="#" class="btn btn-primary" onclick="detail(\\'\' + row.MANAGE_NO + \'\\')">详情</button> \'
var e = \'<button href="#" class="btn btn-warning" onclick="edit(\\'\' + row.MANAGE_NO + \'\\')">编辑</button> \'
var d = \'<button href="#" class="btn btn-danger" onclick="del(\\'\' + row.MANAGE_NO + \'\\',\\'\' + row.IS_PASS + \'\\')">删除</button> \';
return de + e + d;
}
}
];
2.通过js获取被选中的数据行
$(\'#userListTable\').bootstrapTable(\'getSelections\');