Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
property-management
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
property-management
Commits
fce50e52
Commit
fce50e52
authored
Oct 21, 2019
by
zhangdaihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JeecgBoot 2.1.1 代码生成器AI版本发布
parent
107e9018
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
145 additions
and
0 deletions
+145
-0
ant-design-vue-jeecg/src/views/modules/online/cgform/auto/OnlCgformTreeList.vue
+1
-0
jeecg-boot/db/增量升级脚步/Mysql 2.1.0升级2.1.1增量.sql
+144
-0
No files found.
ant-design-vue-jeecg/src/views/modules/online/cgform/auto/OnlCgformTreeList.vue
View file @
fce50e52
...
...
@@ -141,6 +141,7 @@
import
{
getAction
,
postAction
,
deleteAction
,
downFile
}
from
'@/api/manage'
import
{
filterMultiDictText
}
from
'@/components/dict/JDictSelectUtil'
import
{
filterObj
}
from
'@/utils/util'
;
import
JImportModal
from
'@/components/jeecg/JImportModal'
export
default
{
name
:
'OnlCgformTreeList'
,
...
...
jeecg-boot/db/增量升级脚步/Mysql 2.1.0升级2.1.1增量.sql
0 → 100644
View file @
fce50e52
-- -author:scott----date:20190829----for:权限策略描述修改,可控制表单或按钮的是否可见和请求的是否可访问-----------------
UPDATE
`sys_dict_item`
SET
`item_text`
=
'可见/可访问(授权后可见/可访问)'
WHERE
`id`
=
'83250269359855501ec4e9c0b7e21596'
;
---author:scott----date:20190829----for:权限策略描述修改,可控制表单或按钮的是否可见和请求的是否可访问-----------------
-- -author:os_chenztao----date:20190828----for:对象存储
-- ----------------------------
-- Table structure for oss_file
-- ----------------------------
DROP
TABLE
IF
EXISTS
`oss_file`
;
CREATE
TABLE
`oss_file`
(
`id`
varchar
(
32
)
NOT
NULL
COMMENT
'主键id'
,
`file_name`
varchar
(
255
)
default
NULL
COMMENT
'文件名称'
,
`url`
varchar
(
255
)
default
NULL
COMMENT
'文件地址'
,
`create_by`
varchar
(
32
)
default
NULL
COMMENT
'创建人登录名称'
,
`create_time`
datetime
default
NULL
COMMENT
'创建日期'
,
`update_by`
varchar
(
32
)
default
NULL
COMMENT
'更新人登录名称'
,
`update_time`
datetime
default
NULL
COMMENT
'更新日期'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'Oss File'
;
INSERT
INTO
sys_permission
(
id
,
parent_id
,
name
,
url
,
component
,
component_name
,
redirect
,
menu_type
,
perms
,
perms_type
,
sort_no
,
always_show
,
icon
,
is_route
,
is_leaf
,
keep_alive
,
hidden
,
description
,
create_by
,
create_time
,
update_by
,
update_time
,
del_flag
,
rule_flag
,
status
)
VALUES
(
'1166535831146504193'
,
'2a470fc0c3954d9dbb61de6d80846549'
,
'对象存储'
,
'/oss/file'
,
'modules/oss/OSSFileList'
,
null
,
null
,
1
,
null
,
'1'
,
1
,
0
,
''
,
1
,
1
,
0
,
0
,
null
,
'admin'
,
'2019-08-28 02:19:50'
,
'admin'
,
'2019-08-28 02:20:57'
,
0
,
0
,
'1'
);
-- -author:os_chenztao----date:20190828----for:对象存储
-- -author:wuxianquan----date:20190908----for:增加外链菜单切换模式字段
ALTER
TABLE
sys_permission
add
COLUMN
internal_or_external
tinyint
(
1
)
comment
'外链菜单打开方式 0/内部打开 1/外部打开'
;
-- -author:wuxianquan----date:20190908----for:增加外链菜单切换模式字段
-- -author:wuxianquan----date:20190908----for:增加菜单
INSERT
INTO
`sys_permission`
(
`id`
,
`parent_id`
,
`name`
,
`url`
,
`component`
,
`component_name`
,
`redirect`
,
`menu_type`
,
`perms`
,
`perms_type`
,
`sort_no`
,
`always_show`
,
`icon`
,
`is_route`
,
`is_leaf`
,
`keep_alive`
,
`hidden`
,
`description`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
,
`del_flag`
,
`rule_flag`
,
`status`
,
`internal_or_external`
)
VALUES
(
'1170592628746878978'
,
'd7d6e2e4e2934f2c9385a623fd98c6f3'
,
'菜单管理'
,
'/isystem/newPermissionList'
,
'system/NewPermissionList'
,
NULL
,
NULL
,
'1'
,
NULL
,
'1'
,
'100'
,
'0'
,
NULL
,
'1'
,
'1'
,
'0'
,
'0'
,
NULL
,
'admin'
,
'2019-09-08 15:00:05'
,
'admin'
,
'2019-09-08 15:02:57'
,
'0'
,
'0'
,
'1'
,
'0'
);
-- -author:wuxianquan----date:20190908----for:增加菜单
-- -author:scott----date:20190908----for:菜单表加载慢,增加索引-------------
ALTER
TABLE
`sys_permission`
ADD
INDEX
`index_menu_type`
(
`menu_type`
),
ADD
INDEX
`index_menu_hidden`
(
`hidden`
),
ADD
INDEX
`index_menu_status`
(
`status`
);
-- -author:scott----date:20190908----for:菜单表加载慢,增加索引-------------
-- -author:zhoujf----date:20190919----for:机构类别-------------
ALTER
TABLE
`sys_depart`
ADD
COLUMN
`org_category`
varchar
(
10
)
NOT
NULL
DEFAULT
1
COMMENT
'机构类别 1组织机构,2岗位'
AFTER
`description`
;
INSERT
INTO
`sys_dict`
(
`id`
,
`dict_name`
,
`dict_code`
,
`description`
,
`del_flag`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
,
`type`
)
VALUES
(
'1174511106530525185'
,
'机构类型'
,
'org_category'
,
'机构类型 1组织机构,2岗位'
,
'0'
,
'admin'
,
'2019-09-19 10:30:43'
,
NULL
,
NULL
,
'0'
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174511197735665665'
,
'1174511106530525185'
,
'组织机构'
,
'1'
,
'组织机构'
,
'1'
,
'1'
,
'admin'
,
'2019-09-19 10:31:05'
,
NULL
,
NULL
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174511244036587521'
,
'1174511106530525185'
,
'岗位'
,
'2'
,
'岗位'
,
'1'
,
'1'
,
'admin'
,
'2019-09-19 10:31:16'
,
NULL
,
NULL
);
-- -author:zhoujf----date:20190919----for:机构类别-------------
-- author:sunjianlei----date:20190920----for: 新增职务模块相关数据 -------------
-- 用户表新增字段
ALTER
TABLE
`sys_user`
ADD
COLUMN
`work_no`
varchar
(
100
)
NULL
COMMENT
'工号,唯一键'
AFTER
`activiti_sync`
,
ADD
COLUMN
`post`
varchar
(
100
)
NULL
COMMENT
'职务,关联职务表'
AFTER
`work_no`
,
ADD
COLUMN
`telephone`
varchar
(
45
)
NULL
COMMENT
'座机号'
AFTER
`post`
,
ADD
UNIQUE
INDEX
`uniq_sys_user_work_no`
(
`work_no`
);
-- 职务表
DROP
TABLE
IF
EXISTS
`sys_position`
;
CREATE
TABLE
`sys_position`
(
`id`
varchar
(
32
)
NOT
NULL
,
`code`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'职务编码'
,
`name`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'职务名称'
,
`rank`
varchar
(
2
)
DEFAULT
NULL
COMMENT
'职级'
,
`company_id`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'公司id'
,
`create_by`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'创建人'
,
`create_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`update_by`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'修改人'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'修改时间'
,
`sys_org_code`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'组织机构编码'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
-- 职务菜单
INSERT
INTO
`sys_permission`
(
`id`
,
`parent_id`
,
`name`
,
`url`
,
`component`
,
`is_route`
,
`component_name`
,
`redirect`
,
`menu_type`
,
`perms`
,
`perms_type`
,
`sort_no`
,
`always_show`
,
`icon`
,
`is_leaf`
,
`keep_alive`
,
`hidden`
,
`description`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
,
`del_flag`
,
`rule_flag`
,
`status`
,
`internal_or_external`
)
VALUES
(
'1174506953255182338'
,
'd7d6e2e4e2934f2c9385a623fd98c6f3'
,
'职务管理'
,
'/isystem/position'
,
'system/SysPositionList'
,
'1'
,
NULL
,
NULL
,
'1'
,
NULL
,
'1'
,
'2'
,
'0'
,
NULL
,
'1'
,
'0'
,
'0'
,
NULL
,
'admin'
,
'2019-09-19 10:14:13'
,
'admin'
,
'2019-09-19 10:15:22'
,
'0'
,
'0'
,
'1'
,
'0'
);
-- 职务职级字典
INSERT
INTO
`sys_dict`
(
`id`
,
`dict_name`
,
`dict_code`
,
`description`
,
`del_flag`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
,
`type`
)
VALUES
(
'1174509082208395266'
,
'职务职级'
,
'position_rank'
,
'职务表职级字典'
,
'0'
,
'admin'
,
'2019-09-19 10:22:41'
,
NULL
,
NULL
,
'0'
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174509601047994369'
,
'1174509082208395266'
,
'员工'
,
'1'
,
''
,
'1'
,
'1'
,
'admin'
,
'2019-09-19 10:24:45'
,
NULL
,
NULL
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174509667297026049'
,
'1174509082208395266'
,
'小组长'
,
'2'
,
''
,
'2'
,
'1'
,
'admin'
,
'2019-09-19 10:25:01'
,
NULL
,
NULL
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174509713568587777'
,
'1174509082208395266'
,
'部门经理'
,
'3'
,
''
,
'3'
,
'1'
,
'admin'
,
'2019-09-19 10:25:12'
,
NULL
,
NULL
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174509788361416705'
,
'1174509082208395266'
,
'副总经理'
,
'4'
,
''
,
'4'
,
'1'
,
'admin'
,
'2019-09-19 10:25:30'
,
NULL
,
NULL
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174509835803189250'
,
'1174509082208395266'
,
'总经理'
,
'5'
,
''
,
'5'
,
'1'
,
'admin'
,
'2019-09-19 10:25:41'
,
NULL
,
NULL
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174509861333917697'
,
'1174509082208395266'
,
'董事长'
,
'6'
,
''
,
'6'
,
'1'
,
'admin'
,
'2019-09-19 10:25:47'
,
NULL
,
NULL
);
-- 通讯录菜单
INSERT
INTO
`sys_permission`
(
`id`
,
`parent_id`
,
`name`
,
`url`
,
`component`
,
`is_route`
,
`component_name`
,
`redirect`
,
`menu_type`
,
`perms`
,
`perms_type`
,
`sort_no`
,
`always_show`
,
`icon`
,
`is_leaf`
,
`keep_alive`
,
`hidden`
,
`description`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
,
`del_flag`
,
`rule_flag`
,
`status`
,
`internal_or_external`
)
VALUES
(
'1174590283938041857'
,
'd7d6e2e4e2934f2c9385a623fd98c6f3'
,
'通讯录'
,
'/isystem/addressList'
,
'system/AddressList'
,
'1'
,
NULL
,
NULL
,
'1'
,
NULL
,
'1'
,
'3'
,
'0'
,
NULL
,
'1'
,
'0'
,
'0'
,
NULL
,
'admin'
,
'2019-09-19 15:45:21'
,
NULL
,
NULL
,
'0'
,
'0'
,
'1'
,
'0'
);
-- author:sunjianlei----date:20190920----for: 新增职务模块相关数据 -------------
-- author:sunjianlei----date:20190923----for: 更新职务职级字典 -------------
DELETE
FROM
sys_dict_item
WHERE
dict_id
=
"1174509082208395266"
;
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174509601047994369'
,
'1174509082208395266'
,
'员级'
,
'1'
,
''
,
'1'
,
'1'
,
'admin'
,
'2019-09-19 10:24:45'
,
'admin'
,
'2019-09-23 11:46:39'
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174509667297026049'
,
'1174509082208395266'
,
'助级'
,
'2'
,
''
,
'2'
,
'1'
,
'admin'
,
'2019-09-19 10:25:01'
,
'admin'
,
'2019-09-23 11:46:47'
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174509713568587777'
,
'1174509082208395266'
,
'中级'
,
'3'
,
''
,
'3'
,
'1'
,
'admin'
,
'2019-09-19 10:25:12'
,
'admin'
,
'2019-09-23 11:46:56'
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174509788361416705'
,
'1174509082208395266'
,
'副高级'
,
'4'
,
''
,
'4'
,
'1'
,
'admin'
,
'2019-09-19 10:25:30'
,
'admin'
,
'2019-09-23 11:47:06'
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1174509835803189250'
,
'1174509082208395266'
,
'正高级'
,
'5'
,
''
,
'5'
,
'1'
,
'admin'
,
'2019-09-19 10:25:41'
,
'admin'
,
'2019-09-23 11:47:12'
);
-- author:sunjianlei----date:20190923----for: 更新职务职级字典 -------------
-- author:scott----date:20190923----for: 去掉用户表的性别字段默认值 -------------
ALTER
TABLE
sys_user
MODIFY
COLUMN
`sex`
tinyint
(
1
)
NULL
COMMENT
'性别(0-默认未知,1-男,2-女)'
AFTER
`birthday`
;
-- author:scott----date:20190923----for:去掉用户表的性别字段默认值 -------------
-- author:scott----date:20190923----for:菜单排序字段改成浮点型,更灵活 -------------
ALTER
TABLE
sys_permission
MODIFY
COLUMN
`sort_no`
double
(
8
,
2
)
NULL
DEFAULT
NULL
COMMENT
'菜单排序'
AFTER
`perms_type`
;
-- author:scott----date:20190923----for:菜单排序字段改成浮点型,更灵活-------------
-- author:scott----date:20190929----for:表单权限策略字典配置说明,更清晰------------
INSERT
INTO
`sys_dict`
(
`id`
,
`dict_name`
,
`dict_code`
,
`description`
,
`del_flag`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
,
`type`
)
VALUES
(
'1178295274528845826'
,
'表单权限策略'
,
'form_perms_type'
,
''
,
0
,
'admin'
,
'2019-09-29 21:07:39'
,
'admin'
,
'2019-09-29 21:08:26'
,
NULL
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1178295553450061826'
,
'1178295274528845826'
,
'可编辑(未授权禁用)'
,
'2'
,
''
,
2
,
1
,
'admin'
,
'2019-09-29 21:08:46'
,
'admin'
,
'2019-09-29 21:09:18'
);
INSERT
INTO
`sys_dict_item`
(
`id`
,
`dict_id`
,
`item_text`
,
`item_value`
,
`description`
,
`sort_order`
,
`status`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
)
VALUES
(
'1178295639554928641'
,
'1178295274528845826'
,
'可见(未授权不可见)'
,
'1'
,
''
,
1
,
1
,
'admin'
,
'2019-09-29 21:09:06'
,
'admin'
,
'2019-09-29 21:09:24'
);
-- author:scott----date:20190929----for:表单权限策略字典配置说明,更清晰-------------
-- author:sunjianlei----date:20191009----for: 给角色编码加上唯一校验 -------------
ALTER
TABLE
`sys_role`
ADD
UNIQUE
INDEX
`uniq_sys_role_role_code`
(
`role_code`
)
USING
BTREE
;
-- author:sunjianlei----date:20191009----for: 给角色编码加上唯一校验 -------------
-- author:taoyan----date:20190829 ----for:online复制表单新增菜单 --需要配置权限
INSERT
INTO
`sys_permission`
(
`id`
,
`parent_id`
,
`name`
,
`url`
,
`component`
,
`component_name`
,
`redirect`
,
`menu_type`
,
`perms`
,
`perms_type`
,
`sort_no`
,
`always_show`
,
`icon`
,
`is_route`
,
`is_leaf`
,
`keep_alive`
,
`hidden`
,
`description`
,
`create_by`
,
`create_time`
,
`update_by`
,
`update_time`
,
`del_flag`
,
`rule_flag`
,
`status`
)
VALUES
(
'f2849d3814fc97993bfc519ae6bbf049'
,
'e41b69c57a941a3bbcce45032fe57605'
,
'AUTO复制表单'
,
'/online/copyform/:code'
,
'modules/online/cgform/OnlCgformCopyList'
,
NULL
,
NULL
,
'1'
,
NULL
,
'1'
,
'1'
,
'0'
,
NULL
,
'1'
,
'1'
,
'0'
,
'1'
,
NULL
,
'admin'
,
'2019-08-29 16:05:37'
,
NULL
,
NULL
,
'0'
,
'0'
,
'1'
);
-- author:taoyan----date:20190829 ----for:online复制表单新增菜单 --需要配置权限
-- author:taoyan----date:20190829 ----for:online复制表单功能新增字段
ALTER
TABLE
`onl_cgform_head`
ADD
COLUMN
`copy_version`
int
(
11
)
NULL
COMMENT
'复制版本号'
AFTER
`form_template_mobile`
,
ADD
COLUMN
`copy_type`
int
(
3
)
NULL
DEFAULT
0
COMMENT
'复制表类型1为复制表 0为原始表'
AFTER
`copy_version`
,
ADD
COLUMN
`physic_id`
varchar
(
32
)
NULL
COMMENT
'原始表ID'
AFTER
`copy_type`
;
-- author:taoyan----date:20190829 ----for:online复制表单功能新增字段
-- author:taoyan----date:20190924 ----for:online 列表支持滚动
ALTER
TABLE
`onl_cgform_head`
ADD
COLUMN
`scroll`
int
(
3
)
NULL
DEFAULT
0
COMMENT
'是否有横向滚动条'
AFTER
`form_template_mobile`
;
-- author:taoyan----date:20190924 ----for:online 列表支持滚动
-- author:sunjianlei----date:20190929 ----for: 修改 Cgreport 字典字段长度
ALTER
TABLE
`onl_cgreport_item`
MODIFY
COLUMN
`dict_code`
varchar
(
500
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'字典CODE'
AFTER
`is_search`
;
-- author:sunjianlei----date:20190929 ----for: 修改 Cgreport 字典字段长度
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment