From e7ab4b4f77ea538cdda45d2ac3d26133d060f992 Mon Sep 17 00:00:00 2001 From: jiangyuying Date: Tue, 30 Jun 2020 14:12:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B6=E7=AE=A1=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epmet-oper-web/.vscode/settings.json | 43 ++ epmet-oper-web/public/index.html | 2 +- .../customer-manage/customer-manage.vue | 402 +++++++++++------- 3 files changed, 296 insertions(+), 151 deletions(-) create mode 100644 epmet-oper-web/.vscode/settings.json diff --git a/epmet-oper-web/.vscode/settings.json b/epmet-oper-web/.vscode/settings.json new file mode 100644 index 0000000..fbbfd4c --- /dev/null +++ b/epmet-oper-web/.vscode/settings.json @@ -0,0 +1,43 @@ +{ + "workbench.colorTheme": "One Monokai", + "window.zoomLevel": 1, + "terminal.integrated.fontWeightBold": "normal", + "workbench.iconTheme": "material-icon-theme", + // vscode默认启用了根据文件类型自动设置tabsize的选项 + "editor.detectIndentation": false, + // 重新设定tabsize + "editor.tabSize": 2, + // #每次保存的时候自动格式化 + "editor.formatOnSave": false, + // #每次保存的时候将代码按eslint格式进行修复 + "eslint.autoFixOnSave": true, + // 添加 vue 支持 + "eslint.validate": [ + "javascript", + "javascriptreact", + { + "language": "vue", + "autoFix": true + } + ], + // #去掉代码结尾的分号 + "prettier.semi": false, + // #使用带引号替代双引号 + "prettier.singleQuote": true, + // #让函数(名)和后面的括号之间加个空格 + "javascript.format.insertSpaceBeforeFunctionParenthesis": true, + // #这个按用户自身习惯选择 + "vetur.format.defaultFormatter.html": "js-beautify-html", + // #让vue中的js按编辑器自带的ts格式进行格式化 + "vetur.format.defaultFormatter.js": "vscode-typescript", + "vetur.format.defaultFormatterOptions": { + "js-beautify-html": { + "wrap_attributes": "force-aligned" + // #vue组件中html代码格式化样式 + } + }, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, + "git.enableSmartCommit": true +} \ No newline at end of file diff --git a/epmet-oper-web/public/index.html b/epmet-oper-web/public/index.html index c6dd54e..14b63b2 100644 --- a/epmet-oper-web/public/index.html +++ b/epmet-oper-web/public/index.html @@ -29,8 +29,8 @@ <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> - + <% } %> <% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %> diff --git a/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue b/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue index 0357bdf..aff0ca8 100644 --- a/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue +++ b/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue @@ -1,6 +1,13 @@ - +