From 308173072ff32bc7372d84ebe234f99013f65827 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Thu, 30 May 2019 11:47:17 +0800 Subject: [PATCH] updated ConfigList --- frontend/src/components/Config/ConfigList.vue | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Config/ConfigList.vue b/frontend/src/components/Config/ConfigList.vue index 1b0e9d58..f147cdc0 100644 --- a/frontend/src/components/Config/ConfigList.vue +++ b/frontend/src/components/Config/ConfigList.vue @@ -9,11 +9,15 @@ :header-cell-style="{background:'rgb(48, 65, 86)',color:'white'}" border> + @@ -236,6 +240,19 @@ export default { this.extractFieldsLoading = false }) }) + }, + renderHeader (h, { column }) { + return h( + 'el-input', + { + 'v-model': 'column.label', + on: { + change: () => { + } + } + }, + column.label + ) } }, created () { @@ -244,7 +261,7 @@ export default { this.spiderForm.fields = [] for (let i = 0; i < 3; i++) { this.spiderForm.fields.push({ - name: `field_${i + 1}`, + name: 'field_' + (i + 1), type: 'css', extract_type: 'text' }) @@ -256,7 +273,7 @@ export default { this.spiderForm.detail_fields = [] for (let i = 0; i < 3; i++) { this.spiderForm.detail_fields.push({ - name: `field_${i + 1}`, + name: 'field_' + (i + 1), type: 'css', extract_type: 'text' })