bug修改
This commit is contained in:
parent
b2697bdfe7
commit
6b96359af7
@ -3,6 +3,7 @@ package cn.com.tenlion.systemtask.controller.api.keyplacetaskpatrol;
|
|||||||
import cn.com.tenlion.systemtask.config.properties.UrlProperties;
|
import cn.com.tenlion.systemtask.config.properties.UrlProperties;
|
||||||
import cn.com.tenlion.systemtask.pojo.dtos.keyplacepatrol.KeyPlacePatrolDTO;
|
import cn.com.tenlion.systemtask.pojo.dtos.keyplacepatrol.KeyPlacePatrolDTO;
|
||||||
import cn.com.tenlion.systemtask.pojo.vos.businesspagebus.KeyAreaCheckRenovationPatrolVO;
|
import cn.com.tenlion.systemtask.pojo.vos.businesspagebus.KeyAreaCheckRenovationPatrolVO;
|
||||||
|
import cn.com.tenlion.systemtask.pojo.vos.businesspagebus.KeyPlacePatrolVO;
|
||||||
import cn.com.tenlion.systemtask.remote.keyplacetaskpatrol.IKeyPlaceTaskPatrolRemoteService;
|
import cn.com.tenlion.systemtask.remote.keyplacetaskpatrol.IKeyPlaceTaskPatrolRemoteService;
|
||||||
import ink.wgink.annotation.CheckRequestBodyAnnotation;
|
import ink.wgink.annotation.CheckRequestBodyAnnotation;
|
||||||
import ink.wgink.common.base.DefaultBaseController;
|
import ink.wgink.common.base.DefaultBaseController;
|
||||||
@ -43,10 +44,10 @@ public class KeyPlaceTaskPatrolController extends DefaultBaseController {
|
|||||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
@PostMapping("save")
|
@PostMapping("save")
|
||||||
@CheckRequestBodyAnnotation
|
@CheckRequestBodyAnnotation
|
||||||
public SuccessResult save(@RequestBody KeyAreaCheckRenovationPatrolVO keyAreaCheckRenovationPatrolVO) {
|
public SuccessResult save(@RequestBody KeyPlacePatrolVO keyPlacePatrolVO) {
|
||||||
String sendUrl = urlProperties.getBaseUrl();
|
String sendUrl = urlProperties.getBaseUrl();
|
||||||
String accessToken = OAuth2ClientTokenManager.getInstance().getToken().getAccessToken();
|
String accessToken = OAuth2ClientTokenManager.getInstance().getToken().getAccessToken();
|
||||||
keyPlaceTaskPatrolRemoteService.save(sendUrl, keyAreaCheckRenovationPatrolVO, accessToken);
|
keyPlaceTaskPatrolRemoteService.save(sendUrl, keyPlacePatrolVO, accessToken);
|
||||||
return new SuccessResult();
|
return new SuccessResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,10 +73,10 @@ public class KeyPlaceTaskPatrolController extends DefaultBaseController {
|
|||||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
@PutMapping("update/{keyPlaceTaskPatrolId}")
|
@PutMapping("update/{keyPlaceTaskPatrolId}")
|
||||||
@CheckRequestBodyAnnotation
|
@CheckRequestBodyAnnotation
|
||||||
public SuccessResult update(@PathVariable("keyPlaceTaskPatrolId") String keyPlaceTaskPatrolId, @RequestBody KeyAreaCheckRenovationPatrolVO keyAreaCheckRenovationPatrolVO) {
|
public SuccessResult update(@PathVariable("keyPlaceTaskPatrolId") String keyPlaceTaskPatrolId, @RequestBody KeyPlacePatrolVO keyPlacePatrolVO) {
|
||||||
String sendUrl = urlProperties.getBaseUrl();
|
String sendUrl = urlProperties.getBaseUrl();
|
||||||
String accessToken = OAuth2ClientTokenManager.getInstance().getToken().getAccessToken();
|
String accessToken = OAuth2ClientTokenManager.getInstance().getToken().getAccessToken();
|
||||||
keyPlaceTaskPatrolRemoteService.update(sendUrl, keyAreaCheckRenovationPatrolVO, keyPlaceTaskPatrolId, accessToken);
|
keyPlaceTaskPatrolRemoteService.update(sendUrl, keyPlacePatrolVO, keyPlaceTaskPatrolId, accessToken);
|
||||||
return new SuccessResult();
|
return new SuccessResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,38 @@
|
|||||||
|
package cn.com.tenlion.systemtask.controller.route.keyplacetask;
|
||||||
|
|
||||||
|
import ink.wgink.common.base.DefaultBaseController;
|
||||||
|
import ink.wgink.interfaces.consts.ISystemConstant;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName: KeyAreaTask
|
||||||
|
* @Description: 重点地区排查整治
|
||||||
|
* @Author: CodeFactory
|
||||||
|
* @Date: 2021-10-12 16:37:43
|
||||||
|
* @Version: 3.0
|
||||||
|
**/
|
||||||
|
@Api(tags = ISystemConstant.ROUTE_TAGS_PREFIX + "重点地区巡查")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(ISystemConstant.ROUTE_PREFIX + "/keyplacetask")
|
||||||
|
public class KeyPlaceTask extends DefaultBaseController {
|
||||||
|
|
||||||
|
@GetMapping("update")
|
||||||
|
public ModelAndView update() {
|
||||||
|
return new ModelAndView("keyplacetask/update");
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("list")
|
||||||
|
public ModelAndView list() {
|
||||||
|
return new ModelAndView("keyplacetask/list");
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("list-offline")
|
||||||
|
public ModelAndView listOffline() {
|
||||||
|
return new ModelAndView("keyplacetask/list-offline");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
package cn.com.tenlion.systemtask.controller.route.keyplacetaskpatrol;
|
||||||
|
|
||||||
|
import ink.wgink.common.base.DefaultBaseController;
|
||||||
|
import ink.wgink.interfaces.consts.ISystemConstant;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName: KeyAreaTask
|
||||||
|
* @Description: 重点地区排查整治
|
||||||
|
* @Author: CodeFactory
|
||||||
|
* @Date: 2021-10-12 16:37:43
|
||||||
|
* @Version: 3.0
|
||||||
|
**/
|
||||||
|
@Api(tags = ISystemConstant.ROUTE_TAGS_PREFIX + "重点地区巡查")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(ISystemConstant.ROUTE_PREFIX + "/keyplacetaskpatrol")
|
||||||
|
public class KeyPlaceTaskPatrol extends DefaultBaseController {
|
||||||
|
|
||||||
|
@GetMapping("update")
|
||||||
|
public ModelAndView update() {
|
||||||
|
return new ModelAndView("keyplacetaskpatrol/update");
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("list")
|
||||||
|
public ModelAndView list() {
|
||||||
|
return new ModelAndView("keyplacetaskpatrol/list");
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("save")
|
||||||
|
public ModelAndView save() {
|
||||||
|
return new ModelAndView("keyplacetaskpatrol/save");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,8 +1,7 @@
|
|||||||
package cn.com.tenlion.systemtask.remote.keyplacetaskpatrol;
|
package cn.com.tenlion.systemtask.remote.keyplacetaskpatrol;
|
||||||
|
|
||||||
import cn.com.tenlion.systemtask.pojo.dtos.keyareataskpatrol.KeyAreaTaskPatrolDTO;
|
|
||||||
import cn.com.tenlion.systemtask.pojo.dtos.keyplacepatrol.KeyPlacePatrolDTO;
|
import cn.com.tenlion.systemtask.pojo.dtos.keyplacepatrol.KeyPlacePatrolDTO;
|
||||||
import cn.com.tenlion.systemtask.pojo.vos.businesspagebus.KeyAreaCheckRenovationPatrolVO;
|
import cn.com.tenlion.systemtask.pojo.vos.businesspagebus.KeyPlacePatrolVO;
|
||||||
import ink.wgink.annotation.rpc.rest.RemoteService;
|
import ink.wgink.annotation.rpc.rest.RemoteService;
|
||||||
import ink.wgink.annotation.rpc.rest.method.RemoteDeleteMethod;
|
import ink.wgink.annotation.rpc.rest.method.RemoteDeleteMethod;
|
||||||
import ink.wgink.annotation.rpc.rest.method.RemoteGetMethod;
|
import ink.wgink.annotation.rpc.rest.method.RemoteGetMethod;
|
||||||
@ -26,13 +25,13 @@ import java.util.Map;
|
|||||||
public interface IKeyPlaceTaskPatrolRemoteService {
|
public interface IKeyPlaceTaskPatrolRemoteService {
|
||||||
|
|
||||||
@RemotePostMethod("resource/keyplacepatrol/save")
|
@RemotePostMethod("resource/keyplacepatrol/save")
|
||||||
SuccessResult save(@RemoteServerParams String remotePath, @RemoteJsonBodyParams KeyAreaCheckRenovationPatrolVO keyAreaCheckRenovationPatrolVO, @RemoteQueryParams("access_token") String access_token);
|
SuccessResult save(@RemoteServerParams String remotePath, @RemoteJsonBodyParams KeyPlacePatrolVO keyPlacePatrolVO, @RemoteQueryParams("access_token") String access_token);
|
||||||
|
|
||||||
@RemoteDeleteMethod("resource/keyplacepatrol/remove/{ids}")
|
@RemoteDeleteMethod("resource/keyplacepatrol/remove/{ids}")
|
||||||
SuccessResult remove(@RemoteServerParams String remotePath, @RemotePathParams("ids") String ids, @RemoteQueryParams("access_token") String access_token);
|
SuccessResult remove(@RemoteServerParams String remotePath, @RemotePathParams("ids") String ids, @RemoteQueryParams("access_token") String access_token);
|
||||||
|
|
||||||
@RemotePutMethod("resource/keyplacepatrol/update/{keyPlaceTaskPatrolId}")
|
@RemotePutMethod("resource/keyplacepatrol/update/{keyPlaceTaskPatrolId}")
|
||||||
SuccessResult update(@RemoteServerParams String remotePath, @RemoteJsonBodyParams KeyAreaCheckRenovationPatrolVO keyAreaCheckRenovationPatrolVO, @RemotePathParams("keyPlaceTaskPatrolId") String keyPlaceTaskPatrolId, @RemoteQueryParams("access_token") String access_token);
|
SuccessResult update(@RemoteServerParams String remotePath, @RemoteJsonBodyParams KeyPlacePatrolVO keyPlacePatrolVO, @RemotePathParams("keyPlaceTaskPatrolId") String keyPlaceTaskPatrolId, @RemoteQueryParams("access_token") String access_token);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重点地区详情
|
* 重点地区详情
|
||||||
|
@ -171,7 +171,7 @@ security:
|
|||||||
check-token-access: ${security.oauth2.oauth-server}/oauth2_client/token_key
|
check-token-access: ${security.oauth2.oauth-server}/oauth2_client/token_key
|
||||||
|
|
||||||
server-other:
|
server-other:
|
||||||
base-url: http://192.168.0.111:8081/systembase/
|
base-url: http://192.168.0.111:8082/systembase/
|
||||||
house-url: http://192.168.0.111:8083/systemhouse/
|
house-url: http://192.168.0.111:8083/systemhouse/
|
||||||
population-url: http://192.168.0.111:8090/population/
|
population-url: http://192.168.0.111:8090/population/
|
||||||
case-url: http://192.168.0.120:8081/case/
|
case-url: http://192.168.0.120:8081/case/
|
||||||
|
@ -240,6 +240,23 @@ layui.define(function (exports) {
|
|||||||
return exportColumns;
|
return exportColumns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getImgBase64(url, callback) {
|
||||||
|
var Img = new Image(),
|
||||||
|
dataURL = '';
|
||||||
|
Img.src = url + '?v=' + Math.random();
|
||||||
|
Img.setAttribute('crossOrigin', 'Anonymous');
|
||||||
|
Img.onload = function() {
|
||||||
|
var canvas = document.createElement('canvas'),
|
||||||
|
width = Img.width,
|
||||||
|
height = Img.height;
|
||||||
|
canvas.width = width;
|
||||||
|
canvas.height = height;
|
||||||
|
canvas.getContext('2d').drawImage(Img, 0, 0, width, height);
|
||||||
|
dataURL = canvas.toDataURL('image/jpeg');
|
||||||
|
return callback ? callback(dataURL) : null;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
//对外暴露的接口
|
//对外暴露的接口
|
||||||
exports('common', {
|
exports('common', {
|
||||||
refreshTree: refreshTree,
|
refreshTree: refreshTree,
|
||||||
@ -248,6 +265,7 @@ layui.define(function (exports) {
|
|||||||
formatDate: formatDate,
|
formatDate: formatDate,
|
||||||
getBrowserType: getBrowserType,
|
getBrowserType: getBrowserType,
|
||||||
getIEBrowserVersion: getIEBrowserVersion,
|
getIEBrowserVersion: getIEBrowserVersion,
|
||||||
listTableExportColumns: listTableExportColumns
|
listTableExportColumns: listTableExportColumns,
|
||||||
|
getImgBase64: getImgBase64
|
||||||
});
|
});
|
||||||
});
|
});
|
@ -59,7 +59,7 @@
|
|||||||
var laydate = layui.laydate;
|
var laydate = layui.laydate;
|
||||||
var common = layui.common;
|
var common = layui.common;
|
||||||
var resizeTimeout = null;
|
var resizeTimeout = null;
|
||||||
var tableUrl = 'api/keyplacetask/listpage';
|
var tableUrl = 'api/keyplacetask/listPage';
|
||||||
|
|
||||||
// 初始化表格
|
// 初始化表格
|
||||||
function initTable() {
|
function initTable() {
|
||||||
@ -205,7 +205,7 @@
|
|||||||
// 巡查记录
|
// 巡查记录
|
||||||
function patrolHis(data) {
|
function patrolHis(data) {
|
||||||
top.dialog.open({
|
top.dialog.open({
|
||||||
url: top.restAjax.path('route/keyareataskpatrol/list?keyPlaceId={keyPlaceId}', [data.keyPlaceId]),
|
url: top.restAjax.path('route/keyplacetaskpatrol/list?keyPlaceId={keyPlaceId}', [data.keyPlaceId]),
|
||||||
title: "巡查记录列表",
|
title: "巡查记录列表",
|
||||||
width: '80%',
|
width: '80%',
|
||||||
height: '80%',
|
height: '80%',
|
||||||
@ -217,28 +217,21 @@
|
|||||||
|
|
||||||
// 下派任务
|
// 下派任务
|
||||||
function sendTask(data) {
|
function sendTask(data) {
|
||||||
/*where: {
|
|
||||||
name: data.securityArea,
|
|
||||||
man: data.leadDeptMan,
|
|
||||||
phone: data.leadDeptPhone,
|
|
||||||
time: data.rectificationTime,
|
|
||||||
grid: data.grid,
|
|
||||||
},*/
|
|
||||||
top.dialog.open({
|
top.dialog.open({
|
||||||
url: top.restAjax.path('route/distribute/save-offline?matterId={keyAreaCheckRenovationId}' +
|
url: top.restAjax.path('route/distribute/save-offline?matterId={keyPlaceId}' +
|
||||||
'&name={securityArea}' +
|
'&name={placeName}' +
|
||||||
'&phone={leadDeptPhone}' +
|
'&phone={linkPhone}' +
|
||||||
'&time={rectificationTime}' +
|
'&time={rectificationTime}' +
|
||||||
'&grid={grid}' +
|
'&grid={grid}' +
|
||||||
'&business={business}' +
|
'&business={business}' +
|
||||||
'&man={leadDeptMan}',
|
'&man={leadDeptMan}',
|
||||||
[data.keyAreaCheckRenovationId,
|
[data.keyPlaceId,
|
||||||
data.securityArea,
|
data.placeName,
|
||||||
data.leadDeptPhone,
|
data.linkPhone,
|
||||||
data.rectificationTime,
|
'',
|
||||||
data.grid,
|
data.grid,
|
||||||
'6be1c56a-39f8-4254-88fd-b6d9d75b5361,list-keyplace',
|
'048b5445-3466-4aef-9848-30cae17b828d,list-keyplace',
|
||||||
data.leadDeptMan]),
|
data.linkMan]),
|
||||||
title: "重点场所巡查任务下派",
|
title: "重点场所巡查任务下派",
|
||||||
width: '98%',
|
width: '98%',
|
||||||
height: '98%',
|
height: '98%',
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
var laydate = layui.laydate;
|
var laydate = layui.laydate;
|
||||||
var common = layui.common;
|
var common = layui.common;
|
||||||
var resizeTimeout = null;
|
var resizeTimeout = null;
|
||||||
var tableUrl = 'api/keyplacetask/listpage';
|
var tableUrl = 'api/keyplacetask/listPage';
|
||||||
|
|
||||||
// 初始化表格
|
// 初始化表格
|
||||||
function initTable() {
|
function initTable() {
|
||||||
@ -182,7 +182,6 @@
|
|||||||
{field: '', fixed: 'right', width: 230, title: '巡查记录', align:'center',
|
{field: '', fixed: 'right', width: 230, title: '巡查记录', align:'center',
|
||||||
templet: function(row) {
|
templet: function(row) {
|
||||||
var rowData = '<div class="layui-btn-group">\n' +
|
var rowData = '<div class="layui-btn-group">\n' +
|
||||||
' <a class="layui-btn layui-btn-xs" lay-event="addCamera">查看摄像头</a>\n' +
|
|
||||||
' <a class="layui-btn layui-btn-xs" lay-event="sendTask">下派任务</a>\n' +
|
' <a class="layui-btn layui-btn-xs" lay-event="sendTask">下派任务</a>\n' +
|
||||||
' <a class="layui-btn layui-btn-xs" lay-event="patrolHis">巡查记录</a>\n' +
|
' <a class="layui-btn layui-btn-xs" lay-event="patrolHis">巡查记录</a>\n' +
|
||||||
'</div>';
|
'</div>';
|
||||||
@ -218,28 +217,21 @@
|
|||||||
|
|
||||||
// 下派任务
|
// 下派任务
|
||||||
function sendTask(data) {
|
function sendTask(data) {
|
||||||
/*where: {
|
|
||||||
name: data.securityArea,
|
|
||||||
man: data.leadDeptMan,
|
|
||||||
phone: data.leadDeptPhone,
|
|
||||||
time: data.rectificationTime,
|
|
||||||
grid: data.grid,
|
|
||||||
},*/
|
|
||||||
top.dialog.open({
|
top.dialog.open({
|
||||||
url: top.restAjax.path('route/distribute/save-offline?matterId={keyAreaCheckRenovationId}' +
|
url: top.restAjax.path('route/distribute/save-offline?matterId={keyPlaceId}' +
|
||||||
'&name={securityArea}' +
|
'&name={placeName}' +
|
||||||
'&phone={leadDeptPhone}' +
|
'&phone={linkPhone}' +
|
||||||
'&time={rectificationTime}' +
|
'&time={rectificationTime}' +
|
||||||
'&grid={grid}' +
|
'&grid={grid}' +
|
||||||
'&business={business}' +
|
'&business={business}' +
|
||||||
'&man={leadDeptMan}',
|
'&man={leadDeptMan}',
|
||||||
[data.keyAreaCheckRenovationId,
|
[data.keyPlaceId,
|
||||||
data.securityArea,
|
data.placeName,
|
||||||
data.leadDeptPhone,
|
data.linkPhone,
|
||||||
data.rectificationTime,
|
'',
|
||||||
data.grid,
|
data.grid,
|
||||||
'6be1c56a-39f8-4254-88fd-b6d9d75b5361,list-keyarea',
|
'048b5445-3466-4aef-9848-30cae17b828d,list-keyplace',
|
||||||
data.leadDeptMan]),
|
data.linkMan]),
|
||||||
title: "重点场所巡查任务下派",
|
title: "重点场所巡查任务下派",
|
||||||
width: '98%',
|
width: '98%',
|
||||||
height: '98%',
|
height: '98%',
|
||||||
@ -258,7 +250,6 @@
|
|||||||
patrolHis(data);
|
patrolHis(data);
|
||||||
}else if('addCamera' == obj.event) {
|
}else if('addCamera' == obj.event) {
|
||||||
top.dialog.msg('功能正在开发中');
|
top.dialog.msg('功能正在开发中');
|
||||||
// addCamera(data);
|
|
||||||
}else if('sendTask' == obj.event) {
|
}else if('sendTask' == obj.event) {
|
||||||
sendTask(data);
|
sendTask(data);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user