|
@ -129,7 +129,7 @@ |
|
|
hg.confirm("流程規則:" + obj.data.nextStation['stationName'] + ",确定要删除吗?", function () { |
|
|
hg.confirm("流程規則:" + obj.data.nextStation['stationName'] + ",确定要删除吗?", function () { |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
url: '/BAS/BAS011D', |
|
|
url: '/BAS/BAS011D', |
|
|
data: { id: obj.data.ruleStationID }, |
|
|
data: { id: obj.data.ruleStationID, status: obj.data.ruleStatus }, |
|
|
type: 'POST', |
|
|
type: 'POST', |
|
|
success: function (data) { |
|
|
success: function (data) { |
|
|
if (data.success) { |
|
|
if (data.success) { |
|
@ -153,14 +153,13 @@ |
|
|
layuiicon: '', |
|
|
layuiicon: '', |
|
|
class: 'layui-btn-danger', |
|
|
class: 'layui-btn-danger', |
|
|
handler: function (obj, row) { |
|
|
handler: function (obj, row) { |
|
|
if (obj.checkstatus && obj.checkstatus.data.length > 0) |
|
|
if (obj.checkstatus && obj.checkstatus.data.length > 0) { |
|
|
{ |
|
|
console.log(obj.checkstatus.data.map(function (x) { return x.ruleStationID + '_' + x.ruleStatus }).join(',')) |
|
|
console.log(obj.checkstatus.data.map(function (x) { return x.ruleStationID }).join(',')) |
|
|
|
|
|
|
|
|
|
|
|
hg.confirm("批量删除所有选中的数据,确定要删除吗?", function () { |
|
|
hg.confirm("批量删除所有选中的数据,确定要删除吗?", function () { |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
url: '/BAS/BAS011DAll', |
|
|
url: '/BAS/BAS011DAll', |
|
|
data: { ids: obj.checkstatus.data.map(function (x) { return x.ruleStationID }) }, |
|
|
data: { ids: obj.checkstatus.data.map(function (x) { return x.ruleStationID + '_' + x.ruleStatus }) }, |
|
|
type: 'POST', |
|
|
type: 'POST', |
|
|
success: function (data) { |
|
|
success: function (data) { |
|
|
if (data.success) { |
|
|
if (data.success) { |
|
|