|
@@ -861,7 +861,7 @@ const tableRowSelectable = (row) => {
|
|
}
|
|
}
|
|
|
|
|
|
// 批量打回
|
|
// 批量打回
|
|
-const doBatchRollback = () => {
|
|
|
|
|
|
+const confirmBatchRollback = () => {
|
|
// 过滤一下,找到已上线爬虫,仅提交此类爬虫(因为能选中的只有3和11,所以直接过滤获取2组)
|
|
// 过滤一下,找到已上线爬虫,仅提交此类爬虫(因为能选中的只有3和11,所以直接过滤获取2组)
|
|
let list = []
|
|
let list = []
|
|
let dropList = []
|
|
let dropList = []
|
|
@@ -883,15 +883,28 @@ const doBatchRollback = () => {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
tableEvents.updateCodeStateAction(list, {
|
|
tableEvents.updateCodeStateAction(list, {
|
|
- reason: value,
|
|
|
|
stype: '打回',
|
|
stype: '打回',
|
|
state: 2,
|
|
state: 2,
|
|
successTip: '批量打回成功',
|
|
successTip: '批量打回成功',
|
|
errorTip: '批量打回失败',
|
|
errorTip: '批量打回失败',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+const doBatchRollback = () => {
|
|
|
|
+ ElMessageBox.confirm('确认批量打回?', '提示',
|
|
|
|
+ {
|
|
|
|
+ customClass: 'j-confirm-message-box',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ confirmButtonText: '确认',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ showCancelButton: false,
|
|
|
|
+ }
|
|
|
|
+ ).then(() => {
|
|
|
|
+ confirmBatchRollback()
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
// 执行批量上线
|
|
// 执行批量上线
|
|
-const doBatchListing = () => {
|
|
|
|
|
|
+const confirmBatchListing = () => {
|
|
// 过滤一下,找到已通过爬虫,仅提交此类爬虫(因为能选中的只有3和11,所以直接过滤获取2组)
|
|
// 过滤一下,找到已通过爬虫,仅提交此类爬虫(因为能选中的只有3和11,所以直接过滤获取2组)
|
|
const list = listState.selected.filter(v => v.state === 3)
|
|
const list = listState.selected.filter(v => v.state === 3)
|
|
const dropList = listState.selected.filter(v => v.state !== 3)
|
|
const dropList = listState.selected.filter(v => v.state !== 3)
|
|
@@ -906,8 +919,22 @@ const doBatchListing = () => {
|
|
// 判断爬虫中是否有其他类型,如果有,将其他类型爬虫取消选中
|
|
// 判断爬虫中是否有其他类型,如果有,将其他类型爬虫取消选中
|
|
tableEvents.batchListing(list, 'up')
|
|
tableEvents.batchListing(list, 'up')
|
|
}
|
|
}
|
|
|
|
+const doBatchListing = () => {
|
|
|
|
+ ElMessageBox.confirm('确认批量上线?', '提示',
|
|
|
|
+ {
|
|
|
|
+ customClass: 'j-confirm-message-box',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ confirmButtonText: '确认',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ showCancelButton: false,
|
|
|
|
+ }
|
|
|
|
+ ).then(() => {
|
|
|
|
+ confirmBatchListing()
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
// 执行批量下线操作
|
|
// 执行批量下线操作
|
|
-const doUnBatchListing = () => {
|
|
|
|
|
|
+const confirmBatchUnListing = () => {
|
|
// 过滤一下,找到已上线爬虫,仅提交此类爬虫(因为能选中的只有3和11,所以直接过滤获取2组)
|
|
// 过滤一下,找到已上线爬虫,仅提交此类爬虫(因为能选中的只有3和11,所以直接过滤获取2组)
|
|
const list = listState.selected.filter(v => v.state === 11)
|
|
const list = listState.selected.filter(v => v.state === 11)
|
|
const dropList = listState.selected.filter(v => v.state !== 11)
|
|
const dropList = listState.selected.filter(v => v.state !== 11)
|
|
@@ -921,6 +948,19 @@ const doUnBatchListing = () => {
|
|
}
|
|
}
|
|
tableEvents.batchListing(list, 'down')
|
|
tableEvents.batchListing(list, 'down')
|
|
}
|
|
}
|
|
|
|
+const doUnBatchListing = () => {
|
|
|
|
+ ElMessageBox.confirm('确认批量下线?', '提示',
|
|
|
|
+ {
|
|
|
|
+ customClass: 'j-confirm-message-box',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ confirmButtonText: '确认',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ showCancelButton: false,
|
|
|
|
+ }
|
|
|
|
+ ).then(() => {
|
|
|
|
+ confirmBatchUnListing()
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
|
|
//Wails事件绑定
|
|
//Wails事件绑定
|
|
// EventsOn("spiderConfigChange", data => {
|
|
// EventsOn("spiderConfigChange", data => {
|