diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 79f983e2..152c5e2d 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -9,7 +9,7 @@ ruoyi: # 实例演示开关 demoEnabled: true # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) - profile: /data/uploadPath + profile: D:/data/uploadPath # 获取ip地址开关 addressEnabled: false # 验证码类型 math 数字计算 char 字符验证 diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java index 52db543a..c63199b8 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java @@ -42,6 +42,7 @@ public class BaseEntity implements Serializable private String nowRole; private String nowDept; private String nowUser; + private String nowUserName; /** 请求参数 */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @@ -139,6 +140,14 @@ public class BaseEntity implements Serializable this.activeName = activeName; } + public String getNowUserName() { + return nowUserName; + } + + public void setNowUserName(String nowUserName) { + this.nowUserName = nowUserName; + } + public Map getParams() { if (params == null) diff --git a/ruoyi-ui/src/api/work/emergencyDrill.js b/ruoyi-ui/src/api/work/emergencyDrill.js new file mode 100644 index 00000000..8b852418 --- /dev/null +++ b/ruoyi-ui/src/api/work/emergencyDrill.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询演练培训列表 +export function listWorkTrain(query) { + return request({ + url: '/work/emergencyDrill/list', + method: 'get', + params: query + }) +} + +// 查询演练培训详细 +export function getWorkTrain(id) { + return request({ + url: '/work/emergencyDrill/' + id, + method: 'get' + }) +} + +// 新增演练培训 +export function addWorkTrain(data) { + return request({ + url: '/work/emergencyDrill', + method: 'post', + data: data + }) +} + +// 修改演练培训 +export function updateWorkTrain(data) { + return request({ + url: '/work/emergencyDrill', + method: 'put', + data: data + }) +} + +// 删除演练培训 +export function delWorkTrain(id) { + return request({ + url: '/work/emergencyDrill/' + id, + method: 'delete' + }) +} + +// 查询演练培训列表 +export function listProjectUnit(query) { + return request({ + url: '/work/emergencyDrill/projectUnitList', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/api/work/workTrain.js b/ruoyi-ui/src/api/work/workTrain.js index 03167f1f..099437ae 100644 --- a/ruoyi-ui/src/api/work/workTrain.js +++ b/ruoyi-ui/src/api/work/workTrain.js @@ -42,3 +42,12 @@ export function delWorkTrain(id) { method: 'delete' }) } + +// 查询演练培训列表 +export function listProjectUnit(query) { + return request({ + url: '/work/workTrain/projectUnitList', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FileUpload/index.vue b/ruoyi-ui/src/components/FileUpload/index.vue index b33ab502..4d260647 100644 --- a/ruoyi-ui/src/components/FileUpload/index.vue +++ b/ruoyi-ui/src/components/FileUpload/index.vue @@ -64,7 +64,7 @@ export default { // 文件类型, 例如['png', 'jpg', 'jpeg'] fileType: { type: Array, - default: () => ["doc", "docx", "xls", "xlsx", "ppt", "txt", "pdf", "png", "jpg", "jpeg", "mp4"], + default: () => ["doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "pdf", "png", "jpg", "jpeg", "mp4"], }, // 是否显示提示 isShowTip: { diff --git a/ruoyi-ui/src/views/project/surProject/index.vue b/ruoyi-ui/src/views/project/surProject/index.vue index b3875a31..6812635e 100644 --- a/ruoyi-ui/src/views/project/surProject/index.vue +++ b/ruoyi-ui/src/views/project/surProject/index.vue @@ -190,12 +190,16 @@ 更多 - 删除项目 季度考核管理 计划节点管理 + 专项培训 + 应急演练 + 删除项目 @@ -438,6 +442,14 @@ + + @@ -448,15 +460,20 @@ import projectUserInfoDrawer from '../surProjectUserInfo/projectUserInfoDrawer.v import BaiduMap from '@/components/BaiduMap/Map.vue' import AssessDrawer from '../surProjectQuarterlyAssess/assessDrawer.vue' import buildNodeDrawer from '../surBuildNode/buildNodeDrawer.vue' +import workTrainDrawer from '../../work/workTrain/workTrainDrawer.vue' +import emergencyDrillDrawer from '../../work/emergencyDrill/emergencyDrillDrawer.vue' + export default { name: "SurProject", components:{ - ProjectScheduleDlg,projectUserInfoDrawer,BaiduMap,AssessDrawer,buildNodeDrawer + ProjectScheduleDlg,projectUserInfoDrawer,BaiduMap,AssessDrawer,buildNodeDrawer,workTrainDrawer,emergencyDrillDrawer }, dicts: ['sys_check_state','sur_project_xmjd', 'project_build_type', 'sys_common_isdel', 'project_category','project_level','sur_project_weight'], data() { return { projectUserInfoDrawerVisible: false, + workTrainDrawerVisible: false, + emergencyDrillDrawerVisible: false, // 遮罩层 loading: true, // 选中数组 @@ -659,6 +676,12 @@ export default { case "handleBuildNode": this.$refs.nodeDrawer.show(row); break; + case "handleWorkTrain": + this.handleWorkTrain(row); + break; + case "handleEmergencyDrill": + this.handleEmergencyDrill(row); + break; default: break; } @@ -667,7 +690,7 @@ export default { handleProjectUserinfo(row) { this.formData.projectId = row.id; this.formData.projectName = row.projectName; - this.projectUserInfoDrawerVisible = true + this.projectUserInfoDrawerVisible = true; }, /** 提交按钮 */ submitForm() { @@ -739,6 +762,16 @@ export default { this.$modal.msgSuccess("修改成功"); this.getList(); }); + }, + handleWorkTrain(row){ + this.formData.projectId = row.id; + this.formData.projectName = row.projectName; + this.workTrainDrawerVisible = true; + }, + handleEmergencyDrill(row){ + this.formData.projectId = row.id; + this.formData.projectName = row.projectName; + this.emergencyDrillDrawerVisible = true; } } }; diff --git a/ruoyi-ui/src/views/trouble/pshMarks/index.vue b/ruoyi-ui/src/views/trouble/pshMarks/index.vue index 6d1e01de..dfb748e0 100644 --- a/ruoyi-ui/src/views/trouble/pshMarks/index.vue +++ b/ruoyi-ui/src/views/trouble/pshMarks/index.vue @@ -112,7 +112,7 @@ - + @@ -202,8 +202,8 @@ - - + + diff --git a/ruoyi-ui/src/views/trouble/pshProblemmodify/index.vue b/ruoyi-ui/src/views/trouble/pshProblemmodify/index.vue index 191057e5..4cbbab21 100644 --- a/ruoyi-ui/src/views/trouble/pshProblemmodify/index.vue +++ b/ruoyi-ui/src/views/trouble/pshProblemmodify/index.vue @@ -27,10 +27,10 @@ /> - + @@ -101,7 +101,7 @@ - + @@ -121,7 +121,7 @@ - + - + @@ -202,8 +202,8 @@ - - + + diff --git a/ruoyi-ui/src/views/trouble/sspProblemmodify/index.vue b/ruoyi-ui/src/views/trouble/sspProblemmodify/index.vue index 1eeb6d79..82479509 100644 --- a/ruoyi-ui/src/views/trouble/sspProblemmodify/index.vue +++ b/ruoyi-ui/src/views/trouble/sspProblemmodify/index.vue @@ -27,10 +27,10 @@ /> - + @@ -101,7 +101,7 @@ - + @@ -121,7 +121,7 @@ - +