加入Web Hook

This commit is contained in:
marvzhang
2020-04-20 13:44:13 +08:00
parent c0bb7e5ca0
commit 052757960e
5 changed files with 80 additions and 13 deletions

View File

@@ -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">

View File

@@ -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 加星吧'

View File

@@ -93,6 +93,6 @@ export default {
.sidebar-container .sidebar-logo .version {
margin-left: 5px;
font-weight: normal;
font-size: 12px;
font-size: 11px;
}
</style>