修改结算账户查询js效率低下的问题
This commit is contained in:
@@ -98,10 +98,17 @@
|
|||||||
{title: '本月发生额', field: 'thismonthamount', width: 100, align: "center"},
|
{title: '本月发生额', field: 'thismonthamount', width: 100, align: "center"},
|
||||||
{title: '当前余额', field: 'currentamount', width: 100, align: "center"},
|
{title: '当前余额', field: 'currentamount', width: 100, align: "center"},
|
||||||
{
|
{
|
||||||
title: '操作', field: 'op', width: 100, align: "center", formatter: function (value, rec) {
|
title: '操作', field: 'op', width: 100, align: "center", formatter: function (value, rec,index) {
|
||||||
|
/**
|
||||||
|
* create by: qiankunpingtai
|
||||||
|
* create time: 2019/5/6 9:33
|
||||||
|
* website:https://qiankunpingtai.cn
|
||||||
|
* description:
|
||||||
|
* 修改效率低下的js实现
|
||||||
|
*/
|
||||||
var str = '';
|
var str = '';
|
||||||
var rowInfo = rec.id + 'AaBb' + rec.name + 'AaBb' + rec.serialno + 'AaBb' + rec.initialamount + 'AaBb' + rec.currentamount;
|
// var rowInfo = rec.id + 'AaBb' + rec.name + 'AaBb' + rec.serialno + 'AaBb' + rec.initialamount + 'AaBb' + rec.currentamount;
|
||||||
str += '<img src="/js/easyui-1.3.5/themes/icons/list.png" style="cursor: pointer;" onclick="showAccountInOutList(\'' + rowInfo + '\');"/> <a onclick="showAccountInOutList(\'' + rowInfo + '\');" style="text-decoration:none;color:black;" href="javascript:void(0)">流水</a> ';
|
str += '<img src="/js/easyui-1.3.5/themes/icons/list.png" style="cursor: pointer;" onclick="showAccountInOutList(\'' + index + '\');"/> <a onclick="showAccountInOutList(\'' + index + '\');" style="text-decoration:none;color:black;" href="javascript:void(0)">流水</a> ';
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -204,10 +211,12 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function showAccountInOutList(accountInfo) {
|
function showAccountInOutList(index) {
|
||||||
var info = accountInfo.split("AaBb");
|
// var info = accountInfo.split("AaBb");
|
||||||
var accountId = info[0];
|
//获取当前行
|
||||||
var initialAmount = info[3];
|
var rowsdata = $("#tableData").datagrid("getRows")[index];
|
||||||
|
var accountId = rowsdata.id;
|
||||||
|
var initialAmount = rowsdata.initialamount;
|
||||||
$('#accountDetailListDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 查看账户流水');
|
$('#accountDetailListDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 查看账户流水');
|
||||||
$(".window-mask").css({width: webW, height: webH});
|
$(".window-mask").css({width: webW, height: webH});
|
||||||
initAccountDetailData(accountId);
|
initAccountDetailData(accountId);
|
||||||
|
|||||||
Reference in New Issue
Block a user