自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-09 f8897345227f7455132c82abc909cf6ed96e1d40
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 = {};