自动化立体仓库 - WMS系统
pang.jiabao
2025-04-10 07e07d7666cfb2d822c60db7b67d93e0610072a8
src/main/webapp/static/js/user/user.js
@@ -23,18 +23,18 @@
        height: 'full-100',
        cols: [[
            {type: 'checkbox'}
            ,{field: 'hostName', align: 'center',title: '授权商户', templet: '#hostTpl', width: 140}
            // ,{field: 'hostName', align: 'center',title: '授权商户', templet: '#hostTpl', width: 140}
            // ,{field: 'nickname', align: 'center',title: '用户名'}
            ,{field: 'username', align: 'center',title: '用户名'}
            ,{field: 'username', align: 'center',title: 'Учетная запись для входа'}
            ,{field: 'mobile', align: 'center',title: '手机号'}
            // ,{field: 'deptName', align: 'center',title: '所属部门'}
            ,{field: 'roleName', align: 'center',title: '角色'}
            ,{field: 'email', align: 'center',title: '邮箱'}
            ,{field: 'roleName', align: 'center',title: 'Роль'}
            ,{field: 'email', align: 'center',title: 'Электронная почта'}
            // ,{field: 'sex$', align: 'center',title: '性别'}
            ,{field: 'createTime$', align: 'center',title: '注册时间', hide: true}
            ,{field: 'status$', align: 'center',title: '状态', templet: '#statusTpl', width: 120, unresize: true}
            ,{field: 'createTime$', align: 'center',title: '创建时间', hide: true}
            ,{field: 'status$', align: 'center',title: 'Статус', templet: '#statusTpl', width: 120, unresize: true}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:170}
            ,{fixed: 'right', title:'Операция', align: 'center', toolbar: '#operate', width:200}
        ]],
        request: {
            pageName: 'curr',
@@ -68,18 +68,17 @@
    /* 表格2头工具栏点击事件 */
    table.on('toolbar(userTable)', function (obj) {
        var checkStatus = table.checkStatus(obj.config.id).data;
        if (obj.event === 'add') { // 添加
            showEditModel()
        } else if (obj.event === 'del') { // 删除
            var checkRows = table.checkStatus('userTable');
            if (checkRows.data.length === 0) {
                layer.msg('请选择要删除的数据', {icon: 2});
            if (checkStatus.length === 0) {
                layer.msg('Вы уверены, что хотите удалить эту запись?', {icon: 2});
                return;
            }
            var ids = checkRows.data.map(function (d) {
            del(checkStatus.map(function (d) {
                return d.id;
            });
            doDelUser({ids: ids});
            }));
        }
    });
@@ -103,14 +102,13 @@
                break;
            // 删除
            case 'del':
                var ids = [obj.id];
                doDelUser({ids: ids});
                del([data.id]);
                break;
            // 重置密码
            case 'resetPwd':
                admin.open({
                    type: 1,
                    title: '重置密码',
                    title: 'Сброс пароля',
                    offset: '150px',
                    area: ['360px'],
                    shade: 0.1,
@@ -130,7 +128,7 @@
        admin.open({
            type: 1,
            area: '600px',
            title: (mData ? '修改' : '添加') + '用户',
            title: (mData ? 'Изменить' : 'Добавить') + 'Системные пользователи',
            content: $('#editDialog').html(),
            success: function (layero, dIndex) {
                // 回显表单数据
@@ -171,7 +169,7 @@
    /* 删除订单 */
    function doDelUser(obj) {
    function del(ids) {
        layer.confirm('确定要删除选中数据吗?', {
            skin: 'layui-layer-admin',
            shade: .1
@@ -181,7 +179,7 @@
            $.ajax({
                url: baseUrl+"/user/delete/auth",
                headers: {'token': localStorage.getItem('token')},
                data: {ids: obj.ids},
                data: {ids: ids},
                method: 'POST',
                success: function (res) {
                    layer.close(loadIndex);