diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000000000000000000000000000000000..21b55398391144ce9f800739e8f481eeb14c9ece --- /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 0000000000000000000000000000000000000000..0abebd5b07754a21e0ea6affe0043fa36df4d60d --- /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/.prettierrc.js b/.prettierrc.js index 913b45e40d49d2d4c1f13b72a07df7a9dae590bd..858e8967382337a32c591f84dece031ccd856d4f 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -12,7 +12,7 @@ module.exports = { htmlWhitespaceSensitivity: "css", insertPragma: false, jsxSingleQuote: false, - printWidth: 100, // 如果属性过多需要换行,减少该值 + printWidth: 80, // 如果属性过多需要换行,减少该值 proseWrap: "preserve", quoteProps: "as-needed", requirePragma: false, diff --git a/.vscode/settings.json b/.vscode/settings.json index e7678a340de87f1f24a8f0db2f240b35f00c68bf..29a7e571a7b00dece05b6991a16bf42c5100aba6 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 0000000000000000000000000000000000000000..c7d669278eda9e49238342b07e2e7608cc687402 --- /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/App.vue b/src/App.vue index d2d9dbfd37498ff8195645398ecf792cfcf4e150..e910d63cf39f5d986083aa8e1884592c13fd4d1a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -98,7 +98,7 @@ export default { }, userInfo: { handler() { - this.initMsg(); + // this.initMsg(); }, deep: true, }, @@ -126,6 +126,8 @@ export default { this.readFlag = !this.readFlag; }, initMsg() { + console.log(this.userInfo); + console.log(this.$trace); if (this.userInfo && this.userInfo.system_id) { this.$trace.setOptionValue("userId", this.userInfo.system_id); // this.$trace.setOptionValue('userType',this.userInfo.userType) diff --git a/src/assets/css/common.scss b/src/assets/css/common.scss new file mode 100644 index 0000000000000000000000000000000000000000..d045c05f9435dcfd12775554f9bc5d521a749882 --- /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/bg-ui/bg-table-btns2.vue b/src/bg-ui/bg-table-btns2.vue index 6e57990820f9b824f7117188bdff1d927298ed79..e590cbbe08b40419c19854165c0b59f32de42cd2 100644 --- a/src/bg-ui/bg-table-btns2.vue +++ b/src/bg-ui/bg-table-btns2.vue @@ -1,36 +1,29 @@ + + + diff --git a/src/page/main/config/dict/index.vue b/src/page/main/config/dict/index.vue index 00472afd93cf5e0ed9a34bfe49e9b030de350e17..8d9235dca38bf24788f1aaaf4b66f98ac0f64f81 100644 --- a/src/page/main/config/dict/index.vue +++ b/src/page/main/config/dict/index.vue @@ -25,22 +25,15 @@
- -