添加过滤游戏和带货
This commit is contained in:
@@ -45,6 +45,9 @@ export default {
|
||||
num: 'Num',
|
||||
start: 'Start Obtaining Data',
|
||||
stop: 'Stop',
|
||||
prompt: 'Stop crawling specified number',
|
||||
setHostNum: 'Set crawling quantity',
|
||||
unlimitedQuantity: 'Unlimited crawling quantity',
|
||||
},
|
||||
hostList: {
|
||||
placeCountry: 'Select country',
|
||||
|
||||
@@ -44,6 +44,11 @@ export default {
|
||||
num: '个',
|
||||
start: '开始获取数据',
|
||||
stop: '停止',
|
||||
prompt: '到达数量后停止爬取',
|
||||
setHostNum: '设置爬取数量',
|
||||
unlimitedQuantity: '不限爬取数量',
|
||||
|
||||
|
||||
},
|
||||
hostList: {
|
||||
placeCountry: '选择国家',
|
||||
|
||||
@@ -114,11 +114,14 @@
|
||||
<el-col :span="6">
|
||||
<div class="input-group">
|
||||
<label>{{ $t('workbenchesSetup.setNum') }}</label>
|
||||
<label style="color: #00000070; font-size: 15px;">(到达数量后停止爬取)</label>
|
||||
<el-button type="primary" @click="isLimit = true"
|
||||
:disabled="!pyData.isStart">设置爬取数量</el-button>
|
||||
<el-button type="info" @click="isLimit = false"
|
||||
:disabled="!pyData.isStart">不限爬取数量</el-button>
|
||||
<label style="color: #00000070; font-size: 15px;">({{ $t('workbenchesSetup.prompt')
|
||||
}})</label>
|
||||
<el-button type="primary" @click="isLimit = true" :disabled="!pyData.isStart">{{
|
||||
$t('workbenchesSetup.setHostNum')
|
||||
}}</el-button>
|
||||
<el-button type="info" @click="isLimit = false" :disabled="!pyData.isStart">{{
|
||||
$t('workbenchesSetup.unlimitedQuantity')
|
||||
}}</el-button>
|
||||
<!-- <el-input type='number' v-model="pyData.frequency.hour" @input="handleInputHour" -->
|
||||
<div v-if="isLimit" class="center-justify">
|
||||
<el-input type='number' v-model="hostNum" :placeholder="$t('workbenchesSetup.num')"
|
||||
@@ -126,11 +129,17 @@
|
||||
<template #append>{{ $t('workbenchesSetup.num') }}</template>
|
||||
</el-input>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div style="margin-top: 20px; text-align: center">
|
||||
|
||||
<div class="center-line" style="margin-top: 0px; text-align: center">
|
||||
<div class="center-justify">
|
||||
<el-checkbox @click="console.log(pyData)" :disabled="!pyData.isStart"
|
||||
v-model="pyData.filterGame" label="过滤游戏主播" border />
|
||||
<el-checkbox @click="console.log(pyData)" :disabled="!pyData.isStart"
|
||||
v-model="pyData.filterSelling" label="过滤带货主播" border />
|
||||
</div>
|
||||
<el-button class="submit-button" :disabled="false" v-show="pyData.isStart" type="primary"
|
||||
@click="submit">{{
|
||||
$t('workbenchesSetup.start') }}</el-button>
|
||||
@@ -219,8 +228,8 @@ let pyData = ref({
|
||||
frequency: { hour: 0, day: 0 },
|
||||
isStart: true,
|
||||
country: countryData.value,
|
||||
test: '123',
|
||||
test1: { test: 123, test12: 123 },
|
||||
filterSelling: false,
|
||||
filterGame: false,
|
||||
tenantId: getUser().tenantId,
|
||||
userId: getUser().userId,
|
||||
});
|
||||
@@ -340,6 +349,8 @@ const submit = () => {
|
||||
fans: pyData.value.fans,
|
||||
frequency: pyData.value.frequency,
|
||||
isStart: true,
|
||||
filterSelling: pyData.value.filterSelling,
|
||||
filterGame: pyData.value.filterGame,
|
||||
country: countryData.value,
|
||||
tenantId: getUser().tenantId,
|
||||
userId: getUser().id,
|
||||
@@ -388,6 +399,8 @@ const unsubmit = () => {
|
||||
fans: pyData.value.fans,
|
||||
frequency: pyData.value.frequency,
|
||||
isStart: false,
|
||||
filterSelling: pyData.value.filterSelling,
|
||||
filterGame: pyData.value.filterGame,
|
||||
country: countryData.value,
|
||||
tenantId: getUser().tenantId,
|
||||
userId: getUser().id,
|
||||
@@ -808,4 +821,13 @@ label {
|
||||
border-radius: 10px;
|
||||
border: 1px solid #B7CEC5;
|
||||
}
|
||||
|
||||
.el-checkbox {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
/* 水平居中 */
|
||||
align-items: center;
|
||||
/* 垂直居中 */
|
||||
/* 示例高度,根据需要调整 */
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user