|
@@ -155,23 +155,25 @@
|
|
|
/* 启动状态显示 */
|
|
|
function statusTools(row) {
|
|
|
if (row.alertStatus == 0) {
|
|
|
- return '<i class=\"fa fa-toggle-off text-info fa-2x\" onclick="enable(\'' + row.alertId + '\')"></i> ';
|
|
|
+ return '<i class=\"fa fa-toggle-off text-info fa-2x\" onclick="enable(\'' + row.alertId + ',' + row.userType + ',' + row.salesLevel + ',' + row.orgCode + '\')"></i> ';
|
|
|
} else {
|
|
|
- return '<i class=\"fa fa-toggle-on text-info fa-2x\" onclick="disable(\'' + row.alertId + '\')"></i> ';
|
|
|
+ return '<i class=\"fa fa-toggle-on text-info fa-2x\" onclick="disable(\'' + row.alertId + ',' + row.userType + ',' + row.salesLevel + ',' + row.orgCode + '\')"></i> ';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* 停用 */
|
|
|
- function disable(roleId) {
|
|
|
+ function disable(row) {
|
|
|
+ var arrayTingyong = row.split(',');
|
|
|
$.modal.confirm("确认关闭该通知吗?", function() {
|
|
|
- $.operate.post(prefix + "/release", { "alertId": roleId, "alertStatus": 0 });
|
|
|
+ $.operate.post(prefix + "/release", { "alertId": arrayTingyong[0], "alertStatus": 0, "userType": arrayTingyong[1], "salesLevel": arrayTingyong[2], "orgCode": arrayTingyong[3] });
|
|
|
})
|
|
|
}
|
|
|
|
|
|
/* 启用 */
|
|
|
- function enable(roleId) {
|
|
|
+ function enable(row) {
|
|
|
+ var arrayQiyong = row.split(',');
|
|
|
$.modal.confirm("确认启用该通知吗?", function() {
|
|
|
- $.operate.post(prefix + "/release", { "alertId": roleId, "alertStatus": 1 });
|
|
|
+ $.operate.post(prefix + "/release", { "alertId": arrayQiyong[0], "alertStatus": 1, "userType": arrayQiyong[1], "salesLevel": arrayQiyong[2], "orgCode": arrayQiyong[3] });
|
|
|
})
|
|
|
}
|
|
|
</script>
|