springboot+VUE前后端分離實現(xiàn)疫情防疫平臺JAVA
主要模塊:
管理員用戶登錄:用戶登錄。 用戶信息: 用戶信息數(shù)據(jù)的列表查看、修改和刪除、用戶綁定角色來顯示對應的菜單顯示。
角色管理:角色信息數(shù)據(jù)的列表查看、修改和刪除、每個角色可以設置不同菜單顯示、超級管理員擁有最高權限。
菜單管理: 菜單信息數(shù)據(jù)的列表查看、修改和刪除、可以通過用戶角色來設置 菜單權限:根據(jù)用戶綁定角色、角色綁定菜單顯示、以及基礎菜單的添加、修改和刪除操作。
實時疫情狀態(tài):通過echarts圖標來模擬實現(xiàn)數(shù)據(jù)驅動標識、實時顯示疫情分布圖和感染人員信息等。
歷史行程管理:
每日登記管理:
外出報備管理:
復工申請管理:
審核信息管理:
通知公告管理:管理員發(fā)布一些通知公告信息以及管理查看等
系統(tǒng)主要實現(xiàn)如下:
用戶登錄、輸入賬號驗證碼進行登錄
登錄之后進入系統(tǒng)首頁:目前系統(tǒng)主要功能如下
用戶管理模塊:用戶添加、修改、刪除、查詢等基本操作
角色管理模塊、通過用戶綁定角色、角色控制菜單顯示、靈活控制菜單。
前端VUE代碼添加菜單
<template> <div class="mod-menu"> <el-form :inline="true" :model="dataForm"> <el-form-item> <el-button v-if="isAuth('sys:menu:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> </el-form-item> </el-form> <el-table :data="dataList" row-key="menuId" border style="width: 100%; "> <el-table-column prop="name" header-align="center" min-width="150" label="名稱" ></el-table-column> <el-table-column prop="parentName" header-align="center" align="center" width="120" label="上級菜單"> </el-table-column> <el-table-column header-align="center" align="center" label="圖標"><template slot-scope="scope"> <icon-svg :name="scope.row.icon || ''"></icon-svg></template> </el-table-column> <el-table-column prop="type" header-align="center" align="center" label="類型"> <template slot-scope="scope"> <el-tag v-if="scope.row.type === 0" size="small">目錄</el-tag> <el-tag v-else-if="scope.row.type === 1" size="small" type="success">菜單</el-tag> <el-tag v-else-if="scope.row.type === 2" size="small" type="info">按鈕</el-tag> </template> </el-table-column> <el-table-column prop="orderNum" header-align="center" align="center" label="排序號"> </el-table-column> <el-table-column prop="url" header-align="center" align="center" width="150" :show-overflow-tooltip="true" label="菜單URL"> </el-table-column> <el-table-column prop="perms" header-align="center" align="center" width="150" :show-overflow-tooltip="true" label="授權標識"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button v-if="isAuth('sys:menu:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.menuId)">修改</el-button> <el-button v-if="isAuth('sys:menu:delete')" type="text" size="small" @click="deleteHandle(scope.row.menuId)">刪除</el-button> </template> </el-table-column> </el-table> <!-- 彈窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './menu-add-or-update' import { treeDataTranslate } from '@/utils' export default { data () { return { dataForm: {}, dataList: [], dataListLoading: false, addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 獲取數(shù)據(jù)列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/sys/menu/list'), method: 'get', params: this.$http.adornParams() }).then(({data}) => { this.dataList = treeDataTranslate(data, 'menuId') this.dataListLoading = false }) }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 刪除 deleteHandle (id) { this.$confirm(`確定對[id=${id}]進行[刪除]操作?`, '提示', { confirmButtonText: '確定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl(`/sys/menu/delete/${id}`), method: 'post', data: this.$http.adornData() }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }).catch(() => {}) } } } </script>
菜單添加修改列表層操作
歷史行程數(shù)據(jù)管理:添加修改刪除等操作
用戶每日健康打卡列表數(shù)據(jù)展示以及添加打卡信息
員工出行外出報備管理申請
員工復工申請
管理員審核
通知公告模塊:
一些設計報告和文檔描述參考
數(shù)據(jù)庫連接:
spring: datasource: type: com.alibaba.druid.pool.DruidDataSource druid: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/renren_fast?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai username: root password: 123456 initial-size: 10 max-active: 100 min-idle: 10 max-wait: 60000 pool-prepared-statements: true max-pool-prepared-statement-per-connection-size: 20 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 #Oracle需要打開注釋 #validation-query: SELECT 1 FROM DUAL test-while-idle: true test-on-borrow: false test-on-return: false stat-view-servlet: enabled: true url-pattern: /druid/* #login-username: admin #login-password: admin filter: stat: log-slow-sql: true slow-sql-millis: 1000 merge-sql: false wall: config: multi-statement-allow: true ##多數(shù)據(jù)源的配置 #dynamic: # datasource: # slave1: # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # url: jdbc:sqlserver://localhost:1433;DatabaseName=renren_security # username: sa # password: 123456 # slave2: # driver-class-name: org.postgresql.Driver # url: jdbc:postgresql://localhost:5432/renren_security # username: renren # password: 123456
到此,基于JAVA的springboot+VUE前后端分離疫情防疫小平臺實現(xiàn)的文章就介紹到這了,更多相關springboot+VUE前后端分離的內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
- SpringBoot和Vue.js實現(xiàn)的前后端分離的用戶權限管理系統(tǒng)
- Springboot與vue實例講解實現(xiàn)前后端分離的人事管理系統(tǒng)
- SpringBoot+Vue+JWT的前后端分離登錄認證詳細步驟
- SpringBoot+VUE實現(xiàn)前后端分離的實戰(zhàn)記錄
- SpringBoot+Vue前后端分離實現(xiàn)請求api跨域問題
- 部署vue+Springboot前后端分離項目的步驟實現(xiàn)
- vue+springboot前后端分離工程跨域問題解決方案解析
- 詳解springboot和vue前后端分離開發(fā)跨域登陸問題
- SpringBoot+Vue前后端分離實現(xiàn)審核功能的示例
相關文章
idea中git如何修改commit(ChangeList的使用)
這篇文章主要介紹了idea中git如何修改commit(ChangeList的使用),具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2023-04-04springboot集成redis并使用redis生成全局唯一索引ID
本文主要介紹了springboot集成redis并使用redis生成全局唯一索引ID,文中通過示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下2022-03-03