#
luxiaotao1123
2022-03-01 5e4bef66a37f1bbdf48d845dda518fd8cc54ef37
src/main/webapp/views/issue/issue_detl.html
@@ -1,5 +1,5 @@
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="../static/css/jquery.upload.css" media="all"/>
<link rel="stylesheet" href="../../static/css/jquery.upload.css" media="all"/>
<style>
    #formAdvForm {
        background-color: #f3f3f3;
@@ -217,11 +217,12 @@
</form>
<!--<script type="text/javascript" src="../static/js/tools/jquery.upload.min.js" charset="utf-8"></script>-->
<script type="text/javascript" src="../static/js/upload/jquery.upload.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/upload/jquery.upload.js" charset="utf-8"></script>
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=24c671d7d8365d7eaff888498538452f"></script>
<script>
    var map;
    var issueId = top.issueByDetl;
    $('.layui-layer-close').hide();
    layui.config({
        base: baseUrl + "/static/layui/lay/modules/"
    }).extend({
@@ -361,29 +362,31 @@
        });
        form.on('submit(save)', function (elem) {
            let data = elem.field;
            let param = {
                id: Number(data.id),
                uuid: data.uuid,
                dealer: data.dealer,
                endTime: data.endTime,
                lastTime: data.lastTime,
                reason: data.reason,
                deal: data.deal,
                settle: Number(data.settle)
            }
            notice.msg('正在拼命修改数据......', {icon: 4, position: "topRight"});
            $.ajax({
                url: baseUrl + "/issue/process/auth",
                headers: {'token': localStorage.getItem('token')},
                contentType: 'application/json;charset=UTF-8',
                method: 'POST',
                data: param,
                contentType:'application/json;charset=UTF-8',
                data: JSON.stringify({
                    id: Number(data.id),
                    uuid: data.uuid,
                    dealer: data.dealer,
                    settle: Number(data.settle),
                    endTime: top.strToDate(data.endTime$),
                    // lastTime: data.lastTime,
                    reason: data.reason,
                    deal: data.deal,
                }),
                success: function (res) {
                    notice.destroy();
                    if (res.code === 200) {
                        layer.msg(res.msg, {icon: 1})
                        notice.success({title: '消息通知', message: res.msg});
                        $('.layui-layer-close').click();
                    } else if (res.code === 403) {
                        top.location.href = baseUrl + "/";
                    } else {
                        layer.msg(res.msg, {icon: 2})
                        notice.error({title: '消息通知', message: res.msg});
                    }
                }
            })