自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-09 f8897345227f7455132c82abc909cf6ed96e1d40
#
3个文件已修改
34 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/StaDescController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/operateLog/operateLog.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/staDesc/staDesc.js 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/StaDescController.java
@@ -70,7 +70,7 @@
    @RequestMapping(value = "/staDesc/update/auth")
    @ManagerAuth(memo = "站点路径修改")
    public R update(StaDesc staDesc){
        if (Cools.isEmpty(staDesc) || null==staDesc.getCrnNo()){
        if (Cools.isEmpty(staDesc) || null==staDesc.getTypeId()){
            return R.error();
        }
        staDesc.setModiUser(getUserId());
src/main/webapp/static/js/operateLog/operateLog.js
@@ -21,7 +21,7 @@
            ,{field: 'id', title: 'ID', sort: true,align: 'center', width: 80}
            ,{field: 'action', align: 'center',title: '访问地址'}
            ,{field: 'userId$', align: 'center',title: '用户',event: 'userId'}
            ,{field: 'ip',  edit:'text', align: 'center',title: '客户端IP'}
            ,{field: 'ip', edit:'text', align: 'center',title: '客户端IP'}
            ,{field: 'request', align: 'center',title: '请求数据'}
            ,{field: 'response', align: 'center',title: '响应数据'}
            ,{field: 'createTime$', align: 'center',title: '添加时间'}
src/main/webapp/static/js/staDesc/staDesc.js
@@ -66,6 +66,36 @@
        }
    });
    // 页面修改
    table.on('edit(staDesc)', function (obj) {
        $('body').keydown(function () {
            if (event.keyCode === 13) {
                layer.confirm('保存修改?', function(){
                    $.ajax({
                        url: baseUrl+"/staDesc/update/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: top.reObject({
                            typeId: obj.data.typeId,
                            stnDesc: obj.value
                        }),
                        method: 'POST',
                        async: false,
                        success: function (res) {
                            if (res.code === 200){
                                console.log(res);
                            } else if (res.code === 403){
                                top.location.href = baseUrl+"/";
                            }else {
                                layer.msg(res.msg)
                            }
                        }
                    })
                    console.log(obj);
                });
            }
        });
    });
    // 监听排序事件
    table.on('sort(staDesc)', function (obj) {
        var searchData = {};