Commit 396ca238 by 杨树贤

批量拒绝审核checkbox控制问题

parent 7dfcc07f
Showing with 45 additions and 27 deletions
......@@ -77,34 +77,52 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
, id: 'UserExchange'
, page: {}
, done: function (res, curr, count) {
var i = 0;
$(".layui-table-body.layui-table-main").find("input[name='layTableCheckbox']").each(function () {
if (res.data[i].status !== '待审核') {
$(".layui-table-header").find("input[lay-filter='layTableAllChoose']").each(function () {
$(this).attr("disabled", 'disabled').next().removeClass("layui-form-checked");
});
$(this).parent().remove();
form.render('checkbox');
} else if (res.data[i].type === 2) {
//还要去判断是否是微信转账类型,因为这个类型还要去判断是否满足两个好友助力
if (res.data[i].assist_count !== 2) {
console.log(123)
$(this).parent().remove();
}
}
i++;
});
}
})
;
}
});
//头工具栏事件
table.on('toolbar(UserExchange)', function (obj) {
var checkStatus = table.checkStatus(obj.config.id);
//头工具栏事件
table.on('toolbar(UserExchange)', function (obj) {
var checkStatus = table.checkStatus(obj.config.id);
switch (obj.event) {
case 'batchDisableStatus':
changeStatus(checkStatus, -1, table);
break;
}
});
switch (obj.event) {
case 'batchDisableStatus':
changeStatus(checkStatus, -1, table);
break;
}
});
//监听行工具事件
table.on('tool(UserExchange)', function (obj) {
var layEvent = obj.event;
switch (layEvent) {
case 'audit':
window.location = `/user_exchanges/auditUserExchange?id=${obj.data.id}&user_id=${obj.data.user_id}`;
break;
case 'bills':
window.location = '/user_exchanges/userExchangeBillList?user_id='
+ obj.data.user_id;
break;
}
});
//监听行工具事件
table.on('tool(UserExchange)', function (obj) {
var layEvent = obj.event;
switch (layEvent) {
case 'audit':
window.location = `/user_exchanges/auditUserExchange?id=${obj.data.id}&user_id=${obj.data.user_id}`;
break;
case 'bills':
window.location = '/user_exchanges/userExchangeBillList?user_id='
+ obj.data.user_id;
break;
}
});
});
\ No newline at end of file
})
;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment