1
This commit is contained in:
@@ -119,6 +119,12 @@
|
||||
{{ form.kind === 'aidrama91' ? '短剧单页上限 20' : '短视频单页上限 50' }}
|
||||
</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="请求间隔">
|
||||
<el-input-number v-model="form.delay" :min="0" :max="60" :step="0.1" :precision="1" />
|
||||
<span style="margin-left: 8px; color: #909399; font-size: 12px">
|
||||
秒;每条处理完、每翻一页各等待该时长
|
||||
</span>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<el-form-item label="内容来源">
|
||||
<el-select v-model="form.source_id" placeholder="采集入库时打上该来源标签" style="width: 100%">
|
||||
@@ -153,7 +159,7 @@ const syncAllLoading = ref(false)
|
||||
|
||||
const form = reactive({
|
||||
kind: 'url', name: '', list_url: '', source_id: 0,
|
||||
account: '', password: '', category_ids_text: '4', page_size: 20,
|
||||
account: '', password: '', category_ids_text: '4', page_size: 20, delay: 0.3,
|
||||
})
|
||||
|
||||
const sources = ref([])
|
||||
@@ -206,7 +212,7 @@ function showCreate() {
|
||||
editing.value = null
|
||||
Object.assign(form, {
|
||||
kind: 'url', name: '', list_url: '', source_id: sources.value[0]?.id ?? 0,
|
||||
account: '', password: '', category_ids_text: '4', page_size: 20,
|
||||
account: '', password: '', category_ids_text: '4', page_size: 20, delay: 0.3,
|
||||
})
|
||||
dialogVisible.value = true
|
||||
}
|
||||
@@ -219,6 +225,7 @@ function showEdit(row) {
|
||||
account: row.account || '', password: '',
|
||||
category_ids_text: (row.category_ids || [4]).join(','),
|
||||
page_size: row.page_size || 20,
|
||||
delay: row.delay ?? 0.3,
|
||||
})
|
||||
dialogVisible.value = true
|
||||
}
|
||||
@@ -246,6 +253,7 @@ async function save() {
|
||||
payload.account = form.account
|
||||
payload.category_ids = ids.length ? ids : [4]
|
||||
payload.page_size = form.page_size || 20
|
||||
payload.delay = form.delay ?? 0.3
|
||||
if (form.password) payload.password = form.password
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user