fix:ln新分支删除多余无用代码

ln_ry20250512
wangxy 4 months ago
parent ef2a3921b0
commit ee1a0c104b

@ -1,149 +0,0 @@
package com.ruoyi.web.controller.carrier;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.carrier.TdCarrier;
import com.ruoyi.web.controller.manager.CarrierManager;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.carrier
*
* @author wangxy
* @version JDK 8
* @className CarrierController
* @date 2024/8/21
* @description
*/
@Controller
@RequestMapping("/system/carrier")
public class CarrierController extends BaseController {
private String prefix = "system/carrier";
@Resource
private CarrierManager carrierManager;
@RequiresPermissions("system:carrier:view")
@GetMapping()
public String carrier() {
return prefix + "/carrier";
}
/**
*
*/
@RequiresPermissions("system:carrier:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrier tdCarrier) {
startPage();
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
return getDataTable(carriers);
}
@Resource
private SysAreaManager sysAreaManager;
/**
*
*/
@RequiresPermissions("system:carrier:export")
@Log(title = "国家秘密载体", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdCarrier tdCarrier) {
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
carriers.forEach(tdCarrier1 -> {
tdCarrier1.setAreaCity(sysAreaManager.getAreaName(tdCarrier1.getAreaCity()));
tdCarrier1.setAreaDistrict(sysAreaManager.getAreaName(tdCarrier1.getAreaDistrict()));
});
ExcelUtil<TdCarrier> util = new ExcelUtil<>(TdCarrier.class);
return util.exportExcel(carriers, "国家秘密载体数据");
}
/**
*
*/
@GetMapping("/add")
public String add() {
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:carrier:add")
@Log(title = "国家秘密载体", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdCarrier tdCarrier) {
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
}
/**
*
*/
@RequiresPermissions("system:carrier:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
mmap.put("tdCarrier", tdCarrier);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:carrier:edit")
@Log(title = "国家秘密载体", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCarrier tdCarrier) {
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
}
/**
*
*/
@RequiresPermissions("system:carrier:detail")
@GetMapping("/detail/{id}")
public String detail(@PathVariable("id") String id, ModelMap mmap) {
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
mmap.put("tdCarrier", tdCarrier);
return prefix + "/detail";
}
/**
*
*/
@RequiresPermissions("system:carrier:remove")
@Log(title = "国家秘密载体", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(carrierManager.deletedTdCarrierByids(ids));
}
/**
*
*/
@GetMapping("/updateStatus/{id}/{status}")
@ResponseBody
public AjaxResult updateStatus(@PathVariable("id") String id, @PathVariable("status") String status) {
return toAjax(carrierManager.updateStatus(id, status));
}
}

@ -1,68 +0,0 @@
package com.ruoyi.web.controller.carrier;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.carrier.TdCarrier;
import com.ruoyi.web.controller.manager.CarrierManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* Controller
*/
@Controller
@RequestMapping("/system/destoryCarrier")
public class DestoryCarrierController extends BaseController {
private String prefix = "system/destoryCarrier";
@Resource
private CarrierManager carrierManager;
@RequiresPermissions("system:destoryCarrier:view")
@GetMapping()
public String carrier() {
return prefix + "/destoryCarrier";
}
/**
*
*/
@RequiresPermissions("system:destoryCarrier:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrier tdCarrier) {
startPage();
List<TdCarrier> carriers = carrierManager.selectTdCarrierUpdateList(tdCarrier);
return getDataTable(carriers);
}
/**
*
*/
@RequiresPermissions("system:destoryCarrier:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
mmap.put("tdCarrier", tdCarrier);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:destoryCarrier:edit")
@Log(title = "国家秘密载体销毁", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCarrier tdCarrier) {
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
}
}

@ -1,68 +0,0 @@
package com.ruoyi.web.controller.carrier;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.carrier.TdCarrier;
import com.ruoyi.web.controller.manager.CarrierManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* Controller
*/
@Controller
@RequestMapping("/system/maintainCarrier")
public class MaintainCarrierController extends BaseController {
private String prefix = "system/maintainCarrier";
@Resource
private CarrierManager carrierManager;
@RequiresPermissions("system:maintainCarrier:view")
@GetMapping()
public String carrier() {
return prefix + "/maintainCarrier";
}
/**
*
*/
@RequiresPermissions("system:maintainCarrier:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrier tdCarrier) {
startPage();
List<TdCarrier> carriers = carrierManager.selectTdCarrierUpdateList(tdCarrier);
return getDataTable(carriers);
}
/**
*
*/
@RequiresPermissions("system:maintainCarrier:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
mmap.put("tdCarrier", tdCarrier);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:maintainCarrier:edit")
@Log(title = "国家秘密载体维修", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCarrier tdCarrier) {
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
}
}

@ -1,68 +0,0 @@
package com.ruoyi.web.controller.carrier;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.carrier.TdCarrier;
import com.ruoyi.web.controller.manager.CarrierManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* Controller
*/
@Controller
@RequestMapping("/system/recCarrier")
public class ReceiveCarrierController extends BaseController {
private String prefix = "system/recCarrier";
@Resource
private CarrierManager carrierManager;
@RequiresPermissions("system:recCarrier:view")
@GetMapping()
public String carrier() {
return prefix + "/recCarrier";
}
/**
*
*/
@RequiresPermissions("system:recCarrier:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrier tdCarrier) {
startPage();
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
return getDataTable(carriers);
}
/**
*
*/
@RequiresPermissions("system:recCarrier:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
mmap.put("tdCarrier", tdCarrier);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:recCarrier:edit")
@Log(title = "载体收发传递", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCarrier tdCarrier) {
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
}
}

@ -1,69 +0,0 @@
package com.ruoyi.web.controller.carrier;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.carrier.TdCarrier;
import com.ruoyi.web.controller.manager.CarrierManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* Controller
*/
@Controller
@RequestMapping("system/saveCarrier")
public class SaveCarrierController extends BaseController {
private String prefix = "system/saveCarrier";
@Resource
private CarrierManager carrierManager;
@RequiresPermissions("system:saveCarrier:view")
@GetMapping()
public String carrier() {
return prefix + "/saveCarrier";
}
/**
*
*/
@RequiresPermissions("system:saveCarrier:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrier tdCarrier) {
startPage();
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
return getDataTable(carriers);
}
/**
*
*/
@RequiresPermissions("system:saveCarrier:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
mmap.put("tdCarrier", tdCarrier);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:saveCarrier:edit")
@Log(title = "国家秘密载体保存", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCarrier tdCarrier) {
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
}
}

@ -1,69 +0,0 @@
package com.ruoyi.web.controller.carrier;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.carrier.TdCarrier;
import com.ruoyi.web.controller.manager.CarrierManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 使Controller
*/
@Controller
@RequestMapping("/system/useCarrier")
public class UseCarrierController extends BaseController {
private String prefix = "system/useCarrier";
@Resource
private CarrierManager carrierManager;
@RequiresPermissions("system:useCarrier:view")
@GetMapping()
public String carrier() {
return prefix + "/useCarrier";
}
/**
*
*/
@RequiresPermissions("system:useCarrier:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrier tdCarrier) {
startPage();
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
return getDataTable(carriers);
}
/**
* 使
*/
@RequiresPermissions("system:useCarrier:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
mmap.put("tdCarrier", tdCarrier);
return prefix + "/edit";
}
/**
* 使
*/
@RequiresPermissions("system:useCarrier:edit")
@Log(title = "国家秘密载体使用", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCarrier tdCarrier) {
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
}
}

@ -1,152 +0,0 @@
package com.ruoyi.web.controller.carrier.issued;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.carrier.TdCarrier;
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* ClassName: CarrierIssuedController
* Package: com.ruoyi.web.controller.carrier.Issued
* Description:
*
* @Author wangxy
* @Create 2024/9/24 10:23
* @Version 1.0
*/
@Controller
@RequestMapping("/system/carrierIssued")
public class CarrierIssuedController extends BaseController {
private String prefix = "system/carrierIssued";
@Resource
private CarrierIssuedManager carrierIssuedManager;
@Resource
private SysAreaManager sysAreaManager;
@RequiresPermissions("system:carrierIssued:view")
@GetMapping()
public String carrierIssued() {
return prefix + "/carrierIssued";
}
/**
*
*/
@RequiresPermissions("system:carrierIssued:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
startPage();
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierList(tdCarrierIssued);
return getDataTable(carriers);
}
/**
*
*/
@RequiresPermissions("system:carrierIssued:export")
@Log(title = "国家秘密载体", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdCarrierIssued tdCarrierIssued) {
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierList(tdCarrierIssued);
carriers.forEach(tdCarrier1 -> {
tdCarrier1.setAreaCity(sysAreaManager.getAreaName(tdCarrier1.getAreaCity()));
tdCarrier1.setAreaDistrict(sysAreaManager.getAreaName(tdCarrier1.getAreaDistrict()));
});
ExcelUtil<TdCarrierIssued> util = new ExcelUtil<>(TdCarrierIssued.class);
return util.exportExcel(carriers, "国家秘密载体数据");
}
/**
*
*/
@GetMapping("/add")
public String add() {
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:carrierIssued:add")
@Log(title = "国家秘密载体登记", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdCarrierIssued tdCarrierIssued) {
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
}
/**
*
*/
@RequiresPermissions("system:carrierIssued:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
mmap.put("tdCarrierIssued", tdCarrierIssued);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:carrierIssued:edit")
@Log(title = "国家秘密载体修改", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
}
/**
*
*/
@RequiresPermissions("system:carrierIssued:detail")
@GetMapping("/detail/{id}")
public String detail(@PathVariable("id") String id, ModelMap mmap) {
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
mmap.put("tdCarrierIssued", tdCarrierIssued);
return prefix + "/detail";
}
/**
*
*/
@RequiresPermissions("system:carrier:remove")
@Log(title = "国家秘密载体", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(carrierIssuedManager.deletedTdCarrierByids(ids));
}
}

@ -1,70 +0,0 @@
package com.ruoyi.web.controller.carrier.issued;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* Controller
* @author Administrator
*/
@Controller
@RequestMapping("/system/destoryIssued")
public class DestoryIssuedController extends BaseController {
private String prefix = "system/destoryIssued";
@Resource
private CarrierIssuedManager carrierIssuedManager;
@RequiresPermissions("system:destoryIssued:view")
@GetMapping()
public String destoryIssued() {
return prefix + "/destoryIssued";
}
/**
*
*/
@RequiresPermissions("system:destoryIssued:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
startPage();
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierList(tdCarrierIssued);
return getDataTable(carriers);
}
/**
*
*/
@RequiresPermissions("system:destoryIssued:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
mmap.put("tdCarrierIssued", tdCarrierIssued);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:destoryIssued:edit")
@Log(title = "国家秘密载体销毁", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
tdCarrierIssued.setStatus("6");
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
}
}

@ -1,68 +0,0 @@
package com.ruoyi.web.controller.carrier.issued;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* Controller
*/
@Controller
@RequestMapping("/system/maintainIssued")
public class MaintainIssuedController extends BaseController {
private String prefix = "system/maintainIssued";
@Resource
private CarrierIssuedManager carrierIssuedManager;
@RequiresPermissions("system:maintainIssued:view")
@GetMapping()
public String maintainIssued() {
return prefix + "/maintainIssued";
}
/**
*
*/
@RequiresPermissions("system:maintainIssued:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
startPage();
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierUpdateList(tdCarrierIssued);
return getDataTable(carriers);
}
/**
*
*/
@RequiresPermissions("system:maintainIssued:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
mmap.put("tdCarrierIssued", tdCarrierIssued);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:maintainIssued:edit")
@Log(title = "国家秘密载体维修", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
tdCarrierIssued.setStatus("5");
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
}
}

@ -1,71 +0,0 @@
package com.ruoyi.web.controller.carrier.issued;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* Controller
* @author Administrator
*/
@Controller
@RequestMapping("system/saveIssued")
public class SaveIssuedController extends BaseController {
private String prefix = "system/saveIssued";
@Resource
private CarrierIssuedManager carrierIssuedManager;
@RequiresPermissions("system:saveIssued:view")
@GetMapping()
public String saveIssued() {
return prefix + "/saveIssued";
}
/**
*
*/
@RequiresPermissions("system:saveIssued:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
startPage();
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierSaveList(tdCarrierIssued);
return getDataTable(carriers);
}
/**
*
*/
@RequiresPermissions("system:saveIssued:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
mmap.put("tdCarrierIssued", tdCarrierIssued);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:saveIssued:edit")
@Log(title = "国家秘密载体保存", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
tdCarrierIssued.setStatus("4");
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
}
}

@ -1,84 +0,0 @@
package com.ruoyi.web.controller.carrier.issued;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 使Controller
*/
@Controller
@RequestMapping("/system/useIssued")
public class UseIssuedController extends BaseController {
private String prefix = "system/useIssued";
@Resource
private CarrierIssuedManager carrierIssuedManager;
@RequiresPermissions("system:useIssued:view")
@GetMapping()
public String useIssued() {
return prefix + "/useIssued";
}
/**
*
*/
@RequiresPermissions("system:useIssued:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
startPage();
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierUserList(tdCarrierIssued);
return getDataTable(carriers);
}
/**
* 使
*/
@RequiresPermissions("system:useIssued:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
mmap.put("tdCarrierIssued", tdCarrierIssued);
return prefix + "/edit";
}
/**
* 使
*/
@RequiresPermissions("system:useIssued:edit")
@Log(title = "国家秘密载体使用", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
tdCarrierIssued.setStatus("2");
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
}
/**
*
*/
@GetMapping("/updateStatus/{id}")
@ResponseBody
public AjaxResult updateStatus(@PathVariable("id") String id) {
return toAjax(carrierIssuedManager.updateStatus(id));
}
}

@ -1,79 +0,0 @@
package com.ruoyi.web.controller.manager;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.CharSequenceUtil;
import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
import com.ruoyi.system.service.carrier.TdCarrierIssuedService;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
* ClassName: TdCarrierIssuedManager
* Package: com.ruoyi.web.controller.manager
* Description:
*
* @Author wangxy
* @Create 2024/9/24 10:21
* @Version 1.0
*/
@Component
public class CarrierIssuedManager {
@Resource
private TdCarrierIssuedService carrierIssuedService;
public List<TdCarrierIssued> selectTdCarrierList(TdCarrierIssued tdCarrierIssued) {
return carrierIssuedService.selectTdCarrierList(tdCarrierIssued);
}
public List<TdCarrierIssued> selectTdCarrierUpdateList(TdCarrierIssued tdCarrierIssued) {
return carrierIssuedService.selectTdCarrierUpdateList(tdCarrierIssued);
}
public List<TdCarrierIssued> selectTdCarrierUserList(TdCarrierIssued tdCarrierIssued) {
return carrierIssuedService.selectTdCarrierUserList(tdCarrierIssued);
}
public List<TdCarrierIssued> selectTdCarrierSaveList(TdCarrierIssued tdCarrierIssued) {
return carrierIssuedService.selectTdCarrierSaveList(tdCarrierIssued);
}
public boolean saveOrUpdate(TdCarrierIssued tdCarrierIssued) {
if (CharSequenceUtil.isNotBlank(tdCarrierIssued.getId())) {
tdCarrierIssued.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
tdCarrierIssued.setUpdateTime(new Date());
} else {
tdCarrierIssued.setCreateBy(ShiroUtils.getSysUser().getLoginName());
tdCarrierIssued.setCreateTime(new Date());
}
tdCarrierIssued.setDeptId(ShiroUtils.getSysUser().getDeptId());
return carrierIssuedService.saveOrUpdate(tdCarrierIssued);
}
public TdCarrierIssued selectTdCarrier(String id) {
return carrierIssuedService.getById(id);
}
public boolean deletedTdCarrierByids(String ids) {
List<String> list = Arrays.asList(Convert.toStrArray(ids));
return carrierIssuedService.removeByIds(list);
}
public boolean updateStatus(String id) {
return carrierIssuedService.lambdaUpdate()
.eq(TdCarrierIssued::getId,id)
.set(TdCarrierIssued::getStatus,"3")
.set(TdCarrierIssued::getReclaimTime,new Date())
.update();
}
}

@ -1,72 +0,0 @@
package com.ruoyi.web.controller.manager;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.CharSequenceUtil;
import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.system.domain.carrier.TdCarrier;
import com.ruoyi.system.service.carrier.TdCarrierService;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.manager
*
* @author wangxy
* @version JDK 8
* @className CarrierManager
* @date 2024/8/21
* @description
*/
@Component
public class CarrierManager {
@Resource
private TdCarrierService carrierService;
public List<TdCarrier> selectTdCarrierList(TdCarrier tdCarrier) {
return carrierService.selectTdCarrierList(tdCarrier);
}
public List<TdCarrier> selectTdCarrierUpdateList(TdCarrier tdCarrier) {
return carrierService.selectTdCarrierUpdateList(tdCarrier);
}
public boolean saveOrUpdate(TdCarrier tdCarrier) {
if (CharSequenceUtil.isNotBlank(tdCarrier.getId())) {
tdCarrier.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
tdCarrier.setUpdateTime(new Date());
} else {
tdCarrier.setCreateBy(ShiroUtils.getSysUser().getLoginName());
tdCarrier.setCreateTime(new Date());
}
tdCarrier.setDeptId(ShiroUtils.getSysUser().getDeptId());
return carrierService.saveOrUpdate(tdCarrier);
}
public TdCarrier selectTdCarrier(String id) {
return carrierService.getById(id);
}
public boolean deletedTdCarrierByids(String ids) {
List<String> list = Arrays.asList(Convert.toStrArray(ids));
return carrierService.removeByIds(list);
}
public boolean updateStatus(String id,String status) {
return carrierService.lambdaUpdate()
.eq(TdCarrier::getId,id)
.set(TdCarrier::getStatus,status)
.update();
}
}

@ -1,60 +0,0 @@
package com.ruoyi.web.controller.manager;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.CharSequenceUtil;
import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.system.domain.secreting.TdSecreting;
import com.ruoyi.system.service.secreting.TdSecretingService;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.manager
*
* @author luo
* @version JDK 8
* @className SecretManager
* @description
*/
@Component
public class SecretManager {
@Resource
private TdSecretingService secretingService;
public List<TdSecreting> selectSecretList(TdSecreting tdSecreting) {
return secretingService.selectSecretList(tdSecreting);
}
public boolean saveOrUpdate(TdSecreting tdSecreting) {
if (CharSequenceUtil.isNotBlank(tdSecreting.getId())) {
tdSecreting.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
tdSecreting.setUpdateTime(new Date());
} else {
tdSecreting.setCreateBy(ShiroUtils.getSysUser().getLoginName());
tdSecreting.setCreateTime(new Date());
}
tdSecreting.setDeptId(ShiroUtils.getSysUser().getDeptId());
return secretingService.saveOrUpdate(tdSecreting);
}
public TdSecreting selectSecreting(String id) {
return secretingService.getById(id);
}
public boolean deleteSecretingByIds(String ids) {
List<String> list = Arrays.asList(Convert.toStrArray(ids));
return secretingService.removeByIds(list);
}
}

@ -1,57 +0,0 @@
package com.ruoyi.web.controller.manager;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.CharSequenceUtil;
import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.system.domain.tdcase.TdCase;
import com.ruoyi.system.service.tdcase.TdCaseService;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.manager
*
* @author wangxy
* @version JDK 8
* @className TdCaseManager
* @date 2024/8/13
* @description
*/
@Component
public class TdCaseManager {
@Resource
private TdCaseService caseService;
public List<TdCase> selecttdCaseList(TdCase tdCase) {
return caseService.selectTdCaseList(tdCase);
}
public boolean saveOrUpdate(TdCase tdCase) {
if (CharSequenceUtil.isNotBlank(tdCase.getId())) {
tdCase.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
tdCase.setUpdateTime(new Date());
} else {
tdCase.setCreateBy(ShiroUtils.getSysUser().getLoginName());
tdCase.setCreateTime(new Date());
}
return caseService.saveOrUpdate(tdCase);
}
public TdCase selecttdCase(String id) {
return caseService.getById(id);
}
public boolean deletedCaseByids(String ids) {
List<String> list = Arrays.asList(Convert.toStrArray(ids));
return caseService.removeByIds(list);
}
public List<TdCase> selectList() {
return caseService.lambdaQuery().list();
}
}

@ -1,61 +0,0 @@
package com.ruoyi.web.controller.manager;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.CharSequenceUtil;
import cn.hutool.core.util.StrUtil;
import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.domain.TdMeeting;
import com.ruoyi.system.service.TdMeetingService;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.manager
*
* @author wangxy
* @version JDK 8
* @className TdMeetingManager
* @date 2024/8/6
* @description
*/
@Component
public class TdMeetingManager {
@Resource
private TdMeetingService meetingService;
public List<TdMeeting> selectTdMeetingList(TdMeeting tdMeeting) {
return meetingService.selectTdMeetingList(tdMeeting);
}
public boolean saveOrUpdate(TdMeeting tdMeeting) {
if (CharSequenceUtil.isNotBlank(tdMeeting.getId())) {
tdMeeting.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
tdMeeting.setUpdateTime(new Date());
} else {
tdMeeting.setCreateBy(ShiroUtils.getSysUser().getLoginName());
tdMeeting.setCreateTime(new Date());
}
tdMeeting.setDeptId(ShiroUtils.getSysUser().getDeptId());
return meetingService.saveOrUpdate(tdMeeting);
}
public TdMeeting selectTdMeeting(String id) {
return meetingService.getById(id);
}
public boolean deleteTdMeetingByIds(String ids) {
List<String> list = Arrays.asList(Convert.toStrArray(ids));
return meetingService.removeByIds(list);
}
}

@ -1,83 +0,0 @@
package com.ruoyi.web.controller.manager;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.CharSequenceUtil;
import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.system.domain.place.TdPlace;
import com.ruoyi.system.service.place.TdPlaceService;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.manager
*
* @author wangxy
* @version JDK 8
* @className TdPlaceManager
* @date 2024/8/13
* @description
*/
@Component
public class TdPlaceManager {
@Resource
private TdPlaceService placeService;
public List<TdPlace> selectTdPlaceList(TdPlace tdPlace) {
return placeService.selectTdPlaceList(tdPlace);
}
public List<TdPlace> selectTdPlaceChangeList(TdPlace tdPlace) {
return placeService.selectTdPlaceChangeList(tdPlace);
}
public boolean saveOrUpdate(TdPlace tdPlace) {
if (CharSequenceUtil.isNotBlank(tdPlace.getId())) {
tdPlace.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
tdPlace.setUpdateTime(new Date());
} else {
tdPlace.setCreateBy(ShiroUtils.getSysUser().getLoginName());
tdPlace.setCreateTime(new Date());
}
tdPlace.setState("1");
tdPlace.setIsDissolve("0");
tdPlace.setAfterName(tdPlace.getPlaceName());
tdPlace.setAfterRule(tdPlace.getPlaceRule());
tdPlace.setDeptId(ShiroUtils.getSysUser().getDeptId());
return placeService.saveOrUpdate(tdPlace);
}
public boolean updateChange(TdPlace tdPlace) {
tdPlace.setAfterTime(new Date());
tdPlace.setState("2");
tdPlace.setDeptId(ShiroUtils.getSysUser().getDeptId());
return placeService.saveOrUpdate(tdPlace);
}
public TdPlace selectTdPlace(String id) {
return placeService.getById(id);
}
public boolean deletedPlaceByids(String ids) {
List<String> list = Arrays.asList(Convert.toStrArray(ids));
return placeService.lambdaUpdate()
.in(TdPlace::getId,list)
.set(TdPlace::getState,"0").update();
}
public List<TdPlace> selectList() {
return placeService.lambdaQuery().list();
}
public TdPlace selectById(Long id) {
return placeService.getById(id);
}
}

@ -1,58 +0,0 @@
package com.ruoyi.web.controller.manager;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.CharSequenceUtil;
import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.system.domain.place.TdPlaceRegist;
import com.ruoyi.system.service.place.TdPlaceRegistService;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.manager
*
* @author wangxy
* @version JDK 8
* @className TdPlaceRegistManager
* @date 2024/8/13
* @description
*/
@Component
public class TdPlaceRegistManager {
@Resource
private TdPlaceRegistService placeRegistService;
public List<TdPlaceRegist> selectTdPlaceRegistList(TdPlaceRegist tdPlaceRegist) {
return placeRegistService.selectTdPlaceRegistList(tdPlaceRegist);
}
public boolean saveOrUpdate(TdPlaceRegist tdPlaceRegist) {
if (CharSequenceUtil.isNotBlank(tdPlaceRegist.getId())) {
tdPlaceRegist.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
tdPlaceRegist.setUpdateTime(new Date());
} else {
tdPlaceRegist.setCreateBy(ShiroUtils.getSysUser().getLoginName());
tdPlaceRegist.setCreateTime(new Date());
}
return placeRegistService.saveOrUpdate(tdPlaceRegist);
}
public TdPlaceRegist selectTdPlaceRegist(String id) {
return placeRegistService.getById(id);
}
public boolean deleteTdPlaceRegistByids(String ids) {
List<String> list = Arrays.asList(Convert.toStrArray(ids));
return placeRegistService.removeByIds(list);
}
}

@ -1,52 +0,0 @@
package com.ruoyi.web.controller.manager;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.CharSequenceUtil;
import com.ruoyi.system.domain.TdPropertyEment;
import com.ruoyi.system.service.TdPropertyEmentService;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.manager
*
* @author wangxy
* @version JDK 8
* @className TdPropertyEmentManager
* @date 2024/8/20
* @description
*/
@Component
public class TdPropertyEmentManager {
@Resource
private TdPropertyEmentService tdPropertyEmentService;
public List<TdPropertyEment> selectEmentList(TdPropertyEment tdPropertyEment) {
return tdPropertyEmentService.selectEmentList(tdPropertyEment);
}
public boolean saveOrUpdate(TdPropertyEment tdPropertyEment) {
if (CharSequenceUtil.isBlank(tdPropertyEment.getId())) {
tdPropertyEment.setCreateTime(new Date());
}
return tdPropertyEmentService.saveOrUpdate(tdPropertyEment);
}
public TdPropertyEment selecttdEment(String id) {
return tdPropertyEmentService.getById(id);
}
public boolean deletedEmentByids(String ids) {
List<String> list = Arrays.asList(Convert.toStrArray(ids));
return tdPropertyEmentService.removeByIds(list);
}
public List<TdPropertyEment> selectList() {
return tdPropertyEmentService.lambdaQuery().list();
}
}

@ -1,91 +0,0 @@
package com.ruoyi.web.controller.place;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.place.TdPlace;
import com.ruoyi.web.controller.manager.TdPlaceManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.place
*
* @author wangxy
* @version JDK 8
* @className TdPlaceController
* @date 2024/8/13
* @description
*/
@Controller
@RequestMapping("/system/placeChange")
public class TdPlaceChangeController extends BaseController {
private String prefix = "system/placeChange";
@Resource
private TdPlaceManager placeManager;
@RequiresPermissions("system:placeChange:view")
@GetMapping()
public String place() {
return prefix + "/placeChange";
}
/**
*
*/
@RequiresPermissions("system:placeChange:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPlace tdPlace) {
startPage();
List<TdPlace> tdPlaces = placeManager.selectTdPlaceChangeList(tdPlace);
return getDataTable(tdPlaces);
}
/**
*
*/
@RequiresPermissions("system:placeChange:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdPlace tdPlace = placeManager.selectTdPlace(id);
mmap.put("tdPlace", tdPlace);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:placeChange:edit")
@Log(title = "涉密场所变更", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdPlace tdPlace) {
return toAjax(placeManager.updateChange(tdPlace));
}
/**
*
*/
@RequiresPermissions("system:placeChange:detail")
@GetMapping("/detail/{id}")
public String detail(@PathVariable("id") String id, ModelMap mmap) {
TdPlace tdPlace = placeManager.selectTdPlace(id);
mmap.put("tdPlace", tdPlace);
return prefix + "/detail";
}
}

@ -1,142 +0,0 @@
package com.ruoyi.web.controller.place;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.place.TdPlace;
import com.ruoyi.web.controller.manager.TdPlaceManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.place
*
* @author wangxy
* @version JDK 8
* @className TdPlaceController
* @date 2024/8/13
* @description
*/
@Controller
@RequestMapping("/system/place")
public class TdPlaceController extends BaseController {
private String prefix = "system/place";
@Resource
private TdPlaceManager placeManager;
@RequiresPermissions("system:place:view")
@GetMapping()
public String place() {
return prefix + "/place";
}
/**
*
*/
@RequiresPermissions("system:place:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPlace tdPlace) {
startPage();
List<TdPlace> tdPlaces = placeManager.selectTdPlaceList(tdPlace);
return getDataTable(tdPlaces);
}
/**
*
*/
@GetMapping("/add")
public String add() {
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:place:add")
@Log(title = "涉密场所", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdPlace tdPlace) {
return toAjax(placeManager.saveOrUpdate(tdPlace));
}
/**
*
*/
@RequiresPermissions("system:place:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdPlace tdPlace = placeManager.selectTdPlace(id);
mmap.put("tdPlace", tdPlace);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:place:edit")
@Log(title = "涉密场所", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdPlace tdPlace) {
return toAjax(placeManager.saveOrUpdate(tdPlace));
}
/**
*
*/
@RequiresPermissions("system:place:detail")
@GetMapping("/detail/{id}")
public String detail(@PathVariable("id") String id, ModelMap mmap) {
TdPlace tdPlace = placeManager.selectTdPlace(id);
mmap.put("tdPlace", tdPlace);
return prefix + "/detail";
}
/**
*
*/
@RequiresPermissions("system:place:remove")
@Log(title = "涉密场所", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(placeManager.deletedPlaceByids(ids));
}
/**
*
*
* @return com.ruoyi.common.core.domain.AjaxResult
*/
@PostMapping("/getList")
@ResponseBody
public AjaxResult getList(@RequestParam(value = "placeId", required = false) Long placeId) {
if (placeId == null) {
return AjaxResult.success(placeManager.selectList());
} else {
TdPlace place = placeManager.selectById(placeId);
if (place != null) {
return AjaxResult.success(place);
} else {
return AjaxResult.error("数据不存在");
}
}
}
}

@ -1,123 +0,0 @@
package com.ruoyi.web.controller.place;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.place.TdPlaceRegist;
import com.ruoyi.web.controller.manager.TdPlaceRegistManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.place
*
* @author wangxy
* @version JDK 8
* @className TdPlaceRegistController
* @date 2024/8/13
* @description
*/
@Controller
@RequestMapping("/system/placeRegist")
public class TdPlaceRegistController extends BaseController {
private String prefix = "system/placeRegist";
@Resource
private TdPlaceRegistManager placeRegistManager;
@RequiresPermissions("system:placeRegist:view")
@GetMapping()
public String placeRegist() {
return prefix + "/placeRegist";
}
/**
*
*/
@RequiresPermissions("system:placeRegist:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPlaceRegist tdPlaceRegist) {
startPage();
List<TdPlaceRegist> tdPlaceRegists = placeRegistManager.selectTdPlaceRegistList(tdPlaceRegist);
return getDataTable(tdPlaceRegists);
}
/**
*
*/
@GetMapping("/add")
public String add() {
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:placeRegist:add")
@Log(title = "场所出入登记", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdPlaceRegist tdPlaceRegist) {
return toAjax(placeRegistManager.saveOrUpdate(tdPlaceRegist));
}
/**
*
*/
@RequiresPermissions("system:placeRegist:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdPlaceRegist tdPlaceRegist = placeRegistManager.selectTdPlaceRegist(id);
mmap.put("tdPlaceRegist", tdPlaceRegist);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:placeRegist:edit")
@Log(title = "场所出入登记", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdPlaceRegist tdPlaceRegist) {
return toAjax(placeRegistManager.saveOrUpdate(tdPlaceRegist));
}
/**
*
*/
@RequiresPermissions("system:placeRegist:detail")
@GetMapping("/detail/{id}")
public String detail(@PathVariable("id") String id, ModelMap mmap) {
TdPlaceRegist tdPlaceRegist = placeRegistManager.selectTdPlaceRegist(id);
mmap.put("tdPlaceRegist", tdPlaceRegist);
return prefix + "/detail";
}
/**
*
*/
@RequiresPermissions("system:placeRegist:remove")
@Log(title = "场所出入登记", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(placeRegistManager.deleteTdPlaceRegistByids(ids));
}
}

@ -1,110 +0,0 @@
package com.ruoyi.web.controller.secret;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.secreting.TdSecreting;
import com.ruoyi.web.controller.manager.SecretManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* @author Administrator
*/
@Controller
@RequestMapping("/system/secreting")
public class TdSecretingController extends BaseController {
private String prefix = "system/secreting";
@Resource
private SecretManager secretManager;
@RequiresPermissions("system:secreting:view")
@GetMapping()
public String secreting() {
return prefix + "/secreting";
}
/**
*
*/
@RequiresPermissions("system:secreting:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdSecreting tdSecreting) {
startPage();
List<TdSecreting> tdSecretings = secretManager.selectSecretList(tdSecreting);
return getDataTable(tdSecretings);
}
/**
*
*/
@GetMapping("/add")
public String add() {
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:secreting:add")
@Log(title = "定密事项管理", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdSecreting tdSecreting) {
return toAjax(secretManager.saveOrUpdate(tdSecreting));
}
/**
*
*/
@RequiresPermissions("system:secreting:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdSecreting tdSecreting = secretManager.selectSecreting(id);
mmap.put("tdSecreting", tdSecreting);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:secreting:edit")
@Log(title = "定密事项管理", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdSecreting tdSecreting) {
return toAjax(secretManager.saveOrUpdate(tdSecreting));
}
/**
*
*/
@RequiresPermissions("system:secreting:detail")
@GetMapping("/detail/{id}")
public String detail(@PathVariable("id") String id, ModelMap mmap) {
TdSecreting tdSecreting = secretManager.selectSecreting(id);
mmap.put("tdSecreting", tdSecreting);
return prefix + "/detail";
}
/**
*
*/
@RequiresPermissions("system:secreting:remove")
@Log(title = "定密事项管理", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(secretManager.deleteSecretingByIds(ids));
}
}

@ -1,139 +0,0 @@
package com.ruoyi.web.controller.system.check;
import java.util.List;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdNotify;
import com.ruoyi.system.service.ITdNotifyService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
/**
* Controller
*
* @author ruoyi
* @date 2024-05-06
*/
@Controller
@RequestMapping("/system/notify")
public class TdNotifyController extends BaseController
{
private String prefix = "system/notify";
@Autowired
private ITdNotifyService tdNotifyService;
@Resource
private SysAreaManager sysAreaManager;
@RequiresPermissions("system:notify:view")
@GetMapping()
public String notice()
{
return prefix + "/notify";
}
/**
*
*/
@RequiresPermissions("system:notify:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdNotify tdNotify)
{
startPage();
List<TdNotify> list = tdNotifyService.selectTdNotifyList(tdNotify);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:notify:export")
@Log(title = "检查通知", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdNotify tdNotify)
{
List<TdNotify> list = tdNotifyService.selectTdNotifyList(tdNotify);
list.forEach(tdNotify1 -> {
tdNotify1.setFramework(sysAreaManager.getAreaName(tdNotify1.getFramework()));
tdNotify1.setArea(sysAreaManager.getAreaName(tdNotify1.getArea()));
});
ExcelUtil<TdNotify> util = new ExcelUtil<TdNotify>(TdNotify.class);
return util.exportExcel(list, "检查通知数据");
}
/**
*
*/
@GetMapping("/add")
public String add(ModelMap mmap)
{
mmap.put("sysuser", getSysUser());
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:notify:add")
@Log(title = "检查通知", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdNotify tdNotify)
{
return toAjax(tdNotifyService.insertTdNotify(tdNotify));
}
/**
*
*/
@RequiresPermissions("system:notify:edit")
@GetMapping("/edit/{notifyId}")
public String edit(@PathVariable("notifyId") Long notifyId, ModelMap mmap)
{
TdNotify tdNotify = tdNotifyService.selectTdNotifyByNotifyId(notifyId);
mmap.put("tdNotify", tdNotify);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:notify:edit")
@Log(title = "检查通知", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdNotify tdNotify)
{
return toAjax(tdNotifyService.updateTdNotify(tdNotify));
}
/**
*
*/
@RequiresPermissions("system:notify:remove")
@Log(title = "检查通知", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tdNotifyService.deleteTdNotifyByNotifyIds(ids));
}
}

@ -1,171 +0,0 @@
package com.ruoyi.web.controller.system.count;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdFileProvide;
import com.ruoyi.system.domain.TdFileReceive;
import com.ruoyi.system.domain.carrier.TdCarrier;
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
import com.ruoyi.system.service.ISysDictDataService;
import com.ruoyi.system.service.ITdFileProvideService;
import com.ruoyi.system.service.ITdFileReceiveService;
import com.ruoyi.system.service.carrier.TdCarrierIssuedService;
import com.ruoyi.system.service.carrier.TdCarrierService;
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
import com.ruoyi.web.controller.manager.CarrierManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
/**
*
*/
@Controller
@RequestMapping("/system/filenum")
public class SysFilenumController extends BaseController {
private String prefix = "system/fileprovide/filenum";
@Resource
private CarrierManager carrierManager;
@Resource
private TdCarrierService carrierService;
@RequiresPermissions("system:filenum:view")
@GetMapping()
public String fileprovide() {
return prefix + "/filenum";
}
/**
*
*/
@RequiresPermissions("system:filenum:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCarrier tdCarrier) {
startPage();
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
return getDataTable(carriers);
}
/**
*
*/
@RequiresPermissions("system:filenum:print")
@GetMapping("/print/{id}")
@Log(title = "文件统计", businessType = BusinessType.PRINT)
public String print(@PathVariable("id") String id, ModelMap mmap) {
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
mmap.put("tdCarrier", tdCarrier);
mmap.put("sysuser", getSysUser());
return prefix + "/print";
}
@Autowired
private ISysDictDataService dictDataService;
/**
* -
*
* @return com.ruoyi.common.core.domain.AjaxResult
*/
@PostMapping("/countLevel")
@ResponseBody
public AjaxResult countLevel() {
List<SysDictData> smType = dictDataService.selectDictDataByType("sys_carrier_status");
List<String> list = smType.stream().map(SysDictData::getDictLabel).collect(Collectors.toList());
List<Long> yAxisData = new ArrayList<>();
smType.forEach(xAxis -> {
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
Integer count = carrierService.lambdaQuery()
.eq(TdCarrier::getStatus, xAxis.getDictValue())
.count();
yAxis.set(Long.valueOf(count));
yAxisData.add(yAxis.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", list.toArray());
obj.put("yAxisData", yAxisData);
return AjaxResult.success(obj);
}
@Resource
private TdCarrierIssuedService carrierIssuedService;
@Resource
private CarrierIssuedManager carrierIssuedManager;
/**
* -
*
* @return com.ruoyi.common.core.domain.AjaxResult
*/
@PostMapping("/countSecret")
@ResponseBody
public AjaxResult countSecret() {
List<SysDictData> smType = dictDataService.selectDictDataByType("carrier_issued_status");
List<JSONObject> jsonObjects = new ArrayList<>();
smType.forEach(xAxis -> {
AtomicReference<Long> value = new AtomicReference<>(0L);
Integer count = carrierIssuedService.lambdaQuery()
.eq(TdCarrierIssued::getStatus, xAxis.getDictValue())
.count();
value.set(Long.valueOf(count));
JSONObject jsonObject = new JSONObject();
jsonObject.put("value", value.get());
jsonObject.put("name", xAxis.getDictLabel());
jsonObjects.add(jsonObject);
});
return AjaxResult.success(jsonObjects);
}
/**
*
* @return
*/
@GetMapping("/fileIssued")
public String fileIssued() {
return prefix + "/fileIssued";
}
/**
*
*/
@PostMapping("/listIssued")
@ResponseBody
public TableDataInfo listIssued(TdCarrierIssued tdCarrierIssued) {
startPage();
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierList(tdCarrierIssued);
return getDataTable(carriers);
}
/**
*
*/
@GetMapping("/printIssued/{id}")
@Log(title = "文件统计", businessType = BusinessType.PRINT)
public String printIssued(@PathVariable("id") String id, ModelMap mmap) {
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
mmap.put("tdCarrierIssued", tdCarrierIssued);
mmap.put("sysuser", getSysUser());
return prefix + "/printIssued";
}
}

@ -1,138 +0,0 @@
package com.ruoyi.web.controller.system.count;
import cn.hutool.core.text.StrPool;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
import com.ruoyi.system.domain.TdMeeting;
import com.ruoyi.system.service.TdMeetingService;
import com.ruoyi.web.controller.manager.TdMeetingManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.time.LocalDate;
import java.time.ZoneId;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;
/**
*
*/
@Controller
@RequestMapping("/system/meetingnum")
public class SysMeetingnumController extends BaseController {
private String prefix = "system/tdmeeting/meetingnum";
@Resource
private TdMeetingService tdMeetingService;
@Resource
private TdMeetingManager tdMeetingManager;
@RequiresPermissions("system:meetingnum:view")
@GetMapping()
public String meetingnum() {
return prefix + "/meetingnum";
}
/**
*
*/
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdMeeting tdMeeting) {
startPage();
List<TdMeeting> tdMeetings = tdMeetingManager.selectTdMeetingList(tdMeeting);
return getDataTable(tdMeetings);
}
/**
* 12
*
* @return
*/
@PostMapping("/countMeetingMonth")
@ResponseBody
public AjaxResult countMeetingMonth() {
List<String> recentlyTwelveMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth();
List<Long> yAxisData = new ArrayList<>();
List<Long> yAxisDataW = new ArrayList<>();
List<Long> yAxisDataXs= new ArrayList<>();
List<Long> yAxisDataXx = new ArrayList<>();
recentlyTwelveMonth.forEach(month -> {
// 获取指定月份的最大日期
String lastDayOfMonth = ObtainLastSixMonthsUtil.getLastDayOfMonth(month);
// 获取指定天的最大时间
Date date = Date.from(LocalDate.parse(lastDayOfMonth).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date maxDayTime = ObtainLastSixMonthsUtil.getEndOfDay(date);
// 获取最小时间
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
Integer count = new LambdaQueryChainWrapper<>(tdMeetingService.getBaseMapper())
.ge(TdMeeting::getMeetingTime, minDayTime)
.le(TdMeeting::getMeetingTime, maxDayTime).eq(TdMeeting::getMeetingState,1).count();
if (Objects.isNull(count)) {
count = 0;
}
yAxis.set(Long.valueOf(count));
yAxisData.add(yAxis.get());
AtomicReference<Long> yAxisW = new AtomicReference<>(0L);
Integer countW = new LambdaQueryChainWrapper<>(tdMeetingService.getBaseMapper())
.ge(TdMeeting::getMeetingTime, minDayTime)
.le(TdMeeting::getMeetingTime, maxDayTime).eq(TdMeeting::getMeetingState,0).count();
if (Objects.isNull(countW)) {
countW = 0;
}
yAxisW.set(Long.valueOf(countW));
yAxisDataW.add(yAxisW.get());
AtomicReference<Long> yAxisXs = new AtomicReference<>(0L);
Integer countXs= new LambdaQueryChainWrapper<>(tdMeetingService.getBaseMapper())
.ge(TdMeeting::getMeetingTime, minDayTime)
.le(TdMeeting::getMeetingTime, maxDayTime).eq(TdMeeting::getMeetingType,0).count();
if (Objects.isNull(countXs)) {
countXs = 0;
}
yAxisXs.set(Long.valueOf(countXs));
yAxisDataXs.add(yAxisXs.get());
AtomicReference<Long> yAxisXx = new AtomicReference<>(0L);
Integer countXx= new LambdaQueryChainWrapper<>(tdMeetingService.getBaseMapper())
.ge(TdMeeting::getMeetingTime, minDayTime)
.le(TdMeeting::getMeetingTime, maxDayTime).eq(TdMeeting::getMeetingType,1).count();
if (Objects.isNull(countXx)) {
countXx = 0;
}
yAxisXx.set(Long.valueOf(countXx));
yAxisDataXx.add(yAxisXx.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", recentlyTwelveMonth.toArray());
obj.put("yAxisData", yAxisData);
obj.put("yAxisDataW", yAxisDataW);
obj.put("yAxisDataXs", yAxisDataXs);
obj.put("yAxisDataXx", yAxisDataXx);
return AjaxResult.success(obj);
}
/**
*
*/
@GetMapping("/detail/{id}")
public String view(@PathVariable("id") String id, ModelMap mmap) {
TdMeeting meeting = tdMeetingManager.selectTdMeeting(id);
mmap.put("meeting", meeting);
return prefix + "/detail";
}
}

@ -1,178 +0,0 @@
package com.ruoyi.web.controller.system.count;
import cn.hutool.core.text.StrPool;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.domain.TdPropertyNet;
import com.ruoyi.system.domain.TdPropertyNetinfo;
import com.ruoyi.system.domain.count.PropertyManagerDTO;
import com.ruoyi.system.service.ISysDictDataService;
import com.ruoyi.system.service.ITdPropertyNetService;
import com.ruoyi.system.service.ITdPropertyNetinfoService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.time.LocalDate;
import java.time.ZoneId;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
@Controller
@RequestMapping("/system/networknum")
public class SysNetworknumController extends BaseController {
private String prefix = "system/network/networknum";
@Autowired
private ITdPropertyNetService tdPropertyNetService;
@Autowired
private ITdPropertyNetinfoService tdPropertyNetinfoService;
@RequiresPermissions("system:networknum:view")
@GetMapping()
public String network()
{
return prefix + "/networknum";
}
/**
*
*/
@RequiresPermissions("system:networknum:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyNet tdPropertyNet)
{
startPage();
List<TdPropertyNet> list = tdPropertyNetService.selectTdPropertyNetList(tdPropertyNet);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:networknum:print")
@GetMapping("/print/{netId}")
@Log(title = "网络设备统计", businessType = BusinessType.PRINT)
public String print(@PathVariable("netId") String netId, ModelMap mmap)
{
List<TdPropertyNetinfo> tdPropertyNetinfos = tdPropertyNetinfoService.selectTdPropertyNetinfoByNetId(netId);
TdPropertyNet tdPropertyNet = tdPropertyNetService.selectTdPropertyNetByNetId(netId);
mmap.put("tdPropertyNetinfos", tdPropertyNetinfos);
mmap.put("tdPropertyNet", tdPropertyNet);
mmap.put("sysuser", getSysUser());
return prefix + "/print";
}
/**
*
*
* @param null
* @return
*/
@Autowired
private ISysDictDataService dictDataService;
@PostMapping("/countNetInfo")
@ResponseBody
public AjaxResult countNetInfo() {
SysDictData sysDictData = new SysDictData();
sysDictData.setDictType("sys_net_type");
List<SysDictData> smType = dictDataService.selectDictDataList(sysDictData);
List<String> list = smType.stream().map(SysDictData::getDictLabel).collect(Collectors.toList());
List<Long> yAxisData = new ArrayList<>();
smType.forEach(xAxis -> {
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
Integer count = tdPropertyNetinfoService.lambdaQuery()
.eq(TdPropertyNetinfo::getNetName, xAxis.getDictValue())
.count();
yAxis.set(Long.valueOf(count));
yAxisData.add(yAxis.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", list.toArray());
obj.put("yAxisData", yAxisData);
return AjaxResult.success(obj);
}
/**
*
*
* @return
*/
@PostMapping("/countInfo")
@ResponseBody
public AjaxResult countInfo() {
SysDictData sysDictData = new SysDictData();
sysDictData.setDictType("sys_file_miji");
List<SysDictData> smType = dictDataService.selectDictDataList(sysDictData);
List<String> list = smType.stream().map(SysDictData::getDictLabel).collect(Collectors.toList());
List<Long> yAxisData = new ArrayList<>();
smType.forEach(xAxis -> {
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
Integer count = tdPropertyNetService.selectCountMi(xAxis.getDictValue());
if(Objects.isNull(count)){
count = 0;
}
yAxis.set(Long.valueOf(count));
yAxisData.add(yAxis.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", list.toArray());
obj.put("yAxisData", yAxisData);
return AjaxResult.success(obj);
}
/**
*
*6
* @return
*/
@PostMapping("/countNetMonth")
@ResponseBody
public AjaxResult countNetMonth() {
List<String> recentlySixMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth();
List<Long> yAxisData = new ArrayList<>();
recentlySixMonth.forEach(month -> {
// 获取指定月份的最大日期
String lastDayOfMonth = ObtainLastSixMonthsUtil.getLastDayOfMonth(month);
// 获取指定天的最大时间
Date date = Date.from(LocalDate.parse(lastDayOfMonth).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date maxDayTime = ObtainLastSixMonthsUtil.getEndOfDay(date);
// 获取最小时间
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
PropertyManagerDTO tdPropertyManager = new PropertyManagerDTO();
tdPropertyManager.setMinDayTime(minDayTime);
tdPropertyManager.setMaxDayTime(maxDayTime);
Integer count = tdPropertyNetService.countMessageMonth(tdPropertyManager);
if(Objects.isNull(count)){
count = 0;
}
yAxis.set(Long.valueOf(count));
yAxisData.add(yAxis.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", recentlySixMonth.toArray());
obj.put("yAxisData", yAxisData);
return AjaxResult.success(obj);
}
}

@ -1,336 +0,0 @@
package com.ruoyi.web.controller.system.count;
import cn.hutool.core.text.StrPool;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
import com.ruoyi.system.domain.TdPropertyEment;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.domain.TdPropertyManager;
import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.domain.count.*;
import com.ruoyi.system.service.ISysDictDataService;
import com.ruoyi.system.service.ITdPropertyInfoService;
import com.ruoyi.system.service.ITdPropertyManagerService;
import com.ruoyi.system.service.TdPropertyEmentService;
import lombok.val;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.time.LocalDate;
import java.time.ZoneId;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
@Controller
@RequestMapping("/system/propertynum")
public class SysPropertynumController extends BaseController {
private String prefix = "system/property/propertynum";
@Autowired
private ITdPropertyManagerService tdPropertyManagerService;
@Autowired
private ITdPropertyInfoService tdPropertyInfoService;
@Resource
private TdPropertyEmentService tdPropertyEmentService;
@RequiresPermissions("system:propertynum:view")
@GetMapping()
public String property() {
return prefix + "/propertynum";
}
/**
*
*/
@RequiresPermissions("system:propertynum:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyManager tdPropertyManager) {
startPage();
List<TdPropertyManager> list = tdPropertyManagerService.selectTdPropertyManagerList(tdPropertyManager);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:propertynum:print")
@GetMapping("/print/{useId}")
@Log(title = "涉密信息设备统计", businessType = BusinessType.PRINT)
public String print(@PathVariable("useId") String useId, ModelMap mmap) {
List<TdPropertyInfo> tdPropertyInfos = tdPropertyInfoService.selectTdPropertyInfoByUseId(useId);
TdPropertyManager tdPropertyManager = tdPropertyManagerService.selectTdPropertyManagerByUseId(useId);
mmap.put("tdPropertyInfos", tdPropertyInfos);
mmap.put("tdPropertyManager", tdPropertyManager);
mmap.put("sysuser", getSysUser());
return prefix + "/print";
}
/**
*
*/
@RequiresPermissions("system:propertynum:print")
@GetMapping("/printEment/{useId}")
@Log(title = "涉密设备统计", businessType = BusinessType.PRINT)
public String printEment(@PathVariable("useId") String useId, ModelMap mmap) {
TdPropertyManager tdPropertyManager = tdPropertyManagerService.selectTdPropertyManagerByUseId(useId);
List<TdPropertyEment> tdPropertyEments = tdPropertyEmentService.lambdaQuery()
.eq(TdPropertyEment::getUseId, useId)
.orderByDesc(TdPropertyEment::getCreateTime)
.list();
mmap.put("tdPropertyEments", tdPropertyEments);
mmap.put("tdPropertyManager", tdPropertyManager);
mmap.put("sysuser", getSysUser());
return prefix + "/printEment";
}
@Autowired
private ISysDictDataService dictDataService;
/**
*
*
* @return com.ruoyi.common.core.domain.AjaxResult
*/
@PostMapping("/countInfo")
@ResponseBody
public AjaxResult countInfo() {
SysDictData sysDictData = new SysDictData();
sysDictData.setDictType("sys_sm_property");
List<SysDictData> smType = dictDataService.selectDictDataList(sysDictData);
List<String> list = smType.stream().map(SysDictData::getDictLabel).collect(Collectors.toList());
List<Long> yAxisData = new ArrayList<>();
smType.forEach(xAxis -> {
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
Integer count = tdPropertyInfoService.lambdaQuery()
.eq(TdPropertyInfo::getPropertyType, xAxis.getDictValue())
.count();
yAxis.set(Long.valueOf(count));
yAxisData.add(yAxis.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", list.toArray());
obj.put("yAxisData", yAxisData);
return AjaxResult.success(obj);
}
private List<String> bf = Arrays.asList("信息设备未报废", "信息设备已报废","设备未报废", "设备已报废");
private List<String> xh = Arrays.asList("未销毁", "已销毁");
/**
*
*
* @return com.ruoyi.common.core.domain.AjaxResult
*/
@PostMapping("/countBF")
@ResponseBody
public AjaxResult countbf() {
PropertyStateCountDTO propertyStateCountDTO = tdPropertyInfoService.selectCountBF();
List<JSONObject> datas = bf.stream()
.map(name -> {
AtomicReference<Object> value = new AtomicReference<>(0L);
if ("信息设备未报废".equals(name)) {
value.set(propertyStateCountDTO.getWbf());
} else if("信息设备已报废".equals(name)) {
value.set(propertyStateCountDTO.getYbf());
} else if("设备未报废".equals(name)) {
value.set(tdPropertyEmentService.lambdaQuery()
.eq(TdPropertyEment::getDestoryType,0)
.count());
}else{
value.set(tdPropertyEmentService.lambdaQuery()
.eq(TdPropertyEment::getDestoryType,1)
.count());
}
JSONObject jsonObject = new JSONObject();
jsonObject.put("value", value.get());
jsonObject.put("name", name);
return jsonObject;
})
.collect(Collectors.toList());
return AjaxResult.success(datas);
}
/**
*
*
* @return com.ruoyi.common.core.domain.AjaxResult
*/
@PostMapping("/countXH")
@ResponseBody
public AjaxResult countXH() {
PropertyDesCountDTO propertyDesCountDTO = tdPropertyInfoService.selectCountXH();
List<JSONObject> datas = xh.stream()
.map(name -> {
AtomicReference<Object> value = new AtomicReference<>(0L);
if ("未销毁".equals(name)) {
value.set(propertyDesCountDTO.getWxh());
} else {
value.set(propertyDesCountDTO.getYxh());
}
JSONObject jsonObject = new JSONObject();
jsonObject.put("value", value.get());
jsonObject.put("name", name);
return jsonObject;
})
.collect(Collectors.toList());
return AjaxResult.success(datas);
}
/**
*
*6
* @return
*/
@PostMapping("/countMessageMonth")
@ResponseBody
public AjaxResult countMessageMonth() {
List<String> recentlySixMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth();
List<Long> yAxisData = new ArrayList<>();
List<Long> yAxisDataSb = new ArrayList<>();
recentlySixMonth.forEach(month -> {
// 获取指定月份的最大日期
String lastDayOfMonth = ObtainLastSixMonthsUtil.getLastDayOfMonth(month);
// 获取指定天的最大时间
Date date = Date.from(LocalDate.parse(lastDayOfMonth).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date maxDayTime = ObtainLastSixMonthsUtil.getEndOfDay(date);
// 获取最小时间
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
PropertyManagerDTO tdPropertyManager = new PropertyManagerDTO();
tdPropertyManager.setMinDayTime(minDayTime);
tdPropertyManager.setMaxDayTime(maxDayTime);
tdPropertyManager.setSecretsType("1");
Integer count = tdPropertyManagerService.countMessageMonth(tdPropertyManager);
if(Objects.isNull(count)){
count = 0;
}
yAxis.set(Long.valueOf(count));
yAxisData.add(yAxis.get());
AtomicReference<Long> yAxisSb = new AtomicReference<>(0L);
PropertyManagerDTO tdPropertManager = new PropertyManagerDTO();
tdPropertManager.setMinDayTime(minDayTime);
tdPropertManager.setMaxDayTime(maxDayTime);
tdPropertManager.setSecretsType("2");
Integer countSecrets = tdPropertyManagerService.countSecretsMonth(tdPropertManager);
if(Objects.isNull(countSecrets)){
countSecrets = 0;
}
yAxisSb.set(Long.valueOf(countSecrets));
yAxisDataSb.add(yAxisSb.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", recentlySixMonth.toArray());
//涉密信息设备
obj.put("yAxisData", yAxisData);
//涉密设备
obj.put("yAxisDataSb", yAxisDataSb);
return AjaxResult.success(obj);
}
/**
*
*6
* @return
*/
@PostMapping("/countSecretsMonth")
@ResponseBody
public AjaxResult countSecretsMonth() {
List<String> recentlySixMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth();
List<Long> yAxisData = new ArrayList<>();
List<Long> yAxisDataWx = new ArrayList<>();
List<Long> yAxisDataSb = new ArrayList<>();
List<Long> yAxisDataWxSb = new ArrayList<>();
recentlySixMonth.forEach(month -> {
// 获取指定月份的最大日期
String lastDayOfMonth = ObtainLastSixMonthsUtil.getLastDayOfMonth(month);
// 获取指定天的最大时间
Date date = Date.from(LocalDate.parse(lastDayOfMonth).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date maxDayTime = ObtainLastSixMonthsUtil.getEndOfDay(date);
// 获取最小时间
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
PropertyManagerDTO tdPropertyManager = new PropertyManagerDTO();
tdPropertyManager.setMinDayTime(minDayTime);
tdPropertyManager.setMaxDayTime(maxDayTime);
tdPropertyManager.setSecretsType("1");
tdPropertyManager.setDestoryState("1");
Integer count = tdPropertyManagerService.countDestoryMonth(tdPropertyManager);
if(Objects.isNull(count)){
count = 0;
}
yAxis.set(Long.valueOf(count));
yAxisData.add(yAxis.get());
AtomicReference<Long> yAxisWx = new AtomicReference<>(0L);
PropertyManagerDTO tdPropertManager = new PropertyManagerDTO();
tdPropertManager.setMinDayTime(minDayTime);
tdPropertManager.setMaxDayTime(maxDayTime);
tdPropertManager.setSecretsType("1");
Integer countWx = tdPropertyManagerService.countMessageWxMonth(tdPropertManager);
if(Objects.isNull(countWx)){
countWx = 0;
}
yAxisWx.set(Long.valueOf(countWx));
yAxisDataWx.add(yAxisWx.get());
AtomicReference<Long> yAxisSb = new AtomicReference<>(0L);
PropertyManagerDTO tdProperty = new PropertyManagerDTO();
tdProperty.setMinDayTime(minDayTime);
tdProperty.setMaxDayTime(maxDayTime);
tdProperty.setSecretsType("2");
tdProperty.setDestoryState("1");
Integer countSb = tdPropertyManagerService.countSecretsDestoryMonth(tdProperty);
if(Objects.isNull(countSb)){
countSb = 0;
}
yAxisSb.set(Long.valueOf(countSb));
yAxisDataSb.add(yAxisSb.get());
AtomicReference<Long> yAxisSbWx = new AtomicReference<>(0L);
PropertyManagerDTO tdPropertWx = new PropertyManagerDTO();
tdPropertWx.setMinDayTime(minDayTime);
tdPropertWx.setMaxDayTime(maxDayTime);
tdPropertWx.setSecretsType("2");
Integer countSbWx = tdPropertyManagerService.countSecretsWxMonth(tdPropertWx);
if(Objects.isNull(countSbWx)){
countSbWx = 0;
}
yAxisSbWx.set(Long.valueOf(countSbWx));
yAxisDataWxSb.add(yAxisSbWx.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", recentlySixMonth.toArray());
//已销毁
obj.put("yAxisData", yAxisData);
//未销毁
obj.put("yAxisDataWx", yAxisDataWx);
//设备销毁
obj.put("yAxisDataSb", yAxisDataSb);
//设备未销毁
obj.put("yAxisDataWxSb", yAxisDataWxSb);
return AjaxResult.success(obj);
}
}

@ -1,189 +0,0 @@
package com.ruoyi.web.controller.system.count;
import cn.hutool.core.text.StrPool;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.TdTrain;
import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.service.ISysUserService;
import com.ruoyi.system.service.ITdTrainService;
import com.ruoyi.web.controller.manager.SysAreaManager;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.time.LocalDate;
import java.time.ZoneId;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;
@Controller
@RequestMapping("/system/trainnum")
public class SysTrainnumController extends BaseController {
private String prefix = "system/trainnum";
@Autowired
private ITdTrainService tdTrainService;
@Resource
private SysAreaManager sysAreaManager;
@Resource
private ISysUserService sysUserService;
@RequiresPermissions("system:trainnum:view")
@GetMapping()
public String trainnum()
{
return prefix + "/trainnum";
}
/**
*
* @param tdTrain
* @return
*/
@RequiresPermissions("system:trainnum:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdTrain tdTrain)
{
startPage();
List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain);
return getDataTable(list);
}
/**
*
* @param tdTrain
* @return
*/
@Log(title = "培训统计", businessType = BusinessType.EXPORT)
@RequiresPermissions("system:trainnum:export")
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdTrain tdTrain)
{
List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain);
list.forEach(tdTrain1 -> {
tdTrain1.setAREAID(sysAreaManager.getAreaName(tdTrain1.getAREAID()));
tdTrain1.setFRAMEWORK(sysAreaManager.getAreaName(tdTrain1.getFRAMEWORK()));
SysUser sysUser = sysUserService.selectUserById(Long.valueOf(tdTrain1.getUSERNAME()));
if(Objects.nonNull(sysUser)){
tdTrain1.setUSERNAME(sysUser.getUserName());
}
});
ExcelUtil<TdTrain> util = new ExcelUtil<TdTrain>(TdTrain.class);
return util.exportExcel(list, "培训统计数据");
}
/**
*
*/
@RequiresPermissions("system:trainnum:detail")
@GetMapping("/detail/{ID}")
public String detail(@PathVariable("ID") Long ID, ModelMap mmap)
{
mmap.put("tdTrain", tdTrainService.selectTdTrainByID(ID));
SysUser user = getSysUser();
mmap.put("user", user);
return prefix + "/detail";
}
@ApiOperation("培训统计数据")
@PostMapping("/countList")
@ResponseBody
public AjaxResult countList() {
return AjaxResult.success(tdTrainService.selectCountList());
}
/**
*
*6
* @return
*/
@PostMapping("/countTrainMonth")
@ResponseBody
public AjaxResult countTrainMonth() {
List<String> recentlySixMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth();
List<Long> yAxisData = new ArrayList<>();
recentlySixMonth.forEach(month -> {
// 获取指定月份的最大日期
String lastDayOfMonth = ObtainLastSixMonthsUtil.getLastDayOfMonth(month);
// 获取指定天的最大时间
Date date = Date.from(LocalDate.parse(lastDayOfMonth).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date maxDayTime = ObtainLastSixMonthsUtil.getEndOfDay(date);
// 获取最小时间
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
Integer count = new LambdaQueryChainWrapper<>(tdTrainService.getBaseMapper())
.ge(TdTrain::getCreateDate, minDayTime)
.le(TdTrain::getCreateDate, maxDayTime)
.eq(TdTrain::getTrainState,0)
.count();
if(Objects.isNull(count)){
count = 0;
}
yAxis.set(Long.valueOf(count));
yAxisData.add(yAxis.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", recentlySixMonth.toArray());
obj.put("yAxisData", yAxisData);
return AjaxResult.success(obj);
}
/**
*
*6
* @return
*/
@PostMapping("/countTrainNoMonth")
@ResponseBody
public AjaxResult countTrainNoMonth() {
List<String> recentlySixMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth();
List<Long> yAxisData = new ArrayList<>();
recentlySixMonth.forEach(month -> {
// 获取指定月份的最大日期
String lastDayOfMonth = ObtainLastSixMonthsUtil.getLastDayOfMonth(month);
// 获取指定天的最大时间
Date date = Date.from(LocalDate.parse(lastDayOfMonth).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date maxDayTime = ObtainLastSixMonthsUtil.getEndOfDay(date);
// 获取最小时间
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
Integer count = new LambdaQueryChainWrapper<>(tdTrainService.getBaseMapper())
.ge(TdTrain::getCreateDate, minDayTime)
.le(TdTrain::getCreateDate, maxDayTime)
.eq(TdTrain::getTrainState,2)
.count();
if(Objects.isNull(count)){
count = 0;
}
yAxis.set(Long.valueOf(count));
yAxisData.add(yAxis.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", recentlySixMonth.toArray());
obj.put("yAxisData", yAxisData);
return AjaxResult.success(obj);
}
}

@ -9,14 +9,12 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.domain.check.dto.CheckReportDTO;
import com.ruoyi.system.domain.count.CheckResultCountDTO;
import com.ruoyi.system.domain.count.CheckTypeCountDTO;
import com.ruoyi.system.domain.count.PropertyManagerDTO;
import com.ruoyi.system.service.ISysDictDataService;
import com.ruoyi.system.service.ITdNotifyService;
import com.ruoyi.system.service.check.TdCheckReportService;
import com.ruoyi.web.controller.manager.CheckReportManager;
import io.swagger.annotations.ApiOperation;
@ -48,9 +46,6 @@ public class TdChecknumController extends BaseController{
@Resource
private TdCheckReportService checkReportService;
@Autowired
private ITdNotifyService tdNotifyService;
@Resource
private CheckReportManager checkReportManager;

@ -11,10 +11,7 @@ import java.util.concurrent.atomic.AtomicReference;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.StrPool;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.domain.userbook.dto.UserBookDTO;
import com.ruoyi.system.domain.userexam.dto.request.UserExamReqDTO;
import com.ruoyi.system.domain.userexam.dto.response.UserExamExportDTO;
import com.ruoyi.system.domain.userexam.dto.response.UserExamRespDTO;
@ -24,19 +21,15 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdExamnum;
import com.ruoyi.system.service.ITdExamnumService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
/**
* Controller
@ -49,13 +42,10 @@ import javax.servlet.http.HttpServletRequest;
public class TdExamnumController extends BaseController {
private String prefix = "system/examnum";
@Autowired
private ITdExamnumService tdExamnumService;
@Resource
private UserExamManager userExamManager;
@RequiresPermissions("system:examnum:countExam")
@GetMapping()
public String countExam() {

@ -1,77 +0,0 @@
package com.ruoyi.web.controller.system.exam;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdExamnum;
import com.ruoyi.system.domain.TdQuestion;
import com.ruoyi.system.service.ITdExamnumService;
import com.ruoyi.system.service.ITdQuestionService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.core.controller.BaseController;
import java.util.List;
/**
*
*
*/
@Controller
@RequestMapping("/system/exam")
public class TdExamController extends BaseController{
private String prefix = "system/exam";
@Autowired
private ITdQuestionService tdQuestionService;
@Autowired
private ITdExamnumService tdExamnumService;
@RequiresPermissions("system:exam:view")
@GetMapping()
public String index(ModelMap mmap){
SysUser user = getSysUser();
mmap.put("user", user);
return prefix + "/index";
}
/**
*
*/
@Log(title = "保密考试", businessType = BusinessType.EXAM)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdExamnum tdExamnum)
{
return toAjax(tdExamnumService.insertTdExamnum(tdExamnum));
}
/**
*
*/
@RequiresPermissions("system:exam:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdQuestion tdQuestion)
{
startPage();
List<TdQuestion> list = tdQuestionService.selectTdQuestionList(tdQuestion);
return getDataTable(list);
}
/**
* 访exam
*/
@GetMapping("/edit")
public String index(){
return prefix + "/exam";
}
}

@ -1,131 +0,0 @@
package com.ruoyi.web.controller.system.exam;
import java.util.Date;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdQuestion;
import com.ruoyi.system.service.ITdQuestionService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author admin
* @date 2024-04-07
*/
@Controller
@RequestMapping("/system/question")
public class TdQuestionController extends BaseController
{
private String prefix = "system/question";
@Autowired
private ITdQuestionService tdQuestionService;
@RequiresPermissions("system:question:view")
@GetMapping()
public String question()
{
return prefix + "/question";
}
/**
*
*/
@RequiresPermissions("system:question:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdQuestion tdQuestion)
{
startPage();
List<TdQuestion> list = tdQuestionService.selectTdQuestionList(tdQuestion);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:question:export")
@Log(title = "题库管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdQuestion tdQuestion)
{
List<TdQuestion> list = tdQuestionService.selectTdQuestionList(tdQuestion);
ExcelUtil<TdQuestion> util = new ExcelUtil<TdQuestion>(TdQuestion.class);
return util.exportExcel(list, "题库管理数据");
}
/**
*
*/
@GetMapping("/add")
public String add(ModelMap mmap)
{
mmap.put("sysuser",getSysUser());
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:question:add")
@Log(title = "题库管理", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdQuestion tdQuestion)
{
tdQuestion.setCREATEPERSON(getLoginName());
tdQuestion.setCREATEDATE(new Date());
return toAjax(tdQuestionService.insertTdQuestion(tdQuestion));
}
/**
*
*/
@RequiresPermissions("system:question:edit")
@GetMapping("/edit/{ID}")
public String edit(@PathVariable("ID") Long ID, ModelMap mmap)
{
TdQuestion tdQuestion = tdQuestionService.selectTdQuestionByID(ID);
mmap.put("tdQuestion", tdQuestion);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:question:edit")
@Log(title = "题库管理", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdQuestion tdQuestion)
{
return toAjax(tdQuestionService.updateTdQuestion(tdQuestion));
}
/**
*
*/
@RequiresPermissions("system:question:remove")
@Log(title = "题库管理", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tdQuestionService.deleteTdQuestionByIDs(ids));
}
}

@ -1,34 +0,0 @@
package com.ruoyi.web.controller.system.exam;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.service.ITdQuestionService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Controller
*/
@Controller
@RequestMapping("/system/userexam")
public class TdUserExamController extends BaseController {
private String prefix = "system/exam";
@RequiresPermissions("system:userexam:view")
@GetMapping()
public String index(ModelMap mmap) {
//获取用户信息
SysUser user = getSysUser();
mmap.put("user", user);
//跳转考试界面
return prefix + "/index";
}
}

@ -1,127 +0,0 @@
package com.ruoyi.web.controller.system.filemanager;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import com.ruoyi.system.domain.TdFileProvide;
import com.ruoyi.system.domain.TdFileReceive;
import com.ruoyi.system.service.ISysDeptService;
import com.ruoyi.system.service.ITdFileProvideService;
import com.ruoyi.system.service.ITdFileReceiveService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-05-15
*/
@Controller
@RequestMapping("/system/filedestory")
public class TdFileDestoryController extends BaseController
{
private String prefix = "system/filedestory";
@Autowired
private ITdFileReceiveService tdFileReceiveService;
@Autowired
private ITdFileProvideService tdFileProvideService;
@Autowired
private ISysDeptService deptService;
@RequiresPermissions("system:filedestory:view")
@GetMapping()
public String filedestory()
{
return prefix + "/filedestory";
}
/**
*
*/
@RequiresPermissions("system:filedestory:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdFileReceive tdFileReceive)
{
startPage();
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
List<TdFileReceive> tdFileReceives = new ArrayList<>();
for (TdFileReceive FileReceivelist : list){
if (Objects.equals(FileReceivelist.getExtractState(),"1") && FileReceivelist.getReceiveDepartid().equals(deptService.selectDeptById(getSysUser().getDeptId()).getDeptName())){
tdFileReceives.add(FileReceivelist);
}
}
return getDataTable(tdFileReceives);
}
/**
*
*/
@RequiresPermissions("system:filedestory:export")
@Log(title = "涉密文件销毁", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdFileReceive tdFileReceive)
{
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
ExcelUtil<TdFileReceive> util = new ExcelUtil<TdFileReceive>(TdFileReceive.class);
return util.exportExcel(list, "涉密文件销毁数据");
}
/**
*
*/
@RequiresPermissions("system:filedestory:edit")
@GetMapping("/edit/{receiveId}")
public String edit(@PathVariable("receiveId") Long receiveId, ModelMap mmap)
{
TdFileReceive tdFileReceive = tdFileReceiveService.selectTdFileReceiveByReceiveId(receiveId);
String fileId = tdFileReceive.getFileId();
TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId);
mmap.put("tdFileProvide", tdFileProvide);
mmap.put("tdFileReceive", tdFileReceive);
mmap.put("user",getSysUser());
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:filedestory:edit")
@Log(title = "涉密文件销毁", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdFileReceive tdFileReceive)
{
return toAjax(tdFileReceiveService.updateTdFileReceive(tdFileReceive));
}
/**
*
*/
@RequiresPermissions("system:filedestory:detail")
@GetMapping("/detail/{receiveId}")
public String detail(@PathVariable("receiveId") Long receiveId, ModelMap mmap)
{
TdFileReceive tdFileReceive = tdFileReceiveService.selectTdFileReceiveByReceiveId(receiveId);
String fileId = tdFileReceive.getFileId();
TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId);
mmap.put("tdFileProvide", tdFileProvide);
mmap.put("tdFileReceive", tdFileReceive);
return prefix + "/detail";
}
}

@ -1,97 +0,0 @@
package com.ruoyi.web.controller.system.filemanager;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.TdFileReceive;
import com.ruoyi.system.service.ISysDeptService;
import com.ruoyi.system.service.ITdFileReceiveService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Controller
*/
@Controller
@RequestMapping("/system/fileextract")
public class TdFileExtractController extends BaseController {
private String prefix = "system/fileextract";
@Autowired
private ITdFileReceiveService tdFileReceiveService;
@Autowired
private ISysDeptService deptService;
@RequiresPermissions("system:fileextract:view")
@GetMapping()
public String fileextract(ModelMap mmap)
{
mmap.put("sysuser",getSysUser());
return prefix + "/fileextract";
}
/**
*
*/
@RequiresPermissions("system:fileextract:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdFileReceive tdFileReceive)
{
startPage();
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
List<TdFileReceive> tdFileReceives = new ArrayList<>();
for (TdFileReceive FileReceivelist : list){
if (Objects.equals(FileReceivelist.getReceiveState(),"1") && FileReceivelist.getReceiveDepartid().equals(getSysUser().getDept().getDeptName())){
tdFileReceives.add(FileReceivelist);
}
}
return getDataTable(tdFileReceives);
}
/**
*
*/
@RequiresPermissions("system:fileextract:export")
@Log(title = "涉密文件接收", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdFileReceive tdFileReceive)
{
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
ExcelUtil<TdFileReceive> util = new ExcelUtil<TdFileReceive>(TdFileReceive.class);
return util.exportExcel(list, "涉密文件接收数据");
}
/**
*
*/
@RequiresPermissions("system:fileextract:edit")
@GetMapping("/edit/{receiveId}")
public String edit(@PathVariable("receiveId") Long receiveId, ModelMap mmap)
{
TdFileReceive tdFileReceive = tdFileReceiveService.selectTdFileReceiveByReceiveId(receiveId);
mmap.put("tdFileReceive", tdFileReceive);
mmap.put("user",getSysUser());
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:fileextract:edit")
@Log(title = "涉密文件接收", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdFileReceive tdFileReceive)
{
return toAjax(tdFileReceiveService.updateTdFileReceive(tdFileReceive));
}
}

@ -1,195 +0,0 @@
package com.ruoyi.web.controller.system.filemanager;
import java.util.ArrayList;
import java.util.List;
import cn.hutool.core.convert.Convert;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.sql.SqlUtil;
import com.ruoyi.common.utils.uuid.Seq;
import com.ruoyi.framework.web.domain.server.Sys;
import com.ruoyi.system.domain.SysPost;
import com.ruoyi.system.domain.TdFileReceive;
import com.ruoyi.system.service.ISysDeptService;
import com.ruoyi.system.service.ISysPostService;
import com.ruoyi.system.service.ITdFileReceiveService;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdFileProvide;
import com.ruoyi.system.service.ITdFileProvideService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
/**
* Controller
*
* @author ruoyi
* @date 2024-04-23
*/
@Controller
@RequestMapping("/system/fileprovide")
public class TdFileProvideController extends BaseController
{
private String prefix = "system/fileprovide";
@Autowired
private ITdFileProvideService tdFileProvideService;
@Autowired
private ISysDeptService deptService;
@Autowired
private ITdFileReceiveService tdFileReceiveService;
@RequiresPermissions("system:fileprovide:view")
@GetMapping()
public String fileprovide()
{
return prefix + "/fileprovide";
}
/**
*
*/
@RequiresPermissions("system:fileprovide:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdFileProvide tdFileProvide)
{
startPage();
List<TdFileProvide> list = tdFileProvideService.selectTdFileProvideList(tdFileProvide);
return getDataTable(list);
}
@Resource
private SysAreaManager sysAreaManager;
/**
*
*/
@RequiresPermissions("system:fileprovide:export")
@Log(title = "文件下发", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdFileProvide tdFileProvide)
{
List<TdFileProvide> list = tdFileProvideService.selectTdFileProvideList(tdFileProvide);
list.forEach(tdFileProvide1 -> {
tdFileProvide1.setFrameworkId(sysAreaManager.getAreaName(tdFileProvide1.getFrameworkId()));
tdFileProvide1.setAreaid(sysAreaManager.getAreaName(tdFileProvide1.getAreaid()));
});
ExcelUtil<TdFileProvide> util = new ExcelUtil<TdFileProvide>(TdFileProvide.class);
return util.exportExcel(list, "文件下发数据");
}
/**
*
*/
@GetMapping("/add")
public String add(SysDept dept, ModelMap mmap)
{
mmap.put("dept",deptService.selectDeptList(dept));
mmap.put("user",getSysUser());
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:fileprovide:add")
@Log(title = "文件下发", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdFileProvide tdFileProvide)
{
tdFileProvide.setFileId("File_"+Seq.getId(Seq.commSeqType));
String[] tar = tdFileProvide.getTargetDepart().split(",");
for (String depart : tar) {
TdFileReceive tdFileReceive = new TdFileReceive();
tdFileReceive.setFileId(tdFileProvide.getFileId());
tdFileReceive.setFileName(tdFileProvide.getFileName());
tdFileReceive.setProvideDepart(tdFileProvide.getProvideDepart());
tdFileReceive.setProvideDate(tdFileProvide.getProvideDate());
tdFileReceive.setReceiveDepartid(depart);
tdFileReceiveService.insertTdFileReceive(tdFileReceive);
}
return toAjax(tdFileProvideService.insertTdFileProvide(tdFileProvide));
}
/**
*
*/
@RequiresPermissions("system:fileprovide:edit")
@GetMapping("/edit/{fileId}")
public String edit(@PathVariable("fileId") String fileId,SysDept dept, ModelMap mmap)
{
TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId);
mmap.put("user",getSysUser());
mmap.put("dept",deptService.selectDeptList(dept));
mmap.put("tdFileProvide", tdFileProvide);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:fileprovide:edit")
@Log(title = "文件下发", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdFileProvide tdFileProvide)
{
return toAjax(tdFileProvideService.updateTdFileProvide(tdFileProvide));
}
/**
*
*/
@RequiresPermissions("system:fileprovide:remove")
@Log(title = "文件下发", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
List<TdFileReceive> tdFileReceives = tdFileReceiveService.selectTdFileReceiveByFileId(ids);
List<String> statesList = new ArrayList<>();
for (TdFileReceive tdFileReceive : tdFileReceives) {
statesList.add(tdFileReceive.getReceiveState());
}
if (statesList.contains("1")){
return AjaxResult.error("下发的已被接收文件不能删除");
}else {
for (TdFileReceive tdFileReceive : tdFileReceives){
tdFileReceiveService.deleteTdFileReceiveByReceiveId(tdFileReceive.getReceiveId());
}
return toAjax(tdFileProvideService.deleteTdFileProvideByFileIds(ids));
}
}
/**
*
*/
@RequiresPermissions("system:fileprovide:detail")
@GetMapping("/detail/{fileId}")
public String detail(@PathVariable("fileId") String fileId,SysDept dept ,ModelMap mmap)
{
TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId);
mmap.put("dept",deptService.selectDeptList(dept));
mmap.put("tdFileProvide", tdFileProvide);
return prefix + "/detail";
}
}

@ -1,142 +0,0 @@
package com.ruoyi.web.controller.system.filemanager;
import java.util.ArrayList;
import java.util.List;
import com.ruoyi.system.service.ISysDeptService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdFileReceive;
import com.ruoyi.system.service.ITdFileReceiveService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-05-14
*/
@Controller
@RequestMapping("/system/filereceive")
public class TdFileReceiveController extends BaseController
{
private String prefix = "system/filereceive";
@Autowired
private ITdFileReceiveService tdFileReceiveService;
@Autowired
private ISysDeptService deptService;
@RequiresPermissions("system:filereceive:view")
@GetMapping()
public String filereceive(ModelMap mmap)
{
mmap.put("sysuser",getSysUser());
return prefix + "/filereceive";
}
/**
*
*/
@RequiresPermissions("system:filereceive:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdFileReceive tdFileReceive)
{
startPage();
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
List<TdFileReceive> tdFileReceives = new ArrayList<>();
for (TdFileReceive FileReceivelist : list){
if (FileReceivelist.getReceiveDepartid().equals(getSysUser().getDept().getDeptName())){
tdFileReceives.add(FileReceivelist);
}
}
return getDataTable(tdFileReceives);
}
/**
*
*/
@RequiresPermissions("system:filereceive:export")
@Log(title = "涉密文件接收", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export()
{
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveByReceiveDepart(deptService.selectDeptById(getSysUser().getDeptId()).getDeptName());
ExcelUtil<TdFileReceive> util = new ExcelUtil<TdFileReceive>(TdFileReceive.class);
return util.exportExcel(list, "涉密文件接收数据");
}
/**
*
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:filereceive:add")
@Log(title = "涉密文件接收", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdFileReceive tdFileReceive)
{
return toAjax(tdFileReceiveService.insertTdFileReceive(tdFileReceive));
}
/**
*
*/
@RequiresPermissions("system:filereceive:edit")
@GetMapping("/edit/{receiveId}")
public String edit(@PathVariable("receiveId") Long receiveId, ModelMap mmap)
{
TdFileReceive tdFileReceive = tdFileReceiveService.selectTdFileReceiveByReceiveId(receiveId);
mmap.put("tdFileReceive", tdFileReceive);
mmap.put("user",getSysUser());
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:filereceive:edit")
@Log(title = "涉密文件接收", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdFileReceive tdFileReceive)
{
return toAjax(tdFileReceiveService.updateTdFileReceive(tdFileReceive));
}
/**
*
*/
@RequiresPermissions("system:filereceive:remove")
@Log(title = "涉密文件接收", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tdFileReceiveService.deleteTdFileReceiveByReceiveIds(ids));
}
}

@ -1,148 +0,0 @@
package com.ruoyi.web.controller.system.meet;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.TdMeeting;
import com.ruoyi.web.controller.manager.TdMeetingManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.system.meet
*
* @author wangxy
* @version JDK 8
* @className TdMeetingController
* @date 2024/8/6
* @description
*/
@Controller
@RequestMapping("/system/tdmeeting")
public class TdMeetingController extends BaseController {
private String prefix = "system/tdmeeting";
@Resource
private TdMeetingManager meetingManager;
@RequiresPermissions("system:tdmeeting:view")
@GetMapping()
public String tdmeeting() {
return prefix + "/tdmeeting";
}
/**
*
*/
@RequiresPermissions("system:tdmeeting:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdMeeting tdMeeting) {
startPage();
List<TdMeeting> tdMeetings = meetingManager.selectTdMeetingList(tdMeeting);
return getDataTable(tdMeetings);
}
/**
*
*/
@RequiresPermissions("system:tdmeeting:export")
@Log(title = "涉密会议导出", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdMeeting tdMeeting) {
List<TdMeeting> tdMeetings = meetingManager.selectTdMeetingList(tdMeeting);
ExcelUtil<TdMeeting> util = new ExcelUtil<>(TdMeeting.class);
return util.exportExcel(tdMeetings, "涉密会议数据");
}
/**
*
*/
@GetMapping("/add")
public String add() {
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:tdmeeting:add")
@Log(title = "涉密会议", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdMeeting tdMeeting) {
return toAjax(meetingManager.saveOrUpdate(tdMeeting));
}
/**
*
*/
@RequiresPermissions("system:tdmeeting:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdMeeting meeting = meetingManager.selectTdMeeting(id);
mmap.put("meeting", meeting);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:tdmeeting:edit")
@Log(title = "涉密会议", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdMeeting tdMeeting) {
return toAjax(meetingManager.saveOrUpdate(tdMeeting));
}
/**
*
*/
@RequiresPermissions("system:tdmeeting:detail")
@GetMapping("/detail/{id}")
public String detail(@PathVariable("id") String id, ModelMap mmap) {
TdMeeting meeting = meetingManager.selectTdMeeting(id);
mmap.put("meeting", meeting);
return prefix + "/detail";
}
/**
*
*/
@RequiresPermissions("system:tdmeeting:remove")
@Log(title = "涉密会议", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(meetingManager.deleteTdMeetingByIds(ids));
}
/**
*
*/
@RequiresPermissions("system:tdmeeting:view")
@GetMapping("/view/{id}")
public String view(@PathVariable("id") String id, ModelMap mmap) {
TdMeeting meeting = meetingManager.selectTdMeeting(id);
mmap.put("meeting", meeting);
return prefix + "/view";
}
}

@ -1,88 +0,0 @@
package com.ruoyi.web.controller.system.property;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.service.ITdPropertyInfoService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@Controller
@RequestMapping("/system/propertychange")
public class TdPropertyChangeController extends BaseController {
private String prefix = "system/property/propertychange";
@Autowired
private ITdPropertyInfoService tdPropertyInfoService;
@RequiresPermissions("system:changeproperty:view")
@GetMapping()
public String changeProperty() {
return prefix + "/changeproperty";
}
/**
*
*/
@RequiresPermissions("system:changeproperty:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyInfo tdPropertyInfo) {
startPage();
List<TdPropertyInfo> tdPropertyInfos = tdPropertyInfoService.selectTdPropertyInfoList(tdPropertyInfo);
return getDataTable(tdPropertyInfos);
}
/**
*
*/
@RequiresPermissions("system:changeproperty:change")
@GetMapping("/edit/{id}")
public String change(@PathVariable("id") String id, ModelMap mmap) {
TdPropertyInfo tdPropertyInfo = tdPropertyInfoService.selectTdPropertyInfoById(id);
mmap.put("tdPropertyInfo", tdPropertyInfo);
return prefix + "/change";
}
/**
*
*/
@RequiresPermissions("system:changeproperty:change")
@Log(title = "密品变更", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult changeSave(TdPropertyInfo tdPropertyInfo) {
tdPropertyInfo.setMaintainState("2");
return toAjax(tdPropertyInfoService.updateTdPropertyInfo(tdPropertyInfo));
}
/**
*
*/
@RequiresPermissions("system:changeproperty:destory")
@GetMapping("/destory/{id}")
public String destory(@PathVariable("id") String id, ModelMap mmap) {
TdPropertyInfo tdPropertyInfo = tdPropertyInfoService.selectTdPropertyInfoById(id);
mmap.put("tdPropertyInfo", tdPropertyInfo);
return prefix + "/destory";
}
/**
*
*/
@RequiresPermissions("system:changeproperty:destory")
@Log(title = "密品变更", businessType = BusinessType.UPDATE)
@PostMapping("/destory")
@ResponseBody
public AjaxResult destorySave(TdPropertyInfo tdPropertyInfo) {
return toAjax(tdPropertyInfoService.updateTdPropertyInfo(tdPropertyInfo));
}
}

@ -1,75 +0,0 @@
package com.ruoyi.web.controller.system.property;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.TdPropertyManager;
import com.ruoyi.system.service.ITdPropertyManagerService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.system.property
*
* @author wangxy
* @version JDK 8
* @className TdPropertyChangeListController
* @date 2024/6/24
* @description
*/
@Controller
@RequestMapping("/system/change/list")
public class TdPropertyChangeListController extends BaseController {
private String prefix = "system/property/propertychange/list";
@Autowired
private ITdPropertyManagerService tdPropertyManagerService;
@RequiresPermissions("system:change:view")
@GetMapping()
public String property()
{
return prefix + "/property";
}
/**
*
*/
@RequiresPermissions("system:change:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyManager tdPropertyManager)
{
startPage();
List<TdPropertyManager> list = tdPropertyManagerService.selectTdPropertyManagerList(tdPropertyManager);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:change:detail")
@GetMapping("/detail/{useId}")
public String detail(@PathVariable("useId") String useId, ModelMap mmap)
{
mmap.put("useId",useId);
return "system/property/propertychange/changeproperty";
}
/**
*
*/
@RequiresPermissions("system:change:detail")
@GetMapping("/ementChDetail/{useId}")
public String ementChDetail(@PathVariable("useId") String useId, ModelMap mmap)
{
mmap.put("useId",useId);
return "system/property/ementChange/ementChange";
}
}

@ -1,69 +0,0 @@
package com.ruoyi.web.controller.system.property;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.service.ITdPropertyInfoService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@Controller
@RequestMapping("/system/propertyDestory")
public class TdPropertyDestoryController extends BaseController {
private String prefix = "system/property/propertydestory";
@Autowired
private ITdPropertyInfoService tdPropertyInfoService;
@RequiresPermissions("system:destoryproperty:view")
@GetMapping()
public String destoryProperty()
{
return prefix + "/destoryproperty";
}
/**
*
*/
@RequiresPermissions("system:destoryproperty:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyInfo tdPropertyInfo)
{
startPage();
List<TdPropertyInfo> tdPropertyInfos = tdPropertyInfoService.selectTdPropertyInfoList(tdPropertyInfo);
return getDataTable(tdPropertyInfos);
}
/**
*
*/
@RequiresPermissions("system:destoryproperty:destory")
@GetMapping("/destory/{id}")
public String destory(@PathVariable("id") String id, ModelMap mmap)
{
TdPropertyInfo tdPropertyInfo = tdPropertyInfoService.selectTdPropertyInfoById(id);
mmap.put("tdPropertyInfo", tdPropertyInfo);
return prefix + "/destory";
}
/**
*
*/
@RequiresPermissions("system:destoryproperty:destory")
@Log(title = "密品变更", businessType = BusinessType.UPDATE)
@PostMapping("/destory")
@ResponseBody
public AjaxResult destorySave(TdPropertyInfo tdPropertyInfo)
{
return toAjax(tdPropertyInfoService.updateTdPropertyInfo(tdPropertyInfo));
}
}

@ -1,75 +0,0 @@
package com.ruoyi.web.controller.system.property;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.TdPropertyManager;
import com.ruoyi.system.service.ITdPropertyManagerService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.system.property
*
* @author luoluo
* @version JDK 8
* @className TdPropertyDestoryListController
* @date 2024/6/24
* @description
*/
@Controller
@RequestMapping("/system/propertyDestory/list")
public class TdPropertyDestoryListController extends BaseController {
private String prefix = "system/property/propertydestory/list";
@Autowired
private ITdPropertyManagerService tdPropertyManagerService;
@RequiresPermissions("system:propertyDestory:view")
@GetMapping()
public String property()
{
return prefix + "/property";
}
/**
*
*/
@RequiresPermissions("system:destory:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyManager tdPropertyManager)
{
startPage();
List<TdPropertyManager> list = tdPropertyManagerService.selectTdPropertyManagerList(tdPropertyManager);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:destory:detail")
@GetMapping("/detail/{useId}")
public String detail(@PathVariable("useId") String useId, ModelMap mmap)
{
mmap.put("useId",useId);
return "system/property/propertydestory/destoryproperty";
}
/**
*
*/
@RequiresPermissions("system:destory:detail")
@GetMapping("/destoryDetail/{useId}")
public String destoryDetail(@PathVariable("useId") String useId, ModelMap mmap)
{
mmap.put("useId",useId);
return "system/property/ementDestory/ementList";
}
}

@ -1,108 +0,0 @@
package com.ruoyi.web.controller.system.property;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdPropertyEment;
import com.ruoyi.web.controller.manager.TdPropertyEmentManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.system.property
*
* @author wangxy
* @version JDK 8
* @className TdPropertyEmentChangeController
* @date 2024/8/20
* @description
*/
@Controller
@RequestMapping("/system/ementChange")
public class TdPropertyEmentChangeController extends BaseController {
private String prefix = "system/property/ementChange";
@Autowired
private TdPropertyEmentManager tdPropertyEmentManager;
@RequiresPermissions("system:ementChange:view")
@GetMapping()
public String ementChange() {
return prefix + "/ementChange";
}
/**
*
*/
@RequiresPermissions("system:ementChange:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyEment tdPropertyEment) {
startPage();
List<TdPropertyEment> tdPropertyEments = tdPropertyEmentManager.selectEmentList(tdPropertyEment);
return getDataTable(tdPropertyEments);
}
/**
*
*/
@RequiresPermissions("system:ementChange:change")
@GetMapping("/edit/{id}")
public String ementEdit(@PathVariable("id") String id, ModelMap mmap) {
TdPropertyEment tdPropertyEment = tdPropertyEmentManager.selecttdEment(id);
mmap.put("tdPropertyEment", tdPropertyEment);
return prefix + "/ementEdit";
}
/**
*
*/
@RequiresPermissions("system:ementChange:change")
@Log(title = "涉密设备维修", businessType = BusinessType.UPDATE)
@PostMapping("/update")
@ResponseBody
public AjaxResult update(TdPropertyEment tdPropertyEment) {
tdPropertyEment.setMaintainState("2");
return toAjax(tdPropertyEmentManager.saveOrUpdate(tdPropertyEment));
}
/**
*
*/
@RequiresPermissions("system:ementChange:destory")
@GetMapping("/destory/{id}")
public String destory(@PathVariable("id") String id, ModelMap mmap) {
TdPropertyEment tdPropertyEment = tdPropertyEmentManager.selecttdEment(id);
mmap.put("tdPropertyEment", tdPropertyEment);
return prefix + "/destory";
}
/**
*
*/
@RequiresPermissions("system:ementChange:destory")
@Log(title = "涉密设备报废", businessType = BusinessType.UPDATE)
@PostMapping("/destorySave")
@ResponseBody
public AjaxResult destorySave(TdPropertyEment tdPropertyEment) {
return toAjax(tdPropertyEmentManager.saveOrUpdate(tdPropertyEment));
}
}

@ -1,124 +0,0 @@
package com.ruoyi.web.controller.system.property;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.utils.uuid.Seq;
import com.ruoyi.system.domain.TdPropertyEment;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.web.controller.manager.TdPropertyEmentManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.system.property
*
* @author wangxy
* @version JDK 8
* @className TdPropertyEmentController
* @date 2024/8/20
* @description
*/
@Controller
@RequestMapping("/system/prementData")
public class TdPropertyEmentController extends BaseController {
private String prefix = "system/property/ementdata";
@Resource
private TdPropertyEmentManager tdPropertyEmentManager;
@RequiresPermissions("system:property:view")
@GetMapping()
public String tdEment() {
return prefix + "/propertyEment";
}
/**
*
*/
@RequiresPermissions("system:property:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyEment tdPropertyEment) {
startPage();
List<TdPropertyEment> tdPropertyEments = tdPropertyEmentManager.selectEmentList(tdPropertyEment);
return getDataTable(tdPropertyEments);
}
/**
*
*/
@RequiresPermissions("system:property:export")
@Log(title = "涉密设备", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdPropertyEment tdPropertyEment) {
List<TdPropertyEment> tdPropertyEments = tdPropertyEmentManager.selectEmentList(tdPropertyEment);
ExcelUtil<TdPropertyEment> util = new ExcelUtil<>(TdPropertyEment.class);
return util.exportExcel(tdPropertyEments, "涉密设备数据");
}
/**
*
*/
@GetMapping("/add/{useId}")
public String add(@PathVariable("useId") String useId, ModelMap mmap) {
mmap.put("useId", useId);
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:property:add")
@Log(title = "涉密设备", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdPropertyEment tdPropertyEment) {
tdPropertyEment.setId("Ement_" + Seq.getId(Seq.commSeqType));
tdPropertyEment.setMaintainState("1");
return toAjax(tdPropertyEmentManager.saveOrUpdate(tdPropertyEment));
}
/**
*
*/
@RequiresPermissions("system:property:detail")
@GetMapping("/detail/{id}")
public String detail(@PathVariable("id") String id, ModelMap mmap) {
TdPropertyEment tdPropertyEment = tdPropertyEmentManager.selecttdEment(id);
mmap.put("tdPropertyEment", tdPropertyEment);
return prefix + "/detail";
}
/**
*
*/
@RequiresPermissions("system:property:remove")
@Log(title = "涉密设备", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(tdPropertyEmentManager.deletedEmentByids(ids));
}
/**
*
*
* @return com.ruoyi.common.core.domain.AjaxResult
*/
@PostMapping("/getList")
@ResponseBody
public AjaxResult getList() {
return AjaxResult.success(tdPropertyEmentManager.selectList());
}
}

@ -1,68 +0,0 @@
package com.ruoyi.web.controller.system.property;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdPropertyEment;
import com.ruoyi.web.controller.manager.TdPropertyEmentManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* Controller
*/
@Controller
@RequestMapping("/system/ementDestory")
public class TdPropertyEmentDestoryController extends BaseController {
private String prefix = "system/property/ementDestory";
@Autowired
private TdPropertyEmentManager tdPropertyEmentManager;
@RequiresPermissions("system:ementDestory:view")
@GetMapping()
public String ementDestory() {
return prefix + "/ementList";
}
/**
*
*/
@RequiresPermissions("system:ementDestory:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyEment tdPropertyEment) {
startPage();
List<TdPropertyEment> tdPropertyEments = tdPropertyEmentManager.selectEmentList(tdPropertyEment);
return getDataTable(tdPropertyEments);
}
/**
*
*/
@RequiresPermissions("system:ementDestory:destroy")
@GetMapping("/destory/{id}")
public String ementDestory(@PathVariable("id") String id, ModelMap mmap) {
TdPropertyEment tdPropertyEment = tdPropertyEmentManager.selecttdEment(id);
mmap.put("tdPropertyEment", tdPropertyEment);
return prefix + "/ementDestory";
}
/**
*
*/
@RequiresPermissions("system:ementDestory:destroy")
@Log(title = "涉密设备销毁", businessType = BusinessType.UPDATE)
@PostMapping("/update")
@ResponseBody
public AjaxResult update(TdPropertyEment tdPropertyEment) {
return toAjax(tdPropertyEmentManager.saveOrUpdate(tdPropertyEment));
}
}

@ -1,141 +0,0 @@
package com.ruoyi.web.controller.system.property;
import java.util.List;
import com.ruoyi.common.utils.uuid.Seq;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.service.ITdPropertyInfoService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-04-29
*/
@Controller
@RequestMapping("/system/property/data")
public class TdPropertyInfoController extends BaseController
{
private String prefix = "system/property/data";
@Autowired
private ITdPropertyInfoService tdPropertyInfoService;
@RequiresPermissions("system:property:view")
@GetMapping()
public String propertyinfo()
{
return prefix + "/propertyinfo";
}
/**
*
*/
@RequiresPermissions("system:property:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyInfo tdPropertyInfo)
{
startPage();
List<TdPropertyInfo> tdPropertyInfos = tdPropertyInfoService.selectTdPropertyInfoList(tdPropertyInfo);
return getDataTable(tdPropertyInfos);
}
/**
*
*/
@RequiresPermissions("system:property:export")
@Log(title = "密品管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdPropertyInfo tdPropertyInfo)
{
List<TdPropertyInfo> list = tdPropertyInfoService.selectTdPropertyInfoList(tdPropertyInfo);
ExcelUtil<TdPropertyInfo> util = new ExcelUtil<TdPropertyInfo>(TdPropertyInfo.class);
return util.exportExcel(list, "密品管理数据");
}
/**
*
*/
@RequiresPermissions("system:property:add")
@GetMapping("/add/{useId}")
public String add(@PathVariable("useId") String useId, ModelMap mmap)
{
mmap.put("useId", useId);
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:property:add")
@Log(title = "密品管理", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdPropertyInfo tdPropertyInfo)
{
tdPropertyInfo.setId("Register_" + Seq.getId(Seq.commSeqType));
tdPropertyInfo.setMaintainState("1");
return toAjax(tdPropertyInfoService.insertTdPropertyInfo(tdPropertyInfo));
}
/**
*
*/
@RequiresPermissions("system:property:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap)
{
TdPropertyInfo tdPropertyInfo = tdPropertyInfoService.selectTdPropertyInfoById(id);
mmap.put("tdPropertyInfo", tdPropertyInfo);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:property:detail")
@GetMapping("/detail/{id}")
public String detail(@PathVariable("id") String id, ModelMap mmap)
{
TdPropertyInfo tdPropertyInfo = tdPropertyInfoService.selectTdPropertyInfoById(id);
mmap.put("tdPropertyInfo", tdPropertyInfo);
return prefix + "/detail";
}
/**
*
*/
@RequiresPermissions("system:property:edit")
@Log(title = "密品管理", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdPropertyInfo tdPropertyInfo)
{
return toAjax(tdPropertyInfoService.updateTdPropertyInfo(tdPropertyInfo));
}
/**
*
*/
@RequiresPermissions("system:property:remove")
@Log(title = "密品管理", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tdPropertyInfoService.deleteTdPropertyInfoByIds(ids));
}
}

@ -1,170 +0,0 @@
package com.ruoyi.web.controller.system.property;
import java.util.Collections;
import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.common.utils.uuid.Seq;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.service.ITdPropertyInfoService;
import com.ruoyi.system.service.TdPropertyEmentService;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdPropertyManager;
import com.ruoyi.system.service.ITdPropertyManagerService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
/**
* Controller
*
* @author ruoyi
* @date 2024-04-26
*/
@Controller
@RequestMapping("/system/property")
public class TdPropertyManagerController extends BaseController {
private String prefix = "system/property/property";
@Autowired
private ITdPropertyManagerService tdPropertyManagerService;
@Autowired
private ITdPropertyInfoService tdPropertyInfoService;
@Resource
private TdPropertyEmentService tdPropertyEmentService;
@Resource
private SysAreaManager sysAreaManager;
@RequiresPermissions("system:property:view")
@GetMapping()
public String property() {
return prefix + "/property";
}
/**
*
*/
@RequiresPermissions("system:property:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyManager tdPropertyManager) {
startPage();
List<TdPropertyManager> list = tdPropertyManagerService.selectTdPropertyManagerList(tdPropertyManager);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:property:export")
@Log(title = "密品登记", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdPropertyManager tdPropertyManager) {
List<TdPropertyManager> list = tdPropertyManagerService.selectTdPropertyManagerList(tdPropertyManager);
list.forEach(tdPropertyManager1 -> {
tdPropertyManager1.setPart(sysAreaManager.getAreaName(tdPropertyManager1.getPart()));
tdPropertyManager1.setAreaId(sysAreaManager.getAreaName(tdPropertyManager1.getAreaId()));
});
ExcelUtil<TdPropertyManager> util = new ExcelUtil<TdPropertyManager>(TdPropertyManager.class);
return util.exportExcel(list, "密品登记数据");
}
/**
*
*/
@GetMapping("/add")
public String add(ModelMap mmap) {
mmap.put("sysuser", getSysUser());
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:property:add")
@Log(title = "密品登记", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdPropertyManager tdPropertyManager) {
tdPropertyManager.setUseId("Property_" + Seq.getId(Seq.commSeqType));
tdPropertyManager.setDeptId(ShiroUtils.getSysUser().getDeptId());
return toAjax(tdPropertyManagerService.insertTdPropertyManager(tdPropertyManager));
}
/**
*
*/
@RequiresPermissions("system:property:edit")
@GetMapping("/edit/{useId}")
public String edit(@PathVariable("useId") String useId, ModelMap mmap) {
TdPropertyManager tdPropertyManager = tdPropertyManagerService.selectTdPropertyManagerByUseId(useId);
mmap.put("tdPropertyManager", tdPropertyManager);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:property:edit")
@Log(title = "密品登记", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdPropertyManager tdPropertyManager) {
tdPropertyManager.setDeptId(ShiroUtils.getSysUser().getDeptId());
return toAjax(tdPropertyManagerService.updateTdPropertyManager(tdPropertyManager));
}
/**
*
*/
@RequiresPermissions("system:property:remove")
@Log(title = "密品登记", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
QueryWrapper queryWrapper = new QueryWrapper();
queryWrapper.in("use_id", ids.split(","));
tdPropertyInfoService.remove(queryWrapper);
tdPropertyEmentService.remove(queryWrapper);
return toAjax(tdPropertyManagerService.deleteTdPropertyManagerByUseIds(ids));
}
/**
*
*/
@RequiresPermissions("system:property:list")
@GetMapping("/detail/{useId}")
public String detail(@PathVariable("useId") String useId, ModelMap mmap) {
mmap.put("useId", useId);
return "system/property/data/propertyinfo";
}
/**
*
*/
@RequiresPermissions("system:property:list")
@GetMapping("/ementDetail/{useId}")
public String ementDetail(@PathVariable("useId") String useId, ModelMap mmap) {
mmap.put("useId", useId);
return "system/property/ementdata/propertyEment";
}
}

@ -1,152 +0,0 @@
package com.ruoyi.web.controller.system.property;
import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.common.utils.uuid.Seq;
import com.ruoyi.system.service.ITdPropertyNetinfoService;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdPropertyNet;
import com.ruoyi.system.service.ITdPropertyNetService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
/**
* Controller
*
* @author ruoyi
* @date 2024-05-09
*/
@Controller
@RequestMapping("/system/network")
public class TdPropertyNetController extends BaseController {
private String prefix = "system/network/network";
@Autowired
private ITdPropertyNetService tdPropertyNetService;
@Autowired
private ITdPropertyNetinfoService tdPropertyNetinfoService;
@Resource
private SysAreaManager sysAreaManager;
@RequiresPermissions("system:network:view")
@GetMapping()
public String network() {
return prefix + "/network";
}
/**
*
*/
@RequiresPermissions("system:network:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyNet tdPropertyNet) {
startPage();
List<TdPropertyNet> list = tdPropertyNetService.selectTdPropertyNetList(tdPropertyNet);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:network:export")
@Log(title = "涉密网络设备", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdPropertyNet tdPropertyNet) {
List<TdPropertyNet> list = tdPropertyNetService.selectTdPropertyNetList(tdPropertyNet);
list.forEach(tdPropertyNet1 -> {
tdPropertyNet1.setFramework(sysAreaManager.getAreaName(tdPropertyNet1.getFramework()));
tdPropertyNet1.setArea(sysAreaManager.getAreaName(tdPropertyNet1.getArea()));
});
ExcelUtil<TdPropertyNet> util = new ExcelUtil<TdPropertyNet>(TdPropertyNet.class);
return util.exportExcel(list, "涉密网络设备数据");
}
/**
*
*/
@GetMapping("/add")
public String add(ModelMap mmap) {
mmap.put("sysuser", getSysUser());
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:network:add")
@Log(title = "涉密网络设备", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdPropertyNet tdPropertyNet) {
tdPropertyNet.setNetId("Net_" + Seq.getId(Seq.commSeqType));
return toAjax(tdPropertyNetService.insertTdPropertyNet(tdPropertyNet));
}
/**
*
*/
@RequiresPermissions("system:network:edit")
@GetMapping("/edit/{netId}")
public String edit(@PathVariable("netId") String netId, ModelMap mmap) {
TdPropertyNet tdPropertyNet = tdPropertyNetService.selectTdPropertyNetByNetId(netId);
mmap.put("tdPropertyNet", tdPropertyNet);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:network:edit")
@Log(title = "涉密网络设备", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdPropertyNet tdPropertyNet) {
return toAjax(tdPropertyNetService.updateTdPropertyNet(tdPropertyNet));
}
/**
*
*/
@RequiresPermissions("system:network:remove")
@Log(title = "涉密网络设备", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
QueryWrapper queryWrapper= new QueryWrapper();
queryWrapper.in("net_id",ids.split(","));
tdPropertyNetinfoService.remove(queryWrapper);
return toAjax(tdPropertyNetService.deleteTdPropertyNetByNetIds(ids));
}
/**
*
*/
@RequiresPermissions("system:network:list")
@GetMapping("/detail/{netId}")
public String detail(@PathVariable("netId") String netId, ModelMap mmap) {
mmap.put("netId", netId);
return "system/network/netinfo/netinfo";
}
}

@ -1,139 +0,0 @@
package com.ruoyi.web.controller.system.property;
import java.util.List;
import com.ruoyi.common.utils.uuid.Seq;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdPropertyNetinfo;
import com.ruoyi.system.service.ITdPropertyNetinfoService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-05-09
*/
@Controller
@RequestMapping("/system/network/netinfo")
public class TdPropertyNetinfoController extends BaseController
{
private String prefix = "system/network/netinfo";
@Autowired
private ITdPropertyNetinfoService tdPropertyNetinfoService;
@RequiresPermissions("system:network:view")
@GetMapping()
public String netinfo()
{
return prefix + "/netinfo";
}
/**
*
*/
@RequiresPermissions("system:network:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyNetinfo tdPropertyNetinfo)
{
startPage();
List<TdPropertyNetinfo> list = tdPropertyNetinfoService.selectTdPropertyNetinfoList(tdPropertyNetinfo);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:network:export")
@Log(title = "涉密网络登记", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdPropertyNetinfo tdPropertyNetinfo)
{
List<TdPropertyNetinfo> list = tdPropertyNetinfoService.selectTdPropertyNetinfoList(tdPropertyNetinfo);
ExcelUtil<TdPropertyNetinfo> util = new ExcelUtil<TdPropertyNetinfo>(TdPropertyNetinfo.class);
return util.exportExcel(list, "涉密网络登记数据");
}
/**
*
*/
@GetMapping("/add/{netId}")
public String add(@PathVariable("netId") String netId, ModelMap mmap)
{
mmap.put("netId", netId);
mmap.put("sysuser",getSysUser());
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:network:add")
@Log(title = "涉密网络登记", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdPropertyNetinfo tdPropertyNetinfo)
{
tdPropertyNetinfo.setId("NetInfo_" + Seq.getId(Seq.commSeqType));
return toAjax(tdPropertyNetinfoService.insertTdPropertyNetinfo(tdPropertyNetinfo));
}
/**
*
*/
@RequiresPermissions("system:network:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap)
{
TdPropertyNetinfo tdPropertyNetinfo = tdPropertyNetinfoService.selectTdPropertyNetinfoById(id);
mmap.put("tdPropertyNetinfo", tdPropertyNetinfo);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:network:edit")
@Log(title = "涉密网络登记", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdPropertyNetinfo tdPropertyNetinfo)
{
return toAjax(tdPropertyNetinfoService.updateTdPropertyNetinfo(tdPropertyNetinfo));
}
/**
*
*/
@RequiresPermissions("system:network:remove")
@Log(title = "涉密网络登记", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tdPropertyNetinfoService.deleteTdPropertyNetinfoByIds(ids));
}
/**
*
*/
@RequiresPermissions("system:network:detail")
@GetMapping("/detail/{id}")
public String detail(@PathVariable("id") String id, ModelMap mmap)
{
mmap.put("tdPropertyNetinfo", tdPropertyNetinfoService.selectTdPropertyNetinfoById(id));
return prefix + "/detail";
}
}

@ -1,133 +0,0 @@
package com.ruoyi.web.controller.system.system;
import java.util.Date;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdIndenture;
import com.ruoyi.system.service.ITdIndentureService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-04-08
*/
@Controller
@RequestMapping("/system/indenture")
public class TdIndentureController extends BaseController
{
private String prefix = "system/indenture";
@Autowired
private ITdIndentureService tdIndentureService;
@RequiresPermissions("system:indenture:view")
@GetMapping()
public String indenture()
{
return prefix + "/indenture";
}
/**
*
*/
@RequiresPermissions("system:indenture:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdIndenture tdIndenture)
{
startPage();
List<TdIndenture> list = tdIndentureService.selectTdIndentureList(tdIndenture);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:indenture:export")
@Log(title = "维修商", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdIndenture tdIndenture)
{
List<TdIndenture> list = tdIndentureService.selectTdIndentureList(tdIndenture);
ExcelUtil<TdIndenture> util = new ExcelUtil<TdIndenture>(TdIndenture.class);
return util.exportExcel(list, "维修商数据");
}
/**
*
*/
@GetMapping("/add")
public String add(ModelMap mmap)
{
mmap.put("sysuser", getSysUser());
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:indenture:add")
@Log(title = "维修商", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdIndenture tdIndenture)
{
tdIndenture.setCreateStaffid(getLoginName());
tdIndenture.setCreateDate(new Date());
tdIndenture.setDeptId(getSysUser().getDeptId());
return toAjax(tdIndentureService.insertTdIndenture(tdIndenture));
}
/**
*
*/
@RequiresPermissions("system:indenture:edit")
@GetMapping("/edit/{indentureId}")
public String edit(@PathVariable("indentureId") String indentureId, ModelMap mmap)
{
TdIndenture tdIndenture = tdIndentureService.selectTdIndentureByIndentureId(indentureId);
mmap.put("tdIndenture", tdIndenture);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:indenture:edit")
@Log(title = "维修商", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdIndenture tdIndenture)
{
tdIndenture.setDeptId(getSysUser().getDeptId());
return toAjax(tdIndentureService.updateTdIndenture(tdIndenture));
}
/**
*
*/
@RequiresPermissions("system:indenture:remove")
@Log(title = "维修商", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tdIndentureService.deleteTdIndentureByIndentureIds(ids));
}
}

@ -1,192 +0,0 @@
package com.ruoyi.web.controller.system.system;
import java.util.List;
import java.util.Objects;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.service.ISysPostService;
import com.ruoyi.system.service.ISysUserService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdLeave;
import com.ruoyi.system.service.ITdLeaveService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import oshi.jna.platform.mac.SystemB;
/**
* Controller
*
* @author ruoyi
* @date 2024-04-16
*/
@Controller
@RequestMapping("/system/leave")
public class TdLeaveController extends BaseController
{
private String prefix = "system/leave";
@Autowired
private ITdLeaveService tdLeaveService;
@Autowired
private ISysUserService userService;
@Autowired
private ISysPostService postService;
@RequiresPermissions("system:leave:view")
@GetMapping()
public String leave()
{
return prefix + "/leave";
}
/**
*
*/
@RequiresPermissions("system:leave:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdLeave tdLeave)
{
startPage();
List<TdLeave> list = tdLeaveService.selectTdLeaveList(tdLeave);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:leave:export")
@Log(title = "人员离职", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdLeave tdLeave)
{
List<TdLeave> list = tdLeaveService.selectTdLeaveList(tdLeave);
ExcelUtil<TdLeave> util = new ExcelUtil<TdLeave>(TdLeave.class);
return util.exportExcel(list, "人员离职数据");
}
/**
*
*/
@GetMapping("/add")
public String add(ModelMap mmap)
{
mmap.put("addleave",getSysUser());
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:leave:add")
@Log(title = "人员离职", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdLeave tdLeave)
{
return toAjax(tdLeaveService.insertTdLeave(tdLeave));
}
/**
*
*/
@RequiresPermissions("system:leave:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
TdLeave tdLeave = tdLeaveService.selectTdLeaveById(id);
mmap.put("tdLeave", tdLeave);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:leave:edit")
@Log(title = "人员离职", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdLeave tdLeave)
{
return toAjax(tdLeaveService.updateTdLeave(tdLeave));
}
/**
*
*/
@RequiresPermissions("system:leave:remove")
@Log(title = "人员离职", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tdLeaveService.deleteTdLeaveByIds(ids));
}
/**
*
*/
@RequiresPermissions("system:leave:examine")
@Log(title = "人员离职", businessType = BusinessType.EXAMINE)
@PostMapping("/examine")
@ResponseBody
public AjaxResult examinesave(TdLeave tdLeave)
{
return toAjax(tdLeaveService.updateTdLeave(tdLeave));
}
/**
*
*/
@RequiresPermissions("system:leave:examine")
@Log(title = "人员离职", businessType = BusinessType.EXAMINE)
@GetMapping( "/examine/{id}")
public String examine(@PathVariable("id") Long id,ModelMap mmap){
TdLeave leaveuser = tdLeaveService.selectTdLeaveById(id);
mmap.put("leaveuser", leaveuser);
mmap.put("sysuser",getSysUser());
return prefix + "/leaveexamine";
}
/**
*
*/
@RequiresPermissions("system:leave:print")
@Log(title = "人员离职", businessType = BusinessType.PRINT)
@GetMapping("/print/{Id}/{userId}")
public String paint(@PathVariable("Id") Long Id,@PathVariable("userId") Long userId, ModelMap mmap)
{
TdLeave leaveuser = tdLeaveService.selectTdLeaveById(Id);
mmap.put("leaveuser", leaveuser);
mmap.put("user",userService.selectUserById(userId));
mmap.put("posts", postService.selectPostsByUserIds(userId));
return prefix + "/leaveprint";
}
/**
*
* @param userId
* @return
*/
public Boolean userUpdate(Long userId) {
return userService.lambdaUpdate()
.eq(SysUser::getUserId, userId)
.set(SysUser::getStatus, "1")
.update();
}
}

@ -1,186 +0,0 @@
package com.ruoyi.web.controller.system.system;
import java.util.Date;
import java.util.List;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdTrain;
import com.ruoyi.system.service.ITdTrainService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
/**
* Controller
*
* @author ruoyi
* @date 2024-04-11
*/
@Controller
@RequestMapping("/system/train")
public class TdTrainController extends BaseController
{
private String prefix = "system/train";
@Autowired
private ITdTrainService tdTrainService;
@Resource
private SysAreaManager sysAreaManager;
@RequiresPermissions("system:train:view")
@GetMapping()
public String train()
{
return prefix + "/train";
}
/**
*
*/
@RequiresPermissions("system:train:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdTrain tdTrain)
{
startPage();
List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:train:export")
@Log(title = "涉密人员培训", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdTrain tdTrain)
{
List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain);
list.forEach(tdTrain1 -> {
tdTrain1.setAREAID(sysAreaManager.getAreaName(tdTrain1.getAREAID()));
tdTrain1.setFRAMEWORK(sysAreaManager.getAreaName(tdTrain1.getFRAMEWORK()));
});
ExcelUtil<TdTrain> util = new ExcelUtil<TdTrain>(TdTrain.class);
return util.exportExcel(list, "涉密人员培训数据");
}
/**
*
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:train:add")
@Log(title = "涉密人员培训", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdTrain tdTrain)
{
tdTrain.setCreateStaffid(getLoginName());
tdTrain.setCreateDate(new Date());
tdTrain.setCreateDepartid(String.valueOf(getSysUser().getDeptId()));
return toAjax(tdTrainService.insertTdTrain(tdTrain));
}
/**
*
*/
@RequiresPermissions("system:train:edit")
@GetMapping("/edit/{ID}")
public String edit(@PathVariable("ID") Long ID, ModelMap mmap)
{
TdTrain tdTrain = tdTrainService.selectTdTrainByID(ID);
mmap.put("tdTrain", tdTrain);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:train:edit")
@Log(title = "涉密人员培训", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdTrain tdTrain)
{
tdTrain.setUpdateStaffid(getLoginName());
tdTrain.setUpdateDate(new Date());
tdTrain.setUpdateDepartid(String.valueOf(getSysUser().getDeptId()));
return toAjax(tdTrainService.updateTdTrain(tdTrain));
}
/**
*
*/
@RequiresPermissions("system:train:remove")
@Log(title = "涉密人员培训", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tdTrainService.deleteTdTrainByIDs(ids));
}
/**
*
*/
@RequiresPermissions("system:train:detail")
@GetMapping("/detail/{ID}")
public String detail(@PathVariable("ID") Long ID, ModelMap mmap)
{
mmap.put("tdTrain", tdTrainService.selectTdTrainByID(ID));
SysUser user = getSysUser();
mmap.put("user", user);
return prefix + "/detail";
}
/**
*
*/
@RequiresPermissions("system:train:examine")
@GetMapping("/examine/{ID}")
public String examine(@PathVariable("ID") Long ID, ModelMap mmap)
{
TdTrain tdTrain = tdTrainService.selectTdTrainByID(ID);
SysUser user = getSysUser();
mmap.put("tdTrain", tdTrain);
mmap.put("user", user);
return prefix + "/examine";
}
/**
*
*/
@RequiresPermissions("system:train:examine")
@Log(title = "涉密人员培训", businessType = BusinessType.EXAMINE)
@PostMapping("/examine")
@ResponseBody
public AjaxResult examineSave(TdTrain tdTrain)
{
return toAjax(tdTrainService.updateTdTrain(tdTrain));
}
}

@ -1,129 +0,0 @@
package com.ruoyi.web.controller.tdcase;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.tdcase.TdCase;
import com.ruoyi.web.controller.manager.TdCaseManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* packageName com.ruoyi.web.controller.tdcase
*
* @author wangxy
* @version JDK 8
* @className TdCaseController
* @date 2024/8/13
* @description
*/
@Controller
@RequestMapping("/system/tdCase")
public class TdCaseController extends BaseController {
private String prefix = "system/case";
@Resource
private TdCaseManager tdCaseManager;
@RequiresPermissions("system:case:view")
@GetMapping()
public String tdCase() {
return prefix + "/case";
}
/**
*
*/
@RequiresPermissions("system:case:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdCase tdCase) {
startPage();
List<TdCase> tdCases = tdCaseManager.selecttdCaseList(tdCase);
return getDataTable(tdCases);
}
/**
*
*/
@GetMapping("/add")
public String add() {
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:case:add")
@Log(title = "失泄密案件", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdCase tdCase) {
return toAjax(tdCaseManager.saveOrUpdate(tdCase));
}
/**
*
*/
@RequiresPermissions("system:case:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap) {
TdCase tdCase = tdCaseManager.selecttdCase(id);
mmap.put("tdCase", tdCase);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:case:edit")
@Log(title = "失泄密案件", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdCase tdCase) {
return toAjax(tdCaseManager.saveOrUpdate(tdCase));
}
/**
*
*/
@RequiresPermissions("system:case:detail")
@GetMapping("/detail/{id}")
public String detail(@PathVariable("id") String id, ModelMap mmap) {
TdCase tdCase = tdCaseManager.selecttdCase(id);
mmap.put("tdCase", tdCase);
return prefix + "/detail";
}
/**
*
*/
@RequiresPermissions("system:case:remove")
@Log(title = "失泄密案件", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(tdCaseManager.deletedCaseByids(ids));
}
/**
*
*
* @return com.ruoyi.common.core.domain.AjaxResult
*/
@PostMapping("/getList")
@ResponseBody
public AjaxResult getList() {
return AjaxResult.success(tdCaseManager.selectList());
}
}

@ -8,7 +8,7 @@ spring:
# 主库数据源
master:
# 内网-人大金仓数据库
url: jdbc:kingbase8://172.16.1.141:54321/test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&clientEncoding=UTF8
url: jdbc:kingbase8://172.16.1.141:54321/lnzhky?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&clientEncoding=UTF8
#username: system
#password: Admin@9000
username: ENC(MTwovoyD4CT8yCNh9T5SNw==)

@ -1,207 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增载体制作')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-fileprovide-add">
<input name="status" type="hidden" th:value="1">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属市州:</label>
<div class="col-sm-8">
<select id="City" name="areaCity" required class="form-control m-b">
<option value="">---请选择---</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属区县:</label>
<div class="col-sm-8">
<select id="Area" name="areaDistrict" required class="form-control m-b">
<option value="">---请选择---</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体名称:</label>
<div class="col-sm-8">
<input name="carrierName" placeholder="请输入载体名称" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体类型:</label>
<div class="col-sm-8">
<select name="carrierLevel" required class="form-control m-b" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体数量:</label>
<div class="col-sm-8">
<input name="carrierCount" digits="true" placeholder="请输入载体数量" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">密级:</label>
<div class="col-sm-8">
<select name="carrierSecret" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">紧急程度:</label>
<div class="col-sm-8">
<select name="carrierExtent" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">编号:</label>
<div class="col-sm-8">
<input name="carrierNumber" placeholder="请输入编号" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保密期限:</label>
<div class="col-sm-8">
<input name="carrierTerm" placeholder="请输入保密期限" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放范围:</label>
<div class="col-sm-8">
<input name="carrierContent" placeholder="请输入发放范围" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">定密依据:</label>
<div class="col-sm-10">
<textarea name="carrierAlliance" placeholder="请输入定密依据" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/carrier"
$("#form-fileprovide-add").validate({
focusCleanup: true
});
$(document).ready(function() {
// 获取市级数据并填充到城市下拉框
$.ajax({
url: ctx + "system/area/getSysAreaList",
method: 'GET',
success: function(res) {
var cities = res.data.filter(obj => obj.id === '36625'); // 假设返回的数据中有一个叫做 'cities' 的字段包含市级数据
var $citySelect = $('#City');
// 填充城市下拉框
cities.forEach(function(city) {
$citySelect.append($('<option>', {
value: city.id,
text: city.name
}));
});
$citySelect.val('36625');
// 初始化 select2 插件
$citySelect.select2();
},
error: function(err) {
console.error('Failed to load city data:', err);
}
});
// 监听城市下拉框的变化事件
// $('#City').on('change', function() {
// var selectedCityId = $(this).val();
//
// // 如果未选择城市,则不执行后续操作
// if (!selectedCityId) return;
// 根据选中的城市ID发送请求获取对应的区级数据
$.ajax({
url: ctx + "system/area/getSysAreaList",
data:{parentId:'36625'},
method: 'GET',
success: function(res) {
var areas = res.data; // 假设返回的数据中有一个叫做 'areas' 的字段包含区级数据
var $areaSelect = $('#Area');
// 清空区级下拉框并填充数据
$areaSelect.empty().append($('<option>', {
value: '',
text: '请选择区'
}));
areas.forEach(function(area) {
$areaSelect.append($('<option>', {
value: area.id,
text: area.name
}));
});
// 更新 select2 插件
$areaSelect.select2();
},
error: function(err) {
console.error('Failed to load area data:', err);
}
});
// });
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-fileprovide-add').serialize());
}
}
</script>
</body>
</html>

@ -1,219 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('载体下发列表')" />
</head>
<body class="gray-bg">
<div class="container-div" id="app">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>载体名称:</label>
<input type="text" name="carrierName"/>
</li>
<li>
<label>密级:</label>
<select name="carrierSecret" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>载体类型:</label>
<select name="carrierLevel" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>所属市州:</label>
<select id="City" name="areaCity" v-model="City">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:carrier:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:carrier:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:carrier:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:carrier:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:carrier:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:carrier:remove')}]];
var detailFlag = [[${@permission.hasPermi('system:carrier:detail')}]];
var carrierLevelDatas = [[${@dict.getType('sys_provide_level')}]];
var fileSecretDatas = [[${@dict.getType('sys_file_miji')}]];
var carrierExtentDatas = [[${@dict.getType('sys_file_jinjichengdu')}]];
var stateDatas = [[${@dict.getType('sys_carrier_status')}]];
var prefix = ctx + "system/carrier";
let datas = []
$.ajax({
url: ctx + "system/area/getAllList",
type: 'GET',
data:{parentId:''} ,
success:((res)=>{
datas = res.data
}) ,
});
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
detailUrl: prefix + "/detail/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "国家秘密载体制作",
columns: [
{
checkbox: true
},
{
field: 'id',
title: 'id',
visible: false
},
{
field: 'areaCity',
title: '所属市州',
formatter: function(value, row, index) {
return getCity(datas, value)
}
},
{
field: 'carrierName',
title: '载体名称'
},
{
field: 'carrierLevel',
title: '载体类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierLevelDatas, value);
}
},
{
field: 'carrierExtent',
title: '紧急程度',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierExtentDatas, value);
}
},
{
field: 'carrierSecret',
title: '密级',
formatter: function(value, row, index) {
return $.table.selectDictLabel(fileSecretDatas, value);
}
},
{
field: 'carrierTerm',
title: '保密期限'
},
{
field: 'createTime',
title: '创建时间',
sortable: true
},
{
field: 'status',
title: '状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(stateDatas, value);
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
if (row.status != '1') {
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" disabled><i class="fa fa-save"></i>提交</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-search"></i>详细</a> ');
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
}else{
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="openSubmit(\'' + row.id + '\')"><i class="fa fa-save"></i>提交</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-search"></i>详细</a> ');
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
}
return actions.join('');
}
}]
};
$.table.init(options);
});
function openSubmit(id){
$.modal.confirm("确定要执行此操作吗?", function() {
$.ajax({
url: ctx + "system/carrier/updateStatus/" + id +'/' + '2',
type: "GET",
dataType: "json",
success: function(result) {
$.modal.msgSuccess(result.msg)
$.table.refresh();
}
})
}, function() {
$.modal.msgWarning('取消操作')
});
}
var app = new Vue({
el: '#app',
data: {
CityList: [],
City:'',
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data.filter(obj => obj.id === '36625');
}) ,
});
},
}
})
</script>
</body>
</html>

@ -1,919 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增载体制作')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-fileprovide-add" th:object="${tdCarrier}">
<input name="id" th:field="*{id}" type="hidden">
<input name="status" th:value="7" type="hidden">
<h4 class="form-header h4">国家秘密载体制作</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label ">所属市州:</label>
<div class="col-sm-8">
<select id="City" name="areaCity" disabled @change="getAreaList()" v-model="City" class="form-control m-b">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label ">所属区县:</label>
<div class="col-sm-8">
<select id="Area" name="areaDistrict" disabled v-model="Area" class="form-control m-b">
<option value="">请选择</option>
<option v-for="option in AreaList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体名称:</label>
<div class="col-sm-8">
<input name="carrierName" disabled th:field="*{carrierName}" placeholder="请输入载体名称" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体类型:</label>
<div class="col-sm-8">
<select name="carrierLevel" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierLevel}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体数量:</label>
<div class="col-sm-8">
<input name="carrierCount" disabled th:field="*{carrierCount}" digits="true" placeholder="请输入载体数量" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">密级:</label>
<div class="col-sm-8">
<select name="carrierSecret" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierSecret}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">紧急程度:</label>
<div class="col-sm-8">
<select name="carrierExtent" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierExtent}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">编号:</label>
<div class="col-sm-8">
<input name="carrierNumber" disabled placeholder="请输入编号" th:field="*{carrierNumber}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保密期限:</label>
<div class="col-sm-8">
<input name="carrierTerm" disabled placeholder="请输入保密期限" th:field="*{carrierTerm}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放范围:</label>
<div class="col-sm-8">
<input name="carrierContent" disabled placeholder="请输入发放范围" th:field="*{carrierContent}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">定密依据:</label>
<div class="col-sm-10">
<textarea name="carrierAlliance" disabled th:field="*{carrierAlliance}" placeholder="请输入定密依据" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
<div th:if="${tdCarrier.status == '3'}">
<h4 class="form-header h4">国家秘密载体收发</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收单位:</label>
<div class="col-sm-8">
<input name="receivingUnits" disabled th:field="*{receivingUnits}" placeholder="请输入接收单位" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="receivingTime" disabled th:value="${#dates.format(tdCarrier.receivingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收人员:</label>
<div class="col-sm-8">
<input name="receivingUser" disabled th:field="*{receivingUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放单位:</label>
<div class="col-sm-8">
<input name="issuingUnit" disabled th:field="*{issuingUnit}" placeholder="请输入发放单位" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="issuingTime" disabled th:value="${#dates.format(tdCarrier.issuingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放人员:</label>
<div class="col-sm-8">
<input name="issuingUser" disabled th:field="*{issuingUser}" placeholder="请输入发放人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">传递方式:</label>
<div class="col-sm-8">
<input name="deliveryMethod" disabled placeholder="请输入传递方式" th:field="*{deliveryMethod}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">交通工具:</label>
<div class="col-sm-8">
<input name="carrierVehicle" disabled placeholder="请输入交通工具" th:field="*{carrierVehicle}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</div>
<div th:if="${tdCarrier.status == '4'}">
<h4 class="form-header h4">国家秘密载体收发</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收单位:</label>
<div class="col-sm-8">
<input name="receivingUnits" disabled th:field="*{receivingUnits}" placeholder="请输入接收单位" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="receivingTime" disabled th:value="${#dates.format(tdCarrier.receivingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收人员:</label>
<div class="col-sm-8">
<input name="receivingUser" disabled th:field="*{receivingUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放单位:</label>
<div class="col-sm-8">
<input name="issuingUnit" disabled th:field="*{issuingUnit}" placeholder="请输入发放单位" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="issuingTime" disabled th:value="${#dates.format(tdCarrier.issuingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放人员:</label>
<div class="col-sm-8">
<input name="issuingUser" disabled th:field="*{issuingUser}" placeholder="请输入发放人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">传递方式:</label>
<div class="col-sm-8">
<input name="deliveryMethod" disabled placeholder="请输入传递方式" th:field="*{deliveryMethod}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">交通工具:</label>
<div class="col-sm-8">
<input name="carrierVehicle" disabled placeholder="请输入交通工具" th:field="*{carrierVehicle}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体使用</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用要求:</label>
<div class="col-sm-8">
<input name="mentsUse" disabled th:field="*{mentsUse}" placeholder="请输入使用要求" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="mentsTime" disabled th:value="${#dates.format(tdCarrier.mentsTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用人员:</label>
<div class="col-sm-8">
<input name="usageUser" disabled th:field="*{usageUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</div>
<div th:if="${tdCarrier.status == '5'}">
<h4 class="form-header h4">国家秘密载体收发</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收单位:</label>
<div class="col-sm-8">
<input name="receivingUnits" disabled th:field="*{receivingUnits}" placeholder="请输入接收单位" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="receivingTime" disabled th:value="${#dates.format(tdCarrier.receivingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收人员:</label>
<div class="col-sm-8">
<input name="receivingUser" disabled th:field="*{receivingUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放单位:</label>
<div class="col-sm-8">
<input name="issuingUnit" disabled th:field="*{issuingUnit}" placeholder="请输入发放单位" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="issuingTime" disabled th:value="${#dates.format(tdCarrier.issuingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放人员:</label>
<div class="col-sm-8">
<input name="issuingUser" disabled th:field="*{issuingUser}" placeholder="请输入发放人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">传递方式:</label>
<div class="col-sm-8">
<input name="deliveryMethod" disabled placeholder="请输入传递方式" th:field="*{deliveryMethod}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">交通工具:</label>
<div class="col-sm-8">
<input name="carrierVehicle" disabled placeholder="请输入交通工具" th:field="*{carrierVehicle}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体使用</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用要求:</label>
<div class="col-sm-8">
<input name="mentsUse" disabled th:field="*{mentsUse}" placeholder="请输入使用要求" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="mentsTime" disabled th:value="${#dates.format(tdCarrier.mentsTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用人员:</label>
<div class="col-sm-8">
<input name="usageUser" disabled th:field="*{usageUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体保存</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保存地点:</label>
<div class="col-sm-8">
<input name="saveLocation" disabled th:field="*{saveLocation}" placeholder="请输入保存地点" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">地点要求:</label>
<div class="col-sm-8">
<input name="locationRequire" disabled th:field="*{locationRequire}" placeholder="请输入地点要求" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</div>
<div th:if="${tdCarrier.status == '6'}">
<h4 class="form-header h4">国家秘密载体收发</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收单位:</label>
<div class="col-sm-8">
<input name="receivingUnits" disabled th:field="*{receivingUnits}" placeholder="请输入接收单位" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="receivingTime" disabled th:value="${#dates.format(tdCarrier.receivingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收人员:</label>
<div class="col-sm-8">
<input name="receivingUser" disabled th:field="*{receivingUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放单位:</label>
<div class="col-sm-8">
<input name="issuingUnit" disabled th:field="*{issuingUnit}" placeholder="请输入发放单位" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="issuingTime" disabled th:value="${#dates.format(tdCarrier.issuingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放人员:</label>
<div class="col-sm-8">
<input name="issuingUser" disabled th:field="*{issuingUser}" placeholder="请输入发放人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">传递方式:</label>
<div class="col-sm-8">
<input name="deliveryMethod" disabled placeholder="请输入传递方式" th:field="*{deliveryMethod}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">交通工具:</label>
<div class="col-sm-8">
<input name="carrierVehicle" disabled placeholder="请输入交通工具" th:field="*{carrierVehicle}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体使用</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用要求:</label>
<div class="col-sm-8">
<input name="mentsUse" disabled th:field="*{mentsUse}" placeholder="请输入使用要求" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="mentsTime" disabled th:value="${#dates.format(tdCarrier.mentsTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用人员:</label>
<div class="col-sm-8">
<input name="usageUser" disabled th:field="*{usageUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体保存</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保存地点:</label>
<div class="col-sm-8">
<input name="saveLocation" disabled th:field="*{saveLocation}" placeholder="请输入保存地点" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">地点要求:</label>
<div class="col-sm-8">
<input name="locationRequire" disabled th:field="*{locationRequire}" placeholder="请输入地点要求" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体维修</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护部门:</label>
<div class="col-sm-8">
<input name="maintainDepart" disabled th:field="*{maintainDepart}" placeholder="请输入维护部门" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护人员:</label>
<div class="col-sm-8">
<input name="maintainUser" disabled th:field="*{maintainUser}" placeholder="请输入维护人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="maintainDate" disabled th:value="${#dates.format(tdCarrier.maintainDate, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">旁站人员:</label>
<div class="col-sm-8">
<input name="maintainStand" disabled th:field="*{maintainStand}" placeholder="请输入旁站人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</div>
<div th:if="${tdCarrier.status == '7'}">
<h4 class="form-header h4">国家秘密载体收发</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收单位:</label>
<div class="col-sm-8">
<input name="receivingUnits" disabled th:field="*{receivingUnits}" placeholder="请输入接收单位" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="receivingTime" disabled th:value="${#dates.format(tdCarrier.receivingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收人员:</label>
<div class="col-sm-8">
<input name="receivingUser" disabled th:field="*{receivingUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放单位:</label>
<div class="col-sm-8">
<input name="issuingUnit" disabled th:field="*{issuingUnit}" placeholder="请输入发放单位" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="issuingTime" disabled th:value="${#dates.format(tdCarrier.issuingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放人员:</label>
<div class="col-sm-8">
<input name="issuingUser" disabled th:field="*{issuingUser}" placeholder="请输入发放人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">传递方式:</label>
<div class="col-sm-8">
<input name="deliveryMethod" disabled placeholder="请输入传递方式" th:field="*{deliveryMethod}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">交通工具:</label>
<div class="col-sm-8">
<input name="carrierVehicle" disabled placeholder="请输入交通工具" th:field="*{carrierVehicle}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体使用</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用要求:</label>
<div class="col-sm-8">
<input name="mentsUse" disabled th:field="*{mentsUse}" placeholder="请输入使用要求" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="mentsTime" disabled th:value="${#dates.format(tdCarrier.mentsTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用人员:</label>
<div class="col-sm-8">
<input name="usageUser" disabled th:field="*{usageUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体保存</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保存地点:</label>
<div class="col-sm-8">
<input name="saveLocation" disabled th:field="*{saveLocation}" placeholder="请输入保存地点" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">地点要求:</label>
<div class="col-sm-8">
<input name="locationRequire" disabled th:field="*{locationRequire}" placeholder="请输入地点要求" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体维修</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护部门:</label>
<div class="col-sm-8">
<input name="maintainDepart" disabled th:field="*{maintainDepart}" placeholder="请输入维护部门" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护人员:</label>
<div class="col-sm-8">
<input name="maintainUser" disabled th:field="*{maintainUser}" placeholder="请输入维护人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="maintainDate" disabled th:value="${#dates.format(tdCarrier.maintainDate, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">旁站人员:</label>
<div class="col-sm-8">
<input name="maintainStand" disabled th:field="*{maintainStand}" placeholder="请输入旁站人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体销毁</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁部门:</label>
<div class="col-sm-8">
<input name="destoryDepart" disabled th:field="*{destoryDepart}" placeholder="请输入销毁部门" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁人员:</label>
<div class="col-sm-8">
<input name="destoryUser" disabled th:field="*{destoryUser}" placeholder="请输入销毁人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="destoryDate" disabled th:value="${#dates.format(tdCarrier.destoryDate, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁方式:</label>
<div class="col-sm-8">
<input name="destoryManner" disabled th:field="*{destoryManner}" placeholder="请输入销毁方式" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">旁站人员:</label>
<div class="col-sm-8">
<input name="destoryStand" disabled th:field="*{destoryStand}" placeholder="请输入旁站人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/destoryCarrier"
$("#form-fileprovide-add").validate({
focusCleanup: true
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
AreaList:[],
City:[[${tdCarrier.areaCity}]],
Area:[[${tdCarrier.areaDistrict}]],
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
if (this.City){
this.getAreaList()
}
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data.filter(obj => obj.id === '36625');
}) ,
});
},
getAreaList(){
this.params.parentId = this.City
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params,
success:((res)=>{
this.AreaList = res.data
}) ,
});
}
}
})
$("input[name='destoryDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.saveTab(prefix + "/edit", $('#form-fileprovide-add').serialize());
}
}
</script>
</body>
</html>

@ -1,192 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增载体制作')" />
<!-- <th:block th:include="include :: select2-css" />-->
<!-- <th:block th:include="include :: bootstrap-select-css" />-->
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-fileprovide-add" th:object="${tdCarrier}">
<input name="id" th:field="*{id}" type="hidden">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属市州:</label>
<div class="col-sm-8">
<select id="City" name="areaCity" required @change="getAreaList()" v-model="City" class="form-control">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属区县:</label>
<div class="col-sm-8">
<select id="Area" name="areaDistrict" required v-model="Area" class="form-control">
<option value="">请选择</option>
<option v-for="option in AreaList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体名称:</label>
<div class="col-sm-8">
<input name="carrierName" th:field="*{carrierName}" placeholder="请输入载体名称" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体类型:</label>
<div class="col-sm-8">
<select name="carrierLevel" required class="form-control" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierLevel}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体数量:</label>
<div class="col-sm-8">
<input name="carrierCount" th:field="*{carrierCount}" digits="true" placeholder="请输入载体数量" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">密级:</label>
<div class="col-sm-8">
<select name="carrierSecret" required class="form-control" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierSecret}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">紧急程度:</label>
<div class="col-sm-8">
<select name="carrierExtent" required class="form-control" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierExtent}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">编号:</label>
<div class="col-sm-8">
<input name="carrierNumber" placeholder="请输入编号" th:field="*{carrierNumber}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保密期限:</label>
<div class="col-sm-8">
<input name="carrierTerm" placeholder="请输入保密期限" th:field="*{carrierTerm}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">发放范围:</label>
<div class="col-sm-8">
<input name="carrierContent" placeholder="请输入发放范围" th:field="*{carrierContent}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">定密依据:</label>
<div class="col-sm-10">
<textarea name="carrierAlliance" th:field="*{carrierAlliance}" placeholder="请输入定密依据" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<!--<th:block th:include="include :: select2-js" />-->
<!--<th:block th:include="include :: bootstrap-select-js" />-->
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/carrier"
$("#form-fileprovide-add").validate({
focusCleanup: true
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
AreaList:[],
City:[[${tdCarrier.areaCity}]],
Area:[[${tdCarrier.areaDistrict}]],
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
if (this.City){
this.getAreaList()
}
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data.filter(obj => obj.id === '36625');
}) ,
});
},
getAreaList(){
this.params.parentId = this.City
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params,
success:((res)=>{
this.AreaList = res.data
}) ,
});
}
}
})
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-fileprovide-add').serialize());
}
}
</script>
</body>
</html>

@ -1,197 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增载体登记')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-fileprovide-add">
<input name="status" type="hidden" th:value="1">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属市州:</label>
<div class="col-sm-8">
<select id="City" name="areaCity" required class="form-control m-b">
<option value="">---请选择---</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属区县:</label>
<div class="col-sm-8">
<select id="Area" name="areaDistrict" required class="form-control m-b">
<option value="">---请选择---</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体名称:</label>
<div class="col-sm-8">
<input name="carrierName" placeholder="请输入载体名称" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体类型:</label>
<div class="col-sm-8">
<select name="carrierLevel" required class="form-control m-b" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体数量:</label>
<div class="col-sm-8">
<input name="carrierCount" digits="true" placeholder="请输入载体数量" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">密级:</label>
<div class="col-sm-8">
<select name="carrierSecret" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">紧急程度:</label>
<div class="col-sm-8">
<select name="carrierExtent" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">编号:</label>
<div class="col-sm-8">
<input name="carrierNumber" placeholder="请输入编号" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保密期限:</label>
<div class="col-sm-8">
<input name="carrierTerm" placeholder="请输入保密期限" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放范围:</label>
<div class="col-sm-8">
<input name="carrierContent" placeholder="请输入发放范围" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/carrierIssued"
$("#form-fileprovide-add").validate({
focusCleanup: true
});
$(document).ready(function() {
// 获取市级数据并填充到城市下拉框
$.ajax({
url: ctx + "system/area/getSysAreaList",
method: 'GET',
success: function(res) {
var cities = res.data.filter(obj => obj.id === '36625'); // 假设返回的数据中有一个叫做 'cities' 的字段包含市级数据
var $citySelect = $('#City');
// 填充城市下拉框
cities.forEach(function(city) {
$citySelect.append($('<option>', {
value: city.id,
text: city.name
}));
});
$citySelect.val('36625');
// 初始化 select2 插件
$citySelect.select2();
},
error: function(err) {
console.error('Failed to load city data:', err);
}
});
// 监听城市下拉框的变化事件
// $('#City').on('change', function() {
// var selectedCityId = $(this).val();
//
// // 如果未选择城市,则不执行后续操作
// if (!selectedCityId) return;
// 根据选中的城市ID发送请求获取对应的区级数据
$.ajax({
url: ctx + "system/area/getSysAreaList",
data:{parentId:'36625'},
method: 'GET',
success: function(res) {
var areas = res.data; // 假设返回的数据中有一个叫做 'areas' 的字段包含区级数据
var $areaSelect = $('#Area');
// 清空区级下拉框并填充数据
$areaSelect.empty().append($('<option>', {
value: '',
text: '请选择区'
}));
areas.forEach(function(area) {
$areaSelect.append($('<option>', {
value: area.id,
text: area.name
}));
});
// 更新 select2 插件
$areaSelect.select2();
},
error: function(err) {
console.error('Failed to load area data:', err);
}
});
// });
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-fileprovide-add').serialize());
}
}
</script>
</body>
</html>

@ -1,196 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('国家秘密载体登记')" />
</head>
<body class="gray-bg">
<div class="container-div" id="app">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>载体名称:</label>
<input type="text" name="carrierName"/>
</li>
<li>
<label>密级:</label>
<select name="carrierSecret" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>载体类型:</label>
<select name="carrierLevel" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>所属市州:</label>
<select id="City" name="areaCity" v-model="City">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:carrierIssued:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:carrierIssued:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:carrierIssued:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:carrierIssued:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:carrierIssued:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:carrierIssued:remove')}]];
var detailFlag = [[${@permission.hasPermi('system:carrierIssued:detail')}]];
var carrierLevelDatas = [[${@dict.getType('sys_provide_level')}]];
var fileSecretDatas = [[${@dict.getType('sys_file_miji')}]];
var carrierExtentDatas = [[${@dict.getType('sys_file_jinjichengdu')}]];
var stateDatas = [[${@dict.getType('carrier_issued_status')}]];
var prefix = ctx + "system/carrierIssued";
let datas = []
$.ajax({
url: ctx + "system/area/getAllList",
type: 'GET',
data:{parentId:''} ,
success:((res)=>{
datas = res.data
}) ,
});
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
detailUrl: prefix + "/detail/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "国家秘密载体登记",
columns: [
{
checkbox: true
},
{
field: 'id',
title: 'id',
visible: false
},
{
field: 'areaCity',
title: '所属市州',
formatter: function(value, row, index) {
return getCity(datas, value)
}
},
{
field: 'carrierName',
title: '载体名称'
},
{
field: 'carrierLevel',
title: '载体类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierLevelDatas, value);
}
},
{
field: 'carrierExtent',
title: '紧急程度',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierExtentDatas, value);
}
},
{
field: 'carrierSecret',
title: '密级',
formatter: function(value, row, index) {
return $.table.selectDictLabel(fileSecretDatas, value);
}
},
{
field: 'carrierTerm',
title: '保密期限'
},
{
field: 'createTime',
title: '创建时间',
sortable: true
},
{
field: 'status',
title: '状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(stateDatas, value);
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-search"></i>详细</a> ');
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
City:'',
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data.filter(obj => obj.id === '36625');
}) ,
});
},
}
})
</script>
</body>
</html>

@ -1,711 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增载体制作')" />
<!-- <th:block th:include="include :: select2-css" />-->
<!-- <th:block th:include="include :: bootstrap-select-css" />-->
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-carrierlssued-add" th:object="${tdCarrierIssued}">
<input name="id" th:field="*{id}" type="hidden">
<div th:if="${tdCarrierIssued.status != '3'}">
<h4 class="form-header h4">国家秘密载体登记</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属市州:</label>
<div class="col-sm-8">
<select id="City" disabled name="areaCity" required @change="getAreaList()" v-model="City" class="form-control">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属区县:</label>
<div class="col-sm-8">
<select id="Area" disabled name="areaDistrict" required v-model="Area" class="form-control">
<option value="">请选择</option>
<option v-for="option in AreaList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体名称:</label>
<div class="col-sm-8">
<input name="carrierName" disabled th:field="*{carrierName}" placeholder="请输入载体名称" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体类型:</label>
<div class="col-sm-8">
<select disabled name="carrierLevel" required class="form-control" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierLevel}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体数量:</label>
<div class="col-sm-8">
<input disabled name="carrierCount" th:field="*{carrierCount}" digits="true" placeholder="请输入载体数量" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">密级:</label>
<div class="col-sm-8">
<select disabled name="carrierSecret" required class="form-control" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierSecret}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">紧急程度:</label>
<div class="col-sm-8">
<select disabled name="carrierExtent" required class="form-control" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierExtent}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">编号:</label>
<div class="col-sm-8">
<input disabled name="carrierNumber" placeholder="请输入编号" th:field="*{carrierNumber}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保密期限:</label>
<div class="col-sm-8">
<input disabled name="carrierTerm" placeholder="请输入保密期限" th:field="*{carrierTerm}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">发放范围:</label>
<div class="col-sm-8">
<input disabled name="carrierContent" placeholder="请输入发放范围" th:field="*{carrierContent}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</div>
<div th:if="${tdCarrierIssued.status == '2'}">
<h4 class="form-header h4">国家秘密载体使用</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用人员:</label>
<div class="col-sm-8">
<input name="usageUser" disabled th:field="*{usageUser}" placeholder="请输入使用人员" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用期限:</label>
<div class="col-sm-8">
<select id="expirationTime" disabled name="expirationTime" required class="form-control" th:with="type=${@dict.getType('zaiti_use_time')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{expirationTime}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">使用时间:</label>
<div class="col-sm-10">
<div id="mentsTime" class="input-daterange input-group ">
<input type="text" class="input-sm form-control" disabled th:value="${#dates.format(tdCarrierIssued.mentsTime, 'yyyy-MM-dd')}" required name="mentsTime" id="laydate-startTime" placeholder="开始时间"/>
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" disabled th:value="${#dates.format(tdCarrierIssued.mentsendTime, 'yyyy-MM-dd')}" required name="mentsendTime" id="laydate-endTime" placeholder="结束时间"/>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">使用要求:</label>
<div class="col-sm-10">
<textarea name="mentsUse" disabled th:field="*{mentsUse}" placeholder="请输入使用要求" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
</div>
<div th:if="${tdCarrierIssued.status == '3'}">
<h4 class="form-header h4">已回收</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属市州:</label>
<div class="col-sm-8">
<select id="City" disabled name="areaCity" required @change="getAreaList()" v-model="City" class="form-control">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属区县:</label>
<div class="col-sm-8">
<select id="Area" disabled name="areaDistrict" required v-model="Area" class="form-control">
<option value="">请选择</option>
<option v-for="option in AreaList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体名称:</label>
<div class="col-sm-8">
<input name="carrierName" disabled th:field="*{carrierName}" placeholder="请输入载体名称" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体类型:</label>
<div class="col-sm-8">
<select disabled name="carrierLevel" required class="form-control" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierLevel}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体数量:</label>
<div class="col-sm-8">
<input disabled name="carrierCount" th:field="*{carrierCount}" digits="true" placeholder="请输入载体数量" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">密级:</label>
<div class="col-sm-8">
<select disabled name="carrierSecret" required class="form-control" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierSecret}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">紧急程度:</label>
<div class="col-sm-8">
<select disabled name="carrierExtent" required class="form-control" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierExtent}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">编号:</label>
<div class="col-sm-8">
<input disabled name="carrierNumber" placeholder="请输入编号" th:field="*{carrierNumber}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保密期限:</label>
<div class="col-sm-8">
<input disabled name="carrierTerm" placeholder="请输入保密期限" th:field="*{carrierTerm}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">发放范围:</label>
<div class="col-sm-8">
<input disabled name="carrierContent" placeholder="请输入发放范围" th:field="*{carrierContent}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">回收时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="receivingTime" disabled th:value="${#dates.format(tdCarrierIssued.reclaimTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
</div>
<div th:if="${tdCarrierIssued.status == '4'}">
<h4 class="form-header h4">国家秘密载体使用</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用人员:</label>
<div class="col-sm-8">
<input name="usageUser" disabled th:field="*{usageUser}" placeholder="请输入使用人员" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用期限:</label>
<div class="col-sm-8">
<select id="expirationTime" disabled name="expirationTime" required class="form-control" th:with="type=${@dict.getType('zaiti_use_time')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{expirationTime}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">使用时间:</label>
<div class="col-sm-10">
<div id="mentsTime" class="input-daterange input-group ">
<input type="text" class="input-sm form-control" disabled th:value="${#dates.format(tdCarrierIssued.mentsTime, 'yyyy-MM-dd')}" required name="mentsTime" id="laydate-startTime" placeholder="开始时间"/>
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" disabled th:value="${#dates.format(tdCarrierIssued.mentsendTime, 'yyyy-MM-dd')}" required name="mentsendTime" id="laydate-endTime" placeholder="结束时间"/>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">使用要求:</label>
<div class="col-sm-10">
<textarea name="mentsUse" disabled th:field="*{mentsUse}" placeholder="请输入使用要求" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体保存</h4>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">保存地点:</label>
<div class="col-sm-10">
<input disabled name="saveLocation" th:field="*{saveLocation}" placeholder="请输入保存地点" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">地点要求:</label>
<div class="col-sm-10">
<textarea disabled name="locationRequire" rows="4" th:field="*{locationRequire}" placeholder="请输入地点要求" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
</div>
<div th:if="${tdCarrierIssued.status == '5'}">
<h4 class="form-header h4">国家秘密载体使用</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用人员:</label>
<div class="col-sm-8">
<input name="usageUser" disabled th:field="*{usageUser}" placeholder="请输入使用人员" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用期限:</label>
<div class="col-sm-8">
<select id="expirationTime" disabled name="expirationTime" required class="form-control" th:with="type=${@dict.getType('zaiti_use_time')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{expirationTime}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">使用时间:</label>
<div class="col-sm-10">
<div id="mentsTime" class="input-daterange input-group ">
<input type="text" class="input-sm form-control" disabled th:value="${#dates.format(tdCarrierIssued.mentsTime, 'yyyy-MM-dd')}" required name="mentsTime" id="laydate-startTime" placeholder="开始时间"/>
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" disabled th:value="${#dates.format(tdCarrierIssued.mentsendTime, 'yyyy-MM-dd')}" required name="mentsendTime" id="laydate-endTime" placeholder="结束时间"/>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">使用要求:</label>
<div class="col-sm-10">
<textarea name="mentsUse" disabled th:field="*{mentsUse}" placeholder="请输入使用要求" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体保存</h4>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">保存地点:</label>
<div class="col-sm-10">
<input disabled name="saveLocation" th:field="*{saveLocation}" placeholder="请输入保存地点" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">地点要求:</label>
<div class="col-sm-10">
<textarea disabled name="locationRequire" rows="4" th:field="*{locationRequire}" placeholder="请输入地点要求" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体维修</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护部门:</label>
<div class="col-sm-8">
<input disabled name="maintainDepart" th:field="*{maintainDepart}" placeholder="请输入维护部门" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护人员:</label>
<div class="col-sm-8">
<input disabled name="maintainUser" th:field="*{maintainUser}" placeholder="请输入维护人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input disabled name="maintainDate" th:value="${#dates.format(tdCarrierIssued.maintainDate, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span disabled class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">旁站人员:</label>
<div class="col-sm-8">
<input disabled name="maintainStand" th:field="*{maintainStand}" placeholder="请输入旁站人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</div>
<div th:if="${tdCarrierIssued.status == '6'}">
<h4 class="form-header h4">国家秘密载体使用</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用人员:</label>
<div class="col-sm-8">
<input name="usageUser" disabled th:field="*{usageUser}" placeholder="请输入使用人员" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用期限:</label>
<div class="col-sm-8">
<select id="expirationTime" disabled name="expirationTime" required class="form-control" th:with="type=${@dict.getType('zaiti_use_time')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{expirationTime}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">使用时间:</label>
<div class="col-sm-10">
<div id="mentsTime" class="input-daterange input-group ">
<input type="text" class="input-sm form-control" disabled th:value="${#dates.format(tdCarrierIssued.mentsTime, 'yyyy-MM-dd')}" required name="mentsTime" id="laydate-startTime" placeholder="开始时间"/>
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" disabled th:value="${#dates.format(tdCarrierIssued.mentsendTime, 'yyyy-MM-dd')}" required name="mentsendTime" id="laydate-endTime" placeholder="结束时间"/>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">使用要求:</label>
<div class="col-sm-10">
<textarea name="mentsUse" disabled th:field="*{mentsUse}" placeholder="请输入使用要求" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体保存</h4>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">保存地点:</label>
<div class="col-sm-10">
<input disabled name="saveLocation" th:field="*{saveLocation}" placeholder="请输入保存地点" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">地点要求:</label>
<div class="col-sm-10">
<textarea disabled name="locationRequire" rows="4" th:field="*{locationRequire}" placeholder="请输入地点要求" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体维修</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护部门:</label>
<div class="col-sm-8">
<input disabled name="maintainDepart" th:field="*{maintainDepart}" placeholder="请输入维护部门" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护人员:</label>
<div class="col-sm-8">
<input disabled name="maintainUser" th:field="*{maintainUser}" placeholder="请输入维护人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input disabled name="maintainDate" th:value="${#dates.format(tdCarrierIssued.maintainDate, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span disabled class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">旁站人员:</label>
<div class="col-sm-8">
<input disabled name="maintainStand" th:field="*{maintainStand}" placeholder="请输入旁站人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体销毁</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁部门:</label>
<div class="col-sm-8">
<input disabled name="destoryDepart" th:field="*{destoryDepart}" placeholder="请输入销毁部门" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁人员:</label>
<div class="col-sm-8">
<input disabled name="destoryUser" th:field="*{destoryUser}" placeholder="请输入销毁人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input disabled name="destoryDate" th:value="${#dates.format(tdCarrierIssued.destoryDate, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁方式:</label>
<div class="col-sm-8">
<input disabled name="destoryManner" th:field="*{destoryManner}" placeholder="请输入销毁方式" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">旁站人员:</label>
<div class="col-sm-8">
<input disabled name="destoryStand" th:field="*{destoryStand}" placeholder="请输入旁站人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<!--<th:block th:include="include :: select2-js" />-->
<!--<th:block th:include="include :: bootstrap-select-js" />-->
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/carrierIssued"
$("#form-carrierlssued-add").validate({
focusCleanup: true
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
AreaList:[],
City:[[${tdCarrierIssued.areaCity}]],
Area:[[${tdCarrierIssued.areaDistrict}]],
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
if (this.City){
this.getAreaList()
}
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data.filter(obj => obj.id === '36625');
}) ,
});
},
getAreaList(){
this.params.parentId = this.City
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params,
success:((res)=>{
this.AreaList = res.data
}) ,
});
}
}
})
$('#mentsTime').parents(".row").hide();
if ($("#expirationTime").val() !== '' && $("#expirationTime").val() == '2'){
$('#mentsTime').parents(".row").hide();
}
if ($("#expirationTime").val() == '1'){
$('#mentsTime').parents(".row").show();
}
$('#expirationTime').change(function() {
var selectedValue = $(this).val();
var mentsTimeDiv = $('#mentsTime').parents(".row");
if (selectedValue === '1') {
mentsTimeDiv.show();
}
if (selectedValue === '2'){
mentsTimeDiv.hide();
$('#laydate-startTime').val('');
$('#laydate-endTime').val('');
}
});
</script>
</body>
</html>

@ -1,182 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增载体制作')" />
<!-- <th:block th:include="include :: select2-css" />-->
<!-- <th:block th:include="include :: bootstrap-select-css" />-->
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-carrierlssued-add" th:object="${tdCarrierIssued}">
<input name="id" th:field="*{id}" type="hidden">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属市州:</label>
<div class="col-sm-8">
<select id="City" name="areaCity" required @change="getAreaList()" v-model="City" class="form-control">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属区县:</label>
<div class="col-sm-8">
<select id="Area" name="areaDistrict" required v-model="Area" class="form-control">
<option value="">请选择</option>
<option v-for="option in AreaList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体名称:</label>
<div class="col-sm-8">
<input name="carrierName" th:field="*{carrierName}" placeholder="请输入载体名称" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体类型:</label>
<div class="col-sm-8">
<select name="carrierLevel" required class="form-control" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierLevel}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体数量:</label>
<div class="col-sm-8">
<input name="carrierCount" th:field="*{carrierCount}" digits="true" placeholder="请输入载体数量" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">密级:</label>
<div class="col-sm-8">
<select name="carrierSecret" required class="form-control" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierSecret}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">紧急程度:</label>
<div class="col-sm-8">
<select name="carrierExtent" required class="form-control" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierExtent}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">编号:</label>
<div class="col-sm-8">
<input name="carrierNumber" placeholder="请输入编号" th:field="*{carrierNumber}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保密期限:</label>
<div class="col-sm-8">
<input name="carrierTerm" placeholder="请输入保密期限" th:field="*{carrierTerm}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">发放范围:</label>
<div class="col-sm-8">
<input name="carrierContent" placeholder="请输入发放范围" th:field="*{carrierContent}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<!--<th:block th:include="include :: select2-js" />-->
<!--<th:block th:include="include :: bootstrap-select-js" />-->
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/carrierIssued"
$("#form-carrierlssued-add").validate({
focusCleanup: true
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
AreaList:[],
City:[[${tdCarrierIssued.areaCity}]],
Area:[[${tdCarrierIssued.areaDistrict}]],
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
if (this.City){
this.getAreaList()
}
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data.filter(obj => obj.id === '36625');
}) ,
});
},
getAreaList(){
this.params.parentId = this.City
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params,
success:((res)=>{
this.AreaList = res.data
}) ,
});
}
}
})
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-carrierlssued-add').serialize());
}
}
</script>
</body>
</html>

@ -1,164 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('失泄密案件登记')" />
<th:block th:include="include :: datetimepicker-css" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-tdCase-add">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">案件名称:</label>
<div class="col-sm-8">
<input name="caseName" maxlength="50" required placeholder="请输入案件名称" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">案件编号:</label>
<div class="col-sm-8">
<input name="caseAssum" maxlength="50" placeholder="请输入案件编号" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发生时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="caseTime" required class="form-control m-b" id="datetimepicker-demo-3" placeholder="yyyy-MM-dd HH:mm" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发生地点:</label>
<div class="col-sm-8">
<input name="caseAddress" maxlength="50" required placeholder="请输入案件发生地点" class="form-control"></input>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">案件类别:</label>
<div class="col-sm-8">
<select name="caseType" required class="form-control m-b" th:with="type=${@dict.getType('sys_case_type')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">涉密等级:</label>
<div class="col-sm-8">
<select name="caseGrade" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">涉案人员名称:</label>
<div class="col-sm-8">
<input name="involvedName" maxlength="25" required placeholder="请输入涉案人员名称" class="form-control"></input>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">涉案人员联系方式:</label>
<div class="col-sm-8">
<input name="involvedTel" id="involvedTel" maxlength="11" required placeholder="请输入涉案人员联系方式" class="form-control"></input>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required" >案件状态:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_case_state')}">
<input type="radio" required th:id="${dict.dictCode}" name="state" th:value="${dict.dictValue}" th:checked="${dict.default}">
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">案件内容:</label>
<div class="col-sm-10">
<textarea name="caseContent" required rows="4" placeholder="请输入案件内容" class="form-control"></textarea>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">处理措施:</label>
<div class="col-sm-10">
<textarea name="caseMeasure" rows="4" placeholder="请输入案件处理措施" class="form-control"></textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<script th:inline="javascript">
var prefix = ctx + "system/tdCase"
$.validator.addMethod("phone", function(value, element) {
return this.optional(element) || /^1[3-9]\d{9}$/.test(value);
}, "请输入有效的手机号码");
$("#form-tdCase-add").validate({
focusCleanup: true,
rules: {
involvedTel: {
isPhone:true,
required: true,
phone: true
}
},
messages: {
involvedTel: {
required: "手机号码不能为空",
phone: "请输入有效的手机号码"
}
}
});
$("input[name='caseTime']").datetimepicker({
format: "yyyy-mm-dd hh:ii",
autoclose: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $("#form-tdCase-add").serialize());
}
}
</script>
</body>
</html>

@ -1,159 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('失泄密案件管理')" />
</head>
<body class="gray-bg">
<div class="container-div" id="app">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>案件名称:</label>
<input type="text" name="caseName"></input>
</li>
<li>
<label>案件类型:</label>
<select name="caseType" th:with="type=${@dict.getType('sys_case_type')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>涉密等级:</label>
<select name="caseGrade" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li class="select-time">
<label>发生时间: </label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:case:add">
<i class="fa fa-plus"></i> 登记
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:case:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:case:remove">
<i class="fa fa-remove"></i> 删除
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var detailFlag = [[${@permission.hasPermi('system:case:detail')}]];
var editFlag = [[${@permission.hasPermi('system:case:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:case:remove')}]];
var caseType = [[${@dict.getType('sys_case_type')}]];
var caseStatus = [[${@dict.getType('sys_case_state')}]];
var caseGrade = [[${@dict.getType('sys_file_miji')}]];
var prefix = ctx + "system/tdCase";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
detailUrl: prefix + "/detail/{id}",
removeUrl: prefix + "/remove",
modalName: "失泄密案件",
columns: [{
checkbox: true
},
{
field: 'id',
title: 'ID',
visible: false
},
{
field: 'caseName',
title: '案件名称',
width: '35',
widthUnit: '%',
align: "left"
},
{
field: 'caseType',
title: '案件类型',
width: '10',
widthUnit: '%',
formatter: function(value, row, index) {
return $.table.selectDictLabel(caseType, value);
}
},
{
field: 'caseGrade',
title: '案件涉密等级',
width: '10',
widthUnit: '%',
formatter: function(value, row, index) {
return $.table.selectDictLabel(caseGrade, value);
}
},
{
field: 'caseTime',
title: '案件发生时间',
width: '10',
widthUnit: '%',
formatter: function(value, row, index) {
if (value !== null){
var date = new Date(value);
var year = date.getFullYear();
var month = ('0' + (date.getMonth() + 1)).slice(-2);
var day = ('0' + date.getDate()).slice(-2);
var hours = ('0' + date.getHours()).slice(-2);
var minutes = ('0' + date.getMinutes()).slice(-2);
return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes;
}
}
},
{
field: 'state',
title: '案件状态',
width: '10',
widthUnit: '%',
formatter: function(value, row, index) {
return $.table.selectDictLabel(caseStatus, value);
}
},
{
field: 'createTime',
title: '创建时间',
sortable: true
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-search"></i>详细</a> ');
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

@ -1,149 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('失泄密案件修改')" />
<th:block th:include="include :: datetimepicker-css" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-tdCase-edit" th:object="${tdCase}">
<input name="id" th:field="*{id}" type="hidden">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">案件名称:</label>
<div class="col-sm-8">
<input name="caseName" disabled th:field="*{caseName}" required placeholder="请输入案件名称" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">案件编号:</label>
<div class="col-sm-8">
<input name="caseAssum" disabled th:field="*{caseAssum}" placeholder="请输入案件编号" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发生时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="caseTime" disabled th:value="${#dates.format(tdCase.caseTime, 'yyyy-MM-dd HH:mm')}" required class="form-control m-b" id="datetimepicker-demo-3" placeholder="yyyy-MM-dd HH:mm" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发生地点:</label>
<div class="col-sm-8">
<input name="caseAddress" disabled th:field="*{caseAddress}" required placeholder="请输入案件发生地点" class="form-control"></input>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">案件类别:</label>
<div class="col-sm-8">
<select name="caseType" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_case_type')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{caseType}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">涉密等级:</label>
<div class="col-sm-8">
<select name="caseGrade" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{caseGrade}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">涉案人员名称:</label>
<div class="col-sm-8">
<input name="involvedName" disabled required placeholder="请输入涉案人员名称" class="form-control" th:field="*{involvedName}"></input>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">涉案人员联系方式:</label>
<div class="col-sm-8">
<input name="involvedTel" disabled required placeholder="请输入涉案人员联系方式" class="form-control" th:field="*{involvedTel}"></input>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required" >案件状态:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_case_state')}">
<input disabled type="radio" required th:id="${dict.dictCode}" name="state" th:value="${dict.dictValue}" th:checked="${dict.default}" th:field="*{state}">
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">案件内容:</label>
<div class="col-sm-10">
<textarea name="caseContent" disabled required rows="4" placeholder="请输入案件内容" class="form-control" th:field="*{caseContent}"></textarea>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">处理措施:</label>
<div class="col-sm-10">
<textarea name="caseMeasure" disabled rows="4" placeholder="请输入案件处理措施" class="form-control" th:field="*{caseMeasure}"></textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<script th:inline="javascript">
var prefix = ctx + "system/tdCase"
$("#form-tdCase-edit").validate({
focusCleanup: true
});
$("input[name='caseTime']").datetimepicker({
format: "yyyy-mm-dd hh:ii",
autoclose: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $("#form-tdCase-edit").serialize());
}
}
</script>
</body>
</html>

@ -1,165 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('失泄密案件修改')" />
<th:block th:include="include :: datetimepicker-css" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-tdCase-edit" th:object="${tdCase}">
<input name="id" th:field="*{id}" type="hidden">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">案件名称:</label>
<div class="col-sm-8">
<input name="caseName" maxlength="50" th:field="*{caseName}" required placeholder="请输入案件名称" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">案件编号:</label>
<div class="col-sm-8">
<input name="caseAssum" maxlength="50" th:field="*{caseAssum}" placeholder="请输入案件编号" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发生时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="caseTime" th:value="${#dates.format(tdCase.caseTime, 'yyyy-MM-dd HH:mm')}" required class="form-control m-b" id="datetimepicker-demo-3" placeholder="yyyy-MM-dd HH:mm" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发生地点:</label>
<div class="col-sm-8">
<input name="caseAddress" maxlength="50" th:field="*{caseAddress}" required placeholder="请输入案件发生地点" class="form-control"></input>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">案件类别:</label>
<div class="col-sm-8">
<select name="caseType" required class="form-control m-b" th:with="type=${@dict.getType('sys_case_type')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{caseType}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">涉密等级:</label>
<div class="col-sm-8">
<select name="caseGrade" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{caseGrade}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">涉案人员名称:</label>
<div class="col-sm-8">
<input name="involvedName" maxlength="25" required placeholder="请输入涉案人员名称" class="form-control" th:field="*{involvedName}"></input>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">涉案人员联系方式:</label>
<div class="col-sm-8">
<input name="involvedTel" id="involvedTel" maxlength="11" required placeholder="请输入涉案人员联系方式" class="form-control" th:field="*{involvedTel}"></input>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required" >案件状态:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_case_state')}">
<input type="radio" required th:id="${dict.dictCode}" name="state" th:value="${dict.dictValue}" th:checked="${dict.default}" th:field="*{state}">
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">案件内容:</label>
<div class="col-sm-10">
<textarea name="caseContent" required rows="4" placeholder="请输入案件内容" class="form-control" th:field="*{caseContent}"></textarea>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">处理措施:</label>
<div class="col-sm-10">
<textarea name="caseMeasure" rows="4" placeholder="请输入案件处理措施" class="form-control" th:field="*{caseMeasure}"></textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<script th:inline="javascript">
var prefix = ctx + "system/tdCase"
$.validator.addMethod("phone", function(value, element) {
return this.optional(element) || /^1[3-9]\d{9}$/.test(value);
}, "请输入有效的手机号码");
$("#form-tdCase-add").validate({
focusCleanup: true,
rules: {
involvedTel: {
isPhone:true,
required: true,
phone: true
}
},
messages: {
involvedTel: {
required: "手机号码不能为空",
phone: "请输入有效的手机号码"
}
}
});
$("input[name='caseTime']").datetimepicker({
format: "yyyy-mm-dd hh:ii",
autoclose: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $("#form-tdCase-edit").serialize());
}
}
</script>
</body>
</html>

@ -1,164 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('载体下发列表')" />
</head>
<body class="gray-bg">
<div class="container-div" id="app">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<input type="hidden" name="status" th:value="6"/>
<li>
<label>载体名称:</label>
<input type="text" name="carrierName"/>
</li>
<li>
<label>密级:</label>
<select name="carrierSecret" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>载体类型:</label>
<select name="carrierLevel" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>所属市州:</label>
<select id="City" name="areaCity" v-model="City">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:useCarrier:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:useCarrier:remove')}]];
var detailFlag = [[${@permission.hasPermi('system:useCarrier:detail')}]];
var carrierLevelDatas = [[${@dict.getType('sys_provide_level')}]];
var fileSecretDatas = [[${@dict.getType('sys_file_miji')}]];
var carrierExtentDatas = [[${@dict.getType('sys_file_jinjichengdu')}]];
var prefix = ctx + "system/destoryCarrier";
let datas = []
$.ajax({
url: ctx + "system/area/getAllList",
type: 'GET',
data:{parentId:''} ,
success:((res)=>{
datas = res.data
}) ,
});
$(function() {
var options = {
url: prefix + "/list",
updateUrl: prefix + "/edit/{id}",
modalName: "国家秘密载体维修",
columns: [
{
field: 'id',
title: 'id',
visible: false
},
{
field: 'areaCity',
title: '所属市州',
formatter: function(value, row, index) {
return getCity(datas, value)
}
},
{
field: 'carrierName',
title: '载体名称'
},
{
field: 'carrierLevel',
title: '载体类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierLevelDatas, value);
}
},
{
field: 'carrierExtent',
title: '紧急程度',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierExtentDatas, value);
}
},
{
field: 'carrierSecret',
title: '密级',
formatter: function(value, row, index) {
return $.table.selectDictLabel(fileSecretDatas, value);
}
},
{
field: 'carrierTerm',
title: '保密期限'
},
{
field: 'createTime',
title: '创建时间',
sortable: true
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.id + '\')"><i class="fa fa-edit"></i>销毁</a> ');
return actions.join('');
}
}]
};
$.table.init(options);
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
City:'',
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data.filter(obj => obj.id === '36625');
}) ,
});
},
}
})
</script>
</body>
</html>

@ -1,425 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增载体制作')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-fileprovide-add" th:object="${tdCarrier}">
<input name="id" th:field="*{id}" type="hidden">
<input name="status" th:value="7" type="hidden">
<h4 class="form-header h4">国家秘密载体制作</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label ">所属市州:</label>
<div class="col-sm-8">
<select id="City" name="areaCity" disabled @change="getAreaList()" v-model="City" class="form-control m-b">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label ">所属区县:</label>
<div class="col-sm-8">
<select id="Area" name="areaDistrict" disabled v-model="Area" class="form-control m-b">
<option value="">请选择</option>
<option v-for="option in AreaList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体名称:</label>
<div class="col-sm-8">
<input name="carrierName" disabled th:field="*{carrierName}" placeholder="请输入载体名称" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体类型:</label>
<div class="col-sm-8">
<select name="carrierLevel" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierLevel}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体数量:</label>
<div class="col-sm-8">
<input name="carrierCount" disabled th:field="*{carrierCount}" digits="true" placeholder="请输入载体数量" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">密级:</label>
<div class="col-sm-8">
<select name="carrierSecret" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierSecret}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">紧急程度:</label>
<div class="col-sm-8">
<select name="carrierExtent" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierExtent}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">编号:</label>
<div class="col-sm-8">
<input name="carrierNumber" disabled placeholder="请输入编号" th:field="*{carrierNumber}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保密期限:</label>
<div class="col-sm-8">
<input name="carrierTerm" disabled placeholder="请输入保密期限" th:field="*{carrierTerm}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放范围:</label>
<div class="col-sm-8">
<input name="carrierContent" disabled placeholder="请输入发放范围" th:field="*{carrierContent}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">定密依据:</label>
<div class="col-sm-10">
<textarea name="carrierAlliance" disabled th:field="*{carrierAlliance}" placeholder="请输入定密依据" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体收发</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收单位:</label>
<div class="col-sm-8">
<input name="receivingUnits" disabled th:field="*{receivingUnits}" placeholder="请输入接收单位" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="receivingTime" disabled th:value="${#dates.format(tdCarrier.receivingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收人员:</label>
<div class="col-sm-8">
<input name="receivingUser" disabled th:field="*{receivingUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放单位:</label>
<div class="col-sm-8">
<input name="issuingUnit" disabled th:field="*{issuingUnit}" placeholder="请输入发放单位" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="issuingTime" disabled th:value="${#dates.format(tdCarrier.issuingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放人员:</label>
<div class="col-sm-8">
<input name="issuingUser" disabled th:field="*{issuingUser}" placeholder="请输入发放人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">传递方式:</label>
<div class="col-sm-8">
<input name="deliveryMethod" disabled placeholder="请输入传递方式" th:field="*{deliveryMethod}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">交通工具:</label>
<div class="col-sm-8">
<input name="carrierVehicle" disabled placeholder="请输入交通工具" th:field="*{carrierVehicle}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体使用</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用要求:</label>
<div class="col-sm-8">
<input name="mentsUse" disabled th:field="*{mentsUse}" placeholder="请输入使用要求" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="mentsTime" disabled th:value="${#dates.format(tdCarrier.mentsTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用人员:</label>
<div class="col-sm-8">
<input name="usageUser" disabled th:field="*{usageUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体保存</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保存地点:</label>
<div class="col-sm-8">
<input name="saveLocation" disabled th:field="*{saveLocation}" placeholder="请输入保存地点" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">地点要求:</label>
<div class="col-sm-8">
<input name="locationRequire" disabled th:field="*{locationRequire}" placeholder="请输入地点要求" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体维护</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护部门:</label>
<div class="col-sm-8">
<input name="maintainDepart" disabled th:field="*{maintainDepart}" placeholder="请输入维护部门" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护人员:</label>
<div class="col-sm-8">
<input name="maintainUser" disabled th:field="*{maintainUser}" placeholder="请输入维护人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="maintainDate" disabled th:value="${#dates.format(tdCarrier.maintainDate, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">旁站人员:</label>
<div class="col-sm-8">
<input name="maintainStand" disabled th:field="*{maintainStand}" placeholder="请输入旁站人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体销毁</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁部门:</label>
<div class="col-sm-8">
<input name="destoryDepart" placeholder="请输入销毁部门" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁人员:</label>
<div class="col-sm-8">
<input name="destoryUser" placeholder="请输入销毁人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="destoryDate" th:value="${#dates.format(tdCarrier.destoryDate, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁方式:</label>
<div class="col-sm-8">
<input name="destoryManner" placeholder="请输入销毁方式" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">旁站人员:</label>
<div class="col-sm-8">
<input name="destoryStand" th:field="*{destoryStand}" placeholder="请输入旁站人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</form>
</div>
<div class="row">
<div class="col-sm-offset-5 col-sm-10">
<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
</div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/destoryCarrier"
$("#form-fileprovide-add").validate({
focusCleanup: true
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
AreaList:[],
City:[[${tdCarrier.areaCity}]],
Area:[[${tdCarrier.areaDistrict}]],
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
if (this.City){
this.getAreaList()
}
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data
}) ,
});
},
getAreaList(){
this.params.parentId = this.City
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params,
success:((res)=>{
this.AreaList = res.data
}) ,
});
}
}
})
$("input[name='destoryDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.saveTab(prefix + "/edit", $('#form-fileprovide-add').serialize());
}
}
</script>
</body>
</html>

@ -1,177 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('国家秘密载体销毁')" />
</head>
<body class="gray-bg">
<div class="container-div" id="app">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>载体名称:</label>
<input type="text" name="carrierName"/>
</li>
<li>
<label>密级:</label>
<select name="carrierSecret" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>载体类型:</label>
<select name="carrierLevel" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>所属市州:</label>
<select id="City" name="areaCity" v-model="City">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:destoryIssued:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:destoryIssued:remove')}]];
var detailFlag = [[${@permission.hasPermi('system:destoryIssued:detail')}]];
var carrierLevelDatas = [[${@dict.getType('sys_provide_level')}]];
var fileSecretDatas = [[${@dict.getType('sys_file_miji')}]];
var carrierExtentDatas = [[${@dict.getType('sys_file_jinjichengdu')}]];
var prefix = ctx + "system/destoryIssued";
let datas = []
$.ajax({
url: ctx + "system/area/getAllList",
type: 'GET',
data:{parentId:''} ,
success:((res)=>{
datas = res.data
}) ,
});
$(function() {
var options = {
url: prefix + "/list",
updateUrl: prefix + "/edit/{id}",
modalName: "国家秘密载体维修",
columns: [
{
field: 'id',
title: 'id',
visible: false
},
{
field: 'areaCity',
title: '所属市州',
formatter: function(value, row, index) {
return getCity(datas, value)
}
},
{
field: 'carrierName',
title: '载体名称'
},
{
field: 'carrierLevel',
title: '载体类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierLevelDatas, value);
}
},
{
field: 'carrierExtent',
title: '紧急程度',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierExtentDatas, value);
}
},
{
field: 'carrierSecret',
title: '密级',
formatter: function(value, row, index) {
return $.table.selectDictLabel(fileSecretDatas, value);
}
},
{
field: 'carrierTerm',
title: '保密期限'
},
{
field: 'createTime',
title: '创建时间',
sortable: true
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>销毁</a> ');
return actions.join('');
}
}]
};
$.table.init(options);
});
function edit(id) {
table.set();
if ($.common.isEmpty(id) && table.options.type == table_type.bootstrapTreeTable) {
var row = $("#" + table.options.id).bootstrapTreeTable('getSelections')[0];
if ($.common.isEmpty(row)) {
$.modal.alertWarning("请至少选择一条记录");
return;
}
var url = table.options.updateUrl.replace("{id}", row[table.options.uniqueId]);
$.modal.open(table.options.modalName, url, 800, 500);
} else {
$.modal.open(table.options.modalName, $.operate.editUrl(id), 800, 500);
}
}
var app = new Vue({
el: '#app',
data: {
CityList: [],
City:'',
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data.filter(obj => obj.id === '36625');
}) ,
});
},
}
})
</script>
</body>
</html>

@ -1,85 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增载体制作')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-fileprovide-add" th:object="${tdCarrierIssued}">
<input name="id" th:field="*{id}" type="hidden">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁部门:</label>
<div class="col-sm-8">
<input name="destoryDepart" th:field="*{destoryDepart}" placeholder="请输入销毁部门" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁人员:</label>
<div class="col-sm-8">
<input name="destoryUser" th:field="*{destoryUser}" placeholder="请输入销毁人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="destoryDate" th:value="${#dates.format(tdCarrierIssued.destoryDate, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">销毁方式:</label>
<div class="col-sm-8">
<input name="destoryManner" th:field="*{destoryManner}" placeholder="请输入销毁方式" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">旁站人员:</label>
<div class="col-sm-8">
<input name="destoryStand" th:field="*{destoryStand}" placeholder="请输入旁站人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/destoryIssued"
$("#form-fileprovide-add").validate({
focusCleanup: true
});
$("input[name='destoryDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-fileprovide-add').serialize());
}
}
</script>
</body>
</html>

@ -1,94 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('保密考试')" />
</head>
<style>
.gray-bg{
padding: 20px;
}
.container-div{
height: 100%;
background-color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
}
.content{
width: 60%;
height: 60%;
/*background-color: #f2f2f2;*/
display: flex;
align-items: center;
justify-content: center;
}
.table{
width:43% ;
}
.unnamed1{
color: red;
}
</style>
<body class="gray-bg">
<div class="container-div">
<div class="content">
<form name="form1" method="post" action="">
<input type="hidden" name="operate" value=""/>
<br>
<table width="90%" align="center" cellpadding="2" cellspacing="1" class="table02">
<tr>
<td class="cell1">
<div align="center">
<table width="600">
<tr>
<td colspan="3" ><br><h4>您的相关信息:</h4><hr /></td>
</tr>
<tr>
<td class="table" align="left"><b>人员编号: </b>[[${user.loginName}]]<hr /></td>
<td class="table" align="left"><b>性别: </b><span th:text="${user.sex == 0 ? '女' : '男'}"></span><hr /></td>
<td class="table" align="left"><b>选择相关考题</b><hr /></td>
</tr>
<tr>
<td class="table" align="left"><b>人员姓名: </b> <span class="user_name">[[${user.userName}]] </span><hr/></td>
<td class="table" align="left"><b>单位: </b><span class="dept_name">[[${user.dept.deptName}]]</span><hr/></td>
<td class="table" align="left">
<select name="TYPEID" th:with="type=${@dict.getType('td_question_type')}">
<option value="">-请选择-</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
<hr/></td>
</tr>
<tr>
<td colspan="3"><p align="center" class="unnamed1">友情提示</p>
<p align="center" class="unnamed1">答题过程不能中断!不能作弊和抄袭,</p>
<p align="center" class="unnamed1">答题过程中不能切换屏幕,否则将进行强制提交!</p>
<p align="center" class="unnamed1">考试时间为45分钟到考试结束时间没有交卷的系统将强制交卷</p>
<p align="center">
<input type="button" class="btn btn-primary" name="button1" value=" 开始答卷" onclick="check()"/>
</p>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</form>
</div>
</div>
<script th:inline="javascript">
function check() {
if (form1.TYPEID.value=='') {
alert("请选择相关考题!");
return false;
}
var userName = [[${user.userName}]];
var deptName = [[${user.dept.deptName}]];
window.location.href = `/system/exam/edit?TYPEID=${form1.TYPEID.value}&userName=${userName}&deptName=${deptName}`;
// form1.action = "/zhyw/smsj/TryBook.jsp";
// form1.button1.disabled=true;
// form1.submit();
}
</script>
</body>
</html>

@ -1,224 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('涉密载体销毁详情')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-filereceive-edit" th:object="${tdFileProvide}">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label is-required">所属市州:</label>
<div class="col-sm-8">
<select id="City" name="frameworkId" disabled required @change="getAreaList()" v-model="City" class="form-control m-b">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label is-required">所属区县:</label>
<div class="col-sm-8">
<select id="Area" name="areaid" disabled required v-model="Area" class="form-control m-b">
<option value="">请选择</option>
<option v-for="option in AreaList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">载体名称:</label>
<div class="col-sm-8">
<input name="fileName" readonly th:field="*{fileName}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">编号:</label>
<div class="col-sm-8">
<input name="fileNum" readonly th:field="*{fileNum}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">载体密级:</label>
<div class="col-sm-8">
<select name="fileSecret" disabled class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{fileSecret}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">紧急程度:</label>
<div class="col-sm-8">
<select name="instancyExtent" disabled class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{instancyExtent}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">定密依据:</label>
<div class="col-sm-8">
<input name="allianceFile" readonly th:field="*{allianceFile}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-8">
<div class="form-group">
<label class="col-sm-2 control-label">备注:</label>
<div class="col-sm-10">
<textarea name="remark" readonly th:field="*{remark}" class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
<div style="float: right">
<span>销毁人:[[${tdFileReceive.destoryUsername}]]</span>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/filedestory";
$(function() {
var options = {
url: prefix + "/list",
modalName: "涉密载体详情",
pagination:false,
showSearch: false,
showPageGo: false,
showRefresh: false,
showColumns: false,
showToggle: false,
columns: [
{
field: 'fileId',
title: '载体编码',
},
{
field: 'destoryDepart',
title: '销毁单位'
},
{
field: 'destoryCount',
title: '销毁数量'
},
{
field: 'destoryUsername',
title: '销毁人签字'
},
{
field: 'destoryDate',
title: '销毁时间'
}]
};
$.table.init(options);
});
var prefix = ctx + "system/filereceive";
$("#form-filereceive-edit").validate({
focusCleanup: true
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
AreaList:[],
City:[[${tdFileProvide.frameworkId}]],
Area:[[${tdFileProvide.areaid}]],
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
if (this.City){
this.getAreaList()
}
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data
}) ,
});
},
getAreaList(){
this.params.parentId = this.City
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params,
success:((res)=>{
this.AreaList = res.data
}) ,
});
}
}
})
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-filereceive-edit').serialize());
}
}
$("input[name='provideDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='receiveDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='extractDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='destoryDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -1,99 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改涉密载体销毁')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-filereceive-edit" th:object="${tdFileReceive}">
<input name="receiveId" th:field="*{receiveId}" type="hidden">
<input name="destoryState" th:value="1" type="hidden">
<input name="destoryDepart" th:value="${user.dept.deptName}" type="hidden">
<input name="destoryUsername" th:value="${user.userName}" type="hidden">
<input name="destoryDate" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">载体名称:</label>
<div class="col-sm-8">
<input name="fileName" disabled th:field="*{fileName}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">保密期限:</label>
<div class="col-sm-8">
<input name="releaseSecretid" readonly th:field="${tdFileProvide.releaseSecretid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">载体密级:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_file_miji')}">
<input type="radio" disabled th:id="${dict.dictCode}" name="fileSecret" th:value="${dict.dictValue}" th:field="${tdFileProvide.fileSecret}">
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">编号:</label>
<div class="col-sm-8">
<input name="provideDepart" readonly th:value="${tdFileProvide.fileNum}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">定密依据:</label>
<div class="col-sm-8">
<textarea name="allianceFile" readonly class="form-control">[[${tdFileProvide.allianceFile}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">销毁数量:</label>
<div class="col-sm-8">
<input name="destoryCount" digits="true" required th:field="*{destoryCount}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">销毁方式:</label>
<div class="col-sm-8">
<select name="destoryStyle" required class="form-control m-b" th:with="type=${@dict.getType('sys_destory_style')}">
<option value="">请选择</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{destoryStyle}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">销毁地点:</label>
<div class="col-sm-8">
<textarea name="destoryAddress" required class="form-control">[[*{destoryAddress}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注信息:</label>
<div class="col-sm-8">
<textarea name="remark" class="form-control">[[*{remark}]]</textarea>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/filereceive";
$("#form-filereceive-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-filereceive-edit').serialize());
}
}
function conversionDate(date){
var year = date.getFullYear();
var month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要加 1
var day = String(date.getDate()).padStart(2, '0'); // 日可能是个位数,需要补零
return year + '-' + month + '-' + day
}
$("input[name='destoryDate']").val(conversionDate(new Date()));
</script>
</body>
</html>

@ -1,130 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('涉密载体接收列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>载体名称:</label>
<input type="text" name="fileName"/>
</li>
<li>
<label>下发单位:</label>
<input type="text" name="provideDepart"/>
</li>
<li>
<label>销毁状态:</label>
<input type="text" name="destoryState"/>
</li>
<li>
<label>销毁方式:</label>
<input type="text" name="destoryStyle"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:filereceive:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var detaileFlag = [[${@permission.hasPermi('system:filedestory:detail')}]];
var removeFlag = [[${@permission.hasPermi('system:filedestory:edit')}]];
var receiveStateDatas = [[${@dict.getType('sys_file_receive')}]];
var extractStateDatas = [[${@dict.getType('sys_file_extract')}]];
var destoryStateDatas = [[${@dict.getType('sys_destory_state')}]];
var prefix = ctx + "system/filedestory";
$(function() {
var options = {
url: prefix + "/list",
updateUrl: prefix + "/edit/{id}",
detailUrl:prefix + "/detail/{id}",
exportUrl: prefix + "/export",
modalName: "涉密载体销毁",
columns: [
{
field: 'receiveId',
title: '接收编号',
visible: false
},
{
field: 'fileName',
title: '载体名称'
},
{
field: 'provideDepart',
title: '下发单位'
},
{
field: 'extractDepartid',
title: '提取单位'
},
{
field: 'extractUserid',
title: '提取人员'
},
{
field: 'extractDate',
title: '提取日期'
},
{
field: 'destoryState',
title: '销毁状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(destoryStateDatas, value);
}
},
{
field: 'destoryDepart',
title: '销毁部门'
},
{
field: 'destoryUsername',
title: '销毁人员'
},
{
field: 'destoryDate',
title: '销毁日期'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
if (row.destoryState === '2'){
actions.push('<a class="btn btn-success btn-xs ' + detaileFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.receiveId + '\')"><i class="fa fa-edit"></i>详情</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.receiveId + '\')"><i class="fa fa-remove"></i>销毁</a> ');
}else{
actions.push('<a class="btn btn-success btn-xs ' + detaileFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.receiveId + '\')"><i class="fa fa-edit"></i>详情</a> ');
actions.push('<a disabled class="btn btn-warning btn-xs ' + removeFlag + '" href="javascript:void(0)"><i class="fa fa-remove"></i>销毁</a> ');
}
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

@ -1,83 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('涉密载体提取')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-filereceive-edit" th:object="${tdFileReceive}">
<input name="receiveId" th:field="*{receiveId}" type="hidden">
<input name="extractState" th:value="'1'" class="form-control" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">载体编码:</label>
<div class="col-sm-8">
<input name="fileId" readonly th:field="*{fileId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">载体名称:</label>
<div class="col-sm-8">
<input name="fileName" readonly th:field="*{fileName}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">下发单位:</label>
<div class="col-sm-8">
<input name="provideDepart" readonly th:field="*{provideDepart}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">下发日期:</label>
<div class="col-sm-8">
<input name="provideDate" readonly th:value="${#dates.format(tdFileReceive.provideDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">接收单位:</label>
<div class="col-sm-8">
<input name="receiveDepartid" readonly th:field="*{receiveDepartid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">提取单位:</label>
<div class="col-sm-8">
<input name="extractDepartid" th:value="${user.dept.deptName}" readonly class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">提取人员:</label>
<div class="col-sm-8">
<input name="extractUserid" th:value="${user.userName}" readonly class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">提取日期:</label>
<div class="col-sm-8">
<input name="extractDate" readonly class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/fileextract";
$("#form-filereceive-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-filereceive-edit').serialize());
}
}
$("input[name='extractDate']").val($.common.dateFormat(new Date(),"yyyy-MM-dd"));
// $("input[name='extractDate']").datetimepicker({
// format: "yyyy-mm-dd",
// minView: "month",
// autoclose: true
// });
</script>
</body>
</html>

@ -1,129 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('涉密载体提取列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>载体编码:</label>
<input type="text" name="fileId"/>
</li>
<li>
<label>载体名称:</label>
<input type="text" name="fileName"/>
</li>
<li>
<label>下发单位:</label>
<input type="text" name="provideDepart"/>
</li>
<li>
<label>提取状态:</label>
<select name="extractState" th:with="type=${@dict.getType('sys_file_extract')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:fileextract:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:fileextract:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:fileextract:remove')}]];
var receiveStateDatas = [[${@dict.getType('sys_file_receive')}]];
var extractStateDatas = [[${@dict.getType('sys_file_extract')}]];
var destoryStateDatas = [[${@dict.getType('sys_destory_state')}]];
var prefix = ctx + "system/fileextract";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "涉密载体提取",
columns: [
{
field: 'receiveId',
title: '接收编号',
visible: false
},
{
field: 'fileId',
title: '载体编码'
},
{
field: 'fileName',
title: '载体名称'
},
{
field: 'provideDepart',
title: '下发单位'
},
{
field: 'provideDate',
title: '下发日期'
},
{
field: 'receiveDepartid',
title: '接收单位'
},
{
field: 'extractState',
title: '提取状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(extractStateDatas, value);
}
},
{
field: 'extractUserid',
title: '提取人员'
},
{
field: 'extractDate',
title: '提取日期'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
if (row.extractState === '2'){
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.receiveId + '\')"><i class="fa fa-edit"></i>提取</a> ');
}else{
actions.push('<a disabled class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)"><i class="fa fa-edit"></i>提取</a> ');
}
//actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.receiveId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

@ -1,253 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增载体下发')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-fileprovide-add">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属市州:</label>
<div class="col-sm-8">
<select id="City" name="frameworkId" required class="form-control m-b">
<option value="">---请选择---</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">所属区县:</label>
<div class="col-sm-8">
<select id="Area" name="areaid" required class="form-control m-b">
<option value="">---请选择---</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体类型:</label>
<div class="col-sm-8">
<select name="provideLevel" required class="form-control m-b" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体名称:</label>
<div class="col-sm-8">
<input name="fileName" placeholder="请输入载体名称" required class="form-control" type="text">
</div>
</div>
</div>
<input name="provideUserid" th:value="${user.userName}" class="form-control" type="hidden">
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体密级:</label>
<div class="col-sm-8">
<select name="fileSecret" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保密期限:</label>
<div class="col-sm-8">
<input name="releaseSecretid" placeholder="请输入保密期限" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">紧急程度:</label>
<div class="col-sm-8">
<select name="instancyExtent" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">编号:</label>
<div class="col-sm-8">
<input name="fileNum" placeholder="请输入编号" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收单位:</label>
<div class="col-sm-8">
<select name="targetDepart" id="targetDepart" class="form-control select2-multiple" required multiple>
<option th:each="item : ${dept}" th:if="${item.deptId != 100}" th:text="${item.deptName}" th:value="${item.deptName}" ></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体数量:</label>
<div class="col-sm-8">
<input name="provideCount" required digits="true" placeholder="请输入载体数量" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">下发单位:</label>
<div class="col-sm-8">
<input name="provideDepart" required readonly th:value="${user.dept.deptName}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">下发日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="provideDate" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">定密依据:</label>
<div class="col-sm-10">
<textarea name="allianceFile" placeholder="请输入定密依据" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">载体备注:</label>
<div class="col-sm-10">
<textarea name="remark" placeholder="请输入备注" class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/fileprovide"
$("#form-fileprovide-add").validate({
focusCleanup: true
});
$(document).ready(function() {
// 获取市级数据并填充到城市下拉框
$.ajax({
url: ctx + "system/area/getSysAreaList",
method: 'GET',
success: function(res) {
var cities = res.data; // 假设返回的数据中有一个叫做 'cities' 的字段包含市级数据
var $citySelect = $('#City');
// 填充城市下拉框
cities.forEach(function(city) {
$citySelect.append($('<option>', {
value: city.id,
text: city.name
}));
});
// 初始化 select2 插件
$citySelect.select2();
},
error: function(err) {
console.error('Failed to load city data:', err);
}
});
// 监听城市下拉框的变化事件
$('#City').on('change', function() {
var selectedCityId = $(this).val();
// 如果未选择城市,则不执行后续操作
if (!selectedCityId) return;
// 根据选中的城市ID发送请求获取对应的区级数据
$.ajax({
url: ctx + "system/area/getSysAreaList",
data:{parentId:selectedCityId},
method: 'GET',
success: function(res) {
var areas = res.data; // 假设返回的数据中有一个叫做 'areas' 的字段包含区级数据
var $areaSelect = $('#Area');
// 清空区级下拉框并填充数据
$areaSelect.empty().append($('<option>', {
value: '',
text: '请选择区'
}));
areas.forEach(function(area) {
$areaSelect.append($('<option>', {
value: area.id,
text: area.name
}));
});
// 更新 select2 插件
$areaSelect.select2();
},
error: function(err) {
console.error('Failed to load area data:', err);
}
});
});
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-fileprovide-add').serialize());
}
}
$("input[name='provideDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$(function() {
$('#targetDepart').select2({
placeholder: "请选择接收单位",
allowClear: true
});
})
</script>
</body>
</html>

@ -1,254 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改文件下发')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
</head>
<style>
.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
color: #000000;
}
</style>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-fileprovide-edit" th:object="${tdFileProvide}">
<input name="fileId" th:field="*{fileId}" type="hidden">
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">载体编码:</label>
<div class="col-sm-10">
<input name="fileId" readonly th:field="*{fileId}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label ">所属市州:</label>
<div class="col-sm-8">
<select id="City" name="frameworkId" disabled @change="getAreaList()" v-model="City" class="form-control m-b">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label ">所属区县:</label>
<div class="col-sm-8">
<select id="Area" name="areaid" disabled v-model="Area" class="form-control m-b">
<option value="">请选择</option>
<option v-for="option in AreaList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">下发单位:</label>
<div class="col-sm-8">
<input name="provideDepart" readonly th:field="*{provideDepart}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">下发人员:</label>
<div class="col-sm-8">
<input name="provideUserid" readonly th:field="*{provideUserid}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">下发日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="provideDate" readonly th:value="${#dates.format(tdFileProvide.provideDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">载体数量:</label>
<div class="col-sm-8">
<input name="provideCount" readonly th:field="*{provideCount}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">接受单位:</label>
<div class="col-sm-8">
<input name="provideCount" readonly th:field="*{targetDepart}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">紧急程度:</label>
<div class="col-sm-8">
<select name="instancyExtent" disabled class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{instancyExtent}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">载体名称:</label>
<div class="col-sm-8">
<input name="fileName" readonly th:field="*{fileName}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">编号:</label>
<div class="col-sm-8">
<input name="fileNum" readonly th:field="*{fileNum}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">载体密级:</label>
<div class="col-sm-8">
<select name="fileSecret" disabled class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{fileSecret}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">定密依据:</label>
<div class="col-sm-8">
<input name="allianceFile" readonly th:field="*{allianceFile}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">保密期限:</label>
<div class="col-sm-8">
<input name="releaseSecretid" readonly th:field="*{releaseSecretid}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">载体类型:</label>
<div class="col-sm-8">
<select name="provideLevel" disabled class="form-control m-b" th:with="type=${@dict.getType('sys_provide_level')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{provideLevel}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">载体备注:</label>
<div class="col-sm-10">
<textarea name="remark" readonly th:field="*{remark}" class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<script th:inline="javascript">
var prefix = ctx + "system/fileprovide";
$("#form-fileprovide-edit").validate({
focusCleanup: true
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
AreaList:[],
City:[[${tdFileProvide.frameworkId}]],
Area:[[${tdFileProvide.areaid}]],
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
if (this.City){
this.getAreaList()
}
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data
}) ,
});
},
getAreaList(){
this.params.parentId = this.City
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params,
success:((res)=>{
this.AreaList = res.data
}) ,
});
}
}
})
var updateDate = document.querySelector('#updateDate').value;
var provideDate = document.querySelector('#provideDate').value;
if (updateDate != null && updateDate !== ''){
document.querySelector('#updateDate').value = $.common.dateFormat(updateDate,"yyyy-MM-dd")
}
if (provideDate != null && provideDate !== ''){
document.querySelector('#provideDate').value = $.common.dateFormat(provideDate,"yyyy-MM-dd")
}
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-fileprovide-edit').serialize());
}
}
$("input[name='provideDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -1,385 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('载体下发列表')" />
</head>
<style>
.echart{
width: 100%;
height: 40%;
background-color: white;
margin-top: 10px;
border-radius: 10px;
box-shadow: 1px 1px 3px rgba(0, 0, 0, .2);
display: flex;
justify-content: space-between;
overflow: hidden;
}
.children_echarts{
height: 100%;
}
</style>
<body class="gray-bg">
<div class="container-div" id="app">
<div class="row">
<div class="echart">
<div class="children_echarts left_echarts">
<div id="leftMain" style="width: 800px;height:310px"></div>
</div>
<div class="children_echarts right_echarts">
<div id="rightMain" style="width: 500px;height:300px"></div>
</div>
</div>
<div class="col-sm-12 search-collapse" >
<form id="formId">
<div class="select-list" v-if="view">
<ul>
<li>
<label>编号:</label>
<input type="text" name="carrierNumber"/>
</li>
<li>
<label>紧急程度:</label>
<select name="carrierExtent" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>所属市州:</label>
<select id="City" name="areaCity" @change="getAreaList()" v-model="City">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</li>
<li>
<label>载体名称:</label>
<input type="text" name="carrierName"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
<div class="select-list" v-if="!view">
<ul>
<li>
<label>载体名称:</label>
<input type="text" name="carrierName"/>
</li>
<li>
<label>密级:</label>
<select name="carrierSecret" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>载体类型:</label>
<select name="carrierLevel" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>所属市州:</label>
<select id="City" name="areaCity" v-model="City">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" id="toggleButton" @click="changeExamine">
<i class="fa fa-exchange"></i> 自行制作/上级下发
</a>
</div>
<div class="col-sm-12 select-table table-striped" style="min-height: 44%">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: echarts-js" />
<script th:inline="javascript">
var detailFlag = [[${@permission.hasPermi('system:filenum:print')}]];
var instancyExtentDatas = [[${@dict.getType('sys_file_jinjichengdu')}]];
var fileSecretDatas = [[${@dict.getType('sys_file_miji')}]];
var carrierLevelDatas = [[${@dict.getType('sys_provide_level')}]];
var carrierExtentDatas = [[${@dict.getType('sys_file_jinjichengdu')}]];
var stateDatas = [[${@dict.getType('carrier_issued_status')}]];
var prefix = ctx + "system/filenum";
let datas = []
$.ajax({
url: ctx + "system/area/getAllList",
type: 'GET',
data:{parentId:''} ,
success:((res)=>{
datas = res.data
}) ,
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
AreaList:[],
City:'',
Area:'',
params:{
parentId:'',
},
optionsA: {
url: prefix + "/list",
exportUrl: prefix + "/export",
modalName: "自行制作",
pageSize:5,
columns: [
{
field: 'carrierNumber',
title: '编号'
},
{
field: 'areaCity',
title: '所属市州',
formatter: function(value, row, index) {
return getCity(datas, value)
}
},
{
field: 'carrierName',
title: '载体名称'
},
{
field: 'carrierCount',
title: '载体数量'
},
{
field: 'carrierExtent',
title: '紧急程度',
formatter: function(value, row, index) {
return $.table.selectDictLabel(instancyExtentDatas, value);
}
},
{
field: 'carrierSecret',
title: '载体密级',
formatter: function(value, row, index) {
return $.table.selectDictLabel(fileSecretDatas, value);
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-info btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="print(\'' + row.id + '\')"><i class="fa fa-download"></i>打印</a> ');
return actions.join('');
}
}]
},
optionsB: {
url: prefix + "/listIssued",
detailUrl: ctx + "system/carrierIssued/detail/{id}",
exportUrl: prefix + "/export",
modalName: "上级下发",
columns: [
{
checkbox: true
},
{
field: 'id',
title: 'id',
visible: false
},
{
field: 'areaCity',
title: '所属市州',
formatter: function(value, row, index) {
return getCity(datas, value)
}
},
{
field: 'carrierName',
title: '载体名称'
},
{
field: 'carrierLevel',
title: '载体类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierLevelDatas, value);
}
},
{
field: 'carrierExtent',
title: '紧急程度',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierExtentDatas, value);
}
},
{
field: 'carrierSecret',
title: '密级',
formatter: function(value, row, index) {
return $.table.selectDictLabel(fileSecretDatas, value);
}
},
{
field: 'carrierTerm',
title: '保密期限'
},
{
field: 'createTime',
title: '创建时间',
sortable: true
},
{
field: 'status',
title: '状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(stateDatas, value);
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-info btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="printIs(\'' + row.id + '\')"><i class="fa fa-download"></i>打印</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-search"></i>详细</a> ');
return actions.join('');
}
}]
},
isStateA:'0',
view:true,
},
mounted(){
// 初始化地市列表
this.getCityList();
if (this.City){
this.getAreaList()
}
$.table.init(this.optionsA)
this.isStateA = '3'
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data.filter(obj => obj.id === '36625');
}) ,
});
},
getAreaList(){
this.params.parentId = this.City
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params,
success:((res)=>{
this.AreaList = res.data
}) ,
});
},
changeExamine(){
if (this.isStateA === '3'){
$.table.destroy()
$.table.init(this.optionsB)
this.isStateA = '0'
this.view = false
}else if(this.isStateA === '0'){
$.table.destroy()
$.table.init(this.optionsA)
this.isStateA = '3'
this.view = true
}
}
}
})
function print(netId) {
var url = prefix + '/print/' + netId;
$.modal.openTab("打印", url);
}
function printIs(netId){
var url = prefix + '/printIssued/' + netId;
$.modal.openTab("打印", url);
}
var myChart = echarts.init(document.getElementById('leftMain'));
axios.post(prefix + '/countLevel').then(response => {
if (response.data.code == web_status.SUCCESS){
myChart.setOption({
title: {
text: '自行制作'
},
tooltip: {},
legend: {
data:['数量']
},
xAxis: {
data: response.data.data.xAxisData,
axisLabel: {
rotate: 45, // 旋转标签的角度
margin: 10, // 标签与坐标轴的间距
},
},
yAxis: {
},
series: [
{
name: '数量',
type: 'bar',
data: response.data.data.yAxisData,
itemStyle: {
color: '#c6bd54'
}
}
]
});
console.log(response.data.data)
}
})
var rightMain = echarts.init(document.getElementById('rightMain'));
axios.post(prefix + '/countSecret').then(response => {
if (response.data.code == web_status.SUCCESS){
rightMain.setOption({
title: {
text: '上级下发'
},
tooltip: {},
legend: {
orient: 'vertical',
x: 'right',
data: response.data.data,
},
series: [
{
type: 'pie',
data: response.data.data,
}
]
});
}
})
</script>
</body>
</html>

@ -1,916 +0,0 @@
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<th:block th:include="include :: header('涉密载体打印')" />
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Aspose.Cell ">
<link rel=File-List href="al91k-jw2z2_files/filelist.xml">
<link rel=Edit-Time-Data href="al91k-jw2z2_files/editdata.mso">
<link rel=OLE-Object-Data href="al91k-jw2z2_files/oledata.mso">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>波强 赵</o:Author>
<o:LastPrinted>2024-08-21T19:25:47Z</o:LastPrinted>
<o:Created>2024-08-21T18:51:29Z</o:Created>
<o:LastSaved>2024-08-21T19:26:16Z</o:LastSaved>
</o:DocumentProperties>
</xml><![endif]-->
<style>
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{
mso-header-data:"";
mso-footer-data:"";
margin:0.75in 0.7in 0.75in 0.7in;
mso-header-margin:0.3in;
mso-footer-margin:0.3in;
mso-page-orientation:Landscape;
}
tr
{mso-height-source:auto;
mso-ruby-visibility:none;}
col
{mso-width-source:auto;
mso-ruby-visibility:none;}
br
{mso-data-placement:same-cell;}
ruby
{ruby-align:left;}
.style0
{
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border:none;
mso-protection:locked visible;
mso-style-name:Normal;
mso-style-id:0;}
.font0
{
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif"; }
.font1
{
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif"; }
.font2
{
color:#000000;
font-size:9pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif"; }
.font3
{
color:#000000;
font-size:16pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif"; }
.font4
{
color:#000000;
font-size:20pt;
font-weight:700;
font-style:normal;
font-family:"等线","monospace"; }
.font5
{
color:#000000;
font-size:12pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif"; }
.font6
{
color:#000000;
font-size:12pt;
font-weight:700;
font-style:normal;
font-family:"等线","monospace"; }
.font7
{
color:#000000;
font-size:16pt;
font-weight:700;
font-style:normal;
font-family:"等线","monospace"; }
td
{mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border:none;
mso-protection:locked visible;
mso-ignore:padding;}
.style0
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
mso-style-name:"Normal";
}
.style1
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style2
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style3
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style4
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style5
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style6
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style7
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style8
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style9
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style10
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style11
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style12
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style13
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style14
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.x15
{
mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.style16
{
mso-number-format:"0%";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Percent";
}
.style17
{
mso-number-format:"_\(\0022$\0022* \#\,\#\#0\.00_\)\;_\(\0022$\0022* \(\#\,\#\#0\.00\)\;_\(\0022$\0022* \0022-\0022??_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Currency";
}
.style18
{
mso-number-format:"_\(\0022$\0022* \#\,\#\#0_\)\;_\(\0022$\0022* \(\#\,\#\#0\)\;_\(\0022$\0022* \0022-\0022_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Currency [0]";
}
.style19
{
mso-number-format:"_\(* \#\,\#\#0\.00_\)\;_\(* \(\#\,\#\#0\.00\)\;_\(* \0022-\0022??_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Comma";
}
.style20
{
mso-number-format:"_\(* \#\,\#\#0_\)\;_\(* \(\#\,\#\#0\)\;_\(* \0022-\0022_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Comma [0]";
}
.x21
{
mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:16pt;
font-weight:400;
font-style:normal;
font-family:"等线","monospace";
mso-protection:locked visible;
}
.x22
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x23
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.x24
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:700;
font-style:normal;
font-family:"等线","monospace";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x25
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:16pt;
font-weight:700;
font-style:normal;
font-family:"等线","monospace";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x26
{
mso-style-parent:style0;
mso-number-format:General;
text-align:left;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:16pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:none;
border-right:none;
border-bottom:1px solid windowtext;
border-left:none;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x27
{
mso-style-parent:style0;
mso-number-format:General;
text-align:left;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:16pt;
font-weight:400;
font-style:normal;
font-family:"等线","monospace";
border-top:none;
border-right:none;
border-bottom:1px solid windowtext;
border-left:none;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x28
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:20pt;
font-weight:700;
font-style:normal;
font-family:"等线","monospace";
mso-protection:locked visible;
}
.x29
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:700;
font-style:normal;
font-family:"等线","monospace";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x30
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
/*white-space:nowrap;*/
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
white-space: normal;
}
-->
</style>
<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>Sheet1</x:Name>
<x:WorksheetOptions>
<x:StandardWidth>2304</x:StandardWidth>
<x:Print>
<x:ValidPrinterInfo/>
<x:PaperSizeIndex>9</x:PaperSizeIndex>
<x:HorizontalResolution>600</x:HorizontalResolution>
<x:VerticalResolution>600</x:VerticalResolution>
</x:Print>
<x:Selected/>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
<x:WindowHeight>15500</x:WindowHeight>
<x:WindowWidth>25820</x:WindowWidth>
<x:WindowTopX>-110</x:WindowTopX>
<x:WindowTopY>-110</x:WindowTopY>
<x:RefModeR1C1/>
<x:TabRatio>600</x:TabRatio>
<x:ActiveSheet>0</x:ActiveSheet>
</x:ExcelWorkbook>
</xml><![endif]-->
</head>
<body link=blue vlink=purple >
<table border=0 cellpadding=0 cellspacing=0 width=1038 style='border-collapse:
collapse;table-layout:fixed;width:778pt;margin: auto' id="app">
<col width=95 style='mso-width-source:userset;width:71.25pt'>
<col width=169 style='mso-width-source:userset;width:126.75pt'>
<col width=118 style='mso-width-source:userset;width:88.5pt'>
<col width=104 style='mso-width-source:userset;width:78pt'>
<col width=118 style='mso-width-source:userset;width:88.5pt'>
<col width=66 style='mso-width-source:userset;width:49.5pt'>
<col width=118 style='mso-width-source:userset;width:88.5pt'>
<col width=65 style='mso-width-source:userset;width:48.75pt'>
<col width=118 style='mso-width-source:userset;width:88.5pt'>
<col width=67 style='mso-width-source:userset;width:50.25pt'>
<tr height=30 style='mso-height-source:userset;height:22.5pt' id='r0'>
<td colspan=10 height=30 class=x28 width=1038 style='height:22.5pt;'>[[${sysuser.dept.deptName}]]国家秘密载体信息表</td>
</tr>
<tr height=26 style='mso-height-source:userset;height:19.5pt' id='r1'>
<td colspan=4 height=25 class=x26 style='border-bottom:1px solid windowtext;height:18.75pt;'>单位:[[${sysuser.dept.deptName}]]</td>
<td class=x21></td>
<td class=x21></td>
<td class=x21></td>
<td colspan=3 class=x27 style='border-bottom:1px solid windowtext;' id="dqdate">日期:</td>
</tr>
<tr height=31 style='mso-height-source:userset;height:23.5pt' id='r2'>
<td colspan=2 rowspan=2 height=59 class=x25 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:44.5pt;'>国家秘密载体制作</td>
<td colspan=2 rowspan=2 height=59 class=x25 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:44.5pt;'>国家秘密载体收发</td>
<td colspan=2 rowspan=2 height=59 class=x25 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:44.5pt;'>国家秘密载体使用</td>
<td colspan=2 rowspan=2 height=59 class=x25 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:44.5pt;'>国家秘密载体保存</td>
<td colspan=2 rowspan=2 height=59 class=x25 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:44.5pt;'>国家秘密载体销毁</td>
</tr>
<tr height=30 style='mso-height-source:userset;height:22.5pt' id='r3'>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r4'>
<td colspan=2 height=31 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:23.5pt;'>所属市州</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>接收单位</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>使用时间</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>保存地点</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>销毁部门</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r5'>
<td colspan=2 height=31 class='x30 frameworkId' style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:23.5pt;'>
[[${tdCarrier.areaCity}]]</td>
<td colspan=2 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdCarrier.receivingUnits}]]</td>
<td colspan=2 class='x30 provideDate' style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdCarrier.mentsTime}]]</td>
<td colspan=2 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdCarrier.saveLocation}]]</td>
<td colspan=2 rowspan=3 height=98 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:73.5pt;'>
[[${tdCarrier.destoryDepart}]]
</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r6'>
<td colspan=2 height=31 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:23.5pt;'>所属区县</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>接收时间</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>使用人员</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>地点要求</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r7'>
<td colspan=2 height=31 class='x30 areaid' style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:23.5pt;'>
[[${tdCarrier.areaDistrict}]]
</td>
<td colspan=2 class='x30 provideDate' style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdCarrier.receivingTime}]]</td>
<td colspan=2 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdCarrier.usageUser}]]</td>
<td colspan=2 rowspan=2 height=64 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:48.5pt;'>
[[${tdCarrier.locationRequire}]]
</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r8'>
<td colspan=2 height=31 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:23.5pt;'>载体名称</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>接收人员</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>使用要求</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>销毁人员</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r9'>
<td colspan=2 height=31 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:23.5pt;'>
[[${tdCarrier.carrierName}]]
</td>
<td colspan=2 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdCarrier.receivingUser}]]</td>
<td colspan=2 rowspan=11 height=364 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:273.5pt;'>
[[${tdCarrier.mentsUse}]]
</td>
<td colspan=2 rowspan=2 height=64 class=x25 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:48.5pt;'>国家秘密载体维修</td>
<td colspan=2 rowspan=3 height=98 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:73.5pt;'>
[[${tdCarrier.destoryUser}]]
</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r10'>
<td height=31 class='x24' style='height:23.5pt;'>载体类型</td>
<td class='x22 carrierLevel'>[[${tdCarrier.carrierLevel}]]</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>发放单位</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r11'>
<td height=31 class=x24 style='height:23.5pt;'>载体数量</td>
<td class=x22>[[${tdCarrier.carrierCount}]]</td>
<td colspan=2 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdCarrier.issuingUnit}]]</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>维护部门</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r12'>
<td height=31 class=x24 style='height:23.5pt;'>密级</td>
<td class='x22 miji'>[[${tdCarrier.carrierSecret}]]</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>发放时间</td>
<td colspan=2 rowspan=2 height=64 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:48.5pt;'>
[[${tdCarrier.maintainDepart}]]
</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>销毁日期</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r13'>
<td height=31 class=x24 style='height:23.5pt;'>紧急程度</td>
<td class='x22 jinji'>[[${tdCarrier.carrierExtent}]]</td>
<td colspan=2 class='x30 provideDate' style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdCarrier.issuingTime}]]</td>
<td colspan=2 rowspan=3 height=98 class='x30 provideDate' style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:73.5pt;'>
[[${tdCarrier.destoryDate}]]
</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r14'>
<td height=31 class=x24 style='height:23.5pt;'>编号</td>
<td class=x22>[[${tdCarrier.carrierNumber}]]</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>发放人员</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>维护人员</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r15'>
<td height=31 class=x24 style='height:23.5pt;'>保密期限</td>
<td class=x22>[[${tdCarrier.carrierTerm}]]</td>
<td colspan=2 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdCarrier.issuingUser}]]</td>
<td colspan=2 rowspan=2 height=64 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:48.5pt;'>
[[${tdCarrier.maintainUser}]]
</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r16'>
<td height=31 class=x24 style='height:23.5pt;'>发放范围</td>
<td class=x22>[[${tdCarrier.carrierContent}]]</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>传递方式</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>销毁方式</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r17'>
<td colspan=2 height=31 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:23.5pt;'>定密依据</td>
<td colspan=2 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdCarrier.deliveryMethod}]]</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>维护日期</td>
<td colspan=2 rowspan=3 height=98 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:73.5pt;'>
[[${tdCarrier.destoryManner}]]
</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r18'>
<td colspan=2 rowspan=2 height=64 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:48.5pt;'>
[[${tdCarrier.carrierAlliance}]]
</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>交通工具</td>
<td colspan=2 rowspan=2 height=64 class='x30 provideDate' style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;height:48.5pt;'>
[[${tdCarrier.maintainDate}]]
</td>
</tr>
<tr height=33 class=x23 style='mso-height-source:userset;height:25pt' id='r19'>
<td colspan=2 class=x30 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>
[[${tdCarrier.carrierVehicle}]]
</td>
</tr>
<tr>
<!-- 打印网页时通过hidden-print隐藏元素 -->
<div class="text-right hidden-print" style="position: fixed;bottom: 20px;right: 50%;">
<button class="btn btn-primary" onclick="printPage()"><i class="fa fa-print"></i> 打印</button>
</div>
</tr>
</table>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
function printPage() {
window.print();
}
$.ajax({
url: ctx + "system/area/getAllList",
type: 'GET',
data:{parentId:''} ,
success:((res)=>{
document.querySelector('.frameworkId').innerHTML = getCity(res.data,[[${tdCarrier.areaCity}]])
document.querySelector('.areaid').innerHTML = getCity(res.data,[[${tdCarrier.areaDistrict}]])
}) ,
});
function conversionDate(date) {
var year = date.getFullYear();
var month = String(date.getMonth() + 1).padStart(2, '0');
var day = String(date.getDate()).padStart(2, '0');
return year + '-' + month + '-' + day;
}
document.querySelector('#dqdate').innerHTML = '日期:' + conversionDate(new Date());
var examinestateToFind = [];
document.querySelectorAll('.provideDate').forEach(function(element) {
if (element.innerHTML.trim()) {
examinestateToFind.push(element.innerHTML.trim());
}
});
examinestateToFind.forEach(function(value) {
var date = new Date(value);
if (!isNaN(date.getTime())) {
document.querySelectorAll('.provideDate').forEach(function(element) {
if (element.innerHTML.trim() === value) {
element.innerHTML = conversionDate(date);
}
});
} else {
console.error('无效的日期格式:', value);
}
});
var carrierLevelData = [[${@dict.getType('sys_provide_level')}]]
selectDictLabel(carrierLevelData,'carrierLevel')
var mijiData = [[${@dict.getType('sys_file_miji')}]]
selectDictLabel(mijiData,'miji')
var jinjiData = [[${@dict.getType('sys_file_jinjichengdu')}]]
selectDictLabel(jinjiData,'jinji')
//字典数据格式化
function selectDictLabel(datas, className) {
var examinestateToFind = [];
document.querySelectorAll(`.${className}`).forEach(function(element) {
examinestateToFind.push(element.innerHTML);
});
examinestateToFind.forEach(function(value) {
const foundObject = datas.find(obj => obj.dictValue === value);
document.querySelectorAll(`.${className}`).forEach(function(element) {
if (element.innerHTML === value) {
element.innerHTML = foundObject ? foundObject.dictLabel : "";
}
});
});
}
</script>
<script language = 'javascript' type='text/javascript'>
function ChangeRowspanHiddenData()
{
var node;
var params=["r2","r5","r7","r9","r12","r13","r15","r17","r18"];
for (var i = 0;i < params.length; i++)
{
node = document.getElementById(params[i]);
if (node != null)
{
node.style.display = "";
}
}
}
ChangeRowspanHiddenData();
</script>
</body>
</html>

@ -1,172 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('载体下发列表')" />
<th:block th:include="include :: element-css" />
</head>
<body class="gray-bg">
<div class="container-div" id="app">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>下发单位:</label>
<input type="text" name="provideDepart"/>
</li>
<li>
<label>紧急程度:</label>
<select name="instancyExtent" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>所属市州:</label>
<select id="City" name="frameworkId" @change="getAreaList()" v-model="City">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</li>
<li>
<label>载体名称:</label>
<input type="text" name="fileName"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:fileprovide:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:fileprovide:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: element-js" />
<script th:inline="javascript">
var removeFlag = [[${@permission.hasPermi('system:fileprovide:remove')}]];
var detailFlag = [[${@permission.hasPermi('system:fileprovide:detail')}]];
var instancyExtentDatas = [[${@dict.getType('sys_file_jinjichengdu')}]];
var fileSecretDatas = [[${@dict.getType('sys_file_miji')}]];
var prefix = ctx + "system/fileprovide";
let datas = []
$.ajax({
url: ctx + "system/area/getAllList",
type: 'GET',
data:{parentId:''} ,
success:((res)=>{
datas = res.data
}) ,
});
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
detailUrl: prefix + "/detail/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "载体下发",
columns: [
{
field: 'fileId',
title: '载体编码'
},
{
field: 'fileName',
title: '载体名称'
},
{
field: 'fileNum',
title: '编号'
},
{
field: 'provideCount',
title: '载体数量'
},
{
field: 'provideDepart',
title: '下发单位'
},
{
field: 'provideDate',
title: '下发日期'
},
{
field: 'instancyExtent',
title: '紧急程度',
formatter: function(value, row, index) {
return $.table.selectDictLabel(instancyExtentDatas, value);
}
},
{
field: 'frameworkId',
title: '所属市州',
formatter: function(value, row, index) {
return getCity(datas, value)
}
},
{
field: 'fileSecret',
title: '载体密级',
formatter: function(value, row, index) {
return $.table.selectDictLabel(fileSecretDatas, value);
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.fileId + '\')"><i class="fa fa-search"></i>详细</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.fileId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
City:'',
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data
}) ,
});
},
}
})
</script>
</body>
</html>

@ -1,132 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增涉密文件接收')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-filereceive-add">
<div class="form-group">
<label class="col-sm-3 control-label">文件编号:</label>
<div class="col-sm-8">
<input name="fileId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">文件名称:</label>
<div class="col-sm-8">
<input name="fileName" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">发文单位:</label>
<div class="col-sm-8">
<input name="provideDepart" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">发文日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="provideDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">接收单位:</label>
<div class="col-sm-8">
<input name="receiveDepartid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">接收状态:</label>
<div class="col-sm-8">
<input name="receiveState" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">接收人员:</label>
<div class="col-sm-8">
<input name="receiveUserid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">接收日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="receiveDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">提取状态:</label>
<div class="col-sm-8">
<input name="extractState" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">提取单位:</label>
<div class="col-sm-8">
<input name="extractDepartid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">提取人员:</label>
<div class="col-sm-8">
<input name="extractUserid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">提取日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="extractDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">销毁状态:</label>
<div class="col-sm-8">
<input name="destoryState" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/filereceive"
$("#form-filereceive-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-filereceive-add').serialize());
}
}
$("input[name='provideDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='receiveDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='extractDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -1,77 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('涉密载体接收')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-filereceive-edit" th:object="${tdFileReceive}">
<input name="receiveId" th:field="*{receiveId}" type="hidden">
<input name="receiveState" th:value="'1'" class="form-control" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">载体编码:</label>
<div class="col-sm-8">
<input name="fileId" readonly th:field="*{fileId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">载体名称:</label>
<div class="col-sm-8">
<input name="fileName" readonly th:field="*{fileName}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">下发单位:</label>
<div class="col-sm-8">
<input name="provideDepart" readonly th:field="*{provideDepart}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">下发日期:</label>
<div class="col-sm-8">
<input name="provideDate" readonly th:value="${#dates.format(tdFileReceive.provideDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">接收单位:</label>
<div class="col-sm-8">
<input name="receiveDepartid" readonly th:field="*{receiveDepartid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">接收人员:</label>
<div class="col-sm-8">
<input name="receiveUserid" th:value="${user.userName}" readonly class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">接收日期:</label>
<div class="col-sm-8">
<input name="receiveDate" readonly class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/filereceive";
$("#form-filereceive-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-filereceive-edit').serialize());
}
}
$("input[name='receiveDate']").val($.common.dateFormat(new Date(),"yyyy-MM-dd"));
$("input[name='extractDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -1,129 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('涉密文件接收列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>载体编码:</label>
<input type="text" name="fileId"/>
</li>
<li>
<label>载体名称:</label>
<input type="text" name="fileName"/>
</li>
<li>
<label>下发单位:</label>
<input type="text" name="provideDepart"/>
</li>
<li>
<label>接收状态:</label>
<select name="receiveState" th:with="type=${@dict.getType('sys_file_receive')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:filereceive:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:filereceive:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:filereceive:remove')}]];
var receiveStateDatas = [[${@dict.getType('sys_file_receive')}]];
var extractStateDatas = [[${@dict.getType('sys_file_extract')}]];
var destoryStateDatas = [[${@dict.getType('sys_destory_state')}]];
var prefix = ctx + "system/filereceive";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "涉密载体接收",
columns: [
{
field: 'receiveId',
title: '接收编号',
visible: false
},
{
field: 'fileId',
title: '载体编码'
},
{
field: 'fileName',
title: '载体名称'
},
{
field: 'provideDepart',
title: '下发单位'
},
{
field: 'provideDate',
title: '下发日期'
},
{
field: 'receiveDepartid',
title: '接收单位'
},
{
field: 'receiveState',
title: '接收状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(receiveStateDatas, value);
}
},
{
field: 'receiveUserid',
title: '接收人员'
},
{
field: 'receiveDate',
title: '接收日期'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
if (row.receiveState === '2'){
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.receiveId + '\')"><i class="fa fa-edit"></i>接收</a> ');
}else{
actions.push('<a disabled class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)"><i class="fa fa-edit"></i>接收</a> ');
}
//actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.receiveId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

@ -1,118 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增维修商')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-indenture-add">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维修单位名称:</label>
<div class="col-sm-8">
<input name="indentureName" required placeholder="请输入维修商名称" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维修单位地址:</label>
<div class="col-sm-8">
<input name="indentureAddress" required placeholder="请输入维修商地址" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维修单位座机:</label>
<div class="col-sm-8">
<input name="indenturePhone" required placeholder="请输入维修商座机" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维修单位手机:</label>
<div class="col-sm-8">
<input name="indentureMobile" required placeholder="请输入维修商手机" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">联系人姓名:</label>
<div class="col-sm-8">
<input name="indentureLinkman" placeholder="请输入联系人" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">联系人座机:</label>
<div class="col-sm-8">
<input name="linkmanPhone" placeholder="请输入联系人座机" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">联系人手机:</label>
<div class="col-sm-8">
<input name="linkmanMobile" placeholder="请输入联系人手机" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">维修单位状态:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_normal_disable')}">
<input type="radio" th:id="${dict.dictCode}" name="indentureState" th:value="${dict.dictValue}" th:checked="${dict.default}">
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">备注:</label>
<div class="col-sm-10">
<textarea name="REMARK" placeholder="请输入备注" class="form-control"></textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/indenture"
$("#form-indenture-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-indenture-add').serialize());
}
}
$("input[name='createDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -1,119 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改维修商')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-indenture-edit" th:object="${tdIndenture}">
<input name="indentureId" th:field="*{indentureId}" type="hidden">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维修单位名称:</label>
<div class="col-sm-8">
<input name="indentureName" required th:field="*{indentureName}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维修单位地址:</label>
<div class="col-sm-8">
<input name="indentureAddress" required th:field="*{indentureAddress}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维修单位座机:</label>
<div class="col-sm-8">
<input name="indenturePhone" required th:field="*{indenturePhone}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维修单位手机:</label>
<div class="col-sm-8">
<input name="indentureMobile" required th:field="*{indentureMobile}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">联系人姓名:</label>
<div class="col-sm-8">
<input name="indentureLinkman" th:field="*{indentureLinkman}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">联系人座机:</label>
<div class="col-sm-8">
<input name="linkmanPhone" th:field="*{linkmanPhone}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">联系人手机:</label>
<div class="col-sm-8">
<input name="linkmanMobile" th:field="*{linkmanMobile}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">维修单位状态:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_normal_disable')}">
<input type="radio" th:id="${dict.dictCode}" name="indentureState" th:value="${dict.dictValue}" th:field="*{indentureState}">
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">备注:</label>
<div class="col-sm-10">
<textarea name="remark" class="form-control">[[*{remark}]]</textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/indenture";
$("#form-indenture-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-indenture-edit').serialize());
}
}
$("input[name='createDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -1,145 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('维修商列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>名称:</label>
<input type="text" name="indentureName"/>
</li>
<li>
<label>地址:</label>
<input type="text" name="indentureAddress"/>
</li>
<li>
<label>状态:</label>
<select name="indentureState" th:with="type=${@dict.getType('sys_normal_disable')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>创建时间:</label>
<input type="text" class="time-input" placeholder="请选择创建时间" name="createDate"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:indenture:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:indenture:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:indenture:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:indenture:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:indenture:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:indenture:remove')}]];
var indentureStateDatas = [[${@dict.getType('sys_normal_disable')}]];
var prefix = ctx + "system/indenture";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "维修单位",
columns: [{
checkbox: true
},
{
field: 'indentureId',
title: '维修单位id',
visible: false
},
{
field: 'indentureName',
title: '维修单位名称'
},
{
field: 'indentureAddress',
title: '维修单位地址'
},
{
field: 'indenturePhone',
title: '维修单位座机'
},
{
field: 'indentureMobile',
title: '维修单位手机'
},
{
field: 'indentureLinkman',
title: '联系人'
},
{
field: 'linkmanPhone',
title: '联系人电话'
},
{
field: 'linkmanMobile',
title: '联系人手机'
},
{
field: 'indentureState',
title: '维修单位状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(indentureStateDatas, value);
}
},
{
field: 'remark',
title: '备注'
},
{
field: 'createStaffid',
title: '创建人'
},
{
field: 'createDate',
title: '创建时间'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.indentureId+ '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.indentureId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

@ -1,117 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增人员离职')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-leave-add" th:object="${addleave}">
<input name="userId" type="hidden" th:value="*{userId}" id="userId"/>
<input name="deptId" type="hidden" id="treeId"/>
<div class="form-group">
<label class="col-sm-3 control-label is-required">人员姓名:</label>
<div class="col-sm-8">
<input name="userName" id="username" class="form-control" placeholder="请输入人员姓名" th:value="*{userName}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">地区:</label>
<div class="col-sm-8">
<input name="areaname" placeholder="请输入地区" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">离职离岗原因:</label>
<div class="col-sm-8">
<textarea name="leavereason" placeholder="请输入离职或离岗原因" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">所属单位:</label>
<div class="col-sm-8">
<div class="input-group">
<input name="depart" onclick="selectDeptTree()" id="treeName" type="text" placeholder="请选择单位" class="form-control" >
<span class="input-group-addon"><i class="fa fa-search"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">离职离岗时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="leavedate" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">工作交接:</label>
<div class="col-sm-8">
<select name="workstate" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_work')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/leave"
$("#form-leave-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
var data = $("#form-leave-add").serializeArray();
$.operate.save(prefix + "/add",data);
}
}
/* 用户管理-新增-选择部门树 */
function selectDeptTree() {
var treeId = $("#treeId").val();
var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val();
var url = ctx + "system/user/selectDeptTree/" + deptId;
var options = {
title: '选择部门',
width: "380",
url: url,
callBack: doSubmit
};
$.modal.openOptions(options);
}
function doSubmit(index, layero){
var body = $.modal.getChildFrame(index);
$("#treeId").val(body.find('#treeId').val());
$("#treeName").val(body.find('#treeName').val());
$.modal.close(index);
}
$("input[name='leavedate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='examinedate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$(function() {
var deptId = [[${addleave.deptId}]];
var deptName = [[${addleave.dept.deptName}]];
$("#treeId").val(deptId);
$("#treeName").val(deptName);
});
</script>
</body>
</html>

@ -1,105 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改人员离职')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-leave-edit" th:object="${tdLeave}">
<input name="id" th:field="*{id}" type="hidden">
<input name="userId" type="hidden" th:value="*{userId}" id="userId"/>
<input name="deptId" type="hidden" th:field="*{deptId}" id="treeId"/>
<div class="form-group">
<label class="col-sm-3 control-label is-required">人员姓名:</label>
<div class="col-sm-8">
<input name="userName" required th:field="*{userName}" placeholder="请输入人员姓名" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">地区:</label>
<div class="col-sm-8">
<input name="areaname" required th:field="*{areaname}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">离职离岗原因:</label>
<div class="col-sm-8">
<textarea name="leavereason" required class="form-control">[[*{leavereason}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">所属单位:</label>
<div class="col-sm-8">
<div class="input-group">
<input name="depart" required onclick="selectDeptTree()" id="treeName" type="text" placeholder="请选择单位" class="form-control" th:field="*{depart}">
<span class="input-group-addon"><i class="fa fa-search"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">离职离岗时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="leavedate" required th:value="${#dates.format(tdLeave.leavedate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">工作交接:</label>
<div class="col-sm-8">
<select name="workstate" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_work')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{workstate}"></option>
</select>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/leave";
$("#form-leave-edit").validate({
focusCleanup: true
});
/* 用户管理-新增-选择部门树 */
function selectDeptTree() {
var treeId = $("#treeId").val();
var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val();
var url = ctx + "system/user/selectDeptTree/" + deptId;
var options = {
title: '选择部门',
width: "380",
url: url,
callBack: doSubmit
};
$.modal.openOptions(options);
}
function doSubmit(index, layero){
var body = $.modal.getChildFrame(index);
$("#treeId").val(body.find('#treeId').val());
$("#treeName").val(body.find('#treeName').val());
$.modal.close(index);
}
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-leave-edit').serialize());
}
}
$("input[name='leavedate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='examinedate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -1,176 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('人员离职离岗列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>人员姓名:</label>
<input type="text" name="usernName"/>
</li>
<li>
<label>离职离岗时间:</label>
<input type="text" class="time-input" placeholder="请选择离职离岗时间" name="leavedate"/>
</li>
<li>
<label>离职、离岗状态:</label>
<select name="leavestate" th:with="type=${@dict.getType('sys_user_leave')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>审核意见:</label>
<select name="examinestate" th:with="type=${@dict.getType('sys_examine_state')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:leave:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:leave:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:leave:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:leave:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:leave:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:leave:remove')}]];
var PrintFlag = [[${@permission.hasPermi('system:leave:print')}]];
var downloadFlag = [[${@permission.hasPermi('system:leave:examine')}]];
var examinestateDatas = [[${@dict.getType('sys_examine_state')}]];
var leavestateData = [[${@dict.getType('sys_user_leave')}]];
var workstateData = [[${@dict.getType('sys_user_work')}]];
var prefix = ctx + "system/leave";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "人员离职离岗",
columns: [{
checkbox: true
},
{
field: 'id',
title: 'id',
visible: false
},
{
field: 'userId',
title: 'userId',
visible: false
},
{
field: 'userName',
title: '人员姓名'
},
{
field: 'areaname',
title: '地区'
},
{
field: 'leavereason',
title: '离职离岗原因'
},
{
field: 'depart',
title: '所属单位'
},
{
field: 'leavedate',
title: '离职离岗时间'
},
{
field: 'workstate',
title: '工作交接',
formatter: function(value, row, index) {
return $.table.selectDictLabel(workstateData, value);
}
},
{
field: 'leavestate',
title: '离职离岗状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(leavestateData, value);
}
},
{
field: 'examinename',
title: '审核人'
},
{
field: 'examinedate',
title: '审核日期'
},
{
field: 'examinestate',
title: '审核意见',
formatter: function(value, row, index) {
return $.table.selectDictLabel(examinestateDatas, value);
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
if (row.examinestate === '2'){
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-success btn-xs ' + downloadFlag + '" href="javascript:void(0)" onclick="leaveAuditing(\'' + row.id + '\')"><i class="fa fa-edit"></i>审核</a> ');
actions.push('<a class="btn btn-success btn-xs ' + PrintFlag + '" href="javascript:void(0)" onclick="auditingPrint(\'' + row.id + '/' + row.userId + '\')"><i class="fa fa-download"></i>打印</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
}else{
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a disabled class="btn btn-success btn-xs ' + downloadFlag + '" href="javascript:void(0)"><i class="fa fa-edit"></i>审核</a> ');
actions.push('<a class="btn btn-success btn-xs ' + PrintFlag + '" href="javascript:void(0)" onclick="auditingPrint(\'' + row.id + '/' + row.userId + '\')"><i class="fa fa-download"></i>打印</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
}
return actions.join('');
}
}]
};
$.table.init(options);
});
function leaveAuditing(id) {
var url ='/system/leave/examine/' + id;
$.modal.open("涉密人员离职审核", url);
}
function auditingPrint(id,userId){
var url ='/system/leave/print/' + id;
$.modal.openTab("打印", url);
}
</script>
</body>
</html>

@ -1,132 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改人员离职离岗')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<div id="examineusername" style="display: none;">[[${sysuser.userName}]]</div>
<form class="form-horizontal m" id="form-leave-edit" th:object="${leaveuser}">
<input name="id" th:field="*{id}" type="hidden">
<input name="userId" type="hidden" th:value="*{userId}" id="userId"/>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">人员姓名:</label>
<div class="col-sm-8">
<input disabled name="userName" th:field="*{userName}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">工作交接:</label>
<div class="col-sm-8">
<select name="workstate" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_work')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{workstate}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-xs-2 control-label is-required">离职、离岗状态:</label>
<div class="col-xs-4">
<select name="leavestate" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_leave')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">脱密期:</label>
<div class="col-sm-8">
<input name="country" required th:field="*{country}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">领导意见:</label>
<div class="col-sm-8">
<select name="examinestate" required class="form-control m-b" th:with="type=${@dict.getType('sys_examine_state')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:if="${dict.dictValue != '2'}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-xs-2 control-label">离职、离岗原因:</label>
<div class="col-xs-10">
<textarea name="leavereason" readonly class="form-control">[[*{leavereason}]]</textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/leave";
$("#form-leave-edit").validate({
focusCleanup: true
});
/* 用户管理-新增-选择部门树 */
function selectDeptTree() {
var treeId = $("#treeId").val();
var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val();
var url = ctx + "system/user/selectDeptTree/" + deptId;
var options = {
title: '选择部门',
width: "380",
url: url,
callBack: doSubmit
};
$.modal.openOptions(options);
}
function doSubmit(index, layero){
var body = $.modal.getChildFrame(index);
$("#treeId").val(body.find('#treeId').val());
$("#treeName").val(body.find('#treeName').val());
$.modal.close(index);
}
function submitHandler() {
if ($.validate.form()) {
var data = $("#form-leave-edit").serializeArray();
var examinedate = new Date().toLocaleDateString().replace(/\//g, '-');
var examinename = document.querySelector('#examineusername').innerHTML;
data.push({"name": "examinedate", "value": examinedate});
data.push({"name": "examinename", "value": examinename});
$.operate.save(prefix + "/examine", data);
}
}
$("input[name='leavedate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='examinedate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -1,763 +0,0 @@
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<th:block th:include="include :: header('离职离岗登记表')" />
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Aspose.Cell ">
<link rel=File-List href="a98d8-t3ytm_files/filelist.xml">
<link rel=Edit-Time-Data href="a98d8-t3ytm_files/editdata.mso">
<link rel=OLE-Object-Data href="a98d8-t3ytm_files/oledata.mso">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>波强 赵</o:Author>
<o:Created>2024-08-20T17:53:00Z</o:Created>
<o:LastSaved>2024-08-20T17:54:43Z</o:LastSaved>
</o:DocumentProperties>
</xml><![endif]-->
<style>
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{
mso-header-data:"";
mso-footer-data:"";
margin:0.75in 0.7in 0.75in 0.7in;
mso-header-margin:0.3in;
mso-footer-margin:0.3in;
mso-page-orientation:Portrait;
}
tr
{mso-height-source:auto;
mso-ruby-visibility:none;}
col
{mso-width-source:auto;
mso-ruby-visibility:none;}
br
{mso-data-placement:same-cell;}
ruby
{ruby-align:left;}
.style0
{
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border:none;
mso-protection:locked visible;
mso-style-name:Normal;
mso-style-id:0;}
.font0
{
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif"; }
.font1
{
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif"; }
.font2
{
color:#000000;
font-size:16pt;
font-weight:700;
font-style:normal;
font-family:"等线","sans-serif"; }
.font3
{
color:#000000;
font-size:9pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif"; }
.font4
{
color:#000000;
font-size:12pt;
font-weight:700;
font-style:normal;
font-family:"等线","sans-serif"; }
.font5
{
color:#000000;
font-size:12pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif"; }
td
{mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border:none;
mso-protection:locked visible;
mso-ignore:padding;}
.style0
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
mso-style-name:"Normal";
}
.style1
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style2
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style3
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style4
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style5
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style6
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style7
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style8
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style9
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style10
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style11
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style12
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style13
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style14
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.x15
{
mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.style16
{
mso-number-format:"0%";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Percent";
}
.style17
{
mso-number-format:"_\(\0022$\0022* \#\,\#\#0\.00_\)\;_\(\0022$\0022* \(\#\,\#\#0\.00\)\;_\(\0022$\0022* \0022-\0022??_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Currency";
}
.style18
{
mso-number-format:"_\(\0022$\0022* \#\,\#\#0_\)\;_\(\0022$\0022* \(\#\,\#\#0\)\;_\(\0022$\0022* \0022-\0022_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Currency [0]";
}
.style19
{
mso-number-format:"_\(* \#\,\#\#0\.00_\)\;_\(* \(\#\,\#\#0\.00\)\;_\(* \0022-\0022??_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Comma";
}
.style20
{
mso-number-format:"_\(* \#\,\#\#0_\)\;_\(* \(\#\,\#\#0\)\;_\(* \0022-\0022_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Comma [0]";
}
.x21
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:16pt;
font-weight:700;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.x22
{
mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.x23
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:700;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x24
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x25
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:none;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x26
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:none;
border-bottom:1px solid windowtext;
border-left:none;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x27
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:none;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x28
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.x29
{
mso-style-parent:style0;
mso-number-format:General;
text-align:left;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:700;
font-style:normal;
font-family:"等线","sans-serif";
border-top:none;
border-right:none;
border-bottom:1px solid windowtext;
border-left:none;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x30
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:12pt;
font-weight:700;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:none;
border-bottom:none;
border-left:none;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
-->
</style>
<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>Sheet1</x:Name>
<x:WorksheetOptions>
<x:StandardWidth>2208</x:StandardWidth>
<x:Print>
<x:ValidPrinterInfo/>
<x:PaperSizeIndex>1</x:PaperSizeIndex>
<x:HorizontalResolution>600</x:HorizontalResolution>
<x:VerticalResolution>600</x:VerticalResolution>
</x:Print>
<x:Selected/>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
<x:WindowHeight>15500</x:WindowHeight>
<x:WindowWidth>25820</x:WindowWidth>
<x:WindowTopX>-110</x:WindowTopX>
<x:WindowTopY>-110</x:WindowTopY>
<x:RefModeR1C1/>
<x:TabRatio>600</x:TabRatio>
<x:ActiveSheet>0</x:ActiveSheet>
</x:ExcelWorkbook>
</xml><![endif]-->
</head>
<body link=blue vlink=purple >
<table border=0 cellpadding=0 cellspacing=0 width=758 style='border-collapse:
collapse;table-layout:fixed;width:568pt;margin: 0 auto'>
<col width=109 style='mso-width-source:userset;width:81.75pt'>
<col width=113 style='mso-width-source:userset;width:84.75pt'>
<col width=99 style='mso-width-source:userset;width:74.25pt'>
<col width=221 style='mso-width-source:userset;width:196.75pt'>
<col width=97 style='mso-width-source:userset;width:72.75pt'>
<col width=119 style='mso-width-source:userset;width:89.25pt'>
<tr height=42 style='mso-height-source:userset;height:32pt' id='r0'>
<td colspan=6 height=42 class=x21 width=758 style='height:32pt;'>人员离职离岗登记表</td>
</tr>
<tr height=42 style='mso-height-source:userset;height:32pt' id='r1'>
<td colspan=2 height=41 class=x29 style='border-bottom:1px solid windowtext;height:31.25pt;'>申请日期:</td>
<td class=x22></td>
<td class=x22></td>
<td class=x22></td>
<td class=x22></td>
</tr>
<tr height=42 style='mso-height-source:userset;height:32pt' id='r2'>
<td height=40 class=x23 style='height:30.5pt;'>姓名</td>
<td class=x24>[[${leaveuser.userName}]]</td>
<td class=x23>单位</td>
<td class=x24>[[${leaveuser.depart}]]</td>
<td class=x23>入职日期</td>
<td class=x24 id="entryDate">[[${user.startdate}]]</td>
</tr>
<tr height=96 style='mso-height-source:userset;height:72.5pt' id='r3'>
<td height=94 class=x23 style='height:71pt;'>离职离岗原因</td>
<td colspan=5 class=x25 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${leaveuser.leavereason}]]</td>
</tr>
<tr height=96 style='mso-height-source:userset;height:72.5pt' id='r4'>
<td height=94 class=x23 style='height:71pt;'>领导意见</td>
<td colspan=5 class=x25 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;' id="examinestate">[[${leaveuser.examinestate}]]</td>
</tr>
<tr height=96 style='mso-height-source:userset;height:72.5pt' id='r5'>
<td height=94 class=x23 style='height:71pt;'>工作交接</td>
<td colspan=5 class=x25 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;' id="workstate">[[${leaveuser.workstate}]]</td>
</tr>
<tr height=96 style='mso-height-source:userset;height:72.5pt' id='r6'>
<td height=94 class=x23 style='height:71pt;'>备注</td>
<td colspan=5 class=x25 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${leaveuser.remark}]]</td>
</tr>
<tr height=38 style='mso-height-source:userset;height:29pt' id='r7'>
<td height=36 class=x23 style='height:27.5pt;'>审批人</td>
<td colspan=5 class=x25 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${leaveuser.examinename}]]</td>
</tr>
<tr height=38 style='mso-height-source:userset;height:29pt' id='r8'>
<td height=37 class=x28 style='height:28.25pt;'></td>
<td class=x28></td>
<td class=x28></td>
<td colspan=3 class=x30><span style='float:right' class="liquidate">[[${leaveuser.leavedate}]]</span></td>
</tr>
<tr>
<!-- 打印网页时通过hidden-print隐藏元素 -->
<div class="text-right hidden-print" style="position: fixed;bottom: 20px;right: 50%;">
<button class="btn btn-primary" onclick="printPage()"><i class="fa fa-print"></i> 打印</button>
</div>
</tr>
</table>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
function printPage() {
window.print();
}
function conversionDate(date){
var year = date.getFullYear();
var month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要加 1
var day = String(date.getDate()).padStart(2, '0'); // 日可能是个位数,需要补零
return year + '-' + month + '-' + day
}
document.querySelector('#entryDate').innerHTML =conversionDate(new Date(document.querySelector('#entryDate').innerHTML))
document.querySelector('.liquidate').innerHTML ='离职离岗日期:' + conversionDate(new Date(document.querySelector('.liquidate').innerHTML))
//领导意见
var examinestateDatas = [[${@dict.getType('sys_examine_state')}]];
var examinestateToFind = document.querySelector('#examinestate').innerHTML;
const foundObject = examinestateDatas.find(obj => obj.dictValue === examinestateToFind);
const result = foundObject ? foundObject.dictLabel : "";
document.querySelector('#examinestate').innerHTML = result
//工作交接
var workstateData = [[${@dict.getType('sys_user_work')}]];
var workstateToFind = document.querySelector('#workstate').innerHTML;
var workstateObject = workstateData.find(obj => obj.dictValue === workstateToFind);
var workstateresult = workstateObject ? workstateObject.dictLabel : "";
document.querySelector('#workstate').innerHTML = workstateresult
function ChangeRowspanHiddenData()
{
var node;
var params=["r2","r7","r9","r13"];
for (var i = 0;i < params.length; i++)
{
node = document.getElementById(params[i]);
if (node != null)
{
node.style.display = "";
}
}
}
ChangeRowspanHiddenData();
</script>
</body>
</html>

@ -1,375 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增载体制作')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-fileprovide-add" th:object="${tdCarrier}">
<input name="id" th:field="*{id}" type="hidden">
<input name="status" th:value="6" type="hidden">
<h4 class="form-header h4">国家秘密载体制作</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label ">所属市州:</label>
<div class="col-sm-8">
<select id="City" name="areaCity" disabled @change="getAreaList()" v-model="City" class="form-control m-b">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label ">所属区县:</label>
<div class="col-sm-8">
<select id="Area" name="areaDistrict" disabled v-model="Area" class="form-control m-b">
<option value="">请选择</option>
<option v-for="option in AreaList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体名称:</label>
<div class="col-sm-8">
<input name="carrierName" disabled th:field="*{carrierName}" placeholder="请输入载体名称" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体类型:</label>
<div class="col-sm-8">
<select name="carrierLevel" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierLevel}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">载体数量:</label>
<div class="col-sm-8">
<input name="carrierCount" disabled th:field="*{carrierCount}" digits="true" placeholder="请输入载体数量" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">密级:</label>
<div class="col-sm-8">
<select name="carrierSecret" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierSecret}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">紧急程度:</label>
<div class="col-sm-8">
<select name="carrierExtent" disabled required class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierExtent}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">编号:</label>
<div class="col-sm-8">
<input name="carrierNumber" disabled placeholder="请输入编号" th:field="*{carrierNumber}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保密期限:</label>
<div class="col-sm-8">
<input name="carrierTerm" disabled placeholder="请输入保密期限" th:field="*{carrierTerm}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放范围:</label>
<div class="col-sm-8">
<input name="carrierContent" disabled placeholder="请输入发放范围" th:field="*{carrierContent}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">定密依据:</label>
<div class="col-sm-10">
<textarea name="carrierAlliance" disabled th:field="*{carrierAlliance}" placeholder="请输入定密依据" required class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体收发</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收单位:</label>
<div class="col-sm-8">
<input name="receivingUnits" disabled th:field="*{receivingUnits}" placeholder="请输入接收单位" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="receivingTime" disabled th:value="${#dates.format(tdCarrier.receivingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">接收人员:</label>
<div class="col-sm-8">
<input name="receivingUser" disabled th:field="*{receivingUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放单位:</label>
<div class="col-sm-8">
<input name="issuingUnit" disabled th:field="*{issuingUnit}" placeholder="请输入发放单位" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="issuingTime" disabled th:value="${#dates.format(tdCarrier.issuingTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">发放人员:</label>
<div class="col-sm-8">
<input name="issuingUser" disabled th:field="*{issuingUser}" placeholder="请输入发放人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">传递方式:</label>
<div class="col-sm-8">
<input name="deliveryMethod" disabled placeholder="请输入传递方式" th:field="*{deliveryMethod}" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">交通工具:</label>
<div class="col-sm-8">
<input name="carrierVehicle" disabled placeholder="请输入交通工具" th:field="*{carrierVehicle}" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体使用</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用要求:</label>
<div class="col-sm-8">
<input name="mentsUse" disabled th:field="*{mentsUse}" placeholder="请输入使用要求" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="mentsTime" disabled th:value="${#dates.format(tdCarrier.mentsTime, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">使用人员:</label>
<div class="col-sm-8">
<input name="usageUser" disabled th:field="*{usageUser}" placeholder="请输入接收人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体保存</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">保存地点:</label>
<div class="col-sm-8">
<input name="saveLocation" disabled th:field="*{saveLocation}" placeholder="请输入保存地点" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">地点要求:</label>
<div class="col-sm-8">
<input name="locationRequire" disabled th:field="*{locationRequire}" placeholder="请输入地点要求" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<h4 class="form-header h4">国家秘密载体维护</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护部门:</label>
<div class="col-sm-8">
<input name="maintainDepart" th:field="*{maintainDepart}" placeholder="请输入维护部门" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护人员:</label>
<div class="col-sm-8">
<input name="maintainUser" th:field="*{maintainUser}" placeholder="请输入维护人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="maintainDate" th:value="${#dates.format(tdCarrier.maintainDate, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">旁站人员:</label>
<div class="col-sm-8">
<input name="maintainStand" th:field="*{maintainStand}" placeholder="请输入旁站人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</form>
</div>
<div class="row">
<div class="col-sm-offset-5 col-sm-10">
<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
</div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/maintainCarrier"
$("#form-fileprovide-add").validate({
focusCleanup: true
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
AreaList:[],
City:[[${tdCarrier.areaCity}]],
Area:[[${tdCarrier.areaDistrict}]],
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
if (this.City){
this.getAreaList()
}
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data
}) ,
});
},
getAreaList(){
this.params.parentId = this.City
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params,
success:((res)=>{
this.AreaList = res.data
}) ,
});
}
}
})
$("input[name='maintainDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.saveTab(prefix + "/edit", $('#form-fileprovide-add').serialize());
}
}
</script>
</body>
</html>

@ -1,164 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('载体下发列表')" />
</head>
<body class="gray-bg">
<div class="container-div" id="app">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<input type="hidden" name="status" th:value="5"/>
<li>
<label>载体名称:</label>
<input type="text" name="carrierName"/>
</li>
<li>
<label>密级:</label>
<select name="carrierSecret" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>载体类型:</label>
<select name="carrierLevel" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>所属市州:</label>
<select id="City" name="areaCity" v-model="City">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:useCarrier:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:useCarrier:remove')}]];
var detailFlag = [[${@permission.hasPermi('system:useCarrier:detail')}]];
var carrierLevelDatas = [[${@dict.getType('sys_provide_level')}]];
var fileSecretDatas = [[${@dict.getType('sys_file_miji')}]];
var carrierExtentDatas = [[${@dict.getType('sys_file_jinjichengdu')}]];
var prefix = ctx + "system/maintainCarrier";
let datas = []
$.ajax({
url: ctx + "system/area/getAllList",
type: 'GET',
data:{parentId:''} ,
success:((res)=>{
datas = res.data
}) ,
});
$(function() {
var options = {
url: prefix + "/list",
updateUrl: prefix + "/edit/{id}",
modalName: "国家秘密载体维修",
columns: [
{
field: 'id',
title: 'id',
visible: false
},
{
field: 'areaCity',
title: '所属市州',
formatter: function(value, row, index) {
return getCity(datas, value)
}
},
{
field: 'carrierName',
title: '载体名称'
},
{
field: 'carrierLevel',
title: '载体类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierLevelDatas, value);
}
},
{
field: 'carrierExtent',
title: '紧急程度',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierExtentDatas, value);
}
},
{
field: 'carrierSecret',
title: '密级',
formatter: function(value, row, index) {
return $.table.selectDictLabel(fileSecretDatas, value);
}
},
{
field: 'carrierTerm',
title: '保密期限'
},
{
field: 'createTime',
title: '创建时间',
sortable: true
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.id + '\')"><i class="fa fa-edit"></i>维修</a> ');
return actions.join('');
}
}]
};
$.table.init(options);
});
var app = new Vue({
el: '#app',
data: {
CityList: [],
City:'',
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data.filter(obj => obj.id === '36625');
}) ,
});
},
}
})
</script>
</body>
</html>

@ -1,75 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增载体制作')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-fileprovide-add" th:object="${tdCarrierIssued}">
<input name="id" th:field="*{id}" type="hidden">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护部门:</label>
<div class="col-sm-8">
<input name="maintainDepart" th:field="*{maintainDepart}" placeholder="请输入维护部门" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护人员:</label>
<div class="col-sm-8">
<input name="maintainUser" th:field="*{maintainUser}" placeholder="请输入维护人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">维护日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="maintainDate" th:value="${#dates.format(tdCarrierIssued.maintainDate, 'yyyy-MM-dd')}" required class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">旁站人员:</label>
<div class="col-sm-8">
<input name="maintainStand" th:field="*{maintainStand}" placeholder="请输入旁站人员" required class="form-control" type="text">
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/maintainIssued"
$("#form-fileprovide-add").validate({
focusCleanup: true
});
$("input[name='maintainDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-fileprovide-add').serialize());
}
}
</script>
</body>
</html>

@ -1,179 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('国家秘密载体维修')" />
</head>
<body class="gray-bg">
<div class="container-div" id="app">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<input type="hidden" name="status" th:value="5"/>
<li>
<label>载体名称:</label>
<input type="text" name="carrierName"/>
</li>
<li>
<label>密级:</label>
<select name="carrierSecret" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>载体类型:</label>
<select name="carrierLevel" th:with="type=${@dict.getType('sys_provide_level')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>所属市州:</label>
<select id="City" name="areaCity" v-model="City">
<option value="">请选择</option>
<option v-for="option in CityList" :value="option.id" :key="option.id">
{{ option.name }}
</option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:maintainIssued:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:maintainIssued:remove')}]];
var detailFlag = [[${@permission.hasPermi('system:maintainIssued:detail')}]];
var carrierLevelDatas = [[${@dict.getType('sys_provide_level')}]];
var fileSecretDatas = [[${@dict.getType('sys_file_miji')}]];
var carrierExtentDatas = [[${@dict.getType('sys_file_jinjichengdu')}]];
var prefix = ctx + "system/maintainIssued";
let datas = []
$.ajax({
url: ctx + "system/area/getAllList",
type: 'GET',
data:{parentId:''} ,
success:((res)=>{
datas = res.data
}) ,
});
$(function() {
var options = {
url: prefix + "/list",
updateUrl: prefix + "/edit/{id}",
modalName: "国家秘密载体维修",
columns: [
{
field: 'id',
title: 'id',
visible: false
},
{
field: 'areaCity',
title: '所属市州',
formatter: function(value, row, index) {
return getCity(datas, value)
}
},
{
field: 'carrierName',
title: '载体名称'
},
{
field: 'carrierLevel',
title: '载体类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierLevelDatas, value);
}
},
{
field: 'carrierExtent',
title: '紧急程度',
formatter: function(value, row, index) {
return $.table.selectDictLabel(carrierExtentDatas, value);
}
},
{
field: 'carrierSecret',
title: '密级',
formatter: function(value, row, index) {
return $.table.selectDictLabel(fileSecretDatas, value);
}
},
{
field: 'carrierTerm',
title: '保密期限'
},
{
field: 'createTime',
title: '创建时间',
sortable: true
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>维修</a> ');
return actions.join('');
}
}]
};
$.table.init(options);
});
function edit(id) {
table.set();
if ($.common.isEmpty(id) && table.options.type == table_type.bootstrapTreeTable) {
var row = $("#" + table.options.id).bootstrapTreeTable('getSelections')[0];
if ($.common.isEmpty(row)) {
$.modal.alertWarning("请至少选择一条记录");
return;
}
var url = table.options.updateUrl.replace("{id}", row[table.options.uniqueId]);
$.modal.open(table.options.modalName, url, 800, 500);
} else {
$.modal.open(table.options.modalName, $.operate.editUrl(id), 800, 500);
}
}
var app = new Vue({
el: '#app',
data: {
CityList: [],
City:'',
params:{
parentId:'',
}
},
mounted(){
// 初始化地市列表
this.getCityList();
},
methods:{
getCityList(){
$.ajax({
url: ctx + "system/area/getSysAreaList",
type: 'GET',
data:this.params ,
success:((res)=>{
this.CityList = res.data.filter(obj => obj.id === '36625');
}) ,
});
},
}
})
</script>
</body>
</html>

@ -1,145 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增涉密网络登记')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-netinfo-add">
<input name="netId" class="form-control" th:value="${netId}" type="hidden">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">设备种类:</label>
<div class="col-sm-8">
<select name="netName" required class="form-control" th:with="type=${@dict.getType('sys_net_type')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">IP地址</label>
<div class="col-sm-8">
<input name="netIp" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">设备型号:</label>
<div class="col-sm-8">
<input name="netNo" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">序列号:</label>
<div class="col-sm-8">
<input name="netSn" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">登记人员:</label>
<div class="col-sm-8">
<input name="registName" class="form-control" readonly th:value="${sysuser.userName}" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">责任人:</label>
<div class="col-sm-8">
<input name="netManager" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">单位名称:</label>
<div class="col-sm-8">
<input name="depart" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">密级:</label>
<div class="col-sm-8">
<select name="netMiji" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">网络设备品牌:</label>
<div class="col-sm-8">
<input name="netBrand" required class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">涉密网络名称:</label>
<div class="col-sm-8">
<input name="netsmname" required class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">是否属于要害部门部位:</label>
<div class="col-sm-10">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
<input type="radio" required th:id="${'isCurcial_' + dict.dictCode}" name="isCurcial" th:value="${dict.dictValue}" th:checked="${dict.default}">
<label th:for="${'isCurcial_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">备注:</label>
<div class="col-sm-10">
<textarea name="remark" class="form-control" type="text"></textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/network/netinfo"
$("#form-netinfo-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-netinfo-add').serialize());
}
}
</script>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save