|
@@ -66,7 +66,7 @@
|
|
<el-table-column label="操作" width="160">
|
|
<el-table-column label="操作" width="160">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-tooltip content="标注" placement="top">
|
|
<el-tooltip content="标注" placement="top">
|
|
- <el-button size="small" :class="{ active: scope.row._action_clicked_mark }" @click="tableEvents.handleDataTag(scope.$index, scope.row)">
|
|
|
|
|
|
+ <el-button size="small" :class="{ active: scope.row._action_clicked_mark }" @click="tableEvents.handleDataTag(scope.row)">
|
|
<el-icon><Link /></el-icon>
|
|
<el-icon><Link /></el-icon>
|
|
</el-button>
|
|
</el-button>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
@@ -113,7 +113,7 @@
|
|
</div>
|
|
</div>
|
|
</el-main>
|
|
</el-main>
|
|
</el-card>
|
|
</el-card>
|
|
- <EditSpider ref="editSpiderDialog" @custom-event="dialogEvents.editSpiderConfigSaveEvent" />
|
|
|
|
|
|
+ <EditSpider ref="editSpiderDialog" @custom-event="dialogEvents.editSpiderConfigSaveEvent" @data-tag="editDialogMarkClick($event)" />
|
|
<RunSpiderDialog ref="runSpiderDialog" />
|
|
<RunSpiderDialog ref="runSpiderDialog" />
|
|
<VerifySpider ref="verifySpiderDialog" />
|
|
<VerifySpider ref="verifySpiderDialog" />
|
|
</template>
|
|
</template>
|
|
@@ -508,17 +508,22 @@ const getMarkWithRow = row => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const editDialogMarkClick = (row) => {
|
|
|
|
+ // 自定义关闭时间
|
|
|
|
+ ElMessage({
|
|
|
|
+ message: `${row.site} ${row.channel} ${row.href}`,
|
|
|
|
+ showClose: true,
|
|
|
|
+ duration: 3000,
|
|
|
|
+ });
|
|
|
|
+ BrowserOpenURL(row.href)
|
|
|
|
+}
|
|
|
|
+
|
|
// table的按钮事件集合
|
|
// table的按钮事件集合
|
|
const tableEvents = {
|
|
const tableEvents = {
|
|
- handleDataTag(index, row) {
|
|
|
|
|
|
+ handleDataTag(row) {
|
|
onlyClickHighlight(row, '_action_clicked_mark')
|
|
onlyClickHighlight(row, '_action_clicked_mark')
|
|
// 自定义关闭时间
|
|
// 自定义关闭时间
|
|
- ElMessage({
|
|
|
|
- message: `${row.site} ${row.channel} ${row.href}`,
|
|
|
|
- showClose: true,
|
|
|
|
- duration: 3000,
|
|
|
|
- });
|
|
|
|
- BrowserOpenURL(row.href)
|
|
|
|
|
|
+ editDialogMarkClick(row)
|
|
},
|
|
},
|
|
handleEdit: (index, row) => {
|
|
handleEdit: (index, row) => {
|
|
currentEditRow.value = row
|
|
currentEditRow.value = row
|