mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
加入Web Hook
This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item v-if="!isView && !isConfigurable" :label="$t('Is De-Duplicated')" prop="dedup_field"
|
||||
<el-form-item v-if="!isView" :label="$t('De-Duplication')" prop="dedup_field"
|
||||
:rules="dedupRules">
|
||||
<div style="display: flex; align-items: center; height: 40px">
|
||||
<el-switch
|
||||
@@ -123,6 +123,21 @@
|
||||
/>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="!isView" label="Web Hook">
|
||||
<div style="display: flex; align-items: center; height: 40px">
|
||||
<el-switch
|
||||
v-model="spiderForm.is_web_hook"
|
||||
active-color="#13ce66"
|
||||
:disabled="isView || isPublic"
|
||||
/>
|
||||
<el-input
|
||||
v-if="spiderForm.is_web_hook"
|
||||
v-model="spiderForm.web_hook_url"
|
||||
:placeholder="$t('Please enter Web Hook URL')"
|
||||
style="margin-left: 20px"
|
||||
/>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item v-if="!isView" :label="$t('Is Public')" prop="is_public">
|
||||
|
||||
@@ -232,6 +232,7 @@ export default {
|
||||
'Please enter de-duplicated field': '请输入去重字段',
|
||||
'Overwrite': '覆盖',
|
||||
'Ignore': '忽略',
|
||||
'De-Duplication': '去重',
|
||||
|
||||
// 爬虫列表
|
||||
'Name': '名称',
|
||||
@@ -654,6 +655,7 @@ docker run -d --restart always --name crawlab_worker \\
|
||||
'Deleted API token successfully': '成功删除 API Token',
|
||||
'Are you sure to add an API token?': '确认创建 API Token?',
|
||||
'Are you sure to delete this API token?': '确认删除该 API Token?',
|
||||
'Please enter Web Hook URL': '请输入 Web Hook URL',
|
||||
|
||||
// 其他
|
||||
'Star crawlab-team/crawlab on GitHub': '在 GitHub 上为 Crawlab 加星吧'
|
||||
|
||||
@@ -93,6 +93,6 @@ export default {
|
||||
.sidebar-container .sidebar-logo .version {
|
||||
margin-left: 5px;
|
||||
font-weight: normal;
|
||||
font-size: 12px;
|
||||
font-size: 11px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user