{
title: "采集数量",
field: 'count',
align: 'center',
search: true, //显示搜索框
cellStyle: function () {
return {
'classes':'xxs'}
},
formatter:function (value,row,index) {
$.ajax({
type: "post",
url: "/baseinfo/searchTotalByJYBH",
contentType: "application/json",
dataType: "json",
data: JSON.stringify({'jybh':row.departmentId}), //必须的,为空的话也必须是json字符串
success: function (res) {
console.log(res);
if(res.code==200){
var num=res.data+'';
console.log(row);
$(".xxs").html(num);
}else{
alert(res.msg);
}
}
})
}
},
,,
https://img-mid.csdnimg.cn/release/static/image/mid/ask/881361798736132.png "#left"),}
试过的方法 ,