From 35c793785c89b9a4b779ce45f5b928d022607ba4 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 16 Sep 2021 11:27:44 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=20detail=20formatter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TableFormatters/DetailFormatter.vue | 12 ++++++++++-- src/views/assets/Asset/NodeAssetsUpdateDialog.vue | 1 - 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/TableFormatters/DetailFormatter.vue b/src/components/TableFormatters/DetailFormatter.vue index 9304f11dd..0bdfb0525 100644 --- a/src/components/TableFormatters/DetailFormatter.vue +++ b/src/components/TableFormatters/DetailFormatter.vue @@ -25,8 +25,16 @@ export default { data() { const formatterArgs = Object.assign(this.formatterArgsDefault, this.col.formatterArgs) return { - formatterArgs: formatterArgs, - iTitle: formatterArgs.getTitle({ col: this.col, row: this.row, cellValue: this.cellValue }) + formatterArgs: formatterArgs + } + }, + computed: { + iTitle() { + return this.formatterArgs.getTitle({ + col: this.col, + row: this.row, + cellValue: this.cellValue + }) } }, methods: { diff --git a/src/views/assets/Asset/NodeAssetsUpdateDialog.vue b/src/views/assets/Asset/NodeAssetsUpdateDialog.vue index dc3e3ce41..ee52737c6 100644 --- a/src/views/assets/Asset/NodeAssetsUpdateDialog.vue +++ b/src/views/assets/Asset/NodeAssetsUpdateDialog.vue @@ -95,7 +95,6 @@ export default { computed: { iVisible: { set(val) { - console.log('set val: ', val) this.$emit('update:visible', val) }, get() {