diff --git a/.env.development b/.env.development index af9ba00..a4677b6 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 若依管理系统 +VITE_APP_TITLE = 测偏仪后台管理系统 # 开发环境配置 VITE_APP_ENV = 'development' diff --git a/.env.production b/.env.production index cbabf89..a856454 100644 --- a/.env.production +++ b/.env.production @@ -1,11 +1,11 @@ # 页面标题 -VITE_APP_TITLE = 若依管理系统 +VITE_APP_TITLE = 测偏仪后台管理系统 # 生产环境配置 VITE_APP_ENV = 'production' # 若依管理系统/生产环境 -VITE_APP_BASE_API = '/prod-api' +VITE_APP_BASE_API = '/api' # 是否在打包时开启压缩,支持 gzip 和 brotli VITE_BUILD_COMPRESS = gzip \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9154f4c..d4ff931 100644 --- a/.gitignore +++ b/.gitignore @@ -1,26 +1,33 @@ -# ---> Java -# Compiled class file -*.class +.DS_Store +.history +node_modules/ +dist/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +**/*.log -# Log file -*.log +tests/**/coverage/ +tests/e2e/reports +selenium-debug.log -# BlueJ files -*.ctxt +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.local -# Mobile Tools for Java (J2ME) -.mtj.tmp/ +package-lock.json +yarn.lock +pnpm-lock.yaml -# Package Files # -*.jar -*.war -*.nar -*.ear -*.zip -*.tar.gz -*.rar - -# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml -hs_err_pid* -replay_pid* +# 编译生成的文件 +auto-imports.d.ts +components.d.ts +# 项目配置文件 +vite.config.ts +dist.zip diff --git a/package-lock.json b/package-lock.json index 25416f4..0bf3550 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,8 +24,11 @@ "nprogress": "0.2.0", "pinia": "2.1.7", "splitpanes": "3.1.5", + "typescript": "^5.8.3", "vue": "3.4.31", + "vue-clipboard3": "^2.0.0", "vue-cropper": "1.1.1", + "vue-i18n": "^11.1.3", "vue-router": "4.4.0", "vuedraggable": "4.1.0" }, @@ -529,6 +532,47 @@ "integrity": "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==", "license": "MIT" }, + "node_modules/@intlify/core-base": { + "version": "11.1.3", + "resolved": "https://registry.npmmirror.com/@intlify/core-base/-/core-base-11.1.3.tgz", + "integrity": "sha512-cMuHunYO7LE80azTitcvEbs1KJmtd6g7I5pxlApV3Jo547zdO3h31/0uXpqHc+Y3RKt1wo2y68RGSx77Z1klyA==", + "dependencies": { + "@intlify/message-compiler": "11.1.3", + "@intlify/shared": "11.1.3" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/message-compiler": { + "version": "11.1.3", + "resolved": "https://registry.npmmirror.com/@intlify/message-compiler/-/message-compiler-11.1.3.tgz", + "integrity": "sha512-7rbqqpo2f5+tIcwZTAG/Ooy9C8NDVwfDkvSeDPWUPQW+Dyzfw2o9H103N5lKBxO7wxX9dgCDjQ8Umz73uYw3hw==", + "dependencies": { + "@intlify/shared": "11.1.3", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/shared": { + "version": "11.1.3", + "resolved": "https://registry.npmmirror.com/@intlify/shared/-/shared-11.1.3.tgz", + "integrity": "sha512-pTFBgqa/99JRA2H1qfyqv97MKWJrYngXBA/I0elZcYxvJgcCw3mApAoPW3mJ7vx3j+Ti0FyKUFZ4hWxdjKaxvA==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -6566,6 +6610,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/ufo": { "version": "1.5.4", "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz", @@ -7014,12 +7070,39 @@ } } }, + "node_modules/vue-clipboard3": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/vue-clipboard3/-/vue-clipboard3-2.0.0.tgz", + "integrity": "sha512-Q9S7dzWGax7LN5iiSPcu/K1GGm2gcBBlYwmMsUc5/16N6w90cbKow3FnPmPs95sungns4yvd9/+JhbAznECS2A==", + "dependencies": { + "clipboard": "^2.0.6" + } + }, "node_modules/vue-cropper": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/vue-cropper/-/vue-cropper-1.1.1.tgz", "integrity": "sha512-WsqKMpaBf9Osi1LQlE/5AKdD0nHWOy1asLXocaG8NomOWO07jiZi968+/PbMmnD0QbPJOumDQaGuGa13qys85A==", "license": "ISC" }, + "node_modules/vue-i18n": { + "version": "11.1.3", + "resolved": "https://registry.npmmirror.com/vue-i18n/-/vue-i18n-11.1.3.tgz", + "integrity": "sha512-Pcylh9z9S5+CJAqgbRZ3EKxFIBIrtY5YUppU722GIT65+Nukm0TCqiQegZnNLCZkXGthxe0cpqj0AoM51H+6Gw==", + "dependencies": { + "@intlify/core-base": "11.1.3", + "@intlify/shared": "11.1.3", + "@vue/devtools-api": "^6.5.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, "node_modules/vue-router": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.4.0.tgz", diff --git a/package.json b/package.json index 256e446..c9538df 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,11 @@ "nprogress": "0.2.0", "pinia": "2.1.7", "splitpanes": "3.1.5", + "typescript": "^5.8.3", "vue": "3.4.31", + "vue-clipboard3": "^2.0.0", "vue-cropper": "1.1.1", + "vue-i18n": "^11.1.3", "vue-router": "4.4.0", "vuedraggable": "4.1.0" }, diff --git a/src/api/customer/index.js b/src/api/customer/index.js new file mode 100644 index 0000000..fa8fdd4 --- /dev/null +++ b/src/api/customer/index.js @@ -0,0 +1,92 @@ +import request from '@/utils/request'; +// 获取客户列表 +export function getCustomerListApi(query) { + return request({ + url: '/system/dept/customerList', + method: 'get', + params: query + }) +} +// 获取客户列表 +export function getDepListApi() { + return request({ + url: '/system/dept/list', + method: 'get' + }) +} +//新增客户-部门管理 +export function addDepartmentApi(data) { + return request({ + url: '/system/dept', + method: 'post', + data + }) +} +//编辑客户-部门管理 +export function editDepartmentApi(data) { + return request({ + url: '/system/dept', + method: 'put', + data + }) +} +//查询客户-部门管理详情 +export function getDepartmentDetailApi(id) { + return request({ + url: '/system/dept/' + id, + method: 'get' + }) +} + +//删除客户-部门管理 +export function deleteDepartmentApi(id) { + return request({ + url: '/system/dept/' + id, + method: 'delete' + }) +} +//获取客户-部门管理下拉树结构 +export function getDepartmentTreeApi() { + return request({ + url: '/system/user/deptTree', + method: 'get' + }) +} +//获取客户-部门-岗位关联列表 +export function getDepartmentPostListApi(query) { + return request({ + url: '/customer/dept/post/rel/list', + method: 'get', + params: query + }) +} +//新增客户-部门-岗位关联 +export function addDepartmentPostApi(data) { + return request({ + url: '/customer/dept/post/rel', + method: 'post', + data + }) +} +//编辑客户-部门-岗位关联 +export function editDepartmentPostApi(data) { + return request({ + url: '/customer/dept/post/rel', + method: 'put', + data + }) +} +//删除客户-部门-岗位关联 +export function deleteDepartmentPostApi(id) { + return request({ + url: '/customer/dept/post/rel/' + id, + method: 'delete' + }) +} +//获取客户-部门-岗位关联详情 +export function getDepartmentPostDetailApi(id) { + return request({ + url: '/customer/dept/post/rel/' + id, + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/dashboard.js b/src/api/dashboard.js new file mode 100644 index 0000000..53c1988 --- /dev/null +++ b/src/api/dashboard.js @@ -0,0 +1,22 @@ +import request from '@/utils/request' +//获取数据总览 +export function getDashboardApi() { + return request({ + url: '/index/overview', + method: 'get' + }) +} +// 维保分析 +export function getMaintainAnalysisApi() { + return request({ + url: '/index/maintenanceAnalysis', + method: 'get' + }) +} +//维保汇总 +export function getMaintainSummaryApi() { + return request({ + url: '/index/maintenanceOverview', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/equipment/index.js b/src/api/equipment/index.js new file mode 100644 index 0000000..b0026e6 --- /dev/null +++ b/src/api/equipment/index.js @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import {getDicts} from "@/api/system/dict/data.js"; +//获取设备型号列表 +export function getDeviceModelListApi(query) { + return request({ + url: '/device/model/list', + method: 'get', + params: query + }) +} +//新增设备型号 +export function addDeviceModelApi(data) { + return request({ + url: '/device/model', + method: 'post', + data + }) +} +//编辑设备型号 +export function editDeviceModelApi(data) { + return request({ + url: '/device/model', + method: 'put', + data + }) +} +//查询设备型号详情 +export function getDeviceModelDetailApi(id) { + return request({ + url: '/device/model/' + id, + method: 'get' + }) +} +//删除设备型号 +export function deleteDeviceModelApi(id) { + return request({ + url: '/device/model/' + id, + method: 'delete' + }) +} +//获取设备信息列表 +export function getDeviceListApi(query) { + return request({ + url: '/device/info/list', + method: 'get', + params: query + }) +} +//新增设备信息 +export function addDeviceApi(data) { + return request({ + url: '/device/info', + method: 'post', + data + }) +} +//编辑设备信息 +export function editDeviceApi(data) { + return request({ + url: '/device/info', + method: 'put', + data + }) +} +//查询设备信息详情 +export function getDeviceDetailApi(id) { + return request({ + url: '/device/info/' + id, + method: 'get' + }) +} +//删除设备信息 +export function deleteDeviceApi(id) { + return request({ + url: '/device/info/' + id, + method: 'delete' + }) +} +//获取设备下拉列表 +export function getDeviceSelectApi() { + return request({ + url: '/device/info/dropList', + method: 'get' + }) +} +//获取用户下拉列表 +export function getUserSelectApi() { + return request({ + url: '/system/user/dropList', + method: 'get' + }) +} +//查看鉴权信息 +export function getAuthInfoApi(id) { + return request({ + url: '/emqx/auth/' + id, + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/login.js b/src/api/login.js index 7b7388f..3c7e41d 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -57,4 +57,16 @@ export function getCodeImg() { method: 'get', timeout: 20000 }) +} +export function changeLanguage(lang){ + return request({ + url: '/changeLanguage', + method: 'get', + headers: { + isToken: false, + }, + params: { + lang: lang + } + }) } \ No newline at end of file diff --git a/src/api/maintenance/index.js b/src/api/maintenance/index.js new file mode 100644 index 0000000..af49794 --- /dev/null +++ b/src/api/maintenance/index.js @@ -0,0 +1,47 @@ +import request from '@/utils/request'; + +// 获取设备维保记录 +export function getMaintainListApi(query) { + return request({ + url: '/maintain/record/list', + method: 'get', + params: query + }) +} +//新增维保记录 +export function addMaintainApi(data) { + return request({ + url: '/maintain/record', + method: 'post', + data + }) +} +//编辑维保记录 +export function editMaintainApi(data) { + return request({ + url: '/maintain/record', + method: 'put', + data + }) +} +//查询维保记录详情 +export function getMaintainDetailApi(id) { + return request({ + url: '/maintain/record/' + id, + method: 'get' + }) +} +//获取维保类型 +export function getMaintainTypeApi() { + return request({ + url: '/system/dict/data/type/' + 'tg_maintain_type', + method: 'get' + }) +} +//获取设备编码列表 +export function getDeviceCodeListApi() { + return request({ + url: '/device/info/dropList', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/assets/dashboard/customerNum.png b/src/assets/dashboard/customerNum.png new file mode 100644 index 0000000..e89b999 Binary files /dev/null and b/src/assets/dashboard/customerNum.png differ diff --git a/src/assets/dashboard/deviceNum.png b/src/assets/dashboard/deviceNum.png new file mode 100644 index 0000000..0714fae Binary files /dev/null and b/src/assets/dashboard/deviceNum.png differ diff --git a/src/assets/dashboard/maintenanceNum.png b/src/assets/dashboard/maintenanceNum.png new file mode 100644 index 0000000..63ba553 Binary files /dev/null and b/src/assets/dashboard/maintenanceNum.png differ diff --git a/src/assets/dashboard/offlineDevice.png b/src/assets/dashboard/offlineDevice.png new file mode 100644 index 0000000..5ec745d Binary files /dev/null and b/src/assets/dashboard/offlineDevice.png differ diff --git a/src/assets/dashboard/onlineDevice.png b/src/assets/dashboard/onlineDevice.png new file mode 100644 index 0000000..ec3c5bc Binary files /dev/null and b/src/assets/dashboard/onlineDevice.png differ diff --git a/src/assets/images/loginBg.jpg b/src/assets/images/loginBg.jpg new file mode 100644 index 0000000..d6d6424 Binary files /dev/null and b/src/assets/images/loginBg.jpg differ diff --git a/src/assets/styles/element-ui.scss b/src/assets/styles/element-ui.scss index 0f175f2..374861f 100644 --- a/src/assets/styles/element-ui.scss +++ b/src/assets/styles/element-ui.scss @@ -52,6 +52,7 @@ left: 0; position: relative; margin: 0 auto; + top: 40px; } // refine element ui upload diff --git a/src/assets/styles/variables.module.scss b/src/assets/styles/variables.module.scss index 8764e13..bc62329 100644 --- a/src/assets/styles/variables.module.scss +++ b/src/assets/styles/variables.module.scss @@ -9,10 +9,14 @@ $yellow: #FEC171; $panGreen: #30B08F; // 默认主题变量 -$menuText: #bfcbd9; -$menuActiveText: #409eff; -$menuBg: #304156; -$menuHover: #263445; +//$menuText: #bfcbd9; +$menuText: #000; +$menuActiveText: #fff; +//$menuActiveText: #409eff; +//$menuBg: #304156; +$menuBg: #ffffff; +//$menuHover: #263445; +$menuHover: #f0f1f5; // 浅色主题theme-light $menuLightBg: #ffffff; @@ -21,15 +25,20 @@ $menuLightText: #303133; $menuLightActiveText: #409EFF; // 基础变量 -$base-sidebar-width: 200px; -$sideBarWidth: 200px; +$base-sidebar-width: 180px; +$sideBarWidth: 180px; // 菜单暗色变量 +//$base-menu-color: #bfcbd9; +//$base-menu-color-active: #f4f4f5; +//$base-menu-background: #304156; +//$base-sub-menu-background: #1f2d3d; +//$base-sub-menu-hover: #001528; $base-menu-color: #bfcbd9; -$base-menu-color-active: #f4f4f5; -$base-menu-background: #304156; -$base-sub-menu-background: #1f2d3d; -$base-sub-menu-hover: #001528; +$base-menu-color-active: #409EFF; +$base-menu-background: #409EFF; +$base-sub-menu-background:#fff; +$base-sub-menu-hover:#f4f4f5; // 组件变量 $--color-primary: #409EFF; diff --git a/src/components/DashChart.vue b/src/components/DashChart.vue new file mode 100644 index 0000000..83767db --- /dev/null +++ b/src/components/DashChart.vue @@ -0,0 +1,97 @@ + + + \ No newline at end of file diff --git a/src/components/DashPie.vue b/src/components/DashPie.vue new file mode 100644 index 0000000..bdc9c4b --- /dev/null +++ b/src/components/DashPie.vue @@ -0,0 +1,62 @@ + + + \ No newline at end of file diff --git a/src/components/LangSelect/index.vue b/src/components/LangSelect/index.vue new file mode 100644 index 0000000..1a8eddd --- /dev/null +++ b/src/components/LangSelect/index.vue @@ -0,0 +1,40 @@ + + + + + diff --git a/src/components/SizeSelect/index.vue b/src/components/SizeSelect/index.vue index 4c2e7e9..84b8e8a 100644 --- a/src/components/SizeSelect/index.vue +++ b/src/components/SizeSelect/index.vue @@ -16,7 +16,7 @@ + + \ No newline at end of file diff --git a/src/views/customer/common/DepartmentDialog.vue b/src/views/customer/common/DepartmentDialog.vue new file mode 100644 index 0000000..7c52ca3 --- /dev/null +++ b/src/views/customer/common/DepartmentDialog.vue @@ -0,0 +1,182 @@ + + + + + \ No newline at end of file diff --git a/src/views/customer/common/PostDialog.vue b/src/views/customer/common/PostDialog.vue new file mode 100644 index 0000000..caecad1 --- /dev/null +++ b/src/views/customer/common/PostDialog.vue @@ -0,0 +1,208 @@ + + + + + \ No newline at end of file diff --git a/src/views/customer/customerManage.vue b/src/views/customer/customerManage.vue new file mode 100644 index 0000000..3201753 --- /dev/null +++ b/src/views/customer/customerManage.vue @@ -0,0 +1,233 @@ + + + + + \ No newline at end of file diff --git a/src/views/customer/departManage.vue b/src/views/customer/departManage.vue new file mode 100644 index 0000000..e31b7cf --- /dev/null +++ b/src/views/customer/departManage.vue @@ -0,0 +1,330 @@ + + + \ No newline at end of file diff --git a/src/views/customer/positionManage.vue b/src/views/customer/positionManage.vue new file mode 100644 index 0000000..60fc5cb --- /dev/null +++ b/src/views/customer/positionManage.vue @@ -0,0 +1,282 @@ + + + \ No newline at end of file diff --git a/src/views/equipment/common/CircleDetectionChart.vue b/src/views/equipment/common/CircleDetectionChart.vue new file mode 100644 index 0000000..31760f7 --- /dev/null +++ b/src/views/equipment/common/CircleDetectionChart.vue @@ -0,0 +1,156 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/common/CurveChart.vue b/src/views/equipment/common/CurveChart.vue new file mode 100644 index 0000000..626ea34 --- /dev/null +++ b/src/views/equipment/common/CurveChart.vue @@ -0,0 +1,157 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/common/DataTable.vue b/src/views/equipment/common/DataTable.vue new file mode 100644 index 0000000..255d479 --- /dev/null +++ b/src/views/equipment/common/DataTable.vue @@ -0,0 +1,32 @@ + + + \ No newline at end of file diff --git a/src/views/equipment/common/DeviceDialog.vue b/src/views/equipment/common/DeviceDialog.vue new file mode 100644 index 0000000..49dd936 --- /dev/null +++ b/src/views/equipment/common/DeviceDialog.vue @@ -0,0 +1,216 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/common/DeviceSetting.vue b/src/views/equipment/common/DeviceSetting.vue new file mode 100644 index 0000000..b205896 --- /dev/null +++ b/src/views/equipment/common/DeviceSetting.vue @@ -0,0 +1,88 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/common/DeviceStatus.vue b/src/views/equipment/common/DeviceStatus.vue new file mode 100644 index 0000000..13b3e19 --- /dev/null +++ b/src/views/equipment/common/DeviceStatus.vue @@ -0,0 +1,80 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/common/DualChannelChart.vue b/src/views/equipment/common/DualChannelChart.vue new file mode 100644 index 0000000..05ef2c2 --- /dev/null +++ b/src/views/equipment/common/DualChannelChart.vue @@ -0,0 +1,207 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/common/EmqDialog.vue b/src/views/equipment/common/EmqDialog.vue new file mode 100644 index 0000000..e33e705 --- /dev/null +++ b/src/views/equipment/common/EmqDialog.vue @@ -0,0 +1,60 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/common/HistoryDataDialog.vue b/src/views/equipment/common/HistoryDataDialog.vue new file mode 100644 index 0000000..3c2683c --- /dev/null +++ b/src/views/equipment/common/HistoryDataDialog.vue @@ -0,0 +1,108 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/common/RealtimeChart.vue b/src/views/equipment/common/RealtimeChart.vue new file mode 100644 index 0000000..aab4760 --- /dev/null +++ b/src/views/equipment/common/RealtimeChart.vue @@ -0,0 +1,217 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/common/TemperatureChart.vue b/src/views/equipment/common/TemperatureChart.vue new file mode 100644 index 0000000..9051fe0 --- /dev/null +++ b/src/views/equipment/common/TemperatureChart.vue @@ -0,0 +1,129 @@ + + + + \ No newline at end of file diff --git a/src/views/equipment/common/shareDialog.vue b/src/views/equipment/common/shareDialog.vue new file mode 100644 index 0000000..c15a22a --- /dev/null +++ b/src/views/equipment/common/shareDialog.vue @@ -0,0 +1,82 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/equipmentDetails.vue b/src/views/equipment/equipmentDetails.vue new file mode 100644 index 0000000..109d37a --- /dev/null +++ b/src/views/equipment/equipmentDetails.vue @@ -0,0 +1,858 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/equipmentManage.vue b/src/views/equipment/equipmentManage.vue new file mode 100644 index 0000000..ea99958 --- /dev/null +++ b/src/views/equipment/equipmentManage.vue @@ -0,0 +1,535 @@ + + + + + \ No newline at end of file diff --git a/src/views/equipment/equipmentModel.vue b/src/views/equipment/equipmentModel.vue new file mode 100644 index 0000000..c2802f4 --- /dev/null +++ b/src/views/equipment/equipmentModel.vue @@ -0,0 +1,355 @@ + + + + + \ No newline at end of file diff --git a/src/views/index.vue b/src/views/index.vue index 741c6f0..ce1e7d4 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,414 +1,191 @@ - - + \ No newline at end of file diff --git a/src/views/login.vue b/src/views/login.vue index 689138e..c9748cf 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,14 +1,15 @@ @@ -69,13 +70,12 @@ import { getCodeImg } from "@/api/login"; import Cookies from "js-cookie"; import { encrypt, decrypt } from "@/utils/jsencrypt"; import useUserStore from '@/store/modules/user' - -const title = import.meta.env.VITE_APP_TITLE; +import { useI18n } from 'vue-i18n'; const userStore = useUserStore(); const route = useRoute(); const router = useRouter(); const { proxy } = getCurrentInstance(); - +const { t } = useI18n(); const loginForm = ref({ username: "admin", password: "admin123", @@ -168,21 +168,22 @@ getCookie(); display: flex; justify-content: center; align-items: center; + position: relative; height: 100%; - background-image: url("../assets/images/login-background.jpg"); + background-image: url("../assets/images/loginBg.jpg"); background-size: cover; } .title { - margin: 0px auto 30px auto; - text-align: center; - color: #707070; -} + color: #000; +} +.title-color { + color:#F59537; + margin-bottom: 10px; +} .login-form { - border-radius: 6px; - background: #ffffff; - width: 400px; - padding: 25px 25px 5px 25px; + position: absolute; + right:20%; .el-input { height: 40px; input { diff --git a/src/views/maintenance/common/MaintenanceDialog.vue b/src/views/maintenance/common/MaintenanceDialog.vue new file mode 100644 index 0000000..9772c7a --- /dev/null +++ b/src/views/maintenance/common/MaintenanceDialog.vue @@ -0,0 +1,190 @@ + + + + + \ No newline at end of file diff --git a/src/views/maintenance/index.vue b/src/views/maintenance/index.vue new file mode 100644 index 0000000..2f0dacf --- /dev/null +++ b/src/views/maintenance/index.vue @@ -0,0 +1,233 @@ + + + + + \ No newline at end of file diff --git a/src/views/system/user/profile/index.vue b/src/views/system/user/profile/index.vue index 5851f05..02896f9 100644 --- a/src/views/system/user/profile/index.vue +++ b/src/views/system/user/profile/index.vue @@ -1,11 +1,11 @@