|
|
@ -81,7 +81,6 @@ function startRender() { |
|
|
|
} |
|
|
|
} |
|
|
|
]], |
|
|
|
]], |
|
|
|
done: function (res) { |
|
|
|
done: function (res) { |
|
|
|
console.log(reviewStatus) |
|
|
|
|
|
|
|
reviewForm.val('tableToolForm', {reviewStatus: reviewStatus}) |
|
|
|
reviewForm.val('tableToolForm', {reviewStatus: reviewStatus}) |
|
|
|
reviewForm.render('radio', 'tableToolForm'); |
|
|
|
reviewForm.render('radio', 'tableToolForm'); |
|
|
|
} |
|
|
|
} |
|
|
@ -124,7 +123,6 @@ function startRender() { |
|
|
|
metaListTable.addTableRowEvent('batchReview', function (obj) { |
|
|
|
metaListTable.addTableRowEvent('batchReview', function (obj) { |
|
|
|
var table = layui.table, checkStatus = table.checkStatus('dirMetadataTable'), |
|
|
|
var table = layui.table, checkStatus = table.checkStatus('dirMetadataTable'), |
|
|
|
datas = checkStatus.data || []; |
|
|
|
datas = checkStatus.data || []; |
|
|
|
console.log(datas); |
|
|
|
|
|
|
|
if(datas.length<=0){ |
|
|
|
if(datas.length<=0){ |
|
|
|
showErrorMsg("请至少选择一条数据!"); |
|
|
|
showErrorMsg("请至少选择一条数据!"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -139,7 +137,6 @@ function startRender() { |
|
|
|
reviewForm.render(); |
|
|
|
reviewForm.render(); |
|
|
|
reviewForm.on('submit(reviewForm)', function ({elem, field}) { |
|
|
|
reviewForm.on('submit(reviewForm)', function ({elem, field}) { |
|
|
|
const ids = datas.map(data => data.directoryId); |
|
|
|
const ids = datas.map(data => data.directoryId); |
|
|
|
console.log(field); |
|
|
|
|
|
|
|
let param = { |
|
|
|
let param = { |
|
|
|
ids: ids.join(','), |
|
|
|
ids: ids.join(','), |
|
|
|
status: ReviewStatus.REJECTED, |
|
|
|
status: ReviewStatus.REJECTED, |
|
|
|