From d3b4db29ee88daca39dda9b58b540ad721391932 Mon Sep 17 00:00:00 2001 From: marvzhang Date: Thu, 28 Nov 2019 22:23:12 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/spider/SpiderList.vue | 47 +++++++++--------------- 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/frontend/src/views/spider/SpiderList.vue b/frontend/src/views/spider/SpiderList.vue index 41007044..b185574e 100644 --- a/frontend/src/views/spider/SpiderList.vue +++ b/frontend/src/views/spider/SpiderList.vue @@ -34,22 +34,6 @@ :visible.sync="addDialogVisible" :before-close="onAddDialogClose"> - - - - - {{$t('Upload')}} - - - - - @@ -66,19 +50,23 @@ {{$t('Add')}} + + + + + {{$t('Upload')}} + + + + + - - - - - - - - - - - - @@ -323,7 +311,7 @@ export default { name: [{ required: true, message: 'Required Field', trigger: 'change' }] }, fileList: [], - spiderType: 'customized' + spiderType: 'configurable' } }, computed: { @@ -356,7 +344,6 @@ export default { onAdd () { this.$store.commit('spider/SET_SPIDER_FORM', {}) this.addDialogVisible = true - // this.onAddCustomized() }, onAddConfigurable () { this.$refs['addConfigurableForm'].validate(async res => { From 83e148b31d00166bcfa63e83c8898a2338216819 Mon Sep 17 00:00:00 2001 From: marvzhang Date: Thu, 28 Nov 2019 22:37:32 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=AF=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=88=AC=E8=99=AB=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/i18n/zh.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/src/i18n/zh.js b/frontend/src/i18n/zh.js index 43ef33ef..a1190253 100644 --- a/frontend/src/i18n/zh.js +++ b/frontend/src/i18n/zh.js @@ -151,6 +151,19 @@ export default { 'Detail Page Fields': '详情页字段', 'Detail Page URL': '详情页URL', 'All': '全部', + 'Stages': '阶段', + 'Process': '流程', + 'Stage Process': '流程图', + 'Stage Name': '阶段名称', + 'Start Stage': '开始阶段', + 'Engine': '引擎', + 'Selector Type': '选择器类别', + 'Selector': '选择器', + 'Is Attribute': '是否为属性', + 'Next Stage': '下一阶段', + 'No Next Stage': '没有下一阶段', + 'Fields': '字段', + 'Stage': '阶段', // 爬虫列表 'Name': '名称', From 5785e3d890d8efb553392ac071fe8b7edcf64fff Mon Sep 17 00:00:00 2001 From: marvzhang Date: Thu, 28 Nov 2019 22:38:49 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=AF=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=88=AC=E8=99=AB=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/store/modules/lang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/store/modules/lang.js b/frontend/src/store/modules/lang.js index b1e57a04..dc6b8d18 100644 --- a/frontend/src/store/modules/lang.js +++ b/frontend/src/store/modules/lang.js @@ -1,5 +1,5 @@ const state = { - lang: window.localStorage.getItem('lang') || 'en' + lang: window.localStorage.getItem('lang') || 'zh' } const getters = {