|
@@ -7,7 +7,7 @@
|
|
|
<el-space class="action-bar-item-container action-bar-action-left">
|
|
|
<el-button-group class="ml-4">
|
|
|
<el-button type="primary" :icon="Refresh" @click="resetFilterAndRefreshTableList">刷新</el-button>
|
|
|
- <el-button type="primary" :icon="Box" @click="userClaimCodes" v-if="showRenLingButton">认领</el-button>
|
|
|
+ <el-button type="primary" :icon="Box" @click="clickClaimCodes" v-if="showRenLingButton">认领</el-button>
|
|
|
</el-button-group>
|
|
|
</el-space>
|
|
|
<el-space class="action-bar-item-container action-bar-action-right">
|
|
@@ -367,6 +367,18 @@ const userClaimCodes = async () => {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
+const clickClaimCodes = () => {
|
|
|
+ ElMessageBox.confirm('确定要认领一批爬虫?', '提示',
|
|
|
+ {
|
|
|
+ customClass: 'j-confirm-message-box',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ showCancelButton: false,
|
|
|
+ }
|
|
|
+ ).then(() => {
|
|
|
+ userClaimCodes()
|
|
|
+ })
|
|
|
+}
|
|
|
|
|
|
getTableList()
|
|
|
|
|
@@ -610,14 +622,24 @@ const tableEvents = {
|
|
|
},
|
|
|
handleRollback(_, row) {
|
|
|
onlyClickHighlight(row, '_action_clicked_rollback')
|
|
|
- ElMessageBox.alert('确定退回?', '提示', {
|
|
|
- customClass: 'j-confirm-message-box',
|
|
|
- confirmButtonText: '确定',
|
|
|
- callback: (action) => {
|
|
|
- if (action === 'confirm') {
|
|
|
- this.confirmRollback(row)
|
|
|
- }
|
|
|
- },
|
|
|
+ // ElMessageBox.alert('确定退回?', '提示', {
|
|
|
+ // customClass: 'j-confirm-message-box',
|
|
|
+ // confirmButtonText: '确定',
|
|
|
+ // callback: (action) => {
|
|
|
+ // if (action === 'confirm') {
|
|
|
+ //
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // })
|
|
|
+ ElMessageBox.confirm('确定退回?', '提示',
|
|
|
+ {
|
|
|
+ customClass: 'j-confirm-message-box',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ showCancelButton: false,
|
|
|
+ }
|
|
|
+ ).then(() => {
|
|
|
+ this.confirmRollback(row)
|
|
|
})
|
|
|
},
|
|
|
confirmRollback(row) {
|