From 6a93923edd4c5a7c78b06ff24d9e13bda54606a9 Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Fri, 24 Feb 2023 17:22:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/web/it-console/jsconfig.json | 8 +- code/web/it-console/package.json | 100 +++++++++--------- .../it-console/src/css/public/_public.scss | 56 ++++++++++ .../it-console/src/utils/api/LocalStorage.js | 6 +- .../it-console/src/views/info/StaffInfo.vue | 33 +++--- .../views/requirement/RequirementManager.vue | 91 +++------------- 6 files changed, 142 insertions(+), 152 deletions(-) create mode 100644 code/web/it-console/src/css/public/_public.scss diff --git a/code/web/it-console/jsconfig.json b/code/web/it-console/jsconfig.json index 4aafc5f..9be92f6 100644 --- a/code/web/it-console/jsconfig.json +++ b/code/web/it-console/jsconfig.json @@ -15,5 +15,9 @@ "dom.iterable", "scripthost" ] - } -} + }, + "exclude": [ + "node_modules", + "node_modules_1" + ], +} \ No newline at end of file diff --git a/code/web/it-console/package.json b/code/web/it-console/package.json index a31381c..9f18468 100644 --- a/code/web/it-console/package.json +++ b/code/web/it-console/package.json @@ -1,52 +1,52 @@ { - "name": "CPIC-IT-Console", - "version": "0.1.0", - "private": true, - "scripts": { - "serve": "vue-cli-service serve", - "build": "vue-cli-service build", - "lint": "vue-cli-service lint", - "serve-vite": "vite", - "build-vite": "vite build", - "preview-vite": "vite preview" - }, - "dependencies": { - "@element-plus/icons-vue": "^1.1.4", - "@vitejs/plugin-vue": "^4.0.0", - "@wangeditor/editor": "^5.1.23", - "@wangeditor/editor-for-vue": "^5.1.12", - "axios": "^1.2.1", - "core-js": "^3.8.3", - "element-plus": "^2.2.26", - "sass": "^1.56.2", - "scss": "^0.2.4", - "scss-loader": "^0.0.1", - "vite": "^4.1.4", - "vue": "^3.2.13", - "vue-router": "^4.0.3", - "vuex": "^4.0.0" - }, - "devDependencies": { - "@babel/core": "^7.12.16", - "@babel/eslint-parser": "^7.12.16", - "@vue/cli-plugin-babel": "~5.0.0", - "@vue/cli-plugin-eslint": "~5.0.0", - "@vue/cli-plugin-router": "~5.0.0", - "@vue/cli-plugin-vuex": "~5.0.0", - "@vue/cli-service": "~5.0.0", - "eslint": "^7.32.0", - "eslint-plugin-vue": "^8.0.3", - "node-sass": "^8.0.0", - "sass-loader": "^13.2.0", - "svg-sprite-loader": "^2.1.0", - "vue-cli-plugin-element-plus": "~0.0.13", - "@vue/compiler-sfc": "^3.2.26", - "@vitejs/plugin-vue": "^2.0.1", - "@vitejs/plugin-vue-jsx": "^1.3.2", - "vite-plugin-env-compatible": "^1.1.1", - "vite-plugin-html": "3.2.0", - "vite": "^2.7.2", - "@originjs/vite-plugin-require-context": "1.0.9", - "@originjs/vite-plugin-commonjs": "^1.0.1" - } + "name": "CPIC-IT-Console", + "version": "0.1.0", + "private": true, + "scripts": { + "serve": "vue-cli-service serve", + "build": "vue-cli-service build", + "lint": "vue-cli-service lint", + "serve-vite": "vite", + "build-vite": "vite build", + "preview-vite": "vite preview" + }, + "dependencies": { + "@element-plus/icons-vue": "^1.1.4", + "@vitejs/plugin-vue": "^4.0.0", + "@wangeditor/editor": "^5.1.23", + "@wangeditor/editor-for-vue": "^5.1.12", + "axios": "^1.2.1", + "core-js": "^3.8.3", + "element-plus": "^2.2.26", + "sass": "^1.56.2", + "scss": "^0.2.4", + "scss-loader": "^0.0.1", + "vite": "^4.1.4", + "vue": "^3.2.13", + "vue-router": "^4.0.3", + "vuex": "^4.0.0" + }, + "devDependencies": { + "@babel/core": "^7.12.16", + "@babel/eslint-parser": "^7.12.16", + "@vue/cli-plugin-babel": "~5.0.0", + "@vue/cli-plugin-eslint": "~5.0.0", + "@vue/cli-plugin-router": "~5.0.0", + "@vue/cli-plugin-vuex": "~5.0.0", + "@vue/cli-service": "~5.0.0", + "eslint": "^7.32.0", + "eslint-plugin-vue": "^8.0.3", + "node-sass": "^8.0.0", + "sass-loader": "^13.2.0", + "vue-cli-plugin-element-plus": "~0.0.13", + "@vue/compiler-sfc": "^3.2.26", + "@vitejs/plugin-vue": "^2.0.1", + "@vitejs/plugin-vue-jsx": "^1.3.2", + "vite-plugin-env-compatible": "^1.1.1", + "vite-plugin-html": "3.2.0", + "vite": "^2.7.2", + "@originjs/vite-plugin-require-context": "1.0.9", + "@originjs/vite-plugin-commonjs": "^1.0.1" + } } + diff --git a/code/web/it-console/src/css/public/_public.scss b/code/web/it-console/src/css/public/_public.scss new file mode 100644 index 0000000..aaff6ab --- /dev/null +++ b/code/web/it-console/src/css/public/_public.scss @@ -0,0 +1,56 @@ +/* + * @Author: Kane + * @Date: 2023-02-24 09:36:08 + * @LastEditors: Kane + * @LastEditTime: 2023-02-24 16:06:58 + * @FilePath: /it-console/src/css/public/_public.scss + * @Description: 公共变量 + * + * Copyright (c) ${2022} by Kane, All Rights Reserved. + */ + + //背景色 +$wrap-bg-color:#fff; +$span-font-color:#5f5f5f; + +//阴影 +$box-shadow:0px 0px 20px -10px rgb(14 18 22 / 25%); +$box-shadow-hover:0px 0px 20px -10px rgb(14 18 22 / 50%); + +//文字大小 +$font-size-normal:14px; + +//查询框 +@mixin query-box-wrap { + padding: 0px 10px; + + span { + font-weight: normal; + display: block; + text-align: right; + font-size: $font-size-normal; + color: $span-font-color; + } + + .el-row { + display: flex; + align-items: center; + justify-content: left; + } + + .el-row+.el-row { + margin-top: 10px; + } + + .button-wrapper-right { + display: flex; + justify-content: right; + align-items: center; + } + + .button-wrapper-left { + display: flex; + justify-content: left; + align-items: center; + } +} diff --git a/code/web/it-console/src/utils/api/LocalStorage.js b/code/web/it-console/src/utils/api/LocalStorage.js index b5957f6..022ece6 100644 --- a/code/web/it-console/src/utils/api/LocalStorage.js +++ b/code/web/it-console/src/utils/api/LocalStorage.js @@ -2,7 +2,7 @@ * @Author: Kane * @Date: 2023-02-06 14:12:11 * @LastEditors: Kane - * @LastEditTime: 2023-02-23 16:00:54 + * @LastEditTime: 2023-02-24 09:31:03 * @FilePath: /it-console/src/utils/api/LocalStorage.js * @Description: 初始化localStorage中保存的值。 * @@ -13,7 +13,9 @@ const REQUIREMRNT_UI = `requirement_ui`; /** - * + * 从localStorage中读取 REQUIREMRNT_UI 的值,并转换成对象。 + * 如果转换不成功或者缺少属性,就补充属性,设置为空值。 + * 时间属性设置为初始日期。 * @returns 读取并装配好的ui对象 */ function loadRequirementUI() diff --git a/code/web/it-console/src/views/info/StaffInfo.vue b/code/web/it-console/src/views/info/StaffInfo.vue index e0faf23..ce53918 100644 --- a/code/web/it-console/src/views/info/StaffInfo.vue +++ b/code/web/it-console/src/views/info/StaffInfo.vue @@ -11,7 +11,7 @@ * @Author: Kane * @Date: 2023-02-21 11:03:15 * @LastEditors: Kane - * @LastEditTime: 2023-02-23 10:18:25 + * @LastEditTime: 2023-02-24 11:09:40 * @FilePath: /it-console/src/views/info/StaffInfo.vue * @Description:< * @@ -89,31 +89,24 @@ export default {