diff --git a/ruoyi-ui/src/views/project/surProject/index.vue b/ruoyi-ui/src/views/project/surProject/index.vue index 6812635e..c3cf7ccc 100644 --- a/ruoyi-ui/src/views/project/surProject/index.vue +++ b/ruoyi-ui/src/views/project/surProject/index.vue @@ -65,6 +65,17 @@ + + + + + + 搜索 重置 @@ -134,17 +145,6 @@ - - - - - - - + + + + + + + @@ -220,7 +231,7 @@ - + { this.form = response.data; - this.open = true;debugger + this.open = true; if(!this.form.projectAddress){ this.$refs.map.getCity(this.form,this.mapSuccess); } @@ -692,6 +703,13 @@ export default { this.formData.projectName = row.projectName; this.projectUserInfoDrawerVisible = true; }, + getDeptIdDisabled(){ + if(this.form && this.form.id){ + return true; + }else{ + return false; + } + }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate(valid => { diff --git a/ruoyi-ui/src/views/project/surProjectSchedule/index.vue b/ruoyi-ui/src/views/project/surProjectSchedule/index.vue index 302a92e1..29759213 100644 --- a/ruoyi-ui/src/views/project/surProjectSchedule/index.vue +++ b/ruoyi-ui/src/views/project/surProjectSchedule/index.vue @@ -11,7 +11,7 @@ @keyup.enter.native="handleQuery" /> - + - + 搜索 重置 diff --git a/ruoyi-ui/src/views/project/surProjectUserInfo/index.vue b/ruoyi-ui/src/views/project/surProjectUserInfo/index.vue index 7fc05d03..5b457687 100644 --- a/ruoyi-ui/src/views/project/surProjectUserInfo/index.vue +++ b/ruoyi-ui/src/views/project/surProjectUserInfo/index.vue @@ -45,6 +45,16 @@ /> + 搜索 重置 diff --git a/ruoyi-ui/src/views/work/workFile/index.vue b/ruoyi-ui/src/views/work/workFile/index.vue index fe2befbc..6a0ef1ec 100644 --- a/ruoyi-ui/src/views/work/workFile/index.vue +++ b/ruoyi-ui/src/views/work/workFile/index.vue @@ -29,7 +29,7 @@ /> - + -->
- 问题描述 + 隐患描述
- +
@@ -190,7 +190,7 @@
- + +
    diff --git a/ruoyi-wechat/src/main/resources/templates/pshManage/sspChange.html b/ruoyi-wechat/src/main/resources/templates/pshManage/sspChange.html index f0cec323..832ca4ec 100644 --- a/ruoyi-wechat/src/main/resources/templates/pshManage/sspChange.html +++ b/ruoyi-wechat/src/main/resources/templates/pshManage/sspChange.html @@ -108,11 +108,11 @@
- 问题描述 + 隐患描述
- - + +
@@ -558,7 +558,7 @@ var videoUrl = $("#bigFile").val(); //隐患类型 var projectType = $("#projectType").val(); - //问题描述 + //隐患描述 var constructionSite = $("#constructionSite").val(); //整改要求 var changeText = $("#changeText").val(); @@ -596,7 +596,7 @@ if(constructionSite == "" || constructionSite == null) { hideLoading(); toast({ - message:"请填写问题描述", + message:"请填写隐患描述", time:3000 }); return false; diff --git a/ruoyi-wechat/src/main/resources/templates/pshManage/sspListPage.html b/ruoyi-wechat/src/main/resources/templates/pshManage/sspListPage.html index dbaf7548..097a38f4 100644 --- a/ruoyi-wechat/src/main/resources/templates/pshManage/sspListPage.html +++ b/ruoyi-wechat/src/main/resources/templates/pshManage/sspListPage.html @@ -464,7 +464,7 @@ '
'+result.publishMarks[i].positionPart+'
'+ ''+ ''+ - ''+ + ''+ ''+ ''+ ''+ diff --git a/ruoyi-wechat/src/main/resources/templates/pshManage/sspListPageMy.html b/ruoyi-wechat/src/main/resources/templates/pshManage/sspListPageMy.html index 8c9632bd..609e32bd 100644 --- a/ruoyi-wechat/src/main/resources/templates/pshManage/sspListPageMy.html +++ b/ruoyi-wechat/src/main/resources/templates/pshManage/sspListPageMy.html @@ -474,7 +474,7 @@ '
'+result.publishMarksMy[i].positionPart+'
'+ '
'+'问题描述:'+''+'隐患描述:'+''+result.publishMarks[i].positionPart+'
'+ ''+ - ''+ + ''+ ''+ ''+ ''+ @@ -504,7 +504,7 @@ '
'+result.publishMarksMy[i].positionPart+'
'+ '
'+'问题描述:'+''+'隐患描述:'+''+result.publishMarksMy[i].positionPart+'
'+ ''+ - ''+ + ''+ ''+ ''+ ''+ diff --git a/ruoyi-wechat/src/main/resources/templates/pshManage/sspMarkView.html b/ruoyi-wechat/src/main/resources/templates/pshManage/sspMarkView.html index eefcb74b..a8bb08cb 100644 --- a/ruoyi-wechat/src/main/resources/templates/pshManage/sspMarkView.html +++ b/ruoyi-wechat/src/main/resources/templates/pshManage/sspMarkView.html @@ -77,7 +77,7 @@
- 问题描述 + 隐患描述
diff --git a/ruoyi-wechat/src/main/resources/templates/sspManage/reportWithmarks.html b/ruoyi-wechat/src/main/resources/templates/sspManage/reportWithmarks.html index 7d57e02d..5b076b91 100644 --- a/ruoyi-wechat/src/main/resources/templates/sspManage/reportWithmarks.html +++ b/ruoyi-wechat/src/main/resources/templates/sspManage/reportWithmarks.html @@ -132,10 +132,10 @@
- 问题描述 + 隐患描述
- +
@@ -190,7 +190,7 @@
- + +
    diff --git a/ruoyi-wechat/src/main/resources/templates/sspManage/sspChange.html b/ruoyi-wechat/src/main/resources/templates/sspManage/sspChange.html index 5aa2c836..4bec63ff 100644 --- a/ruoyi-wechat/src/main/resources/templates/sspManage/sspChange.html +++ b/ruoyi-wechat/src/main/resources/templates/sspManage/sspChange.html @@ -108,11 +108,11 @@
- 问题描述 + 隐患描述
- - + +
@@ -558,7 +558,7 @@ var videoUrl = $("#bigFile").val(); //隐患类型 var projectType = $("#projectType").val(); - //问题描述 + //隐患描述 var constructionSite = $("#constructionSite").val(); //整改要求 var changeText = $("#changeText").val(); @@ -596,7 +596,7 @@ if(constructionSite == "" || constructionSite == null) { hideLoading(); toast({ - message:"请填写问题描述", + message:"请填写隐患描述", time:3000 }); return false; diff --git a/ruoyi-wechat/src/main/resources/templates/sspManage/sspListPage.html b/ruoyi-wechat/src/main/resources/templates/sspManage/sspListPage.html index ce8a1613..dc49197d 100644 --- a/ruoyi-wechat/src/main/resources/templates/sspManage/sspListPage.html +++ b/ruoyi-wechat/src/main/resources/templates/sspManage/sspListPage.html @@ -463,7 +463,7 @@ '
'+result.publishMarks[i].positionPart+'
'+ '
'+'问题描述:'+''+'隐患描述:'+''+result.publishMarksMy[i].positionPart+'
'+ ''+ - ''+ + ''+ ''+ ''+ ''+ diff --git a/ruoyi-wechat/src/main/resources/templates/sspManage/sspListPageMy.html b/ruoyi-wechat/src/main/resources/templates/sspManage/sspListPageMy.html index 3b7ae43e..b7738304 100644 --- a/ruoyi-wechat/src/main/resources/templates/sspManage/sspListPageMy.html +++ b/ruoyi-wechat/src/main/resources/templates/sspManage/sspListPageMy.html @@ -474,7 +474,7 @@ '
'+result.publishMarksMy[i].positionPart+'
'+ '
'+'问题描述:'+''+'隐患描述:'+''+result.publishMarks[i].positionPart+'
'+ ''+ - ''+ + ''+ ''+ ''+ ''+ @@ -504,7 +504,7 @@ '
'+result.publishMarksMy[i].positionPart+'
'+ '
'+'问题描述:'+''+'隐患描述:'+''+result.publishMarksMy[i].positionPart+'
'+ ''+ - ''+ + ''+ ''+ ''+ ''+ diff --git a/ruoyi-wechat/src/main/resources/templates/sspManage/sspMarkView.html b/ruoyi-wechat/src/main/resources/templates/sspManage/sspMarkView.html index 2d051ed3..94a3dc26 100644 --- a/ruoyi-wechat/src/main/resources/templates/sspManage/sspMarkView.html +++ b/ruoyi-wechat/src/main/resources/templates/sspManage/sspMarkView.html @@ -77,7 +77,7 @@
- 问题描述 + 隐患描述
diff --git a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/WorkFileConller.java b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/BgWorkFileController.java similarity index 94% rename from yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/WorkFileConller.java rename to yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/BgWorkFileController.java index e27a7d4e..9316c630 100644 --- a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/WorkFileConller.java +++ b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/BgWorkFileController.java @@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.RestController; */ @RestController @RequestMapping("/bgscreen/workfile") -public class WorkFileConller extends BaseController { +public class BgWorkFileController extends BaseController { @Autowired IWorkFileService workFileService; diff --git a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/BgWorkTrainController.java b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/BgWorkTrainController.java new file mode 100644 index 00000000..cb73253e --- /dev/null +++ b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/BgWorkTrainController.java @@ -0,0 +1,38 @@ +package com.yanzhu.jh.bigscreen.web.controller; + +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.StringUtils; +import com.yanzhu.jh.work.domain.WorkTrain; +import com.yanzhu.jh.work.service.IWorkTrainService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 培训演训Conller + */ +@RestController +@RequestMapping("/bgscreen/workTrain") +public class BgWorkTrainController extends BaseController { + + @Autowired + IWorkTrainService workTrainService; + + /** + * 根据类型查询培训演训 + * @param trainType + * @return + */ + @GetMapping("/getWorkTrainList") + public TableDataInfo getWorkTrainList(String trainType,String deptId){ + WorkTrain workTrain = new WorkTrain(); + workTrain.setTrainType(trainType); + if(StringUtils.isNotBlank(deptId)){ + workTrain.setDeptId(Convert.toLong(deptId)); + } + return getDataTable(workTrainService.selectBgscreenWorkTrainList(workTrain)); + } +} diff --git a/yanzhu-jh/src/main/java/com/yanzhu/jh/work/domain/WorkTrain.java b/yanzhu-jh/src/main/java/com/yanzhu/jh/work/domain/WorkTrain.java index 4b562422..36fb71ac 100644 --- a/yanzhu-jh/src/main/java/com/yanzhu/jh/work/domain/WorkTrain.java +++ b/yanzhu-jh/src/main/java/com/yanzhu/jh/work/domain/WorkTrain.java @@ -67,7 +67,9 @@ public class WorkTrain extends BaseEntity private String trainDeptIds; private String trainDeptNames; + private String trainNatureName; private String vDel; + private Long deptId;//子公司查询使用 public void setId(Long id) { @@ -200,6 +202,22 @@ public class WorkTrain extends BaseEntity this.trainDeptNames = trainDeptNames; } + public String getTrainNatureName() { + return trainNatureName; + } + + public void setTrainNatureName(String trainNatureName) { + this.trainNatureName = trainNatureName; + } + + public Long getDeptId() { + return deptId; + } + + public void setDeptId(Long deptId) { + this.deptId = deptId; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) diff --git a/yanzhu-jh/src/main/java/com/yanzhu/jh/work/mapper/WorkTrainMapper.java b/yanzhu-jh/src/main/java/com/yanzhu/jh/work/mapper/WorkTrainMapper.java index 2a355ae7..1a8e286d 100644 --- a/yanzhu-jh/src/main/java/com/yanzhu/jh/work/mapper/WorkTrainMapper.java +++ b/yanzhu-jh/src/main/java/com/yanzhu/jh/work/mapper/WorkTrainMapper.java @@ -28,6 +28,14 @@ public interface WorkTrainMapper */ public List selectWorkTrainList(WorkTrain workTrain); + /** + * 查询演练培训列表 + * + * @param workTrain 演练培训 + * @return 演练培训集合 + */ + public List selectBgscreenWorkTrainList(WorkTrain workTrain); + /** * 新增演练培训 * diff --git a/yanzhu-jh/src/main/java/com/yanzhu/jh/work/service/IWorkTrainService.java b/yanzhu-jh/src/main/java/com/yanzhu/jh/work/service/IWorkTrainService.java index 79c4cd57..945bdfe9 100644 --- a/yanzhu-jh/src/main/java/com/yanzhu/jh/work/service/IWorkTrainService.java +++ b/yanzhu-jh/src/main/java/com/yanzhu/jh/work/service/IWorkTrainService.java @@ -27,6 +27,14 @@ public interface IWorkTrainService */ public List selectWorkTrainList(WorkTrain workTrain); + /** + * 查询演练培训列表 + * + * @param workTrain 演练培训 + * @return 演练培训集合 + */ + public List selectBgscreenWorkTrainList(WorkTrain workTrain); + /** * 新增演练培训 * diff --git a/yanzhu-jh/src/main/java/com/yanzhu/jh/work/service/impl/WorkTrainServiceImpl.java b/yanzhu-jh/src/main/java/com/yanzhu/jh/work/service/impl/WorkTrainServiceImpl.java index eec1701f..f19b569e 100644 --- a/yanzhu-jh/src/main/java/com/yanzhu/jh/work/service/impl/WorkTrainServiceImpl.java +++ b/yanzhu-jh/src/main/java/com/yanzhu/jh/work/service/impl/WorkTrainServiceImpl.java @@ -48,6 +48,17 @@ public class WorkTrainServiceImpl implements IWorkTrainService return workTrainMapper.selectWorkTrainList(workTrain); } + /** + * 查询演练培训列表 + * + * @param workTrain 演练培训 + * @return 演练培训集合 + */ + @Override + public List selectBgscreenWorkTrainList(WorkTrain workTrain) { + return workTrainMapper.selectBgscreenWorkTrainList(workTrain); + } + /** * 新增演练培训 * diff --git a/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml b/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml index 1f699d8a..df681dfc 100644 --- a/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml +++ b/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml @@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -62,7 +63,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and wt.is_del = #{isDel} and ((wt.begin_date between #{params.beginMarksTime} and #{params.endMarksTime}) or (wt.end_date between #{params.beginMarksTime} and #{params.endMarksTime}) ) - group by wt.train_id + group by wt.id + order by wt.create_time desc + + +
'+'问题描述:'+''+'隐患描述:'+''+result.publishMarksMy[i].positionPart+'