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