myAudit.js
//--------------------------------------------------我的审批------------------------------------------------------ var table, $, layer, form; var row; layui.use([ 'table', 'jquery', 'layer', 'form' ], function() { table = layui.table, layer = layui.layer, $ = layui.jquery, form = layui.form; initTable(); //为查询按钮设置点击事件 $("#btn_search").click(function() { query(); }) //初始化审批信息 initFormSelects(); }); //查询的点击事件 function query() { table.reload('tb', { url : 'Meetinginfo.action', //请求地址 method : 'POST', //请求方式,GET或者POST page : true, //是否分页 where : { //设定异步数据接口的额外参数,任意设 'methodName' : 'list', 'title' : $('#title').val(), 'state' : 2, }, request : { //自定义分页请求参数名 pageName : 'page', //页码的参数名称,默认:page limitName : 'rows' //每页数据量的参数名,默认:limit }, done : function(res) { //console.log(res); } }) }; //将分页查询方法封装 function initTable() { table.render({ elem : '#tb', url : 'Meetinginfo.action', where : { //设定异步数据接口的额外参数,任意设 'methodName' : 'list', 'title' : $('#title').val(), 'state' : 2, }, cols : [ [ { type : 'checkbox', fixed : 'left' }, { field : 'id', title : '会议编号', width : 140, fixed : 'left', unresize : true, sort : true }, { field : 'title', title : '会议标题', width : 180, edit : 'text' }, { field : 'roomName', title : '会议地点', width : 150, edit : 'text' }, { field : 'startTime', title : '开始时间', width : 150, edit : 'text' }, { field : 'endTime', title : '结束时间', width : 120, edit : 'text' }, { field : 'meetingState', title : '会议状态', width : 120, edit : 'text' }, { field : 'NAME', title : '主持人', width : 120, edit : 'text' }, { fixed : 'right', title : '操作', toolbar : '#tbar', width : 300 } ] ], page : true }); //工具条事件 table.on('tool(tb)', function(obj){ //注:tool 是工具条事件名,test 是 table 原始容器的属性 lay-filter="对应的值" row = obj.data; //获得当前行数据 var layEvent = obj.event; //获得 lay-event 对应的值(也可以是表头的 event 参数对应的值) var tr = obj.tr; //获得当前行 tr 的 DOM 对象(如果有的话) //console.log(row); if(layEvent === 'edit'){ //审批 openLayer(row.id) } }); } //打开审批页面 function openLayer(id){ layer.open({ type: 2, //layer提供了5种层类型。可传入的值有:0(信息框,默认)1(页面层)2(iframe层)3(加载层)4(tips层) title: '审批', //对话框标题 area: ['600px', '500px'], //宽高 skin: 'layui-layer-rim', //样式类名 content: 'jsp/meeting/addMeetingAudit.jsp', //弹出内容。可以传入普通的html内容,还可以指定DOM,更可以随着type的不同而不同 btn:['审批通过','审批驳回'], yes:function(index,layero){ //layer.msg('保存'); //调用子页面中提供的getData方法,快速获取子页面的form表单数据 let data= $(layero).find("iframe")[0].contentWindow.save(); data['meetingId']=id; data['auditor']=$('#auditor').val(); addMeetingAudit(data); }, btn2:function(){ let data={}; data['sign']=null; data['meetingId']=id; data['auditor']=$('#auditor').val(); addMeetingAudit(data); return false; } }); } //添加审批意见 function addMeetingAudit(params){ /* * 1.将图片的字符串变成图片 * 2.将审批人意见插入数据库 * 3.修改会议状态 */ params['methodName']="add"; console.log(params); $.post('MeetingAudit.action',params,function(rs){ if(rs.success){ layer.msg(rs.msg,{icon:6},function(){}); layer.closeAll(); query(); }else{ layer.msg(rs.msg,{icon:5},function(){}); } },'json'); }
addMeetingAudit.js
//--------------------------------------------------我的审批签字------------------------------------------------------ let layer,table,$,form; var row; layui.use(['layer','table','jquery','form'],function(){ layer=layui.layer, table=layui.table, form=layui.form, $=layui.jquery; if(parent.row!=null){ form.val('audit',$.extend({}, parent.row||{})); } init(); function init() { $('.strokeColorBox').css('border',"4px solid "+$('.strokeColor').val()).find('.icon').css('color',$('.strokeColor').val()); $('.weightBox .icon').html($('.weight').val()+'px'); $('.drawFont').css({ 'height': $('.font_box_size').val() }) } /** * 右键按下不显 * 浏览器自带框 */ $('#canvas').get(0).oncontextmenu = function (e) { showMyselfBox(e); return false; }; /** * 显示自定义框 */ function showMyselfBox (e) { var left = e.offsetX; var top = e.offsetY; $('.myselfBox').css({ left: left, top: top }).show(); } /** * 鼠标滑过工具台 */ $('.contro li').on('mouseover', function () { $(this).on('mouseout', function () { $('.contro li').find('.iconAlert').hide() }); $(this).find('.iconAlert').show(); }); /** * 点击工具台 */ $('.drawType li').on('click touchstart', function (e) { if (e.type == "touchstart") { e.preventDefault(); } $(this).addClass('drawTypeChoose').siblings().removeClass('drawTypeChoose'); initData.drawType = $(this).attr('data-name'); initData.drayTypeNum= $(this).attr('data-nameNum') }) /** * 改变线条颜色 */ $('.strokeColor').on('change', function (e) { initData.color = $(this).val(); $('.strokeColorBox').css('border','4px solid '+initData.color).find('.icon').css('color',initData.color); }) /** * 改变背景色 */ $('.backgroundColor').on('change', function (e) { initData.background = $(this).val(); $('.backgroundColor').css('border','4px solid '+initData.background).find('.icon').css('color',initData.background); }) $('.fillDraw').on('click touchstart',function (e) { if (e.type == "touchstart") { e.preventDefault() } if ($(this).attr('data-choose') == 'false') { $(this).attr('data-choose','true').addClass('fillBg'); $('.backgroundColorBox').css({'border':'4px solid '+initData.background,'background':'#fff'}).find('.icon').css('color',initData.background); $('.backgroundColor').show(); initData.isFill = true; } else { initData.isFill = false; $(this).attr('data-choose','false').removeClass('fillBg'); $('.backgroundColor').hide(); $('.backgroundColorBox').css({'border':'4px solid #07133d','background':'#07133d'}).find('.icon').css('color','#666'); } }) /** * 改变线条粗细 */ $('.weight').on('change', function () { initData.size = $(this).val(); $('.weightBox .icon').html($('.weight').val()+'px'); }) /** * 绘制还是移动 */ $('.drawOrMove').on('click touchstart',function (e) { if (e.type == "touchstart") { e.preventDefault() } $(this).addClass('drawOrmoveChoose').siblings('.drawOrMove').removeClass('drawOrmoveChoose'); if ($(this).attr('data-name') == 'move') { // if (initData.drawType == 'line' || initData.drawType == 'pen' || initData.drawType == 'line' || initData.drawType == 'signet' || initData.drawType == 'eraser') { // alert('') // } $('.maskLi').show(); initData.drawOrMove = $(this).attr('data-name'); $('#canvas').css('cursor','move'); } else { initData.drawOrMove = $(this).attr('data-name'); $('.maskLi').hide(); $('#canvas').css('cursor','crosshair'); } }) /** * 绘制文字 */ $('.intoFontInput').on('input', function () { $('.intoFont').html($(this).val()); initData.context = $(this).val(); }) $('.font_box_size').on('change',function () { initData.fontSize = $(this).val(); }) /** * 清除画布 */ $('.remote').on('mousedown touchstart',function (e) { if (e.type == "touchstart") { e.preventDefault() } initData.context2d.clearRect(0,0,initData.canvasWidth,initData.canvasHeight); initData.drawHistoryArrData = []; initData.drawHistoryArrData.length = 0; }) /** * 保存图片 */ $('.downLoad').on('mousedown touchstart',function (a) { //debugger; save(); }) /** * 鼠标在canvas按下 */ $('#canvas').on('mousedown touchstart',function (e) { if (e.type == "touchstart") { e.preventDefault() } if (e.button == '0' || e.type == "touchstart") { // 判断是左键按下 $('.myselfBox').hide(); initData.mouseDown(e); $(this).on('mousemove touchmove', function (e) { if (e.type == "touchmove") { e.preventDefault() } initData.mouseMove(e); }) } }) /** * 鼠标抬起 */ $('html').on('mouseup touchend',function(){ initData.mouseUp(); }) var initData= { drawHistoryArrData: [], // 存放所有绘制图形的数据 context2d: $('#canvas').get(0).getContext('2d'), // canvas绘图2d环境 canvasWidth: $('#canvas').width(), canvasHeight: $('#canvas').height(), relPosX: 0, // 鼠标在绘制图形中按下相对该图形左面的距离 relPosY: 0, // 鼠标在绘制图形中按下相对该图形上面的距离 relPosToX: 0, // 鼠标在绘制图形中按下相对该图形左面的距离 relPosToY: 0, initLeft: 0, initTop: 0, chooseIndex: 0, // 选中图形在drawHistoryArrData数据中的index drawOrMove: 'draw', // 当前模式是拖拽还是绘制 isMove: false, // 是否可以拖拽 drawType: 'pen', // 绘制图形的类型 drawTypeNum: '1', // 用于区分同一图形不同形状 size: 2, // 绘制的粗细 fontSize: $('.font_box_size').val(), context:'', color: $('.strokeColor').val(), // 绘制颜色 isFill: false, // 是否填充 background: $('.backgroundColor').val(), msgArr:[], // 画笔信息 /** * 矩形绘制轨迹 */ drawTypeArr: function (arr,j) { var drawTypeFn = { // 绘制方法 rect: function () { // 矩形 initData.context2d.beginPath(); initData.context2d.lineWidth = arr[j].size; initData.context2d.strokeStyle = arr[j].color; initData.context2d.rect(arr[j].x, arr[j].y, arr[j].w,arr[j].h); if (arr[j].fill) { initData.context2d.fillStyle = arr[j].fill; initData.context2d.fill(); } initData.context2d.stroke(); }, line: function () { // 线 initData.context2d.beginPath(); initData.context2d.moveTo (arr[j].x,arr[j].y); //设置起点状态 initData.context2d.lineTo (arr[j].toX,arr[j].toY); //设置末端状态 initData.context2d.lineWidth = arr[j].size; //设置线宽状态 initData.context2d.strokeStyle = arr[j].color; //设置线的颜色状态 initData.context2d.stroke(); }, circle: function () { // 圆 initData.context2d.beginPath(); initData.context2d.lineWidth = arr[j].size; //设置线宽状态 initData.context2d.strokeStyle = arr[j].color; initData.context2d.arc(arr[j].x,arr[j].y,arr[j].r,0,2*Math.PI); if (arr[j].fill) { initData.context2d.fillStyle = arr[j].fill; initData.context2d.fill(); } initData.context2d.stroke() }, delta: function () { // 三角 var w = arr[j].toX-arr[j].x; var h = arr[j].toY-arr[j].y; var harfDis = Math.tan(30/2)*h ; if (arr[j].toX-arr[j].x>0) { harfDis = harfDis } else { harfDis = -harfDis } initData.context2d.beginPath(); initData.context2d.moveTo (arr[j].x,arr[j].y); //设置起点状态 initData.context2d.lineTo (arr[j].toX,arr[j].toY); initData.context2d.lineTo (arr[j].toX + 2*harfDis,arr[j].toY); initData.context2d.lineTo (arr[j].x,arr[j].y); //设置末端状态 initData.context2d.lineWidth = arr[j].size; //设置线宽状态 initData.context2d.strokeStyle = arr[j].color; //设置线的颜色状态 if (arr[j].fill) { initData.context2d.fillStyle = arr[j].fill; initData.context2d.fill(); } initData.context2d.stroke(); }, ellipse: function () { initData.context2d.beginPath(); initData.context2d.lineWidth = arr[j].size; //设置线宽状态 initData.context2d.strokeStyle = arr[j].color; initData.context2d.ellipse(arr[j].x,arr[j].y,Math.abs(arr[j].toX - arr[j].x),Math.abs(arr[j].toY -arr[j].y),0,0,Math.PI*2); if (arr[j].fill) { initData.context2d.fillStyle = arr[j].fill; initData.context2d.fill(); } initData.context2d.stroke(); }, polygon: function () { var y1 = (arr[j].toY-arr[j].y)/2; var tan = Math.tan((90-(arr[j].reg/2))*(2*Math.PI/360)); var x1 = y1*tan; initData.context2d.beginPath(); initData.context2d.moveTo (arr[j].x,arr[j].y); //设置起点状态 initData.context2d.lineTo (arr[j].toX,arr[j].y); initData.context2d.lineTo (arr[j].toX+x1,arr[j].y+y1); initData.context2d.lineTo (arr[j].toX,arr[j].toY); //设置末端状态 initData.context2d.lineTo (arr[j].x,arr[j].toY); initData.context2d.lineTo (arr[j].x-x1,arr[j].y+y1); initData.context2d.lineTo (arr[j].x,arr[j].y); initData.context2d.lineWidth = arr[j].size; //设置线宽状态 initData.context2d.strokeStyle = arr[j].color; //设置线的颜色状态 if (arr[j].fill) { initData.context2d.fillStyle = arr[j].fill; initData.context2d.fill(); } initData.context2d.stroke(); }, font: function () { // initData.context2d.beginPath(); initData.context2d.font = arr[j].fontSize+'px Verdana'; initData.context2d.textAlign = 'center'; initData.context2d.textBaseline = 'bottom'; initData.context2d.fillStyle = arr[j].color; // if (arr[j].fill) { initData.context2d.fillText(arr[j].context, arr[j].x, arr[j].y); // } // initData.context2d.strokeText(arr[j].context, arr[j].x, arr[j].y); // initData.context2d.lineWidth = 1; // initData.context2d.strokeStyle = 'transparent'; // initData.context2d.rect(arr[j].x, arr[j].y, arr[j].w,arr[j].h); // initData.context2d.stroke(); $('.drawFont').hide(); // initData.context = "" $('.intoFont').html(''); $('.intoFontInput').val(''); $('.drawFont').attr('data-type','hide'); }, signet: function () { var img = new Image(); img.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAHGCAMAAAC1uokeAAAC+lBMVEUAAAD1rhv1uh31uh31rhv1rhv1rhv1rhv1rhv1sRv1rhv1uR31rhv1rhv1rhv1rhv1rhv1rhv1wR/1rhv1rhv1rhv1rhv1rhv1rhv0yyH1rhv1rhv1rhv1rhv1rhv1rhv1rhv1rhv1rhv1rhv1rhvz3CX1rhv1rhv1rhv1rhv1rhv1rhv1rhv1rhvz3CX1rhv1rhvz3CX1rhv1rhvz3CX1rhv1rhv1rhv1rhv1rhvz3CX1rhvz3CX1rhvz3CXz3CXz3CXz3CXz3CX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on0eKLmlqAtMCC2u4ak2o5/2IFqoGziEsR9VTgTVxGpxaQtPKhUWw3lyODzMG+1iv9vq9XrnSplPhe3FUCdYvgKoLp6WFjy2ewAAAABJRU5ErkJggg=='; img.onload = function(){ initData.context2d.drawImage(img, arr[j].x-50, arr[j].y-50,100,100); } }, pen: function () { var lineWidth = arr[j].size; var radius=lineWidth/2; var lineColor =arr[j].color; initData.context2d.beginPath(); $.each(arr[j].msgArr,function (index,val) { initData.context2d.lineWidth= lineWidth; initData.context2d.lineTo(val.x, val.y); initData.context2d.strokeStyle = lineColor; initData.context2d.stroke(); initData.context2d.beginPath(); initData.context2d.arc(val.x, val.y, radius, 0, 360, false); initData.context2d.fillStyle = lineColor; initData.context2d.fill(); initData.context2d.beginPath(); initData.context2d.moveTo(val.x, val.y); initData.context2d.stroke(); }) }, eraser: function () { $.each(arr[j].msgArr,function (index,val) { initData.context2d.clearRect(val.x,val.y,arr[j].size,arr[j].size); }) } }; switch (arr[j].drawType) { case 'rect':drawTypeFn.rect(); break; case 'line':drawTypeFn.line(); break; case 'circle':drawTypeFn.circle(); break; case 'delta':drawTypeFn.delta(); break; case 'ellipse':drawTypeFn.ellipse(); break; case 'polygon': drawTypeFn.polygon(); break; case 'font': drawTypeFn.font(); break; case 'signet': drawTypeFn.signet(); break; case 'pen': drawTypeFn.pen(); break; case 'eraser': drawTypeFn.eraser(); break; } }, /** * 统一绘制方法 */ drawArr: function (arr) { for (var j in arr) { this.drawTypeArr(arr,j) } }, /** * 鼠标按下执行 */ mouseDown: function (e) { // 鼠标按下 initData.initLeft = e.offsetX?e.offsetX:e.originalEvent.targetTouches[0].pageX - $('#canvas').offset().left;//获取鼠标起始位置 initData.initTop = e.offsetY?e.offsetY:e.originalEvent.targetTouches[0].pageY - $('#canvas').offset().top; initData.msgArr = []; if (initData.drawHistoryArrData.length>0) { function getChooseIndex() { for(var i in initData.drawHistoryArrData) { initData.drawArr([initData.drawHistoryArrData[i]]); if (initData.drawOrMove == 'move') { if(initData.context2d.isPointInPath(initData.initLeft,initData.initTop)) { initData.drawArr(initData.drawHistoryArrData); initData.relPosX = initData.initLeft - initData.drawHistoryArrData[i].x; initData.relPosY = initData.initTop - initData.drawHistoryArrData[i].y; initData.relPosToX = initData.initLeft - initData.drawHistoryArrData[i].toX; initData.relPosToY = initData.initTop - initData.drawHistoryArrData[i].toY; initData.isMove = true; return i; } } } if (initData.drawOrMove == 'move') { return -1; } else { return initData.drawHistoryArrData.length; } } initData.chooseIndex = getChooseIndex(); } else { if (initData.drawOrMove == 'move') { initData.chooseIndex = -1; } } if ($('.drawFont').attr('data-type') == 'hide') { if (this.drawType == 'font') { var x = initData.initLeft; var y = initData.initTop; $('.drawFont').attr('data-type','show'); $('.drawFont').css({ 'left':initData.initLeft+"px", 'top':initData.initTop+"px" }).show(); $('.intoFontInput').on('blur', function () { initData.context = $('.intoFontInput').val(); initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawType, drawTypeNum: initData.drawTypeNum, fill: initData.isFill?initData.background:'', size: initData.size, fontSize: initData.fontSize, context:initData.context, color: initData.color, x: x, y: y, w: $('.intoFontInput').width(), h: $('.intoFontInput').height() }; initData.drawArr(initData.drawHistoryArrData); }) } } if (this.drawType == 'signet') { initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawType, drawTypeNum: initData.drawTypeNum, fill: initData.isFill?initData.background:'', size: initData.size, color: initData.color, x: initData.initLeft, y: initData.initTop }; initData.drawArr(initData.drawHistoryArrData); } }, /** * 鼠标移动执行 */ mouseMove: function (e) { // 鼠标移动 initData.context2d.clearRect(0,0,initData.canvasWidth,initData.canvasHeight); var moveX = e.offsetX?e.offsetX:e.originalEvent.targetTouches[0].pageX - $('#canvas').offset().left; var moveY = e.offsetY?e.offsetY:e.originalEvent.targetTouches[0].pageY - $('#canvas').offset().top; var moveWidth = moveX - initData.initLeft; var moveHeight = moveY - initData.initTop; if (initData.isMove) { switch (initData.drawHistoryArrData[initData.chooseIndex].drawType) { case 'rect': initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawHistoryArrData[initData.chooseIndex].drawType, drawTypeNum: initData.drawHistoryArrData[initData.chooseIndex].drawTypeNum, fill: initData.drawHistoryArrData[initData.chooseIndex].fill, size: initData.drawHistoryArrData[initData.chooseIndex].size, color: initData.drawHistoryArrData[initData.chooseIndex].color, x: moveWidth + initData.initLeft - initData.relPosX, y: moveHeight + initData.initTop - initData.relPosY, w: initData.drawHistoryArrData[initData.chooseIndex].w, h: initData.drawHistoryArrData[initData.chooseIndex].h }; break; case 'line': initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawHistoryArrData[initData.chooseIndex].drawType, drawTypeNum: initData.drawHistoryArrData[initData.chooseIndex].drawTypeNum, fill: initData.drawHistoryArrData[initData.chooseIndex].fill, size: initData.drawHistoryArrData[initData.chooseIndex].size, color: initData.drawHistoryArrData[initData.chooseIndex].color, x: initData.drawHistoryArrData[initData.chooseIndex].x+moveX, y: initData.drawHistoryArrData[initData.chooseIndex].y +moveY, toX: moveX, toY: moveY }; break; case 'circle': initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawHistoryArrData[initData.chooseIndex].drawType, drawTypeNum: initData.drawTypeNum, fill: initData.drawHistoryArrData[initData.chooseIndex].fill, size: initData.size, color: initData.color, x: moveWidth + initData.initLeft - initData.relPosX, y: moveHeight + initData.initTop - initData.relPosY, r: initData.drawHistoryArrData[initData.chooseIndex].r, }; break; case 'delta': initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawHistoryArrData[initData.chooseIndex].drawType, drawTypeNum: initData.drawTypeNum, fill: initData.drawHistoryArrData[initData.chooseIndex].fill, size: initData.size, color: initData.color, x: moveWidth + initData.initLeft - initData.relPosX, y: moveHeight + initData.initTop - initData.relPosY, toX: moveWidth + initData.initLeft - initData.relPosToX, toY: moveHeight + initData.initTop - initData.relPosToY, }; break; case 'ellipse': initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawHistoryArrData[initData.chooseIndex].drawType, drawTypeNum: initData.drawTypeNum, fill: initData.drawHistoryArrData[initData.chooseIndex].fill, size: initData.size, color: initData.color, x: moveWidth + initData.initLeft - initData.relPosX, y: moveHeight + initData.initTop - initData.relPosY, toX: moveWidth + initData.initLeft - initData.relPosToX, toY: moveHeight + initData.initTop - initData.relPosToY, }; break; case 'polygon':// 六边形 initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawHistoryArrData[initData.chooseIndex].drawType, drawTypeNum: initData.drawTypeNum, fill: initData.drawHistoryArrData[initData.chooseIndex].fill, size: initData.size, color: initData.color, x: moveWidth + initData.initLeft - initData.relPosX, y: moveHeight + initData.initTop - initData.relPosY, reg: initData.drawHistoryArrData[initData.chooseIndex].reg, toX: moveWidth + initData.initLeft - initData.relPosToX, toY: moveHeight + initData.initTop - initData.relPosToY }; break; } } else { if (initData.chooseIndex != -1) { switch (this.drawType) { case 'rect': // 矩形 initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawType, drawTypeNum: initData.drawTypeNum, fill: initData.isFill?initData.background:'', size: initData.size, color: initData.color, x: initData.initLeft, y: initData.initTop, w: moveWidth, h: moveHeight }; break; case 'line': // 线 initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawType, drawTypeNum: initData.drawTypeNum, fill: initData.isFill?initData.background:'', size: initData.size, color: initData.color, x: initData.initLeft, y: initData.initTop, toX: moveX, toY: moveY }; break; case 'circle': //圆 initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawType, drawTypeNum: initData.drawTypeNum, fill: initData.isFill?initData.background:'', size: initData.size, color: initData.color, x: initData.initLeft, y: initData.initTop, r: Math.sqrt(moveWidth*moveWidth+moveHeight*moveHeight) }; break; case 'delta': // 三角 initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawType, drawTypeNum: initData.drawTypeNum, fill: initData.isFill?initData.background:'', size: initData.size, color: initData.color, x: initData.initLeft, y: initData.initTop, toX: moveX, toY: moveY, }; break; case 'ellipse': // 椭圆 initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawType, drawTypeNum: initData.drawTypeNum, fill: initData.isFill?initData.background:'', size: initData.size, color: initData.color, x: initData.initLeft, y: initData.initTop, toX: moveX, toY: moveY, }; break; case 'polygon':// 六边形 initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawType, drawTypeNum: initData.drawTypeNum, fill: initData.isFill?initData.background:'', size: initData.size, color: initData.color, x: initData.initLeft, y: initData.initTop, reg: $('.polygon_1_deg').val(), toX: moveX, toY: moveY, }; break; case 'pen': initData.msgArr.push({ x: moveX, y: moveY }) var msg = initData.msgArr.concat(); initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawType, drawTypeNum: initData.drawTypeNum, fill: initData.isFill?initData.background:'', size: initData.size, color: initData.color, x: initData.initLeft, y: initData.initTop, toX: moveX, toY: moveY, msgArr:msg }; break; case 'eraser': initData.msgArr.push({ x: moveX, y: moveY }) var msg = initData.msgArr.concat(); initData.drawHistoryArrData[initData.chooseIndex] = { drawType: initData.drawType, drawTypeNum: initData.drawTypeNum, fill: initData.isFill?initData.background:'', size: initData.size, color: initData.color, x: initData.initLeft, y: initData.initTop, toX: moveX, toY: moveY, msgArr:msg }; break; // case 'signet': // 印章 // initData.drawHistoryArrData[initData.chooseIndex] = { // drawType: initData.drawType, // drawTypeNum: initData.drawTypeNum, // fill: initData.isFill?initData.background:'', // size: initData.size, // color: initData.color, // x: initData.initLeft, // y: initData.initTop, // toX: moveX, // toY: moveY, // }; break; // case 'delta' // case 'circle' // case 'ellipse' // case 'line' // // case 'signet' // case 'pen' // case 'brush' } } } initData.drawArr(initData.drawHistoryArrData); }, /** * 鼠标抬起执行 */ mouseUp: function () { initData.msgArr = []; initData.isMove = false; initData.relPosX = 0; initData.relPosY = 0; $('#canvas').off('mousemove'); } }; }); function save(){ var mycanvas = document.getElementById("canvas"); var image = mycanvas.toDataURL("image/png"); let params={ 'sign':image }; return params; }
2.3.Web层
MeetingAuditAction
package com.xw.web; import java.io.File; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Enumeration; import java.util.List; import java.util.Map; import java.util.UUID; import javax.security.auth.message.callback.PrivateKeyCallback.Request; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.commons.beanutils.ConvertUtils; import com.sun.xml.internal.ws.encoding.soap.SOAP12Constants; import com.xw.biz.IMeetingauditBiz; import com.xw.biz.IMeetinginfoBiz; import com.xw.biz.MeetingauditBizImpl; import com.xw.biz.MeetinginfoBizImpl; import com.xw.entity.Meetingaudit; import com.xw.entity.Meetinginfo; import com.xw.entity.User; import com.zking.framework.ActionSupport; import com.zking.framework.ModelDriver; import com.zking.util.Base64ImageUtils; import com.zking.util.DateUtil; import com.zking.util.ImageUtils; import com.zking.util.MyDateConverter; import com.zking.util.PageBean; import com.zking.util.PropertiesUtil; import com.zking.util.R; import com.zking.util.ResponseUtil; import com.zking.util.StringUtils; /** * 我的审批 * * @author 索隆 * */ public class MeetingAuditAction extends ActionSupport implements ModelDriver<Meetingaudit> { private Meetingaudit Meetingaudit = new Meetingaudit(); private IMeetingauditBiz imd = new MeetingauditBizImpl(); /** * 审批判断 * * @param req * @param resp * @throws Exception */ public void add(HttpServletRequest req, HttpServletResponse resp) throws Exception { // 将审批签字图片保存到数据库 if (StringUtils.isNotBlank(Meetingaudit.getSign())) { // 获取图片的存放地址 String dirPathSign = PropertiesUtil.getValue("dirPathSign"); // 获取浏览器请求路径 String serverPathSign = PropertiesUtil.getValue("serverPathSign"); // 原图片的名称 String finleName1 = UUID.randomUUID().toString().replaceAll("-", "") + ".png"; // 将原图裁剪过后的图片名称 String finleName2 = UUID.randomUUID().toString().replaceAll("-", "") + ".png"; //解析base64位图片编码并生成图片 Base64ImageUtils.GenerateImage(Meetingaudit.getSign().replaceAll("data:image/png;base64,", ""), dirPathSign + finleName1); // 裁剪原图 ImageUtils.shearImg(dirPathSign + finleName1, dirPathSign + finleName2); //为了避免不必要的空间浪费删除原图 File file=new File(dirPathSign + finleName1); if(file.exists()) { file.delete(); } //为实体重新赋值 Meetingaudit.setSign(serverPathSign + finleName1); } // 调用审批新增的方法 int add = imd.add(Meetingaudit); if (add > 0) { // 审批通过 ResponseUtil.writeJson(resp, R.ok(0, "审批通过")); } else { // 审批驳回 ResponseUtil.writeJson(resp, R.error(1, "审批驳回")); } } @Override public Meetingaudit getModel() { // 将获取到时间String类型转换成date类型 ConvertUtils.register(new MyDateConverter(), Date.class); return Meetingaudit; } }
温馨提示:
先用PropertiesUtil工具类读取配置文件,再用Base64ImageUtils通过io流的方式生成图片
建议参考我的会议博客文档
3.案例演示
到这里我的分享就结束了,欢迎到评论区探讨交流!!
如果觉得有用的话还请点个赞吧 ♥ ♥