代码提交

master
sunjianxi 2 years ago
parent 1a9db07ae1
commit b42220961c
  1. 76
      src/main/java/net/mingsoft/cms/action/CmsSignAction.java
  2. 31
      src/main/java/net/mingsoft/cms/action/ContentAction.java
  3. 137
      src/main/java/net/mingsoft/cms/action/DutyPoliceAction.java
  4. 5
      src/main/java/net/mingsoft/cms/action/DutyStandbyAction.java
  5. 5
      src/main/java/net/mingsoft/cms/action/PhoneContactsAction.java
  6. 151
      src/main/java/net/mingsoft/cms/action/web/CmsSignAction.java
  7. 84
      src/main/java/net/mingsoft/cms/action/web/DutyPoliceAction.java
  8. 13
      src/main/java/net/mingsoft/cms/action/web/DutyStandbyAction.java
  9. 9
      src/main/java/net/mingsoft/cms/action/web/PhoneContactsAction.java
  10. 2
      src/main/java/net/mingsoft/cms/biz/ICmsSignBiz.java
  11. 44
      src/main/java/net/mingsoft/cms/biz/IDutyPoliceBiz.java
  12. 4
      src/main/java/net/mingsoft/cms/biz/impl/CmsSignBizImpl.java
  13. 73
      src/main/java/net/mingsoft/cms/biz/impl/DutyPoliceBizImpl.java
  14. 3
      src/main/java/net/mingsoft/cms/dao/ICmsSignDao.java
  15. 8
      src/main/java/net/mingsoft/cms/dao/ICmsSignDao.xml
  16. 46
      src/main/java/net/mingsoft/cms/dao/IDutyPoliceDao.java
  17. 104
      src/main/java/net/mingsoft/cms/dao/IDutyPoliceDao.xml
  18. 1
      src/main/java/net/mingsoft/cms/entity/CmsSignEntity.java
  19. 119
      src/main/java/net/mingsoft/cms/entity/DutyPoliceEntity.java
  20. 81
      src/main/java/net/mingsoft/cms/excel/DutyPoliceExcel.java
  21. 97
      src/main/webapp/WEB-INF/manager/cms/content/form.ftl
  22. 99
      src/main/webapp/template/1/default/chuhuijiyao-detail.htm
  23. 6
      src/main/webapp/template/1/default/css/header.css
  24. 198
      src/main/webapp/template/1/default/index.htm
  25. 6
      src/main/webapp/template/1/default/tongxunlu.htm
  26. 6
      src/main/webapp/template/1/default/zhibanbeiqing-detail.htm
  27. 131
      src/main/webapp/template/1/default/zhibanbeiqing-list.htm

@ -66,13 +66,52 @@ public class CmsSignAction extends BaseAction{
@Autowired @Autowired
private IManagerBiz managerBiz; private IManagerBiz managerBiz;
/**
* 获取账号
* @param
*/
@ApiOperation(value = "获取账号列表接口")
@GetMapping ("/getManagerList")
@ResponseBody
public ResultData getManagerList() {
//查询所有部门用户
List<ManagerEntity> managerList = managerBiz.list();
List<String> managers = managerList.stream().filter(manager -> !manager.getManagerName().equals("msopen")).map(ManagerEntity::getManagerNickName).collect(Collectors.toList());
return ResultData.build().success(managers);
}
/**
* 保存需签收科室
* @param
*/
@ApiOperation(value = "保存需签收科室接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "cmsSigns", value = "需签收科室列表", required =true,paramType="query"),
})
@PostMapping("/saveList")
@ResponseBody
@LogAnn(title = "保存需签收科室", businessType = BusinessTypeEnum.INSERT)
public ResultData saveList(@RequestBody List<CmsSignEntity> cmsSigns) {
//把之前选的删掉
String contentId = cmsSigns.get(0).getContentId();
cmsSignBiz.deleteByContentId(contentId);
//循环插入新的
for(CmsSignEntity cmsSign : cmsSigns){
cmsSign.setIsSign("0");
cmsSign.setCreateDate(new Date());
cmsSign.setCreateBy(BasicUtil.getManager().getId());
cmsSignBiz.save(cmsSign);
}
return ResultData.build().success("保存成功!");
}
/** /**
* 保存文章牵手 * 保存文章签收
* @param cmsSign 文章实体 * @param cmsSign 文章实体
*/ */
@ApiOperation(value = "保存文章列表接口") @ApiOperation(value = "保存文章签收接口")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "contentId", value = "文章关联id", required =true,paramType="query"), @ApiImplicitParam(name = "contentId", value = "文章关联id", required =true,paramType="query"),
@ApiImplicitParam(name = "managerName", value = "用户名", required =false,paramType="query"), @ApiImplicitParam(name = "managerName", value = "用户名", required =false,paramType="query"),
@ -81,9 +120,14 @@ public class CmsSignAction extends BaseAction{
@ResponseBody @ResponseBody
@LogAnn(title = "保存文章签收", businessType = BusinessTypeEnum.INSERT) @LogAnn(title = "保存文章签收", businessType = BusinessTypeEnum.INSERT)
public ResultData save(@ModelAttribute @ApiIgnore CmsSignEntity cmsSign) { public ResultData save(@ModelAttribute @ApiIgnore CmsSignEntity cmsSign) {
cmsSign.setCreateDate(new Date()); LambdaQueryWrapper<CmsSignEntity> wrapper = new LambdaQueryWrapper<>();
cmsSign.setCreateBy(BasicUtil.getManager().getId()); wrapper.eq(CmsSignEntity::getContentId,cmsSign.getContentId());
cmsSignBiz.save(cmsSign); wrapper.eq(CmsSignEntity::getManagerName,cmsSign.getManagerName());
cmsSign = cmsSignBiz.getOne(wrapper);
cmsSign.setIsSign("1");
cmsSign.setUpdateDate(new Date());
cmsSign.setUpdateBy(BasicUtil.getManager().getId());
cmsSignBiz.updateById(cmsSign);
return ResultData.build().success("保存成功!"); return ResultData.build().success("保存成功!");
} }
@ -102,29 +146,11 @@ public class CmsSignAction extends BaseAction{
@RequestMapping(value = "/list",method = {RequestMethod.GET,RequestMethod.POST}) @RequestMapping(value = "/list",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody @ResponseBody
public ResultData list(@ModelAttribute @ApiIgnore CmsSignEntity cmsSign) { public ResultData list(@ModelAttribute @ApiIgnore CmsSignEntity cmsSign) {
//查询已经签收的部门用户 //查询签收列表
LambdaQueryWrapper<CmsSignEntity> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<CmsSignEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(CmsSignEntity::getContentId,cmsSign.getContentId()); wrapper.eq(CmsSignEntity::getContentId,cmsSign.getContentId());
List<CmsSignEntity> contentList = cmsSignBiz.list(wrapper); List<CmsSignEntity> contentList = cmsSignBiz.list(wrapper);
List<String> singList = contentList.stream().map(CmsSignEntity::getManagerName).collect(Collectors.toList()); return ResultData.build().success(contentList);
//查询所有部门用户
List<ManagerEntity> managerList = managerBiz.list();
List<String> managers = managerList.stream().map(ManagerEntity::getManagerNickName).collect(Collectors.toList());
List<CmsSignEntity> list = new ArrayList<>();
for(String manager : managers){
if(manager.equals("msopen")){
continue;
}
CmsSignEntity entity = new CmsSignEntity();
entity.setManagerName(manager);
if(singList.contains(manager)){
entity.setIsSign("1");
}else{
entity.setIsSign("0");
}
list.add(entity);
}
return ResultData.build().success(list);
} }
} }

@ -37,9 +37,11 @@ import net.mingsoft.basic.util.StringUtil;
import net.mingsoft.cms.bean.ContentBean; import net.mingsoft.cms.bean.ContentBean;
import net.mingsoft.cms.biz.ICategoryBiz; import net.mingsoft.cms.biz.ICategoryBiz;
import net.mingsoft.cms.biz.IContentBiz; import net.mingsoft.cms.biz.IContentBiz;
import net.mingsoft.cms.biz.IDutyPoliceBiz;
import net.mingsoft.cms.biz.IDutyStandbyBiz; import net.mingsoft.cms.biz.IDutyStandbyBiz;
import net.mingsoft.cms.entity.CategoryEntity; import net.mingsoft.cms.entity.CategoryEntity;
import net.mingsoft.cms.entity.ContentEntity; import net.mingsoft.cms.entity.ContentEntity;
import net.mingsoft.cms.entity.DutyPoliceEntity;
import net.mingsoft.cms.entity.DutyStandbyEntity; import net.mingsoft.cms.entity.DutyStandbyEntity;
import net.mingsoft.mdiy.biz.IModelBiz; import net.mingsoft.mdiy.biz.IModelBiz;
import net.mingsoft.mdiy.entity.ModelEntity; import net.mingsoft.mdiy.entity.ModelEntity;
@ -86,6 +88,9 @@ public class ContentAction extends BaseAction {
@Autowired @Autowired
private IDutyStandbyBiz dutyStandbyBiz; private IDutyStandbyBiz dutyStandbyBiz;
@Autowired
private IDutyPoliceBiz dutyPoliceBiz;
/** /**
* 返回主界面index * 返回主界面index
*/ */
@ -243,14 +248,24 @@ public class ContentAction extends BaseAction {
} }
contentBiz.save(content); contentBiz.save(content);
//获取栏目实体
CategoryEntity categoryEntity = categoryBiz.getById(content.getCategoryId());
//值班备勤需要将文章Id存到值班备勤表中 //值班备勤需要将文章Id存到值班备勤表中
if("1773193604170002434".equals(content.getCategoryId())){ if("值班备勤".equals(categoryEntity.getCategoryTitle())){
List<DutyStandbyEntity> dutyStandbyEntityList = dutyStandbyBiz.list(new LambdaQueryWrapper<DutyStandbyEntity>().eq(DutyStandbyEntity::getFilePath,content.getFilePath())); List<DutyStandbyEntity> dutyStandbyEntityList = dutyStandbyBiz.list(new LambdaQueryWrapper<DutyStandbyEntity>().eq(DutyStandbyEntity::getFilePath,content.getFilePath()));
for(DutyStandbyEntity dutyStandbyEntity : dutyStandbyEntityList){ for(DutyStandbyEntity dutyStandbyEntity : dutyStandbyEntityList){
dutyStandbyEntity.setContentId(content.getId()); dutyStandbyEntity.setContentId(content.getId());
dutyStandbyBiz.updateById(dutyStandbyEntity); dutyStandbyBiz.updateById(dutyStandbyEntity);
} }
} }
//值日警官需要将文章Id存到值日警官表中
if("值日警官".equals(categoryEntity.getCategoryTitle())){
List<DutyPoliceEntity> dutyPoliceEntityList = dutyPoliceBiz.list(new LambdaQueryWrapper<DutyPoliceEntity>().eq(DutyPoliceEntity::getFilePath,content.getFilePath()));
for(DutyPoliceEntity dutyPoliceEntity : dutyPoliceEntityList){
dutyPoliceEntity.setContentId(content.getId());
dutyPoliceBiz.updateById(dutyPoliceEntity);
}
}
return ResultData.build().success(content); return ResultData.build().success(content);
} }
@ -287,6 +302,8 @@ public class ContentAction extends BaseAction {
contentBiz.removeByIds(ids); contentBiz.removeByIds(ids);
//如果是值班备勤,删除对应值班备勤数据 //如果是值班备勤,删除对应值班备勤数据
dutyStandbyBiz.deleteByContentIds(ids); dutyStandbyBiz.deleteByContentIds(ids);
//如果是值日警官,删除对应值日警官数据
dutyPoliceBiz.deleteByContentIds(ids);
return ResultData.build().success(); return ResultData.build().success();
} }
@ -338,14 +355,24 @@ public class ContentAction extends BaseAction {
return ResultData.build().error(getResString("err.empty", this.getResString("content.datetime"))); return ResultData.build().error(getResString("err.empty", this.getResString("content.datetime")));
} }
contentBiz.saveOrUpdate(content); contentBiz.saveOrUpdate(content);
//获取栏目实体
CategoryEntity categoryEntity = categoryBiz.getById(content.getCategoryId());
//值班备勤需要将文章Id存到值班备勤表中 //值班备勤需要将文章Id存到值班备勤表中
if("1773193604170002434".equals(content.getCategoryId())){ if("值班备勤".equals(categoryEntity.getCategoryTitle())){
List<DutyStandbyEntity> dutyStandbyEntityList = dutyStandbyBiz.list(new LambdaQueryWrapper<DutyStandbyEntity>().eq(DutyStandbyEntity::getFilePath,content.getFilePath())); List<DutyStandbyEntity> dutyStandbyEntityList = dutyStandbyBiz.list(new LambdaQueryWrapper<DutyStandbyEntity>().eq(DutyStandbyEntity::getFilePath,content.getFilePath()));
for(DutyStandbyEntity dutyStandbyEntity : dutyStandbyEntityList){ for(DutyStandbyEntity dutyStandbyEntity : dutyStandbyEntityList){
dutyStandbyEntity.setContentId(content.getId()); dutyStandbyEntity.setContentId(content.getId());
dutyStandbyBiz.updateById(dutyStandbyEntity); dutyStandbyBiz.updateById(dutyStandbyEntity);
} }
} }
//值日警官需要将文章Id存到值日警官表中
if("值日警官".equals(categoryEntity.getCategoryTitle())){
List<DutyPoliceEntity> dutyPoliceEntityList = dutyPoliceBiz.list(new LambdaQueryWrapper<DutyPoliceEntity>().eq(DutyPoliceEntity::getFilePath,content.getFilePath()));
for(DutyPoliceEntity dutyPoliceEntity : dutyPoliceEntityList){
dutyPoliceEntity.setContentId(content.getId());
dutyPoliceBiz.updateById(dutyPoliceEntity);
}
}
return ResultData.build().success(content); return ResultData.build().success(content);
} }

@ -0,0 +1,137 @@
/**
* The MIT License (MIT)
* Copyright (c) 2012-present 铭软科技(mingsoft.net)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package net.mingsoft.cms.action;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import net.mingsoft.base.entity.ResultData;
import net.mingsoft.basic.action.BaseFileAction;
import net.mingsoft.basic.bean.EUListBean;
import net.mingsoft.basic.bean.UploadConfigBean;
import net.mingsoft.basic.util.BasicUtil;
import net.mingsoft.cms.biz.IDutyPoliceBiz;
import net.mingsoft.cms.entity.DutyPoliceEntity;
import net.mingsoft.cms.excel.DutyPoliceExcel;
import net.mingsoft.excel.util.ExcelUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* 分类管理控制层
* @author 铭飞开发团队
* 创建日期2019-11-28 15:12:32<br/>
* 历史修订<br/>
*/
@Api(tags={"后端-值日警官接口"})
@Controller("dutyPoliceAction")
@RequestMapping("/${ms.manager.path}/cms/dutyPolice")
public class DutyPoliceAction extends BaseFileAction {
/**
* 注入分类业务层
*/
@Autowired
private IDutyPoliceBiz dutyPoliceBiz;
/**
* 查询分类列表
* @param entity 分类实体
*/
@ApiOperation(value = "查询分类列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "id", required =false,paramType="query"),
@ApiImplicitParam(name = "dutyDate", value = "值班日期", required =false,paramType="query"),
@ApiImplicitParam(name = "leaderName", value = "值日警官领导岗", required =false,paramType="query"),
@ApiImplicitParam(name = "deptName", value = "值日警官轮值科室", required =false,paramType="query"),
@ApiImplicitParam(name = "blDutyPerson", value = "北岭值班人员", required =false,paramType="query"),
})
@RequestMapping(value ="/list",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody
public ResultData list(@ModelAttribute @ApiIgnore DutyPoliceEntity entity) {
entity.setSqlWhere("");
List list = dutyPoliceBiz.query(entity);
return ResultData.build().success(new EUListBean(list,(int)BasicUtil.endPage(list).getTotal()));
}
/**
* 导入接口
* @param
*/
@ApiOperation(value = "导入接口")
@PostMapping("/import")
@ResponseBody
public ResultData importData(@ApiIgnore UploadConfigBean bean) throws IOException {
List<DutyPoliceEntity> excelList = ExcelUtil.read(bean.getFile(), DutyPoliceEntity.class);
if(excelList!=null){
UploadConfigBean config = new UploadConfigBean(bean.getUploadPath(),bean.getFile(),null,false,bean.isRename());
String filePath = this.upload(config).get("data").toString();
for(DutyPoliceEntity entity : excelList){
//删除相同日期数据
dutyPoliceBiz.deleteByEntity(entity);
//导入数据
entity.setFilePath(filePath);
entity.setCreateDate(new Date());
entity.setCreateBy(BasicUtil.getManager().getId());
dutyPoliceBiz.save(entity);
}
return ResultData.build().success(filePath);
}else{
return ResultData.build().error("导入文件为空!");
}
}
/**
* 导出模板
*/
@GetMapping("importTmplate")
@ApiOperation(value = "导入模板")
public void importTmplate(HttpServletResponse response) throws IOException {
List<DutyPoliceExcel> list = new ArrayList<>();
ExcelUtil.export(response, "值日警官导入模板", "值日警官", list, DutyPoliceExcel.class);
}
/**
* 导入接口
* @param
*/
@PostMapping("/deleteByContentIds")
@ResponseBody
public ResultData deleteByContentIds(@RequestParam(value = "contentIds",required = false)List<String> contentIds) throws IOException {
dutyPoliceBiz.deleteByContentIds(contentIds);
return ResultData.build().success("删除成功");
}
}

@ -76,9 +76,8 @@ public class DutyStandbyAction extends BaseFileAction {
@ApiImplicitParam(name = "id", value = "id", required =false,paramType="query"), @ApiImplicitParam(name = "id", value = "id", required =false,paramType="query"),
@ApiImplicitParam(name = "dutyDate", value = "值班日期", required =false,paramType="query"), @ApiImplicitParam(name = "dutyDate", value = "值班日期", required =false,paramType="query"),
@ApiImplicitParam(name = "monitor", value = "带班长", required =false,paramType="query"), @ApiImplicitParam(name = "monitor", value = "带班长", required =false,paramType="query"),
@ApiImplicitParam(name = "deputyMonitor", value = "副带班长", required =false,paramType="query"), @ApiImplicitParam(name = "policeDuty", value = "民警值班员", required =false,paramType="query"),
@ApiImplicitParam(name = "operator", value = "守机员", required =false,paramType="query"), @ApiImplicitParam(name = "auxiliaryPoliceDuty", value = "辅警值班员", required =false,paramType="query"),
@ApiImplicitParam(name = "dutyPerson", value = "值班人员", required =false,paramType="query"),
@ApiImplicitParam(name = "blDutyPerson", value = "北岭值班人员", required =false,paramType="query"), @ApiImplicitParam(name = "blDutyPerson", value = "北岭值班人员", required =false,paramType="query"),
}) })
@RequestMapping(value ="/list",method = {RequestMethod.GET,RequestMethod.POST}) @RequestMapping(value ="/list",method = {RequestMethod.GET,RequestMethod.POST})

@ -22,7 +22,6 @@
package net.mingsoft.cms.action; package net.mingsoft.cms.action;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
@ -33,7 +32,6 @@ import net.mingsoft.basic.bean.EUListBean;
import net.mingsoft.basic.bean.UploadConfigBean; import net.mingsoft.basic.bean.UploadConfigBean;
import net.mingsoft.basic.util.BasicUtil; import net.mingsoft.basic.util.BasicUtil;
import net.mingsoft.cms.biz.IPhoneContactsBiz; import net.mingsoft.cms.biz.IPhoneContactsBiz;
import net.mingsoft.cms.entity.DutyStandbyEntity;
import net.mingsoft.cms.entity.PhoneContactsEntity; import net.mingsoft.cms.entity.PhoneContactsEntity;
import net.mingsoft.cms.excel.PhoneContactsExcel; import net.mingsoft.cms.excel.PhoneContactsExcel;
import net.mingsoft.excel.util.ExcelUtil; import net.mingsoft.excel.util.ExcelUtil;
@ -43,16 +41,13 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import springfox.documentation.annotations.ApiIgnore; import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
/** /**
* 分类管理控制层 * 分类管理控制层

@ -0,0 +1,151 @@
/**
* The MIT License (MIT)
* Copyright (c) 2012-present 铭软科技(mingsoft.net)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package net.mingsoft.cms.action.web;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import net.mingsoft.base.entity.ResultData;
import net.mingsoft.basic.annotation.LogAnn;
import net.mingsoft.basic.biz.IManagerBiz;
import net.mingsoft.basic.constant.e.BusinessTypeEnum;
import net.mingsoft.basic.entity.ManagerEntity;
import net.mingsoft.basic.util.BasicUtil;
import net.mingsoft.cms.action.BaseAction;
import net.mingsoft.cms.biz.ICmsSignBiz;
import net.mingsoft.cms.entity.CmsSignEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
/**
* 分类管理控制层
* @author 铭飞开发团队
* 创建日期2019-11-28 15:12:32<br/>
* 历史修订<br/>
*/
@Api(tags={"前端端-文章签收接口"})
@Controller("webCmsSignAction")
@RequestMapping("/cms/sign")
public class CmsSignAction extends BaseAction {
/**
* 注入分类业务层
*/
@Autowired
private ICmsSignBiz cmsSignBiz;
@Autowired
private IManagerBiz managerBiz;
/**
* 获取账号
* @param
*/
@ApiOperation(value = "获取账号列表接口")
@GetMapping ("/getManagerList")
@ResponseBody
public ResultData getManagerList() {
//查询所有部门用户
List<ManagerEntity> managerList = managerBiz.list();
List<String> managers = managerList.stream().filter(manager -> !manager.getManagerName().equals("msopen")).map(ManagerEntity::getManagerNickName).collect(Collectors.toList());
return ResultData.build().success(managers);
}
/**
* 保存需签收科室
* @param
*/
@ApiOperation(value = "保存需签收科室接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "cmsSigns", value = "需签收科室列表", required =true,paramType="query"),
})
@PostMapping("/saveList")
@ResponseBody
@LogAnn(title = "保存需签收科室", businessType = BusinessTypeEnum.INSERT)
public ResultData saveList(@RequestBody List<CmsSignEntity> cmsSigns) {
//把之前选的删掉
String contentId = cmsSigns.get(0).getContentId();
cmsSignBiz.deleteByContentId(contentId);
//循环插入新的
for(CmsSignEntity cmsSign : cmsSigns){
cmsSign.setIsSign("0");
cmsSign.setCreateDate(new Date());
cmsSign.setCreateBy(BasicUtil.getManager().getId());
cmsSignBiz.save(cmsSign);
}
return ResultData.build().success("保存成功!");
}
/**
* 保存文章签收
* @param cmsSign 文章实体
*/
@ApiOperation(value = "保存文章签收接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "contentId", value = "文章关联id", required =true,paramType="query"),
@ApiImplicitParam(name = "managerName", value = "用户名", required =false,paramType="query"),
})
@PostMapping("/save")
@ResponseBody
@LogAnn(title = "保存文章签收", businessType = BusinessTypeEnum.INSERT)
public ResultData save(@ModelAttribute @ApiIgnore CmsSignEntity cmsSign) {
cmsSign.setCreateDate(new Date());
cmsSign.setCreateBy(BasicUtil.getManager().getId());
cmsSignBiz.save(cmsSign);
return ResultData.build().success("保存成功!");
}
/**
* 查询签收列表接口
* @param cmsSign
* @return
*/
@ApiOperation(value = "查询签收列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "文章id", required =false,paramType="query"),
@ApiImplicitParam(name = "contentId", value = "关联文章id", required =false,paramType="query"),
@ApiImplicitParam(name = "managerName", value = "用户名", required =false,paramType="query"),
@ApiImplicitParam(name = "isSign", value = "是否签收", required =false,paramType="query"),
})
@RequestMapping(value = "/list",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody
public ResultData list(@ModelAttribute @ApiIgnore CmsSignEntity cmsSign) {
//查询签收列表
LambdaQueryWrapper<CmsSignEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(CmsSignEntity::getContentId,cmsSign.getContentId());
List<CmsSignEntity> contentList = cmsSignBiz.list(wrapper);
return ResultData.build().success(contentList);
}
}

@ -0,0 +1,84 @@
/**
* The MIT License (MIT)
* Copyright (c) 2012-present 铭软科技(mingsoft.net)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package net.mingsoft.cms.action.web;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import net.mingsoft.base.entity.ResultData;
import net.mingsoft.basic.bean.EUListBean;
import net.mingsoft.basic.util.BasicUtil;
import net.mingsoft.cms.action.BaseAction;
import net.mingsoft.cms.biz.IDutyPoliceBiz;
import net.mingsoft.cms.biz.IDutyStandbyBiz;
import net.mingsoft.cms.entity.DutyPoliceEntity;
import net.mingsoft.cms.entity.DutyStandbyEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import springfox.documentation.annotations.ApiIgnore;
import java.util.List;
/**
* 分类管理控制层
* @author 铭飞开发团队
* 创建日期2019-11-28 15:12:32<br/>
* 历史修订<br/>
*/
@Api(tags={"前端-值日警官接口"})
@Controller("WebdutyPoliceAction")
@RequestMapping("/cms/dutyPolice")
public class DutyPoliceAction extends BaseAction {
/**
* 注入分类业务层
*/
@Autowired
private IDutyPoliceBiz dutyPoliceBiz;
/**
* 查询分类列表
* @param entity 分类实体
*/
@ApiOperation(value = "查询分类列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "id", required =false,paramType="query"),
@ApiImplicitParam(name = "dutyDate", value = "值班日期", required =false,paramType="query"),
@ApiImplicitParam(name = "leaderName", value = "值日警官领导岗", required =false,paramType="query"),
@ApiImplicitParam(name = "deptName", value = "值日警官轮值科室", required =false,paramType="query"),
})
@RequestMapping(value ="/list",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody
public ResultData list(@ModelAttribute @ApiIgnore DutyPoliceEntity entity) {
entity.setSqlWhere("");
List list = dutyPoliceBiz.query(entity);
return ResultData.build().success(new EUListBean(list,(int)BasicUtil.endPage(list).getTotal()));
}
}

@ -32,14 +32,14 @@ import net.mingsoft.basic.util.BasicUtil;
import net.mingsoft.cms.action.BaseAction; import net.mingsoft.cms.action.BaseAction;
import net.mingsoft.cms.biz.IDutyStandbyBiz; import net.mingsoft.cms.biz.IDutyStandbyBiz;
import net.mingsoft.cms.entity.DutyStandbyEntity; import net.mingsoft.cms.entity.DutyStandbyEntity;
import net.mingsoft.excel.util.ExcelUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import springfox.documentation.annotations.ApiIgnore; import springfox.documentation.annotations.ApiIgnore;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
@ -69,9 +69,8 @@ public class DutyStandbyAction extends BaseAction {
@ApiImplicitParam(name = "id", value = "id", required =false,paramType="query"), @ApiImplicitParam(name = "id", value = "id", required =false,paramType="query"),
@ApiImplicitParam(name = "dutyDate", value = "值班日期", required =false,paramType="query"), @ApiImplicitParam(name = "dutyDate", value = "值班日期", required =false,paramType="query"),
@ApiImplicitParam(name = "monitor", value = "带班长", required =false,paramType="query"), @ApiImplicitParam(name = "monitor", value = "带班长", required =false,paramType="query"),
@ApiImplicitParam(name = "deputyMonitor", value = "副带班长", required =false,paramType="query"), @ApiImplicitParam(name = "policeDuty", value = "民警值班员", required =false,paramType="query"),
@ApiImplicitParam(name = "operator", value = "守机员", required =false,paramType="query"), @ApiImplicitParam(name = "auxiliaryPoliceDuty", value = "辅警值班员", required =false,paramType="query"),
@ApiImplicitParam(name = "dutyPerson", value = "值班人员", required =false,paramType="query"),
@ApiImplicitParam(name = "blDutyPerson", value = "北岭值班人员", required =false,paramType="query"), @ApiImplicitParam(name = "blDutyPerson", value = "北岭值班人员", required =false,paramType="query"),
}) })
@RequestMapping(value ="/list",method = {RequestMethod.GET,RequestMethod.POST}) @RequestMapping(value ="/list",method = {RequestMethod.GET,RequestMethod.POST})

@ -27,21 +27,14 @@ import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import net.mingsoft.base.entity.ResultData; import net.mingsoft.base.entity.ResultData;
import net.mingsoft.basic.bean.EUListBean;
import net.mingsoft.basic.util.BasicUtil; import net.mingsoft.basic.util.BasicUtil;
import net.mingsoft.cms.biz.ICategoryBiz;
import net.mingsoft.cms.biz.IPhoneContactsBiz; import net.mingsoft.cms.biz.IPhoneContactsBiz;
import net.mingsoft.cms.entity.CategoryEntity;
import net.mingsoft.cms.entity.PhoneContactsEntity; import net.mingsoft.cms.entity.PhoneContactsEntity;
import net.mingsoft.excel.util.ExcelUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import springfox.documentation.annotations.ApiIgnore; import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List; import java.util.List;
/** /**
@ -72,7 +65,7 @@ public class PhoneContactsAction extends net.mingsoft.cms.action.BaseAction{
@ApiImplicitParam(name = "name", value = "姓名", required =false,paramType="query"), @ApiImplicitParam(name = "name", value = "姓名", required =false,paramType="query"),
@ApiImplicitParam(name = "phone", value = "手机号", required =false,paramType="query"), @ApiImplicitParam(name = "phone", value = "手机号", required =false,paramType="query"),
}) })
@PostMapping(value="/list") @RequestMapping(value ="/list",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody @ResponseBody
public ResultData list(@ModelAttribute @ApiIgnore PhoneContactsEntity entity) { public ResultData list(@ModelAttribute @ApiIgnore PhoneContactsEntity entity) {
BasicUtil.startPage(); BasicUtil.startPage();

@ -36,5 +36,5 @@ import java.util.List;
* 历史修订<br/> * 历史修订<br/>
*/ */
public interface ICmsSignBiz extends IBaseBiz<CmsSignEntity> { public interface ICmsSignBiz extends IBaseBiz<CmsSignEntity> {
void deleteByContentId(String contentId);
} }

@ -0,0 +1,44 @@
/**
* The MIT License (MIT)
* Copyright (c) 2012-present 铭软科技(mingsoft.net)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package net.mingsoft.cms.biz;
import net.mingsoft.base.biz.IBaseBiz;
import net.mingsoft.cms.entity.DutyPoliceEntity;
import net.mingsoft.cms.entity.DutyStandbyEntity;
import java.util.List;
/**
* 分类业务
* @author 铭飞开发团队
* 创建日期2019-11-28 15:12:32<br/>
* 历史修订<br/>
*/
public interface IDutyPoliceBiz extends IBaseBiz<DutyPoliceEntity> {
void deleteByEntity(DutyPoliceEntity entity);
void deleteByContentIds(List<String> contentIds);
}

@ -60,4 +60,8 @@ public class CmsSignBizImpl extends BaseBizImpl<ICmsSignDao, CmsSignEntity> impl
return cmsSignDao; return cmsSignDao;
} }
@Override
public void deleteByContentId(String contentId) {
baseMapper.deleteByContentId(contentId);
}
} }

@ -0,0 +1,73 @@
/**
* The MIT License (MIT)
* Copyright (c) 2012-present 铭软科技(mingsoft.net)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package net.mingsoft.cms.biz.impl;
import net.mingsoft.base.biz.impl.BaseBizImpl;
import net.mingsoft.base.dao.IBaseDao;
import net.mingsoft.cms.biz.IDutyPoliceBiz;
import net.mingsoft.cms.biz.IDutyStandbyBiz;
import net.mingsoft.cms.dao.IDutyPoliceDao;
import net.mingsoft.cms.dao.IDutyStandbyDao;
import net.mingsoft.cms.entity.DutyPoliceEntity;
import net.mingsoft.cms.entity.DutyStandbyEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* 分类管理持久化层
* @author 铭飞开发团队
* 创建日期2019-11-28 15:12:32<br/>
* 历史修订<br/>
*/
@Service("dutyPoliceBizImpl")
@Transactional(rollbackFor = RuntimeException.class)
public class DutyPoliceBizImpl extends BaseBizImpl<IDutyPoliceDao, DutyPoliceEntity> implements IDutyPoliceBiz {
@Autowired
private IDutyPoliceDao dutyPoliceDao;
@Override
protected IBaseDao getDao() {
return dutyPoliceDao;
}
@Override
@Transactional
public void deleteByEntity(DutyPoliceEntity entity) {
dutyPoliceDao.deleteByEntity(entity);
}
@Override
public void deleteByContentIds(List<String> contentIds) {
dutyPoliceDao.deleteByContentIds(contentIds);
}
}

@ -25,6 +25,7 @@ package net.mingsoft.cms.dao;
import net.mingsoft.base.dao.IBaseDao; import net.mingsoft.base.dao.IBaseDao;
import net.mingsoft.cms.entity.CmsSignEntity; import net.mingsoft.cms.entity.CmsSignEntity;
import net.mingsoft.cms.entity.PhoneContactsEntity; import net.mingsoft.cms.entity.PhoneContactsEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.List; import java.util.List;
@ -37,5 +38,5 @@ import java.util.List;
*/ */
@Component("cmsSignDao") @Component("cmsSignDao")
public interface ICmsSignDao extends IBaseDao<CmsSignEntity> { public interface ICmsSignDao extends IBaseDao<CmsSignEntity> {
void deleteByContentId(@Param("contentId") String contentId);
} }

@ -6,6 +6,7 @@
<id column="id" property="id" /><!--编号 --> <id column="id" property="id" /><!--编号 -->
<result column="content_id" property="contentId" /><!--关联文章Id --> <result column="content_id" property="contentId" /><!--关联文章Id -->
<result column="manager_name" property="managerName" /><!--用户名 --> <result column="manager_name" property="managerName" /><!--用户名 -->
<result column="is_sign" property="isSign" /><!--是否签收 -->
<result column="create_by" property="createBy" /><!--创建人 --> <result column="create_by" property="createBy" /><!--创建人 -->
<result column="create_date" property="createDate" /><!--创建时间 --> <result column="create_date" property="createDate" /><!--创建时间 -->
<result column="update_by" property="updateBy" /><!--修改人 --> <result column="update_by" property="updateBy" /><!--修改人 -->
@ -20,6 +21,7 @@
<set> <set>
<if test="contentId != null and contentId != ''">content_id=#{contentId},</if> <if test="contentId != null and contentId != ''">content_id=#{contentId},</if>
<if test="managerName != null and managerName != ''">manager_name=#{managerName},</if> <if test="managerName != null and managerName != ''">manager_name=#{managerName},</if>
<if test="isSign != null and isSign != ''">is_sign=#{isSign},</if>
<if test="createBy &gt; 0">create_by=#{createBy},</if> <if test="createBy &gt; 0">create_by=#{createBy},</if>
<if test="createDate != null">create_date=#{createDate},</if> <if test="createDate != null">create_date=#{createDate},</if>
<if test="updateBy &gt; 0">update_by=#{updateBy},</if> <if test="updateBy &gt; 0">update_by=#{updateBy},</if>
@ -40,6 +42,7 @@
<where> <where>
<if test="contentId != null and contentId != ''">and content_id=#{contentId}</if> <if test="contentId != null and contentId != ''">and content_id=#{contentId}</if>
<if test="managerName != null and managerName != ''">and manager_name=#{managerName}</if> <if test="managerName != null and managerName != ''">and manager_name=#{managerName}</if>
<if test="isSign != null and isSign != ''">and is_sign=#{isSign}</if>
<if test="createBy &gt; 0"> and create_by=#{createBy} </if> <if test="createBy &gt; 0"> and create_by=#{createBy} </if>
<if test="createDate != null"> and create_date=#{createDate} </if> <if test="createDate != null"> and create_date=#{createDate} </if>
<if test="updateBy &gt; 0"> and update_by=#{updateBy} </if> <if test="updateBy &gt; 0"> and update_by=#{updateBy} </if>
@ -71,6 +74,7 @@
<where> <where>
<if test="contentId != null and contentId != ''"> and content_id=#{contentId}</if> <if test="contentId != null and contentId != ''"> and content_id=#{contentId}</if>
<if test="managerName != null and managerName != ''">and manager_name=#{managerName}</if> <if test="managerName != null and managerName != ''">and manager_name=#{managerName}</if>
<if test="isSign != null and isSign != ''">and is_sign=#{isSign}</if>
<if test="createBy &gt; 0"> and create_by=#{createBy} </if> <if test="createBy &gt; 0"> and create_by=#{createBy} </if>
<if test="createDate != null"> and create_date=#{createDate} </if> <if test="createDate != null"> and create_date=#{createDate} </if>
<if test="updateBy &gt; 0"> and update_by=#{updateBy} </if> <if test="updateBy &gt; 0"> and update_by=#{updateBy} </if>
@ -80,4 +84,8 @@
</where> </where>
</select> </select>
<delete id="deleteByContentId" >
delete from cms_sign where content_id = #{contentId}
</delete>
</mapper> </mapper>

@ -0,0 +1,46 @@
/**
* The MIT License (MIT)
* Copyright (c) 2012-present 铭软科技(mingsoft.net)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package net.mingsoft.cms.dao;
import net.mingsoft.base.dao.IBaseDao;
import net.mingsoft.cms.entity.DutyPoliceEntity;
import net.mingsoft.cms.entity.DutyStandbyEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* 分类持久层
* @author 铭飞开发团队
* 创建日期2024-03-20 15:12:32<br/>
* 历史修订<br/>
*/
@Component("dutyPoliceDao")
public interface IDutyPoliceDao extends IBaseDao<DutyPoliceEntity> {
void deleteByEntity(DutyPoliceEntity entity);
void deleteByContentIds(@Param("contentIds") List<String> contentIds);
}

@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="net.mingsoft.cms.dao.IDutyPoliceDao">
<resultMap id="resultMap" type="net.mingsoft.cms.entity.DutyPoliceEntity">
<id column="id" property="id" /><!--编号 -->
<result column="duty_date" property="dutyDate" /><!--值班日期 -->
<result column="leader_name" property="leaderName" /><!--值日警官领导岗 -->
<result column="dept_name" property="deptName" /><!--值日警官轮值科室 -->
<result column="create_by" property="createBy" /><!--创建人 -->
<result column="create_date" property="createDate" /><!--创建时间 -->
<result column="update_by" property="updateBy" /><!--修改人 -->
<result column="update_date" property="updateDate" /><!--修改时间 -->
<result column="del" property="del" /><!--删除标记 -->
</resultMap>
<!--更新-->
<update id="updateEntity" parameterType="net.mingsoft.cms.entity.DutyPoliceEntity">
update duty_police
<set>
<if test="dutyDate != null and dutyDate != ''">duty_date=#{dutyDate},</if>
<if test="leaderName != null and leaderName != ''">leader_name=#{leaderName},</if>
<if test="deptName != null and deptName != ''">dept_name=#{deptName},</if>
<if test="createBy &gt; 0">create_by=#{createBy},</if>
<if test="createDate != null">create_date=#{createDate},</if>
<if test="updateBy &gt; 0">update_by=#{updateBy},</if>
<if test="updateDate != null">update_date=#{updateDate},</if>
<if test="del != null">del=#{del},</if>
</set>
where id = #{id}
</update>
<!--根据id获取-->
<select id="getEntity" resultMap="resultMap" parameterType="int">
select * from duty_police where id=#{id}
</select>
<!--根据实体获取-->
<select id="getByEntity" resultMap="resultMap" parameterType="net.mingsoft.cms.entity.DutyPoliceEntity">
select * from duty_police
<where>
<if test="dutyDate != null and dutyDate != ''">and duty_date=#{dutyDate}</if>
<if test="leaderName != null and leaderName != ''">and leader_name=#{leaderName}</if>
<if test="deptName != null and deptName != ''">and dept_name=#{deptName}</if>
<if test="createBy &gt; 0"> and create_by=#{createBy} </if>
<if test="createDate != null"> and create_date=#{createDate} </if>
<if test="updateBy &gt; 0"> and update_by=#{updateBy} </if>
<if test="updateDate != null"> and update_date=#{updateDate} </if>
<if test="del != null"> and del=#{del} </if>
</where>
</select>
<!--删除-->
<delete id="deleteEntity" parameterType="int">
delete from duty_police where id=#{id}
</delete>
<delete id="deleteByEntity" parameterType="int">
delete from duty_police
<where>
<if test="dutyDate != null and dutyDate != ''">and duty_date=#{dutyDate}</if>
</where>
</delete>
<!--批量删除-->
<delete id="delete" >
delete from duty_police
<where>
id in <foreach collection="ids" item="item" index="index"
open="(" separator="," close=")">#{item}</foreach>
</where>
</delete>
<!--查询全部-->
<select id="queryAll" resultMap="resultMap">
select * from duty_police order by id desc
</select>
<!--条件查询-->
<select id="query" resultMap="resultMap">
select * from duty_police
<where>
<if test="dutyDate != null and dutyDate != ''">and duty_date=#{dutyDate}</if>
<if test="leaderName != null and leaderName != ''">and leader_name=#{leaderName}</if>
<if test="deptName != null and deptName != ''">and dept_name=#{deptName}</if>
<if test="contentId != null and contentId != ''">and content_id=#{contentId}</if>
<if test="filePath != null and filePath != ''">and file_path=#{filePath}</if>
<if test="createBy &gt; 0"> and create_by=#{createBy} </if>
<if test="createDate != null"> and create_date=#{createDate} </if>
<if test="updateBy &gt; 0"> and update_by=#{updateBy} </if>
<if test="updateDate != null"> and update_date=#{updateDate} </if>
<if test="del != null"> and del=#{del} </if>
<include refid="net.mingsoft.base.dao.IBaseDao.sqlWhere"></include>
</where>
</select>
<delete id="deleteByContentIds" parameterType="String">
delete from duty_police
<where>
content_id in <foreach collection="contentIds" item="item" index="index"
open="(" separator="," close=")">#{item}</foreach>
</where>
</delete>
</mapper>

@ -52,7 +52,6 @@ private static final long serialVersionUID = 1574925152617L;
/** /**
* 是否签收 * 是否签收
*/ */
@TableField(exist = false)
private String isSign; private String isSign;
@Override @Override

@ -0,0 +1,119 @@
/**
* The MIT License (MIT)
* Copyright (c) 2012-present 铭软科技(mingsoft.net)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package net.mingsoft.cms.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import net.mingsoft.base.entity.BaseEntity;
/**
* 值日警官表
* @author 铭飞开发团队
* 创建日期2024-03-20 15:12:32<br/>
* 历史修订<br/>
*/
@TableName("duty_police")
public class DutyPoliceEntity extends BaseEntity {
private static final long serialVersionUID = -202180033093209501L;
private String id;
/**
* 值班日期
*/
@ExcelProperty("值班日期")
private String dutyDate;
/**
* 带班长
*/
@ExcelProperty("值日警官领导岗")
private String leaderName;
/**
* 民警值班员
*/
@ExcelProperty("值日警官轮值科室")
private String deptName;
/**
* 上传文件路径
*/
private String filePath;
/**
* 关联文章Id
*/
private String contentId;
@Override
public String getId() {
return id;
}
@Override
public void setId(String id) {
this.id = id;
}
public String getDutyDate() {
return dutyDate;
}
public void setDutyDate(String dutyDate) {
this.dutyDate = dutyDate;
}
public String getLeaderName() {
return leaderName;
}
public void setLeaderName(String leaderName) {
this.leaderName = leaderName;
}
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public String getContentId() {
return contentId;
}
public void setContentId(String contentId) {
this.contentId = contentId;
}
}

@ -0,0 +1,81 @@
/**
* The MIT License (MIT)
* Copyright (c) 2012-present 铭软科技(mingsoft.net)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package net.mingsoft.cms.excel;
import com.alibaba.excel.annotation.ExcelProperty;
import java.io.Serializable;
/**
* 值班备勤表
* @author 铭飞开发团队
* 创建日期2024-03-20 15:12:32<br/>
* 历史修订<br/>
*/
public class DutyPoliceExcel implements Serializable {
private static final long serialVersionUID = -8204345859257208121L;
/**
* 值班日期
*/
@ExcelProperty("值班日期")
private String dutyDate;
/**
* 值日警官领导岗
*/
@ExcelProperty("值日警官领导岗")
private String leaderName;
/**
* 值日警官轮值科室
*/
@ExcelProperty("值日警官轮值科室")
private String deptName;
public String getDutyDate() {
return dutyDate;
}
public void setDutyDate(String dutyDate) {
this.dutyDate = dutyDate;
}
public String getLeaderName() {
return leaderName;
}
public void setLeaderName(String leaderName) {
this.leaderName = leaderName;
}
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
}

@ -22,7 +22,7 @@
</@shiro.hasPermission> </@shiro.hasPermission>
<el-button v-if="categoryType==1" size="mini" class="iconfont icon-fanhui" plain onclick="javascript:history.go(-1)">返回 <el-button v-if="categoryType==1" size="mini" class="iconfont icon-fanhui" plain onclick="javascript:history.go(-1)">返回
</el-button> </el-button>
<el-button v-if="categoryType==2 && false" size="mini" type="danger" icon="el-icon-delete" @click="del()">删除1 <el-button v-if="categoryType==2" size="mini" type="danger" icon="el-icon-delete" @click="del()">删除
</el-button> </el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -188,6 +188,24 @@
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span=12>
<el-form-item label="文章标签" prop="contentTags">
<el-select v-model="form.contentTags"
:style="{width: '100%'}"
:filterable="false"
:disabled="false"
:multiple="true" :clearable="true"
placeholder="请选择文章标签">
<el-option v-for='item in contentTagsOptions' :key="item.dictValue"
:value="item.dictValue"
:label="item.dictLabel"></el-option>
</el-select>
<div class="ms-form-tip">
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">${'$'}{field.tags}</a>
通过自定义字典可扩展数据;字典类型:文章标签
</div>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row <el-row
:gutter=0 :gutter=0
@ -218,21 +236,19 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span=12> <el-col :span=12>
<el-form-item label="文章标签" prop="contentTags"> <el-form-item label="下发科室" >
<el-select v-model="form.contentTags" <el-select v-model="form.signOfficeList"
:style="{width: '100%'}" :style="{width: '100%'}"
:filterable="false" :filterable="false"
:disabled="false" :disabled="false"
:multiple="true" :clearable="true" :multiple="true" :clearable="true"
placeholder="请选择文章标签"> placeholder="请选择下发科室"
<el-option v-for='item in contentTagsOptions' :key="item.dictValue" @change="e=>handleOfficeChange(e)"
:value="item.dictValue" >
:label="item.dictLabel"></el-option> <el-option v-for='item in signOfficeOptions' :key="item"
:value="item"
:label="item"></el-option>
</el-select> </el-select>
<div class="ms-form-tip">
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">${'$'}{field.tags}</a>
通过自定义字典可扩展数据;字典类型:文章标签
</div>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -343,9 +359,12 @@
//文章外链接 //文章外链接
contentOutLink: '', contentOutLink: '',
contentDatetime: ms.util.date.fmt(Date.now(),"yyyy-MM-dd hh:mm:ss"), contentDatetime: ms.util.date.fmt(Date.now(),"yyyy-MM-dd hh:mm:ss"),
//下发科室
signOfficeList:[],
}, },
categoryType: '1', categoryType: '1',
contentTypeOptions: [], contentTypeOptions: [],
signOfficeOptions: [],
contentTagsOptions: [], contentTagsOptions: [],
categoryIdOptions: [], categoryIdOptions: [],
contentDisplayOptions: [{ contentDisplayOptions: [{
@ -388,6 +407,11 @@
} }
}, },
methods: { methods: {
handleOfficeChange: function (e) {
var that = this
that.form.signOfficeList = e
this.form.signOfficeList = e
},
save: function () { save: function () {
var _this = this; var _this = this;
var that = this; //自定义模型需要验证 var that = this; //自定义模型需要验证
@ -414,7 +438,7 @@
that.form.contentImg = []; that.form.contentImg = [];
} }
this.$refs.form[0].validate(function (valid) { this.$refs.form[0].validate(function (valid,data) {
if (valid) { if (valid) {
that.saveDisabled = true; //判断 that.saveDisabled = true; //判断
@ -458,6 +482,17 @@
window.model.form.linkId = data.data.id; window.model.form.linkId = data.data.id;
window.model.save(); window.model.save();
} }
if(that.form.signOfficeList && that.form.signOfficeList.length){
let newArr = []
that.form.signOfficeList.map(i=>newArr.push({managerName:i,contentId:data.data.id}))
ms.http.post(ms.manager + "/cms/sign/saveList.do", newArr,{
headers: {
'Content-Type': 'application/json'
}
})
}
that.$notify({ that.$notify({
title: '成功', title: '成功',
message: '保存成功', message: '保存成功',
@ -584,7 +619,28 @@
} else { } else {
res.data.contentImg = []; res.data.contentImg = [];
} }
//查询当前文章的科室
if(ms.util.getParameter("id")){
ms.http.get(ms.manager + "/cms/sign/list.do",{
"contentId": ms.util.getParameter("id")
}).then(res2=>{
if(res2.result){
res.data.signOfficeList = res2.data.map(i=>i.managerName);
}
that.form = res.data;
var category = that.categoryIdOptions.filter(function (f) {
return f['id'] == that.form.categoryId;
});
if (category.length > 0) {
that.categoryType = category[0].categoryType
if (category[0].categoryType == '2' || category[0].categoryType == '3') {
that.returnIsShow = false;
}
}
that.changeModel();
})
}else{
that.form = res.data; that.form = res.data;
var category = that.categoryIdOptions.filter(function (f) { var category = that.categoryIdOptions.filter(function (f) {
return f['id'] == that.form.categoryId; return f['id'] == that.form.categoryId;
@ -598,7 +654,10 @@
} }
that.changeModel(); that.changeModel();
} }
}
}); });
}, },
//根据封面获取当前文章 //根据封面获取当前文章
getFromFengMian: function (categoryId) { getFromFengMian: function (categoryId) {
@ -809,7 +868,19 @@
created: function () { created: function () {
this.contentCategoryIdOptionsGet(); this.contentCategoryIdOptionsGet();
this.contentTypeOptionsGet(); this.contentTypeOptionsGet();
this.contentTagsOptionsGet(); this.contentTagsOptionsGet()
},
mounted: function () {
//查询所有科室
ms.http.get(ms.manager + "/cms/sign/getManagerList.do").then(res=>{
if(res.result){
this.signOfficeOptions = res.data;
}
})
},
beforeDestroy: function () {
localStorage.removeItem('filePath')
} }
}); });
</script> </script>

@ -35,8 +35,7 @@
<div class="index-contentbox"> <div class="index-contentbox">
<div class="wrap"> <div class="wrap">
<div class="pagebreadcrumb"> <div class="pagebreadcrumb">
<a href='/html/web/index.html'>首页</a>><a <a href='/html/web/index.html'>首页</a>><a href='/html/web/index.html'>${field.typetitle}</a>
href='/html/web/index.html'>${field.typetitle}</a>
</div> </div>
<h1 class="chuhuijiyao_title">${field.typetitle}</h1> <h1 class="chuhuijiyao_title">${field.typetitle}</h1>
<div class="about_x anim anim-2"> <div class="about_x anim anim-2">
@ -45,12 +44,12 @@
发布时间:${field.date?string("yyyy-MM-dd")}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布科室:${field.author} 发布时间:${field.date?string("yyyy-MM-dd")}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布科室:${field.author}
</div> </div>
<div class="con_id"> <div class="con_id">
<div >${field.content}</div> <div>${field.content}</div>
</div> </div>
<#if field.typetitle == '会议通知' || field.typetitle == '通知公告'> <#if field.typetitle=='会议通知' || field.typetitle=='通知公告'>
<div style="border-bottom:1px #c8c8c8 dashed"></div> <div style="border-bottom:1px #c8c8c8 dashed"></div>
</#if> </#if>
<#if field.typetitle == '会议通知' || field.typetitle == '通知公告'> <#if field.typetitle=='会议通知' || field.typetitle=='通知公告'>
<div id="signed"> <div id="signed">
<div class="signed"> <div class="signed">
<span>已签收:</span>{{signedStr}} <span>已签收:</span>{{signedStr}}
@ -59,7 +58,10 @@
<span>未签收:</span>{{unSignedStr}} <span>未签收:</span>{{unSignedStr}}
</div> </div>
<div style="display:flex;justify-content:center"> <div style="display:flex;justify-content:center">
<button class="signBtn" style="width:150px;height:50px;background:#004ebd;color:#fff;font-size:18px;margin-bottom:50px;cursor:pointer" @click="handleSign(${field.id})" data-fieldid="${field.id}" v-if="signBtnFlag">点击签收</button> <button class="signBtn"
style="width:150px;height:50px;background:#004ebd;color:#fff;font-size:18px;margin-bottom:50px;cursor:pointer"
@click="handleSign()"
v-if="signBtnFlag && isLogin">点击签收</button>
</div> </div>
</div> </div>
</#if> </#if>
@ -72,50 +74,57 @@
var app = new Vue({ var app = new Vue({
el: '#signed', el: '#signed',
data: { data: {
signedStr:'', signedStr: '',
unSignedStr:'', unSignedStr: '',
signBtnFlag:true, signBtnFlag: false,
isLogin:false
}, },
methods:{ methods: {
handleSign(contentId){ handleSign() {
axios.get('/ms/checkLogin.do').then(res=>{ axios.get('/ms/checkLogin.do').then(res => {
if(res.data.code == 200 && res.data.result){ if (res.data.code == 200 && res.data.result) {
axios.post('/ms/cms/sign/save.do',{contentId:String(contentId),managerName:res.data.data.managerNickName}, { axios.post('/ms/cms/sign/save.do', { contentId: String(window.location.href.substr(window.location.href.lastIndexOf('/')+1,19)), managerName: res.data.data.managerNickName }, {
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded' 'Content-Type': 'application/x-www-form-urlencoded'
} }
}).then(res2=>{ }).then(res2 => {
if(res2.data.code == 200){ if (res2.data.code == 200) {
alert('签收成功') alert('签收成功')
location.reload() location.reload()
}else{ } else {
alert('签收失败请联系管理员') alert('签收失败请联系管理员')
} }
}) })
}else{ } else {
alert('请登录'); alert('请登录');
} }
}) })
} }
}, },
mounted(){ mounted() {
axios.post('/ms/cms/sign/list.do',{contentId: ${field.id}}, { axios.get('/ms/checkLogin.do').then(res => {
if (res.data.code == 200 && res.data.result) {
this.isLogin = true
}
})
axios.post('/cms/sign/list.do', { contentId: window.location.href.substr(window.location.href.lastIndexOf('/')+1,19)}, {
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded' 'Content-Type': 'application/x-www-form-urlencoded'
} }
}).then(res=>{ }).then(res => {
res.data.data.map(i=>{ res.data.data.map(i => {
if(i.isSign == '1'){ if (i.isSign == '1') {
this.signedStr += i.managerName + '、' this.signedStr += i.managerName + '、'
}else{ } else {
this.unSignedStr += i.managerName + '、' this.unSignedStr += i.managerName + '、'
} }
}) })
this.signedStr = this.signedStr.substr(0,this.signedStr.length-1) this.signedStr = this.signedStr.substr(0, this.signedStr.length - 1)
this.unSignedStr = this.unSignedStr.substr(0,this.unSignedStr.length-1) this.unSignedStr = this.unSignedStr.substr(0, this.unSignedStr.length - 1)
axios.get('/ms/checkLogin.do').then(res2=>{ axios.get('/ms/checkLogin.do').then(res2 => {
if(res.data.data.some(i=>i.isSign == '1' && i.managerName == res2.data.data.managerNickName )){ if (res.data.data.some(i => i.isSign == '0' && i.managerName == res2.data.data.managerNickName)) {
this.signBtnFlag = false this.signBtnFlag = true
} }
}) })
}) })
@ -148,22 +157,26 @@
<script language="javascript" src="/{ms:global.style/}js/foot.js"></script><!--尾部end--> <script language="javascript" src="/{ms:global.style/}js/foot.js"></script><!--尾部end-->
</div> </div>
</body> </body>
<style> <style>
.signed{ .signed {
color:#999999; color: #999999;
font-size:18px; font-size: 18px;
margin:50px 0 30px 0; margin: 50px 0 30px 0;
} }
.signed span{
font-weight:bold .signed span {
font-weight: bold
} }
.unsigned{
color:#df1f00; .unsigned {
font-size:18px; color: #df1f00;
margin-bottom:50px; font-size: 18px;
margin-bottom: 50px;
} }
.unsigned span{
font-weight:bold .unsigned span {
font-weight: bold
} }
</style> </style>
</html> </html>

@ -1,8 +1,8 @@
.header_box { .header_box {
width:1920px; width:1920px;
height: 600px; height: 500px;
background: url(../images/banner.png); background: url(../images/banner.jpg);
background-size: 1920px 600px; background-size: 1920px 500px;
background-repeat: no-repeat; background-repeat: no-repeat;
} }

@ -1,20 +1,22 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit"> <meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/> <meta name="viewport"
<meta name="robots" content="index, follow"/> content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="robots" content="index, follow" />
<title>{ms:global.name/}</title> <title>{ms:global.name/}</title>
<meta name="keywords" content="{ms:global.keyword/}"> <meta name="keywords" content="{ms:global.keyword/}">
<meta name="description" content="{ms:global.descrip/}"> <meta name="description" content="{ms:global.descrip/}">
<meta http-equiv="Cache-Control" content="no-transform"/> <meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp"/> <meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="applicable-device" content="pc,mobile"/> <meta name="applicable-device" content="pc,mobile" />
<link href="/favicon.ico" rel="shortcut icon"/> <link href="/favicon.ico" rel="shortcut icon" />
<link href="/{ms:global.style/}css/style.css" rel="stylesheet"/> <link href="/{ms:global.style/}css/style.css" rel="stylesheet" />
<link href="/{ms:global.style/}css/swiper.min.css" rel="stylesheet"/> <link href="/{ms:global.style/}css/swiper.min.css" rel="stylesheet" />
<link href="/{ms:global.style/}css/index.css" rel="stylesheet"/> <link href="/{ms:global.style/}css/index.css" rel="stylesheet" />
<script src="/{ms:global.style/}js/jquery-1.8.3.min.js"></script> <script src="/{ms:global.style/}js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/{ms:global.style/}js/jquery.superslide.2.1.1.js">//pc</script> <script type="text/javascript" src="/{ms:global.style/}js/jquery.superslide.2.1.1.js">//pc</script>
<script type="text/javascript" src="/{ms:global.style/}js/jquery.bxslider.min.js">/*轮显*/</script> <script type="text/javascript" src="/{ms:global.style/}js/jquery.bxslider.min.js">/*轮显*/</script>
@ -23,8 +25,9 @@
<script type="text/javascript" src="/{ms:global.style/}js/basic.js"></script> <script type="text/javascript" src="/{ms:global.style/}js/basic.js"></script>
<script src="/{ms:global.style/}/js/swiper.min.js"></script> <script src="/{ms:global.style/}/js/swiper.min.js"></script>
</head> </head>
<body> <body>
<#include "header.htm" /> <#include "header.htm" />
<div class="index-contentbox"> <div class="index-contentbox">
<div style="margin: 50px 0; width: 100%;"> <div style="margin: 50px 0; width: 100%;">
@ -51,7 +54,7 @@
<img src='/upload/1/cms/content/1710831357309.jpg' alt="" /> <img src='/upload/1/cms/content/1710831357309.jpg' alt="" />
</a> </a>
<span>南宁 政府工作报告对全市档案工作给予肯...</span> --> <span>南宁 政府工作报告对全市档案工作给予肯...</span> -->
<a href="{ms:global.html/}${field.link}" > <a href="{ms:global.html/}${field.link}">
<div style="display: flex; align-items: center;"> <div style="display: flex; align-items: center;">
<div class="new_tag">头条</div> <div class="new_tag">头条</div>
<div class="new_tit"> ${field.title}</div> <div class="new_tit"> ${field.title}</div>
@ -80,7 +83,7 @@
}); });
</script> </script>
</div> </div>
<img src="/{ms:global.style/}images/line.png"/> <img src="/{ms:global.style/}images/line.png" />
<div class="center_news"> <div class="center_news">
<div class="slider_news"> <div class="slider_news">
<div class="swiper-container"> <div class="swiper-container">
@ -91,8 +94,15 @@
height: 100%; height: 100%;
cursor: pointer;"> cursor: pointer;">
<img src='{@ms:file field.litpic/}' alt=""> <img src='{@ms:file field.litpic/}' alt="">
<div style="width:82px;height:82px;background:red;position:absolute;top:30px;left:30px;display:flex;flex-direction:column;align-items:center;color:#fff"><div style="font-size:30px;margin-top:12px">${field.date?string("dd")}</div><div style="font-size:14px">${field.date?string("yyyy-MM")}</div> </div> <div
<span><div style="width:85%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">${field.title}</div></span> style="width:82px;height:82px;background:red;position:absolute;top:30px;left:30px;display:flex;flex-direction:column;align-items:center;color:#fff">
<div style="font-size:30px;margin-top:12px">${field.date?string("dd")}</div>
<div style="font-size:14px">${field.date?string("yyyy-MM")}</div>
</div>
<span>
<div style="width:85%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">${field.title}
</div>
</span>
</a> </a>
</div> </div>
{/ms:arclist} {/ms:arclist}
@ -170,9 +180,11 @@
<li class="bot_arti_li"> <li class="bot_arti_li">
<div> <div>
<div class="newd"></div> <div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div> <div class="newb" data-time="${field.date?string('yyyy-MM-dd HH:MM:ss')}">NEW</div>
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" title="${field.title}">{@ms:len field.title 12 /}</div> <div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd HH:MM:ss')}"
<div class="newc font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" title="${field.title}"> title="${field.title}">{@ms:len field.title 12 /}</div>
<div class="newc font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd HH:MM:ss')}"
title="${field.title}">
{@ms:len field.title 16 /} {@ms:len field.title 16 /}
</div> </div>
</div> </div>
@ -180,8 +192,6 @@
</li> </li>
</a> </a>
{/ms:arclist} {/ms:arclist}
</ul> </ul>
</div> </div>
</li> </li>
@ -204,8 +214,9 @@
<div> <div>
<div class="newd"></div> <div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div> <div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>{@ms:len field.title 12 /}</div> <div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}" > {@ms:len field.title 12 /}</div>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}">
{@ms:len field.title 16 /} {@ms:len field.title 16 /}
</div> </div>
</div> </div>
@ -223,7 +234,7 @@
<img src="/{ms:global.style/}images/lj18.png" alt="" srcset=""> <img src="/{ms:global.style/}images/lj18.png" alt="" srcset="">
<div class="top_arti-t">领导批示 </div> <div class="top_arti-t">领导批示 </div>
</div> </div>
<a href="/html/web/article/lingdaopishi/index.html" > <a href="/html/web/article/lingdaopishi/index.html">
<div class="top_arti-gd">更多>></div> <div class="top_arti-gd">更多>></div>
</a> </a>
</div> </div>
@ -235,8 +246,9 @@
<div> <div>
<div class="newd"></div> <div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div> <div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>{@ms:len field.title 12 /}</div> <div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}" > {@ms:len field.title 12 /}</div>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}">
{@ms:len field.title 16 /} {@ms:len field.title 16 /}
</div> </div>
</div> </div>
@ -265,8 +277,9 @@
<div> <div>
<div class="newd"></div> <div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div> <div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>{@ms:len field.title 12 /}</div> <div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}" > {@ms:len field.title 12 /}</div>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}">
{@ms:len field.title 16 /} {@ms:len field.title 16 /}
</div> </div>
</div> </div>
@ -295,7 +308,8 @@
<div> <div>
<div class="newd"></div> <div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div> <div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>{@ms:len field.title 12 /}</div> <div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>
{@ms:len field.title 12 /}</div>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}"> <div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}">
{@ms:len field.title 16 /} {@ms:len field.title 16 /}
</div> </div>
@ -326,8 +340,9 @@
<div> <div>
<div class="newd"></div> <div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div> <div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>{@ms:len field.title 12 /}</div> <div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}" > {@ms:len field.title 12 /}</div>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}">
{@ms:len field.title 16 /} {@ms:len field.title 16 /}
</div> </div>
</div> </div>
@ -371,7 +386,7 @@
autoplay: true, autoplay: true,
loop: true, loop: true,
slidesPerView: 1, slidesPerView: 1,
spaceBetween:9999, spaceBetween: 9999,
navigation: { navigation: {
nextEl: '.pre-btn-two', nextEl: '.pre-btn-two',
prevEl: '.next-btn-two', prevEl: '.next-btn-two',
@ -393,7 +408,7 @@
{ms:arclist typeid=1773220968757211138 size=3} {ms:arclist typeid=1773220968757211138 size=3}
<li> <li>
<a href="{ms:global.html/}${field.link}" > <a href="{ms:global.html/}${field.link}">
<img src="{@ms:file field.litpic/}" alt=""> <img src="{@ms:file field.litpic/}" alt="">
<div class="img_txt font-overflow-two " style="height:50px">${field.title}</div> <div class="img_txt font-overflow-two " style="height:50px">${field.title}</div>
<div class="dt_con_time">${field.date?string("yyyy-MM-dd")}</div> <div class="dt_con_time">${field.date?string("yyyy-MM-dd")}</div>
@ -480,7 +495,7 @@
<ul class="bot_arti_ul"> <ul class="bot_arti_ul">
{ms:arclist typeid=1773221037258584065 size=5} {ms:arclist typeid=1773221037258584065 size=5}
<a href="{ms:global.html/}${field.link}" > <a href="{ms:global.html/}${field.link}">
<li class="bot_arti_li"> <li class="bot_arti_li">
<div style="width: 74%;"> <div style="width: 74%;">
<div class="newd"></div> <div class="newd"></div>
@ -495,7 +510,7 @@
</ul> </ul>
</div> </div>
</li> </li>
<li class="article_con article_con2" > <li class="article_con article_con2">
<div class="top_arti"> <div class="top_arti">
<div style="display: flex;align-items: center;"> <div style="display: flex;align-items: center;">
<div class="top_arti-t">政工通告 </div> <div class="top_arti-t">政工通告 </div>
@ -561,7 +576,7 @@
<div class="bottom_arti"> <div class="bottom_arti">
<ul class="bot_arti_ul"> <ul class="bot_arti_ul">
{ms:arclist typeid=1773221266934476802 size=5} {ms:arclist typeid=1773221266934476802 size=5}
<a href="{ms:global.html/}${field.link}" > <a href="{ms:global.html/}${field.link}">
<li class="bot_arti_li"> <li class="bot_arti_li">
<div style="width: 74%;"> <div style="width: 74%;">
<div class="newd"></div> <div class="newd"></div>
@ -698,16 +713,16 @@
}, },
}) })
$('.switchColor').each(function (i, p) { $('.switchColor').each(function (i, p) {
if(i == 0){ if (i == 0) {
$(p).css('color','#2C5A9E') $(p).css('color', '#2C5A9E')
}else if(i == 1){ } else if (i == 1) {
$(p).css('color','#1E74E5 ') $(p).css('color', '#1E74E5 ')
}else if(i == 2){ } else if (i == 2) {
$(p).css('color','#2941BE ') $(p).css('color', '#2941BE ')
}else if(i == 3){ } else if (i == 3) {
$(p).css('color','#1657B9 ') $(p).css('color', '#1657B9 ')
}else { } else {
$(p).css('color','#1064AE ') $(p).css('color', '#1064AE ')
} }
}); });
@ -720,7 +735,7 @@
<div class="swiper swiperCgfc"> <div class="swiper swiperCgfc">
<!--自定义新增class:swiperOne js代码中使用类名--> <!--自定义新增class:swiperOne js代码中使用类名-->
<div class="swiper-wrapper wrapper_star"> <div class="swiper-wrapper wrapper_star">
{ms:arclist typeid=1773542134583328769 } {ms:arclist typeid=1773542134583328769 }
<div class="swiper-slide slider_star blue-slide"> <div class="swiper-slide slider_star blue-slide">
<a href="{ms:global.html/}${field.link}"> <a href="{ms:global.html/}${field.link}">
<div style="width:100%;height:100%;"> <div style="width:100%;height:100%;">
@ -771,9 +786,9 @@
</div> </div>
{/ms:arclist} {/ms:arclist}
<#include "footer.htm" /> <#include "footer.htm" />
<script src="/{ms:global.style/}js/moment.js"></script> <script src="/{ms:global.style/}js/moment.js"></script>
<script language="javascript" src="/{ms:global.style/}js/foot.js"></script><!--尾部end--> <script language="javascript" src="/{ms:global.style/}js/foot.js"></script><!--尾部end-->
<script> <script>
@ -788,7 +803,7 @@
var xon = 0; var xon = 0;
var interval; var interval;
var flowE = document.getElementById("flow"); var flowE = document.getElementById("flow");
if(flowE){ if (flowE) {
flowE.style.top = yPos + "px"; flowE.style.top = yPos + "px";
function changePos() { function changePos() {
@ -828,31 +843,36 @@
} }
var currentTime = window.moment().format('YYYY-MM-DD'); var currentTime = window.moment().format('YYYY-MM-DD');
//发布时间在72小时内的显示new
var paseTime = window.moment().subtract(3, 'day').format('YYYY-MM-DD HH:MM:ss')
console.log(paseTime,'paseTimepaseTimepaseTimepaseTimepaseTime')
$('.newe').each(function (i, p) { $('.newe').each(function (i, p) {
if ($(p).data('time') == currentTime) { if (moment($(p).data('time')) > moment(paseTime)) {
$(p).show() $(p).show()
}else{ } else {
$(p).hide() $(p).hide()
} }
}); });
$('.newb').each(function (i, p) { $('.newb').each(function (i, p) {
if ($(p).data('time') == currentTime) { if (moment($(p).data('time')) > moment(paseTime)) {
$(p).show() $(p).show()
} }
}); });
$('.newc').each(function (i, p) { $('.newc').each(function (i, p) {
if ($(p).data('time') == currentTime) { if (moment($(p).data('time')) > moment(paseTime)) {
$(p).hide() $(p).hide()
} }
}); });
$('.titlelong').each(function (i, p) { $('.titlelong').each(function (i, p) {
if ($(p).data('time') == currentTime) { if (moment($(p).data('time')) > moment(paseTime)) {
$(p).hide() $(p).hide()
} }
}); });
$('.titleshort').each(function (i, p) { $('.titleshort').each(function (i, p) {
if ($(p).data('time') != currentTime) { if (moment($(p).data('time')) < moment(paseTime)) {
$(p).hide() $(p).hide()
} }
}); });
@ -881,62 +901,61 @@
document.getElementById('z_day2').innerText = day[1]; document.getElementById('z_day2').innerText = day[1];
$(function () { $(function () {
axios.post('/statistics/publishList/list.do',{type: 1}, { axios.post('/statistics/publishList/list.do', { type: 1 }, {
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded' 'Content-Type': 'application/x-www-form-urlencoded'
} }
}).then(res =>{ }).then(res => {
console.log('resl ====>',res) console.log('resl ====>', res)
if(res.data.code == 200 && res.data.result){ if (res.data.code == 200 && res.data.result) {
for(var ss = 0; ss<res.data.data.rows.length; ss++){ for (var ss = 0; ss < res.data.data.rows.length; ss++) {
$(".right_top_bottom_tr").append('<div class="right_top_bottom_td"><div class="right_top_bottom_td_t"><div>'+res.data.data.rows[ss].manager+'</div></div><div class="right_top_bottom_td_b">'+res.data.data.rows[ss].count+'</div></div>'); $(".right_top_bottom_tr").append('<div class="right_top_bottom_td"><div class="right_top_bottom_td_t"><div>' + res.data.data.rows[ss].manager + '</div></div><div class="right_top_bottom_td_b">' + res.data.data.rows[ss].count + '</div></div>');
} }
$(".right_top_bottom_td_t").each(function(i) { $(".right_top_bottom_td_t").each(function (i) {
if(!(i%6)){ if (!(i % 6)) {
$(this).find('div').css('border-left','0') $(this).find('div').css('border-left', '0')
} }
}); });
} }
}) })
$('.qgs div').click(function () { $('.qgs div').click(function () {
$(this).addClass('qgselected').siblings().removeClass('qgselected'); $(this).addClass('qgselected').siblings().removeClass('qgselected');
var typeid = $(this).attr("data-type"); var typeid = $(this).attr("data-type");
axios.post('/statistics/publishList/list.do',{type: typeid}, { axios.post('/statistics/publishList/list.do', { type: typeid }, {
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded' 'Content-Type': 'application/x-www-form-urlencoded'
} }
}).then(res =>{ }).then(res => {
console.log('resl ====>',res) console.log('resl ====>', res)
$(".right_top_bottom_tr").empty() $(".right_top_bottom_tr").empty()
if(res.data.code == 200 && res.data.result){ if (res.data.code == 200 && res.data.result) {
for(var ss = 0; ss<res.data.data.rows.length; ss++){ for (var ss = 0; ss < res.data.data.rows.length; ss++) {
$(".right_top_bottom_tr").append('<div class="right_top_bottom_td"><div class="right_top_bottom_td_t"><div>'+res.data.data.rows[ss].manager+'</div></div><div class="right_top_bottom_td_b">'+res.data.data.rows[ss].count+'</div></div>'); $(".right_top_bottom_tr").append('<div class="right_top_bottom_td"><div class="right_top_bottom_td_t"><div>' + res.data.data.rows[ss].manager + '</div></div><div class="right_top_bottom_td_b">' + res.data.data.rows[ss].count + '</div></div>');
} }
$(".right_top_bottom_td_t").each(function(i) { $(".right_top_bottom_td_t").each(function (i) {
if(!(i%6)){ if (!(i % 6)) {
$(this).find('div').css('border-left','0') $(this).find('div').css('border-left', '0')
}
});
} }
});
}
}) })
}); });
}); });
axios.get('/ms/checkLogin.do').then(res=>{ axios.get('/ms/checkLogin.do').then(res => {
if(res.data.code == 200 && res.data.result){ if (res.data.code == 200 && res.data.result) {
$('.login_dl').hide() $('.login_dl').hide()
}else{ } else {
$('.logCheck').each(function (i, p) { $('.logCheck').each(function (i, p) {
$(p).on('click', function(event) { $(p).on('click', function (event) {
event.preventDefault(); // 阻止默认行为,例如导航到href指定的链接 event.preventDefault(); // 阻止默认行为,例如导航到href指定的链接
// 你的代码逻辑 // 你的代码逻辑
alert('请登录后查看'); alert('请登录后查看');
@ -948,28 +967,28 @@
//值班备勤 //值班备勤
let dutyDate = moment().format('yyyy/M/D') let dutyDate = moment().format('yyyy/M/D')
axios.get(`/cms/dutyStandby/list.do`,{params:{dutyDate}}).then(res=>{ axios.get(`/cms/dutyStandby/list.do`, { params: { dutyDate } }).then(res => {
const { rows } = res.data.data const { rows } = res.data.data
if(rows.length){ if (rows.length) {
$('.right_top_con_tr_monitor').text(rows[0].monitor) $('.right_top_con_tr_monitor').text(rows[0].monitor)
$('.right_top_con_tr_deputyMonitor').text(rows[0].policeDuty) $('.right_top_con_tr_deputyMonitor').text(rows[0].policeDuty)
$('.right_top_con_tr_operator').text(rows[0].auxiliaryPoliceDuty) $('.right_top_con_tr_operator').text(rows[0].auxiliaryPoliceDuty)
$('.right_top_con_tr_dutyPerson').text(rows[0].blDutyPerson) $('.right_top_con_tr_dutyPerson').text(rows[0].blDutyPerson)
} }
if($('.right_top_con_tr_monitor').text() == ''){ if ($('.right_top_con_tr_monitor').text() == '') {
$('.right_top_con_tr_monitor').text('/') $('.right_top_con_tr_monitor').text('/')
$('.right_top_con_tr_monitor').css("color", "#999999") $('.right_top_con_tr_monitor').css("color", "#999999")
} }
if($('.right_top_con_tr_deputyMonitor').text() == ''){ if ($('.right_top_con_tr_deputyMonitor').text() == '') {
$('.right_top_con_tr_deputyMonitor').text('/') $('.right_top_con_tr_deputyMonitor').text('/')
$('.right_top_con_tr_deputyMonitor').css("color", "#999999") $('.right_top_con_tr_deputyMonitor').css("color", "#999999")
} }
if($('.right_top_con_tr_operator').text() == ''){ if ($('.right_top_con_tr_operator').text() == '') {
$('.right_top_con_tr_operator').text('/') $('.right_top_con_tr_operator').text('/')
$('.right_top_con_tr_operator').css("color", "#999999") $('.right_top_con_tr_operator').css("color", "#999999")
} }
if($('.right_top_con_tr_dutyPerson').text() == ''){ if ($('.right_top_con_tr_dutyPerson').text() == '') {
$('.right_top_con_tr_dutyPerson').text('/') $('.right_top_con_tr_dutyPerson').text('/')
$('.right_top_con_tr_dutyPerson').css("color", "#999999") $('.right_top_con_tr_dutyPerson').css("color", "#999999")
} }
@ -977,4 +996,5 @@
</script> </script>
</body> </body>
</html> </html>

@ -78,8 +78,8 @@
methods:{ methods:{
handleSelectDept(item){ handleSelectDept(item){
this.dept = item this.dept = item
axios.get(`/ms/cms/phoneContacts/list.do`,{params:{deptName:item}}).then(res=>{ axios.get(`/cms/phoneContacts/list.do`,{params:{deptName:item}}).then(res=>{
this.phoneContactsList = res.data.data.rows this.phoneContactsList = res.data.data
}) })
}, },
pickUp(){ pickUp(){
@ -88,7 +88,7 @@
}, },
mounted(){ mounted(){
//查部门 //查部门
axios.get(`/ms/cms/phoneContacts/getDept.do axios.get(`/cms/phoneContacts/getDept.do
`).then(res=>{ `).then(res=>{
this.deptList = res.data.data this.deptList = res.data.data
this.handleSelectDept(this.deptList[0]) this.handleSelectDept(this.deptList[0])

@ -33,7 +33,7 @@
<div class="wrap"> <div class="wrap">
<div class="chuhuijiyao_nav"> <div class="chuhuijiyao_nav">
<a href='/html/web/index.html'>首页</a>><a <a href='/html/web/index.html'>首页</a>><a
href='/html/web/zhibanbeiqin/index.html'>${field.typetitle}</a> href='/html/web/zhibanbeiqin/index.html'>值班备勤</a>
</div> </div>
<h1 class="chuhuijiyao_title" fieldId="${field.id}">${field.typetitle}</h1> <h1 class="chuhuijiyao_title" fieldId="${field.id}">${field.typetitle}</h1>
<div class="dateCard"> <div class="dateCard">
@ -102,9 +102,7 @@
mounted(){ mounted(){
this.date = moment().format('YYYY/M/D') this.date = moment().format('YYYY/M/D')
let contentId = document.getElementsByClassName('chuhuijiyao_title')[0].getAttribute('fieldid') let contentId = document.getElementsByClassName('chuhuijiyao_title')[0].getAttribute('fieldid')
axios.get(`/cms/dutyStandby/list.do`, { params: { contentId } }).then(res => {
axios.get(`/ms/cms/dutyStandby/list.do`, { params: { contentId } }).then(res => {
console.log(res, 'resresresresresresresres')
this.dutyStandbyList = res.data.data.rows this.dutyStandbyList = res.data.data.rows
}) })
} }

@ -42,6 +42,14 @@
<li id="z_day2"></li> <li id="z_day2"></li>
<div></div> <div></div>
</div> </div>
<div style="display:flex;margin-top:40px" id="zhiban">
<div class="asideBox">
<div class="asideBody" v-for="item in list" :key="item" @click="handleSelect(item)">
<div :style="checked == item?{background:'#004EBD',color:'#fff'}:{}">{{item||'/'}}</div>
</div>
</div>
<div style="display:flex;flex-direction:column;align-items:center;position:relative" v-show="checked == '值班备勤'">
<div class="tableBox">
<div class="tableHeader"> <div class="tableHeader">
<div style="width:16%;border-right:1px solid #E2E2E2">带班长</div> <div style="width:16%;border-right:1px solid #E2E2E2">带班长</div>
<div style="width:28%;border-right:1px solid #E2E2E2">民警值班员</div> <div style="width:28%;border-right:1px solid #E2E2E2">民警值班员</div>
@ -54,8 +62,9 @@
<div class="right_top_con_tr_operator" style="width:28%"></div> <div class="right_top_con_tr_operator" style="width:28%"></div>
<div class="right_top_con_tr_dutyPerson" style="width:28%"></div> <div class="right_top_con_tr_dutyPerson" style="width:28%"></div>
</div> </div>
<ul> </div>
{ms:arclist size=7 ispaging=true} <ul style="width:1140px">
{ms:arclist size=999 typeid=1773193604170002434}
<li class="list_item"> <li class="list_item">
<a href="{ms:global.html/}${field.link}"> <a href="{ms:global.html/}${field.link}">
<div class="chuhuijiyao_li_div"> <div class="chuhuijiyao_li_div">
@ -71,7 +80,37 @@
</li> </li>
{/ms:arclist} {/ms:arclist}
</ul> </ul>
<#include "pagination.htm" /> </div>
<div v-show="checked == '值日警官'">
<div class="tableBox">
<div class="tableHeader">
<div style="width:50%;border-right:1px solid #E2E2E2">值日警官领导岗</div>
<div style="width:50%">值日警官轮值科室</div>
</div>
<div class="tableBody">
<div class="right_top_con_tr_leaderName" style="width:50%"></div>
<div class="right_top_con_tr_deptName" style="width:50%"></div>
</div>
</div>
<ul style="width:1140px">
{ms:arclist size=999 typeid=1773193604170002435}
<li class="list_item">
<a href="{ms:global.html/}${field.link}">
<div class="chuhuijiyao_li_div">
<div class="chuhuijiyao_li_div_div">
<p class="title2">${field.title}</p>
</div>
<label class="chuhuijiyao_date">${field.date?string("yyyy-MM-dd")}</label>
</div>
</a>
<#if field.index==7>
<div class="chuhuijiyao_line" />
</#if>
</li>
{/ms:arclist}
</ul>
</div>
</div>
</div> </div>
<!--正文end--> <!--正文end-->
<#include "footer.htm" /> <#include "footer.htm" />
@ -98,35 +137,75 @@
} }
document.getElementById('z_day1').innerText = day[0]; document.getElementById('z_day1').innerText = day[0];
document.getElementById('z_day2').innerText = day[1]; document.getElementById('z_day2').innerText = day[1];
let dutyDate = moment().format('yyyy/M/D')
//今日值班人员查询 //今日值班人员查询
let dutyDate = moment().format('yyyy/M/D') function dutyStandbyQuery(){
axios.get(`/cms/dutyStandby/list.do`,{params:{dutyDate}}).then(res=>{ axios.get(`/cms/dutyStandby/list.do`, { params: { dutyDate } }).then(res => {
const { rows } = res.data.data const { rows } = res.data.data
if(rows.length){ if (rows.length) {
$('.right_top_con_tr_monitor').text(rows[0].monitor) $('.right_top_con_tr_monitor').text(rows[0].monitor)
$('.right_top_con_tr_deputyMonitor').text(rows[0].policeDuty) $('.right_top_con_tr_deputyMonitor').text(rows[0].policeDuty)
$('.right_top_con_tr_operator').text(rows[0].auxiliaryPoliceDuty) $('.right_top_con_tr_operator').text(rows[0].auxiliaryPoliceDuty)
$('.right_top_con_tr_dutyPerson').text(rows[0].blDutyPerson) $('.right_top_con_tr_dutyPerson').text(rows[0].blDutyPerson)
} }
if($('.right_top_con_tr_monitor').text() == ''){ if ($('.right_top_con_tr_monitor').text() == '') {
$('.right_top_con_tr_monitor').text('/') $('.right_top_con_tr_monitor').text('/')
$('.right_top_con_tr_monitor').css("color", "#999999") $('.right_top_con_tr_monitor').css("color", "#999999")
} }
if($('.right_top_con_tr_deputyMonitor').text() == ''){ if ($('.right_top_con_tr_deputyMonitor').text() == '') {
$('.right_top_con_tr_deputyMonitor').text('/') $('.right_top_con_tr_deputyMonitor').text('/')
$('.right_top_con_tr_deputyMonitor').css("color", "#999999") $('.right_top_con_tr_deputyMonitor').css("color", "#999999")
} }
if($('.right_top_con_tr_operator').text() == ''){ if ($('.right_top_con_tr_operator').text() == '') {
$('.right_top_con_tr_operator').text('/') $('.right_top_con_tr_operator').text('/')
$('.right_top_con_tr_operator').css("color", "#999999") $('.right_top_con_tr_operator').css("color", "#999999")
} }
if($('.right_top_con_tr_dutyPerson').text() == ''){ if ($('.right_top_con_tr_dutyPerson').text() == '') {
$('.right_top_con_tr_dutyPerson').text('/') $('.right_top_con_tr_dutyPerson').text('/')
$('.right_top_con_tr_dutyPerson').css("color", "#999999") $('.right_top_con_tr_dutyPerson').css("color", "#999999")
} }
}) })
}
//今日值日警官查询
function dutyPoliceQuery(){
let dutyDate = moment().format('yyyy/M/D')
axios.get(`/cms/dutyPolice/list.do`, { params: { dutyDate } }).then(res => {
const { rows } = res.data.data
if (rows.length) {
$('.right_top_con_tr_leaderName').text(rows[0].leaderName)
$('.right_top_con_tr_deptName').text(rows[0].deptName)
}
if ($('.right_top_con_tr_leaderName').text() == '') {
$('.right_top_con_tr_leaderName').text('/')
$('.right_top_con_tr_leaderName').css("color", "#999999")
}
if ($('.right_top_con_tr_deptName').text() == '') {
$('.right_top_con_tr_deptName').text('/')
$('.right_top_con_tr_deptName').css("color", "#999999")
}
})
}
var app = new Vue({
el: '#zhiban',
data: {
list: ['值班备勤', '值日警官'],
checked: "值班备勤",
},
methods: {
handleSelect(item) {
this.checked = item
dutyStandbyQuery()
},
},
mounted(){
dutyStandbyQuery()
dutyPoliceQuery()
}
})
</script> </script>
</body> </body>
<style> <style>
@ -145,9 +224,14 @@
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
} }
.dateCard div { .dateCard div {
font-size:16px; font-size: 16px;
margin-right:2px margin-right: 2px
}
.tableBox {
width: 1140px
} }
.tableHeader { .tableHeader {
@ -159,7 +243,6 @@
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
height: 80px; height: 80px;
margin-top: 30px;
} }
.tableHeader div { .tableHeader div {
@ -192,9 +275,27 @@
font-weight: bold; font-weight: bold;
color: #003F91; color: #003F91;
} }
.list_item{
.list_item {
margin-bottom: 29px; margin-bottom: 29px;
} }
.asideBox {
width: 240px;
margin-right: 60px;
border-top: 6px solid #004EBD;
margin-bottom: 50px;
}
.asideBody {
font-size: 18px;
height: 80px;
text-indent: 53px;
color: #000;
line-height: 80px;
background: #F8F8F8;
cursor: pointer;
}
</style> </style>
</html> </html>
Loading…
Cancel
Save