From 6579eadddc12a9674b7dbde426ef4bee61f2d45d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Tue, 4 Dec 2018 11:32:28 +0800 Subject: [PATCH] :lipstick: Updating the UI and style files. --- .editorconfig | 12 ++++++++++-- .../src/main/resources/template/index.vue.vm | 9 +++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.editorconfig b/.editorconfig index 3e1127a6d..d9857e533 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,10 +1,18 @@ root = true -[*.{adoc,bat,groovy,html,java,js,jsp,kt,kts,md,properties,py,rb,sh,sql,svg,txt,xml,xsd}] +[*.{adoc, bat, groovy, html, java, js, jsp, kt, kts, md, properties, py, rb, sh, sql, svg, txt, xml, xsd}] charset = utf-8 -[*.{groovy,java,kt,kts,xml,xsd}] +[*.{groovy, java, kt, kts, xml, xsd}] indent_style = tab indent_size = 4 continuation_indent_size = 8 end_of_line = lf + +[*.{js, html}] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/pigx-visual/pigx-codegen/src/main/resources/template/index.vue.vm b/pigx-visual/pigx-codegen/src/main/resources/template/index.vue.vm index ff52f3104..0f355697d 100755 --- a/pigx-visual/pigx-codegen/src/main/resources/template/index.vue.vm +++ b/pigx-visual/pigx-codegen/src/main/resources/template/index.vue.vm @@ -111,11 +111,9 @@ confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' - }) - .then(function() { + }).then(function() { return delObj(row.$pk.lowerAttrName) - }) - .then(data => { + }).then(data => { _this.tableData.splice(index, 1) _this.$message({ showClose: true, @@ -123,8 +121,7 @@ type: 'success' }) this.getList(this.page) - }) - .catch(function(err) { }) + }).catch(function(err) { }) }, /** * @title 数据更新