# 升级文档

# v1.1.0 升级到 v1.1.1 版本

# 后端

# 1. 复制 dvadmin-backend/apps/vadmin/ 到旧版本中替换。

# 前端

# 1. 复制 dvadmin-ui/src/views/vadmin/ 到旧版本中替换。

# 2. 新增或替换 dvadmin-ui/src/components/ 文件夹下的:DeptTree/index.vueModelDisplay/index.vueUsersTree/index.vue

image-20210517010412

# 3. 给main.js 中注册组件:

image-20210517010632

# v1.0.0 升级到 v1.1.0 版本

# 后端

# 1. docker_env/django/Dockerfile 更新

image-20210505221201474

# 2. 更新settings.py文件

image-20210505215450021

# 3. 复制apps/vadmin 到旧版本中

# 4. dvadmin-backend/conf/env.example.py 文件更新

image-20210505220606341

# 5. dvadmin-backend/docker_start.sh 文件更新

image-20210505220636921

# 6. 执行初始化 sql

INSERT INTO `permission_menu` (id, description, modifier, update_datetime, create_datetime, menuType, icon, name, orderNum, isFrame, web_path, component_path, interface_path, interface_method, perms, status, visible, isCache, creator_id, parentId_id, dept_belong_id) VALUES (92, '', 'admin', '2021-04-27 23:49:59.036636', '2021-04-27 23:44:54.512207', '1', 'server', '服务监控', 3, '1', '/monitor/server', 'vadmin/monitor/server/index', NULL, 'GET', NULL, '1', '1', '1', 1, 66, '1');
INSERT INTO `permission_menu` (id, description, modifier, update_datetime, create_datetime, menuType, icon, name, orderNum, isFrame, web_path, component_path, interface_path, interface_method, perms, status, visible, isCache, creator_id, parentId_id, dept_belong_id) VALUES (93, '', 'admin', '2021-04-27 23:57:46.633022', '2021-04-27 23:49:28.569029', '2', NULL, '服务监控查询', 1, '1', NULL, NULL, '/admin/monitor/server/', 'GET', 'admin:monitor:server:get', '1', '1', '1', 1, 92, '1');
INSERT INTO `permission_menu` (id, description, modifier, update_datetime, create_datetime, menuType, icon, name, orderNum, isFrame, web_path, component_path, interface_path, interface_method, perms, status, visible, isCache, creator_id, parentId_id, dept_belong_id) VALUES (94, '', 'admin', '2021-04-27 23:58:44.705142', '2021-04-27 23:58:13.384483', '2', NULL, '修改服务器信息', 2, '1', NULL, NULL, '/admin/monitor/server/{id}/', 'PUT', 'admin:monitor:server:{id}:put', '1', '1', '1', 1, 92, '1');
INSERT INTO `permission_menu` (id, description, modifier, update_datetime, create_datetime, menuType, icon, name, orderNum, isFrame, web_path, component_path, interface_path, interface_method, perms, status, visible, isCache, creator_id, parentId_id, dept_belong_id) VALUES (95, '', 'admin', '2021-04-27 23:59:29.530633', '2021-04-27 23:59:07.744938', '2', NULL, '修改监控信息', 3, '1', NULL, NULL, '/admin/monitor/monitor/enabled/', 'GET', 'admin:monitor:monitor:enabled:get', '1', '1', '1', 1, 92, '1');
INSERT INTO `permission_menu` (id, description, modifier, update_datetime, create_datetime, menuType, icon, name, orderNum, isFrame, web_path, component_path, interface_path, interface_method, perms, status, visible, isCache, creator_id, parentId_id, dept_belong_id) VALUES (96, '', 'admin', '2021-04-28 00:01:15.071889', '2021-04-27 23:59:48.612905', '2', NULL, '清空监控记录', 4, '1', NULL, NULL, '/admin/monitor/monitor/clean/', 'GET', 'admin:monitor:monitor:clean:get', '1', '1', '1', 1, 92, '1');
INSERT INTO `permission_menu` (id, description, modifier, update_datetime, create_datetime, menuType, icon, name, orderNum, isFrame, web_path, component_path, interface_path, interface_method, perms, status, visible, isCache, creator_id, parentId_id, dept_belong_id) VALUES (97, '', 'admin', '2021-05-02 19:12:06.813143', '2021-05-02 18:58:06.260280', '0', 'dashboard', '首页', 0, '1', '/index', 'Layout/index', NULL, 'GET', NULL, '1', '1', '1', 1, NULL, '1');
1
2
3
4
5
6

# 7. 执行迁移命令

python manage.py makemigrations
python manage.py migrate
1
2

# 前端

# 1. 复制dvadmin-ui/src/views/vadmin/ 到旧版本中替换

# 2. 更新 dvadmin-ui/package.json 文件

image-20210505221013439

# 3. 新增图片

image-20210505221440811

# 4. dvadmin-ui/src/router/index.js 文件更新

image-20210505221602252

# 5. dvadmin-ui/src/store/modules/permission.js 替换为最新

image-20210505221647988

# 6. 新增 dvadmin-ui/src/views/home_index.vue 文件

image-20210505221744771

# 7. 注释掉 dvadmin-ui/src/components/Breadcrumb/index.vue 中的38行代码