diff --git a/src/locales/en.js b/src/locales/en.js index 1facadc..469a8ce 100644 --- a/src/locales/en.js +++ b/src/locales/en.js @@ -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', diff --git a/src/locales/zh.js b/src/locales/zh.js index 9eb3a6e..5586c1a 100644 --- a/src/locales/zh.js +++ b/src/locales/zh.js @@ -44,6 +44,11 @@ export default { num: '个', start: '开始获取数据', stop: '停止', + prompt: '到达数量后停止爬取', + setHostNum: '设置爬取数量', + unlimitedQuantity: '不限爬取数量', + + }, hostList: { placeCountry: '选择国家', diff --git a/src/views/hosts/workbenches.vue b/src/views/hosts/workbenches.vue index 410218b..8b79ae9 100644 --- a/src/views/hosts/workbenches.vue +++ b/src/views/hosts/workbenches.vue @@ -114,11 +114,14 @@
- - 设置爬取数量 - 不限爬取数量 + + {{ + $t('workbenchesSetup.setHostNum') + }} + {{ + $t('workbenchesSetup.unlimitedQuantity') + }}
{{ $t('workbenchesSetup.num') }}
+
-
- +
+
+ + +
{{ $t('workbenchesSetup.start') }} @@ -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; + /* 垂直居中 */ + /* 示例高度,根据需要调整 */ +} \ No newline at end of file