#
Junjie
2024-07-02 6516ed63ff4128d1b3b52c00537539be369ce6ee
#
5个文件已修改
3个文件已添加
720 ■■■■ 已修改文件
zy-asrs-admin/src/locales/en_US.js 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-admin/src/views/system/dept/edit.vue 118 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-admin/src/views/system/dept/index.vue 261 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-admin/src/views/system/menu/edit.vue 40 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-admin/src/views/system/menu/index.vue 61 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-admin/src/views/system/user/index.vue 200 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/java/com/zy/asrs/wms/utils/CodeBuilder.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/java/dept.sql 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-admin/src/locales/en_US.js
@@ -147,4 +147,31 @@
    'db.sys_role.create_time':'CreateTime',
    'db.sys_role.update_time':'UpdateTime',
    'db.sys_role.memo':'Memo',
    '':'',
    '':'',
    '':'',
    '':'',
    '':'',
    '':'',
    'db.sys_menu.name':'Name',
    'db.sys_menu.route':'Route',
    'db.sys_menu.status':'Status',
    'db.sys_menu.create_time':'CreateTime',
    'db.sys_menu.update_time':'UpdateTime',
    'db.sys_menu.type':'Type',
    'db.sys_menu.authority':'Authority',
    'db.sys_menu.icon':'Icon',
    'db.sys_menu.sort':'Sort',
    '':'',
    '':'',
    '':'',
    '':'',
    '':'',
    '':'',
    'db.sys_dept.name':'Name',
    'db.sys_dept.leader':'Leader',
    'db.sys_dept.status':'Status',
    'db.sys_dept.update_time':'UpdateTime',
    'db.sys_dept.update_by':'UpdateBy',
    'db.sys_dept.sort':'Sort',
};
zy-asrs-admin/src/views/system/dept/edit.vue
New file
@@ -0,0 +1,118 @@
<script setup>
import { ref, nextTick } from 'vue';
import { get, post, postBlob, postForm } from '@/utils/request.js'
import { formatMessage } from '@/utils/localeUtils.js';
import { message } from 'ant-design-vue';
const submitButton = ref(null);
const isSave = ref(true);
const open = ref(false);
const initFormData = {}
let formData = ref(initFormData);
const treeData = ref(null);
const emit = defineEmits(['tableReload'])
const handleOk = (e) => {
    nextTick(() => {
        setTimeout(() => {
            submitButton.value.$el.click();
        }, 100);
    });
};
const onFinish = values => {
    // console.log('Success:', values);
    open.value = false;
    post(isSave.value ? '/api/dept/save' : '/api/dept/update', formData.value).then((resp) => {
        let result = resp.data;
        if (result.code === 200) {
            message.success(formatMessage('page.update.success', '更新成功'));
        } else {
            message.error(result.msg);
        }
        emit('tableReload', 'reload')
    })
};
const onFinishFailed = errorInfo => {
    console.log('Failed:', errorInfo);
};
const UserQueryList = ref(null);
UserQuery();
function UserQuery() {
    postForm('/api/user/query', {}).then(resp => {
        let result = resp.data;
        UserQueryList.value = result.data;
    })
}
defineExpose({
    open,
    formData,
    initFormData,
    treeData,
    isSave,
})
</script>
<script>
export default {
    name: '部门管理-edit'
}
</script>
<template>
    <div>
        <a-modal v-model:open="open"
            :title="isSave ? formatMessage('page.add', '添加') : formatMessage('page.edit', '编辑')" @ok="handleOk"
            style="width: 600px;">
            <a-form :model="formData" name="formTable" :label-col="{ span: 8 }" :wrapper-col="{ span: 16 }"
                style="display: flex;justify-content: space-between;flex-wrap: wrap;" autocomplete="off"
                @finish="onFinish" @finishFailed="onFinishFailed">
                <a-form-item label="上级部门" name="parentId" style="width: 250px;"
                    :rules="[{ required: true, message: '上级菜单不能为空!' }]">
                    <a-tree-select v-model:value="formData.parentId" show-search style="width: 100%"
                        :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" :placeholder="formatMessage('page.input', '请输入')"
                        allow-clea tree-data-simple-mode :tree-data="treeData" tree-node-filter-prop="name"
                        :field-names="{
                            children: 'children',
                            label: 'name',
                            value: 'id',
                        }">
                        <template #title="{ value: id, name }">
                            {{ name }}
                        </template>
                    </a-tree-select>
                </a-form-item>
                <a-form-item label="部门名称" name="name" style="width: 250px;" :rules="[{ required: true }]">
                    <a-input v-model:value="formData.name" />
                </a-form-item>
                <a-form-item label="负责人" name="leader" style="width: 250px;">
                    <a-input v-model:value="formData.leader" />
                </a-form-item>
                <a-form-item label="排序" name="sort" style="width: 250px;">
                    <a-input v-model:value="formData.sort" />
                </a-form-item>
                <a-form-item label="状态" name="status" style="width: 250px;">
                    <a-select v-model:value="formData.status" :options="[
                        { label: '正常', value: 1 },
                        { label: '禁用', value: 0 },
                    ]">
                    </a-select>
                </a-form-item>
                <a-form-item label="备注" name="memo" style="width: 250px;">
                    <a-input v-model:value="formData.memo" />
                </a-form-item>
                <a-form-item>
                    <a-button type="primary" html-type="submit" ref="submitButton"
                        style="visibility: hidden;">Submit</a-button>
                </a-form-item>
            </a-form>
        </a-modal>
    </div>
</template>
<style></style>
zy-asrs-admin/src/views/system/dept/index.vue
New file
@@ -0,0 +1,261 @@
<script setup>
import { getCurrentInstance, ref, computed, reactive } from 'vue';
import { useRouter } from "vue-router";
import { get, post, postBlob } from '@/utils/request.js'
import { message, Modal } from 'ant-design-vue';
import { logout } from '@/config.js';
import EditView from './edit.vue'
import { formatMessage } from '@/utils/localeUtils.js';
const context = getCurrentInstance()?.appContext.config.globalProperties;
const router = useRouter();
const TABLE_KEY = 'table-dept';
let currentPage = 1;
let pageSize = 10;
const searchInput = ref("")
const editChild = ref(null)
let tableData = ref([]);
getPage();
const columns = [
  {
    title: formatMessage('db.sys_dept.name', '名称'),
    dataIndex: 'name',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.parent_id', '上级部门'),
    dataIndex: 'parentId',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.parent_name', '上级部门名'),
    dataIndex: 'parentName',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.path', '关联路径'),
    dataIndex: 'path',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.path_name', '关联路径名'),
    dataIndex: 'pathName',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.full_name', '全称'),
    dataIndex: 'fullName',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.brief', '简述'),
    dataIndex: 'brief',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.code', '标识'),
    dataIndex: 'code',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.type', '类型'),
    dataIndex: 'type',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.leader', '负责人'),
    dataIndex: 'leader',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.count', '数量'),
    dataIndex: 'count',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.sort', '排序'),
    dataIndex: 'sort',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.status', '状态'),
    dataIndex: 'status$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.create_time', '添加时间'),
    dataIndex: 'createTime$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.create_by', '添加人员'),
    dataIndex: 'createBy$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.update_time', '修改时间'),
    dataIndex: 'updateTime$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.update_by', '修改人员'),
    dataIndex: 'updateBy$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_dept.memo', '备注'),
    dataIndex: 'memo',
    width: 140,
  },
  {
    title: formatMessage('common.operation', '操作'),
    name: 'oper',
    dataIndex: 'oper',
    key: 'oper',
    width: 140,
  },
];
const state = reactive({
  selectedRowKeys: [],
  loading: false,
});
const hasSelected = computed(() => state.selectedRowKeys.length > 0);
const start = () => {
  state.loading = true;
  // ajax request after empty completing
  setTimeout(() => {
    state.loading = false;
    state.selectedRowKeys = [];
  }, 1000);
};
const onSelectChange = selectedRowKeys => {
  // console.log('selectedRowKeys changed: ', selectedRowKeys);
  state.selectedRowKeys = selectedRowKeys;
};
function getPage() {
  post('/api/dept/tree', {
    current: currentPage,
    pageSize: pageSize,
    condition: searchInput.value
  }).then((resp) => {
    let result = resp.data;
    if (result.code == 200) {
      let data = result.data;
      tableData.value = data;
      editChild.value.treeData = [{
        id: 0,
        name: '根目录',
        children: data
      }];
    } else if (result.code === 401) {
      message.error(result.msg);
      logout()
    } else {
      message.error(result.msg);
    }
  })
}
const handleEdit = (item) => {
  editChild.value.open = true;
  editChild.value.formData = item == null ? editChild.value.initFormData : JSON.parse(JSON.stringify(item));
  editChild.value.isSave = item == null;
}
const handleDel = (rows) => {
  Modal.confirm({
    title: formatMessage('page.delete', '删除'),
    content: formatMessage('page.delete.confirm', '确定删除该项吗?'),
    maskClosable: true,
    onOk: async () => {
      const hide = message.loading(formatMessage('common.loading', '请求中'));
      try {
        post('/api/dept/remove/' + rows.map((row) => row.id).join(','), {}).then(resp => {
          let result = resp.data;
          if (result.code === 200) {
            message.success(result.msg);
          } else {
            message.error(result.msg);
          }
          getPage()
          hide()
        })
      } catch (error) {
        message.error(formatMessage('common.fail', '请求失败'));
      }
    },
  });
}
const handleExport = async (intl) => {
  postBlob('/api/dept/export', {}).then(result => {
    const blob = new Blob([result.data], { type: 'application/vnd.ms-excel' });
    window.location.href = window.URL.createObjectURL(blob);
    return true;
  })
};
const onSearch = () => {
  // console.log('search');
  getPage()
}
const onPageChange = (page, size) => {
  currentPage = page;
  pageSize = size;
  getPage();
}
function handleTableReload(value) {
  getPage()
}
</script>
<script>
export default {
  name: '部门管理'
}
</script>
<template>
  <div>
    <EditView ref="editChild" @tableReload="handleTableReload" />
    <div class="table-header">
      <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')"
        style="width: 200px;" @search="onSearch" />
      <div class="table-header-right">
        <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '添加') }}</a-button>
        <a-button @click="handleExport">{{ formatMessage('page.export', '导出') }}</a-button>
      </div>
    </div>
    <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
      :data-source="tableData" :defaultExpandAllRows="false" key="menu" rowKey="id">
      <a-table-column :title="formatMessage('db.sys_dept.name', '部门名称')" key="name" data-index="name" />
      <a-table-column :title="formatMessage('db.sys_dept.leader', '负责人')" key="leader" data-index="leader" />
      <a-table-column :title="formatMessage('db.sys_dept.sort', '排序')" key="sort" data-index="sort" />
      <a-table-column :title="formatMessage('db.sys_dept.status', '状态')" key="status$" data-index="status$" />
      <a-table-column :title="formatMessage('db.sys_dept.update_time', '修改时间')" key="updateTime$" data-index="updateTime$" />
      <a-table-column :title="formatMessage('db.sys_dept.update_by', '修改人员')" key="updateBy$" data-index="updateBy$" />
      <a-table-column :title="formatMessage('common.operation', '操作')" key="oper" data-index="oper">
        <template #default="{ record }">
          <div style="display: flex;justify-content: space-evenly;">
            <a-button type="link" primary @click="handleEdit(record)">{{ formatMessage('page.edit', '编辑') }}</a-button>
            <a-button type="link" danger @click="handleDel([record])">{{ formatMessage('page.delete', '删除')
              }}</a-button>
          </div>
        </template>
      </a-table-column>
    </a-table>
  </div>
</template>
<style></style>
zy-asrs-admin/src/views/system/menu/edit.vue
@@ -1,12 +1,16 @@
<script setup>
import { getCurrentInstance, ref, computed, reactive, watch } from 'vue';
import { getCurrentInstance, ref, nextTick } from 'vue';
import { get, post } from '@/utils/request.js'
import * as Icons from "@ant-design/icons-vue";
import { formatMessage } from '@/utils/localeUtils.js';
import { message } from 'ant-design-vue';
const context = getCurrentInstance()?.appContext.config.globalProperties;
const components = {
    ...Icons,
};
const submitButton = ref(null);
const isSave = ref(true);
const open = ref(false);
const initFormData = {
    name: null
@@ -17,16 +21,25 @@
const emit = defineEmits(['tableReload'])
const handleOk = (e) => {
    open.value = false;
    console.log(formData.value);
    post('/api/menu/update', formData.value).then((result) => {
        console.log(result);
        emit('tableReload', 'reload')
    })
    nextTick(() => {
        setTimeout(() => {
            submitButton.value.$el.click();
        }, 100);
    });
};
const onFinish = values => {
    console.log('Success:', values);
    // console.log('Success:', values);
    open.value = false;
    post(isSave.value ? '/api/menu/save' : '/api/menu/update', formData.value).then((resp) => {
        let result = resp.data;
        if (result.code === 200) {
            message.success(formatMessage('page.update.success', '更新成功'));
        } else {
            message.error(result.msg);
        }
        emit('tableReload', 'reload')
    })
};
const onFinishFailed = errorInfo => {
    console.log('Failed:', errorInfo);
@@ -37,6 +50,7 @@
    formData,
    initFormData,
    treeData,
    isSave,
})
</script>
@@ -49,14 +63,16 @@
<template>
    <div>
        <a-modal v-model:open="open" :title="formData == null ? '添加' : '编辑'" @ok="handleOk" style="width: 600px;">
        <a-modal v-model:open="open"
            :title="isSave ? formatMessage('page.add', '添加') : formatMessage('page.edit', '编辑')" @ok="handleOk"
            style="width: 600px;">
            <a-form :model="formData" name="menu" :label-col="{ span: 8 }" :wrapper-col="{ span: 16 }"
                style="display: flex;justify-content: space-between;flex-wrap: wrap;" autocomplete="off"
                @finish="onFinish" @finishFailed="onFinishFailed">
                <a-form-item label="上级菜单" name="parentId" style="width: 250px;"
                    :rules="[{ required: true, message: '上级菜单不能为空!' }]">
                    <a-tree-select v-model:value="formData.parentId" show-search style="width: 100%"
                        :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="Please select"
                        :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" :placeholder="formatMessage('page.input', '请输入')"
                        allow-clea tree-data-simple-mode :tree-data="treeData" tree-node-filter-prop="name"
                        :field-names="{
                            children: 'children',
@@ -97,6 +113,10 @@
                        { label: '正常', value: 1 },
                    ]"></a-select>
                </a-form-item>
                <a-form-item>
                    <a-button type="primary" html-type="submit" ref="submitButton"
                        style="visibility: hidden;">Submit</a-button>
                </a-form-item>
            </a-form>
        </a-modal>
    </div>
zy-asrs-admin/src/views/system/menu/index.vue
@@ -3,6 +3,9 @@
import { get, post } from '@/utils/request.js'
import * as Icons from "@ant-design/icons-vue";
import EditView from './edit.vue'
import { message, Modal } from 'ant-design-vue';
import { formatMessage } from '@/utils/localeUtils.js';
import { logout } from '@/config.js';
const context = getCurrentInstance()?.appContext.config.globalProperties;
const components = {
  ...Icons,
@@ -54,8 +57,11 @@
        name: '根目录',
        children: data
      }];
    } else if (result.code === 401) {
      message.error(result.msg);
      logout()
    } else {
      message.error(result.msg);
    }
  })
}
@@ -63,6 +69,32 @@
const handleEdit = (item) => {
  editChild.value.open = true;
  editChild.value.formData = item == null ? editChild.value.initFormData : item;
  editChild.value.isSave = item == null;
}
const handleDel = (rows) => {
  Modal.confirm({
    title: formatMessage('page.delete', '删除'),
    content: formatMessage('page.delete.confirm', '确定删除该项吗?'),
    maskClosable: true,
    onOk: async () => {
      const hide = message.loading(formatMessage('common.loading', '请求中'));
      try {
        post('/api/menu/remove/' + rows.map((row) => row.id).join(','), {}).then(resp => {
          let result = resp.data;
          if (result.code === 200) {
            message.success(result.msg);
          } else {
            message.error(result.msg);
          }
          getPage()
          hide()
        })
      } catch (error) {
        message.error(formatMessage('common.fail', '请求失败'));
      }
    },
  });
}
const handleExport = async (intl) => {
@@ -96,35 +128,36 @@
    <div class="table-header">
      <a-input-search v-model:value="searchInput" placeholder="请输入" style="width: 200px;" @search="onSearch" />
      <div class="table-header-right">
        <a-button @click="handleEdit(null)" type="primary">添加</a-button>
        <a-button @click="handleExport">导出</a-button>
        <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '添加') }}</a-button>
        <a-button @click="handleExport">{{ formatMessage('page.export', '导出') }}</a-button>
      </div>
    </div>
    <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
      :data-source="tableData" :defaultExpandAllRows="false" key="menu" rowKey="id">
      <a-table-column title="菜单名称" key="name" data-index="name" />
      <a-table-column title="路由地址" key="route" data-index="route" />
      <a-table-column title="类型" key="type" data-index="type$">
      <a-table-column :title="formatMessage('db.sys_menu.name', '菜单名称')" key="name" data-index="name" />
      <a-table-column :title="formatMessage('db.sys_menu.route', '路由地址')" key="route" data-index="route" />
      <a-table-column :title="formatMessage('db.sys_menu.type', '类型')" key="type" data-index="type$">
        <template #default="{ record }">
          <span>
            <a-tag :color="typeMap[record.type].color">{{ record.type$ }}</a-tag>
          </span>
        </template>
      </a-table-column>
      <a-table-column title="权限标识" key="authority" data-index="authority" />
      <a-table-column title="菜单图标" key="icon" data-index="icon">
      <a-table-column :title="formatMessage('db.sys_menu.authority', '权限标识')" key="authority" data-index="authority" />
      <a-table-column :title="formatMessage('db.sys_menu.icon', '菜单图标')" key="icon" data-index="icon">
        <template #default="{ record }">
          <component :is="components[ref(record.icon).value]" />
        </template>
      </a-table-column>
      <a-table-column title="排序" key="sort" data-index="sort" />
      <a-table-column title="状态" key="status$" data-index="status$" />
      <a-table-column title="修改时间" key="updateTime$" data-index="updateTime$" />
      <a-table-column title="操作" key="oper" data-index="oper">
      <a-table-column :title="formatMessage('db.sys_menu.sort', '排序')" key="sort" data-index="sort" />
      <a-table-column :title="formatMessage('db.sys_menu.status', '状态')" key="status$" data-index="status$" />
      <a-table-column :title="formatMessage('db.sys_menu.update_time', '修改时间')" key="updateTime$" data-index="updateTime$" />
      <a-table-column :title="formatMessage('common.operation', '操作')" key="oper" data-index="oper">
        <template #default="{ record }">
          <div style="display: flex;justify-content: space-evenly;">
            <a-button type="link" primary @click="handleEdit(record)">编辑</a-button>
            <a-button type="link" danger>删除</a-button>
            <a-button type="link" primary @click="handleEdit(record)">{{ formatMessage('page.edit', '编辑') }}</a-button>
            <a-button type="link" danger @click="handleDel([record])">{{ formatMessage('page.delete', '删除')
              }}</a-button>
          </div>
        </template>
      </a-table-column>
zy-asrs-admin/src/views/system/user/index.vue
@@ -20,106 +20,106 @@
getPage();
const columns = [
        {
            title: formatMessage('db.sys_user.username', '账号'),
            dataIndex: 'username',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.password', '密码'),
            dataIndex: 'password',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.nickname', '昵称'),
            dataIndex: 'nickname',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.avatar', '头像'),
            dataIndex: 'avatar',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.code', '工号'),
            dataIndex: 'code',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.sex', '性别'),
            dataIndex: 'sex$',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.phone', '手机号'),
            dataIndex: 'phone',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.email', '邮箱'),
            dataIndex: 'email',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.email_verified', '邮箱验证'),
            dataIndex: 'emailVerified$',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.dept_id', '所属部门'),
            dataIndex: 'deptId$',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.real_name', '真实姓名'),
            dataIndex: 'realName',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.id_card', '身份证号'),
            dataIndex: 'idCard',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.birthday', '出生日期'),
            dataIndex: 'birthday',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.introduction', '个人简介'),
            dataIndex: 'introduction',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.status', '状态'),
            dataIndex: 'status$',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.create_time', '添加时间'),
            dataIndex: 'createTime$',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.create_by', '添加人员'),
            dataIndex: 'createBy$',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.update_time', '修改时间'),
            dataIndex: 'updateTime$',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.update_by', '修改人员'),
            dataIndex: 'updateBy$',
            width: 140,
        },
        {
            title: formatMessage('db.sys_user.memo', '备注'),
            dataIndex: 'memo',
            width: 140,
        },
  {
    title: formatMessage('db.sys_user.username', '账号'),
    dataIndex: 'username',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.password', '密码'),
    dataIndex: 'password',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.nickname', '昵称'),
    dataIndex: 'nickname',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.avatar', '头像'),
    dataIndex: 'avatar',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.code', '工号'),
    dataIndex: 'code',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.sex', '性别'),
    dataIndex: 'sex$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.phone', '手机号'),
    dataIndex: 'phone',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.email', '邮箱'),
    dataIndex: 'email',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.email_verified', '邮箱验证'),
    dataIndex: 'emailVerified$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.dept_id', '所属部门'),
    dataIndex: 'deptId$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.real_name', '真实姓名'),
    dataIndex: 'realName',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.id_card', '身份证号'),
    dataIndex: 'idCard',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.birthday', '出生日期'),
    dataIndex: 'birthday',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.introduction', '个人简介'),
    dataIndex: 'introduction',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.status', '状态'),
    dataIndex: 'status$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.create_time', '添加时间'),
    dataIndex: 'createTime$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.create_by', '添加人员'),
    dataIndex: 'createBy$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.update_time', '修改时间'),
    dataIndex: 'updateTime$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.update_by', '修改人员'),
    dataIndex: 'updateBy$',
    width: 140,
  },
  {
    title: formatMessage('db.sys_user.memo', '备注'),
    dataIndex: 'memo',
    width: 140,
  },
  {
    title: formatMessage('common.operation', '操作'),
zy-asrs-wms/src/main/java/com/zy/asrs/wms/utils/CodeBuilder.java
@@ -22,8 +22,8 @@
//        generator.username="sa";
//        generator.password="Zoneyung@zy56$";
        generator.table="sys_user_login";
        generator.tableName="登录日志";
        generator.table="sys_dept";
        generator.tableName="部门管理";
        generator.packagePath="com.zy.asrs.wms.system";
        generator.build();
zy-asrs-wms/src/main/java/dept.sql
New file
@@ -0,0 +1,9 @@
-- save dept record
-- mysql
insert into `sys_menu` ( `name`, `parent_id`, `route`, `component`, `type`, `sort`, `host_id`, `status`) values ( '部门管理管理', '0', '/system/dept', '/system/dept', '0' , '0', '1' , '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `host_id`, `status`) values ( '查询部门管理', '', '1', 'system:dept:list', '0', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `host_id`, `status`) values ( '添加部门管理', '', '1', 'system:dept:save', '1', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `host_id`, `status`) values ( '修改部门管理', '', '1', 'system:dept:update', '2', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `host_id`, `status`) values ( '删除部门管理', '', '1', 'system:dept:remove', '3', '1', '1');