From 1fd24a26d299ab4df482c991cbfc18ddb857162f Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Tue, 20 Jun 2023 11:19:50 +0800 Subject: [PATCH] =?UTF-8?q?[feat](=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F):?= =?UTF-8?q?=20=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F=E5=8F=8A=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierignore | 10 + .prettierrc | 7 + .vscode/settings.json | 15 +- jsconfig.json | 13 + src/assets/css/common.scss | 45 ++ src/main.js | 2 + .../auto-maintenance/task-manage/index.vue | 620 +++++++++++++++++- 7 files changed, 708 insertions(+), 4 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc create mode 100644 jsconfig.json create mode 100644 src/assets/css/common.scss diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..21b5539 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,10 @@ +node_modules +dist +pnpm-lock.yaml +auto-imports.d.ts +components.d.ts +env.d.ts +*.md +iconfont.js +.DS_Store +.history diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..0abebd5 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "$schema": "http://json.schemastore.org/prettierrc", + "semi": true, + "singleQuote": false, + "bracketSameLine": true + } + \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index e7678a3..29a7e57 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,17 @@ { "editor.defaultFormatter": "esbenp.prettier-vscode", - "GitCommitPlugin.ShowEmoji": false + "GitCommitPlugin.ShowEmoji": false, + "editor.formatOnSave": false, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, + "volar.inlayHints.eventArgumentInInlineHandlers": false, + // "path-intellisense.mappings": { + // "@": "${workspaceFolder}/src" + // }, + // 文件保存自动格式化 + "editor.formatOnSave": true, + "[vue]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } } diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..c7d6692 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,13 @@ +// https://code.visualstudio.com/docs/languages/jsconfig +{ + "compilerOptions": { + "baseUrl": ".", + "module": "commonjs", + "target": "es6", + "paths": { + "@/*": ["./src/*"] + } + }, + "exclude": [".git", "node_modules", "dist"] + } + \ No newline at end of file diff --git a/src/assets/css/common.scss b/src/assets/css/common.scss new file mode 100644 index 0000000..d045c05 --- /dev/null +++ b/src/assets/css/common.scss @@ -0,0 +1,45 @@ +.detail_container { + width: 100%; + padding: 0 24px; + min-height: 100%; + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: stretch; + + .main_container { + flex-grow: 1; + width: 100%; + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: stretch; + background-color: #fff; + box-shadow: 0 1px 4px 0 rgba(0, 7, 101, 0.15); + border-radius: 6px; + padding: 0 0 16px 0; + margin-bottom: 16px; + position: relative; + + .table_container { + padding: 0 16px; + + .el-table { + flex: 1; + + .mock_tip { + display: inline-block; + font-size: 12px; + color: #2b4695; + width: 43px; + height: 20px; + text-align: center; + background-color: #eff2fa; + border-radius: 3px; + border: solid 1px #b0bee8; + margin-left: 4px; + } + } + } + } + } \ No newline at end of file diff --git a/src/main.js b/src/main.js index 8fb3d7d..e3c4426 100644 --- a/src/main.js +++ b/src/main.js @@ -12,6 +12,8 @@ import * as ElementPlusIconsVue from "@element-plus/icons-vue"; import bgui from "@/bg-ui"; import "@/bg-ui/index.scss"; +import "./assets/css/common.scss" + import msgSdk from "./msg-sdk/index.js"; import App from "./App.vue"; diff --git a/src/page/main/auto-maintenance/task-manage/index.vue b/src/page/main/auto-maintenance/task-manage/index.vue index 81696be..287eacd 100644 --- a/src/page/main/auto-maintenance/task-manage/index.vue +++ b/src/page/main/auto-maintenance/task-manage/index.vue @@ -1,7 +1,621 @@ - + + + -- 2.26.0